/* ===================================================================
   TheCoderSprint — editorial studio design system
   Light, premium, indigo accent. Subtle code identity.
   =================================================================== */

:root {
  color-scheme: light;

  /* Neutrals — tinted gently toward indigo */
  --paper:     oklch(98.6% 0.004 265);
  --paper-2:   oklch(96.6% 0.006 265);
  --card:      oklch(99.6% 0.0015 265);
  --ink:       oklch(22% 0.025 265);
  --ink-soft:  oklch(34% 0.024 265);
  --muted:     oklch(48% 0.020 265);
  --subtle:    oklch(62% 0.016 265);
  --line:      oklch(90.5% 0.010 265);
  --line-soft: oklch(93.5% 0.007 265);

  /* Brand — electric indigo */
  --accent:        oklch(54% 0.21 264);
  --accent-strong: oklch(47% 0.205 264);
  --accent-tint:   oklch(95% 0.035 264);
  --accent-ink:    oklch(40% 0.17 264);

  /* Deep indigo for inverted bands */
  --deep:      oklch(27% 0.085 266);
  --deep-2:    oklch(23% 0.075 266);
  --on-deep:   oklch(96% 0.01 265);
  --on-deep-mut: oklch(76% 0.03 265);

  --r-card: 18px;
  --r-btn:  11px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px oklch(28% 0.06 265 / 0.05);
  --sh-2: 0 10px 30px oklch(28% 0.06 265 / 0.08), 0 2px 6px oklch(28% 0.06 265 / 0.05);
  --sh-3: 0 30px 70px oklch(28% 0.08 265 / 0.13), 0 6px 16px oklch(28% 0.06 265 / 0.07);

  --ring: 0 0 0 3px oklch(54% 0.21 264 / 0.22);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent-tint); color: var(--accent-ink); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--subtle); }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 18px; top: -100px; z-index: 50;
  padding: 11px 16px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper); font-size: 0.9rem;
}
.skip-link:focus { top: 16px; }

/* ── Typography helpers ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent);
  display: inline-block; border-radius: 2px;
}
.lede {
  font-size: clamp(1.06rem, 0.6rem + 0.9vw, 1.28rem);
  line-height: 1.6; color: var(--muted); max-width: 60ch;
}
.small-note { font-size: 0.85rem; color: var(--subtle); line-height: 1.6; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.4rem); font-weight: 600; line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 1.1rem + 2.4vw, 2.7rem); font-weight: 600; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }

/* ── Buttons ────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 600;
  letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid var(--b-bd);
  transition: transform .18s cubic-bezier(.2,.7,.2,1), background-color .18s, border-color .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: none; box-shadow: var(--ring); }
.button-primary { --b-bg: var(--accent); --b-fg: oklch(99% 0.01 265); --b-bd: transparent; box-shadow: 0 8px 22px oklch(54% 0.21 264 / 0.28); }
.button-primary:hover { --b-bg: var(--accent-strong); box-shadow: 0 14px 30px oklch(54% 0.21 264 / 0.34); }
.button-secondary { --b-bg: var(--card); --b-bd: var(--line); }
.button-secondary:hover { --b-bd: var(--ink); }
.button .arr { transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.button:hover .arr { transform: translateX(3px); }
.button-ghost-deep { --b-bg: transparent; --b-fg: var(--on-deep); --b-bd: oklch(96% 0.01 265 / 0.28); }
.button-ghost-deep:hover { --b-bd: var(--on-deep); }

/* ── Header / nav ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(98.6% 0.004 265 / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.03em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--ink); color: var(--accent-tint);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--sh-1);
}
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 0.93rem; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 9px 14px; border-radius: var(--r-pill); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .nav-cta {
  margin-left: 6px; padding: 10px 18px; color: oklch(99% 0.01 265);
  background: var(--accent); border-radius: var(--r-pill);
  box-shadow: 0 6px 16px oklch(54% 0.21 264 / 0.26);
}
.nav-links .nav-cta:hover { background: var(--accent-strong); color: oklch(99% 0.01 265); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  align-items: center; justify-content: center; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle svg { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.nav-open .nav-toggle svg { transform: rotate(90deg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 5vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { max-width: 48ch; }
.hero-copy .actions { margin-top: 6px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--subtle);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Spec card — elegant, not a fake terminal */
.spec-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--sh-3); overflow: hidden;
}
.spec-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--subtle);
}
.spec-head .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.spec-head .pip.on { background: var(--accent); }
.spec-head b { margin-left: auto; color: var(--muted); font-weight: 500; }
.spec-body { padding: 8px 18px 18px; }
.spec-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); font-family: var(--font-mono); font-size: 0.84rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--subtle); }
.spec-row .v { color: var(--ink-soft); font-weight: 500; }
.spec-row .v b { color: var(--accent-ink); font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section-tight { padding: clamp(36px, 4vw, 56px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section-heading { max-width: 64ch; display: flex; flex-direction: column; gap: 16px; }
.section-heading h2 { max-width: 20ch; }
.section-heading p { color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

/* ── Stat strip ─────────────────────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; margin-top: 8px;
}
.stat { background: var(--card); padding: 26px 24px; }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.stat .lbl { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }

/* ── Service list — editorial, numbered, hairline rules ─────────── */
.service-list { margin-top: 48px; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  align-items: start; transition: background-color .2s, padding-left .2s;
}
.service-row:hover { background: var(--paper-2); padding-left: 18px; }
.service-index { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 700; color: var(--accent); padding-top: 4px; }
.service-row h3 { margin-bottom: 8px; }
.service-row p { color: var(--muted); max-width: 62ch; }
.service-row .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* Service detail — "what's included" points */
.svc-points {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; max-width: 62ch;
}
.svc-points li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--ink-soft); }
.svc-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent-tint); border: 1.5px solid var(--accent);
}
@media (max-width: 620px) { .svc-points { grid-template-columns: 1fr; } }

/* ── Proof / values ─────────────────────────────────────────────── */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.proof-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s;
}
.proof-item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line); }
.proof-item .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); margin-bottom: 6px;
}
.proof-item b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.proof-item p { color: var(--muted); font-size: 0.96rem; }

/* ── Two-column / panel / callout ───────────────────────────────── */
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.two-column > div { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.two-column h2 { max-width: 18ch; }
.two-column p { color: var(--muted); }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(26px, 3vw, 40px); box-shadow: var(--sh-1);
}
.panel h2 { margin-bottom: 6px; }
.panel > h2 + p, .panel > p { color: var(--muted); }
.panel p + h2 { margin-top: 22px; }

.callout {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 40px); box-shadow: var(--sh-2);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.callout h3 { font-size: 1.4rem; }
.callout p { color: var(--muted); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ── CTA band — deep indigo, committed colour moment ────────────── */
.cta-band {
  background:
    radial-gradient(120% 140% at 85% 10%, var(--deep) 0%, var(--deep-2) 60%);
  color: var(--on-deep); border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 6vw, 76px); margin: clamp(40px, 5vw, 72px) 0;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(oklch(96% 0.01 265 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(96% 0.01 265 / 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 120% at 80% 0%, black, transparent 70%);
}
.cta-band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 40ch; }
.cta-band .eyebrow { color: oklch(82% 0.06 265); }
.cta-band .eyebrow::before { background: var(--accent-tint); }
.cta-band h2 { color: var(--on-deep); }
.cta-band p { color: var(--on-deep-mut); font-size: 1.06rem; max-width: 46ch; }

/* ── Page hero (inner pages) ────────────────────────────────────── */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line-soft); }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card label { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.input, .textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input:focus, .textarea:focus { border-color: var(--accent); background: var(--card); box-shadow: var(--ring); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.contact-meta { display: flex; flex-direction: column; gap: 10px; }
.contact-meta p { color: var(--ink-soft); }
.contact-meta a { color: var(--accent-ink); font-weight: 500; }
.contact-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Info table (business-info) ─────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:last-child { border-bottom: 0; }
.info-table th {
  text-align: left; vertical-align: top; padding: 16px 20px 16px 0; width: 220px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle);
}
.info-table td { padding: 16px 0; color: var(--ink-soft); }
.info-table td a { color: var(--accent-ink); font-weight: 500; }
.info-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Legal / prose ──────────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose a { color: var(--accent-ink); font-weight: 500; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(44px, 5vw, 64px) 0 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 34ch; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--subtle); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 0.95rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.86rem; }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--ink); }

/* ── Reveal on scroll (staggered) ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* Stagger within groups */
  .service-row:nth-child(2), .proof-item:nth-child(2), .stat:nth-child(2) { --i: 1; }
  .service-row:nth-child(3), .proof-item:nth-child(3), .stat:nth-child(3) { --i: 2; }
  .service-row:nth-child(4), .stat:nth-child(4) { --i: 3; }
  .service-row:nth-child(5) { --i: 4; }
  .service-row:nth-child(6) { --i: 5; }

  /* Hero entrance — children rise in sequence on load */
  .hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero-copy > *:nth-child(3) { animation-delay: .21s; }
  .hero-copy > *:nth-child(4) { animation-delay: .29s; }
  .hero-copy > *:nth-child(5) { animation-delay: .37s; }
  .spec-card { opacity: 0; transform: translateY(20px) scale(.985); animation: rise-card .9s cubic-bezier(.2,.7,.2,1) .28s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes rise-card { to { opacity: 1; transform: none; } }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .spec-card { max-width: 480px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* ── Mobile navigation menu ─────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--sh-2);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .22s cubic-bezier(.2,.7,.2,1), transform .22s cubic-bezier(.2,.7,.2,1);
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .service-row { grid-template-columns: 1fr; gap: 6px; }
  .service-index { padding-top: 0; }
  .info-table th { display: block; width: auto; padding-bottom: 2px; }
  .info-table td { display: block; padding-top: 2px; padding-bottom: 16px; }
  .info-table tr { display: block; padding: 8px 0; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
