/* PixelMind — Web Software Development
   Design tokens */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --ink: #10161a;
  --ink-soft: #52616b;
  --line: #e6eae8;
  --brand: #2fae4e;
  --brand-dark: #1f8c3c;
  --brand-light: #add348;
  --navy: #0c1620;
  --navy-soft: #16232f;
  --radius: 12px;
  --container: 1180px;
  --shadow: 0 10px 30px -12px rgba(12, 22, 32, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
section { position: relative; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
  background: rgba(47, 174, 78, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: '</>'; opacity: 0.8; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47, 174, 78, 0.6);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(12, 22, 32, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.2s ease;
}
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.header-actions .btn-outline:hover { border-color: #fff; }

.site-header.is-scrolled .main-nav a { color: var(--ink); }
.site-header.is-scrolled .header-actions .btn-outline {
  color: var(--ink);
  border-color: var(--line);
}
.site-header.is-scrolled .header-actions .btn-outline:hover { border-color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: radial-gradient(1100px 600px at 85% -10%, #12351f 0%, var(--navy) 55%), var(--navy);
  color: #fff;
  padding: 168px 0 120px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-width: 0;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin-top: 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-meta div { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.hero-meta strong { display: block; font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* Code window graphic */
.code-window {
  background: #0f1a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13.5px;
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.code-window-bar span:nth-child(1) { background: #ff5f57; }
.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }
.code-window-title { margin-left: 8px; color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.code-window pre { margin: 0; padding: 24px; overflow-x: auto; line-height: 1.7; }
.code-window code { color: #cbd5d1; }
.tok-kw { color: #ff9d7a; }
.tok-fn { color: #7ad3ff; }
.tok-str { color: var(--brand-light); }
.tok-cm { color: #5b6b74; }
.tok-pn { color: #8892a0; }

/* Logo strip */
.logo-strip { padding: 56px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.logo-strip p { text-align: center; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.logo-strip-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.logo-strip-row img {
  border-radius: 10px;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.logo-strip-row a:hover img { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }

/* Services */
.services { padding: 120px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(47, 174, 78, 0.1);
  color: var(--brand-dark);
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

/* Process */
.process { padding: 120px 0; background: var(--bg-alt); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px; right: -12px;
  width: 22px; height: 1px;
  background: var(--line);
  display: none;
}
@media (min-width: 900px) {
  .process-step:not(:last-child)::after { display: block; }
}

/* Work */
.work { padding: 120px 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-card img { width: 100%; height: auto; }

/* Why */
.why { padding: 120px 0; background: var(--navy); color: #fff; }
.why .section-head p { color: rgba(255, 255, 255, 0.65); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.why-card h3 { font-size: 17px; margin-bottom: 10px; color: #fff; }
.why-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.62); }

/* CTA band */
.cta-band {
  padding: 90px 0;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); color: #fff; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; margin-top: 30px; }
.cta-band .btn-primary:hover { background: #f0f0f0; }

/* Contact */
.contact { padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); font-size: 16px; }
.contact-detail { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-detail a, .contact-detail span { font-size: 15px; }
.contact-detail .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-detail a { font-weight: 600; color: var(--ink); }
.contact-detail a:hover { color: var(--brand-dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.botcheck {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-note { margin-top: 14px; font-size: 14px; }
.form-note.success { color: var(--brand-dark); }
.form-note.error { color: #d1453b; }
.form-note[hidden] { display: none; }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 28px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--ink); }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

html.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .code-window { transform: none; }
  .hero { padding: 150px 0 80px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .logo-strip-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .container { flex-wrap: wrap; height: auto; padding-bottom: 8px; }
  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 12px 0 20px;
    order: 3;
  }
  .site-header.is-open .main-nav a { padding: 10px 0; opacity: 1; color: var(--ink); }
  .site-header.is-open { background: #fff; border-bottom-color: var(--line); }
  .site-header.is-open .nav-toggle span { background: var(--ink); }
  .service-grid, .process-grid, .why-grid, .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logo-strip-row { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 24px; }
  .footer-top { flex-direction: column; }
}
