/* === VARIABLES === */
:root {
  --navy: #0D1B2A;
  --navy-light: #1A2E42;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --teal-dim: rgba(20, 184, 166, 0.12);
  --warm-white: #F7F5F0;
  --warm-gray: #E8E4DD;
  --text-dark: #0D1B2A;
  --text-body: #374151;
  --text-muted: #6B7280;
  --code-bg: #0F2235;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* === HERO === */
.hero {
  background: var(--navy);
  padding: 80px 32px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

/* Code window */
.code-window {
  background: var(--code-bg);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(20,184,166,0.15);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.code-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
}
.code-body {
  padding: 24px 24px 8px;
}
.code-line {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
}
.code-line.indent { padding-left: 20px; }
.code-line.indent-2 { padding-left: 40px; }
.c-keyword { color: #7dd3fc; }
.c-string { color: #86efac; }
.c-action { color: #f9a8d4; }
.c-var { color: #fcd34d; }
.c-fn { color: #c4b5fd; }
.c-num { color: #fb923c; }
.c-comment { color: rgba(255,255,255,0.28); font-style: italic; }
.code-metrics {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
}
.metric {
  flex: 1;
  padding: 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.metric:last-child { border-right: none; }
.metric-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-light);
  font-family: var(--font-display);
}
.metric-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* === PROOF === */
.proof {
  background: var(--warm-white);
  padding: 64px 32px;
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 20px;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.proof-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.proof-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === WHAT WE DO === */
.services {
  padding: 96px 32px;
  background: #fff;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  padding: 36px 32px;
  background: var(--warm-white);
  border-radius: 16px;
  border: 1px solid var(--warm-gray);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13,27,42,0.08);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* === HOW IT WORKS === */
.process {
  padding: 96px 32px;
  background: var(--navy);
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.process-inner .section-label { color: var(--teal-light); }
.process-inner .section-headline { color: #fff; }
.process-steps {
  display: flex;
  align-items: flex-start;
  margin-top: 64px;
}
.step {
  flex: 1;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 32px 24px 0;
  flex-shrink: 0;
}

/* === WHY NOW === */
.why-now {
  padding: 96px 32px;
  background: var(--warm-white);
}
.why-now-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.why-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.why-body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
}
.why-insight {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--navy);
  border-radius: 12px;
  border-left: 3px solid var(--teal);
}
.insight-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  font-style: italic;
}
.sidebar-block {
  margin-bottom: 40px;
}
.sidebar-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.sidebar-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-block ul li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}
.sidebar-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.sidebar-block p {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 8px;
  font-weight: 500;
}
.sidebar-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 12px;
}

/* === CLOSING === */
.closing {
  padding: 96px 32px 120px;
  background: #fff;
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 24px;
}
.closing-tagline {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-meta p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-now-inner { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 0; }
  .step-connector { width: 1px; height: 40px; margin: 16px 0 16px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-meta p { text-align: left; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 20px 64px; }
  .hero-headline { font-size: 2.4rem; }
  .nav-links { display: none; }
  .services, .process, .why-now, .closing { padding: 64px 20px; }
  .proof { padding: 48px 20px; }
  .code-body { padding: 16px; }
  .code-line { font-size: 0.72rem; }
}