/* Layout: one 1200px column with full-bleed bands; hero = live dot grid over a rising "sunrise" glow.
   Palette: Sunrise (orange + blue). Type: Be Vietnam Pro (display + body), JetBrains Mono (labels). */
:root {
  --bg: #F8F8F7;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --muted: #4F5560;
  --line: #E6E4E1;
  --accent: #C9430C;
  --accent-ink: #FFFFFF;
  --accent2: #2350F5;
  --accent2-ink: #1D3FC4;
  --soft: #FFEFE6;
  --soft2: #EAF0FF;
  --band: #0E1116;
  --band-ink: #F3F2F0;
  --band-muted: #A9ADB5;
  --band-line: #2A2E36;
  --band-accent: #FF8A4C;
  --glow: rgba(255, 110, 40, 0.30);
  --spot: rgba(201, 67, 12, 0.10);
  --shadow: rgba(201, 67, 12, 0.18);
  --term-bg: #07090C;
  --term-ink: #D7DAE0;
  --term-dim: #7D8590;
  --term-ok: #6CCB8B;

  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D11; --surface: #12151B; --ink: #F1EFEC; --muted: #A2A7B0; --line: #232730;
    --accent: #FF8A4C; --accent-ink: #1F0A00; --accent2: #6B8CFF; --accent2-ink: #9DB2FF;
    --soft: #2E1A10; --soft2: #141F3D;
    --band: #151A24; --band-ink: #F1EFEC; --band-muted: #A2A7B0; --band-line: #2A3140; --band-accent: #FF8A4C;
    --glow: rgba(255, 138, 76, 0.22); --spot: rgba(255, 138, 76, 0.10); --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D11; --surface: #12151B; --ink: #F1EFEC; --muted: #A2A7B0; --line: #232730;
  --accent: #FF8A4C; --accent-ink: #1F0A00; --accent2: #6B8CFF; --accent2-ink: #9DB2FF;
  --soft: #2E1A10; --soft2: #141F3D;
  --band: #151A24; --band-ink: #F1EFEC; --band-muted: #A2A7B0; --band-line: #2A3140; --band-accent: #FF8A4C;
  --glow: rgba(255, 138, 76, 0.22); --spot: rgba(255, 138, 76, 0.10); --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.03em; line-height: 1.15; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .02em; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 48px; }
.head > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; min-width: 0; }
.head > p { color: var(--muted); max-width: 440px; font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 30px -12px var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-invert { background: var(--accent-ink); color: var(--accent); }
.btn-invert:hover { transform: translateY(-2px); }
.arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 18px; letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.brand span { font-weight: 500; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { color: var(--muted); text-decoration: none; white-space: nowrap; padding-block: 12px; transition: color .2s; }
.links a:hover { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 8px; }
.actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.icon-btn {
  width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 13px var(--mono); text-decoration: none; cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.theme-toggle .sun, .theme-toggle[data-mode="dark"] .moon { display: none; }
.theme-toggle[data-mode="dark"] .sun { display: block; }
@media (max-width: 1120px) { .links { display: none; } }
@media (max-width: 460px) { .actions .btn { display: none; } }

/* Logo: the tick draws itself on load */
.logo .bg { fill: var(--accent); }
.logo .tick { fill: none; stroke: var(--accent-ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; animation: draw .9s .25s var(--ease) both; }
.logo .dot { fill: var(--accent2); transform-origin: 26px 9.5px; animation: pop .45s 1s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes draw { from { stroke-dashoffset: 34; } }
@keyframes pop { from { transform: scale(0); } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: -73px; padding-top: 73px; }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 35%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; left: 62%; bottom: -70%;
  width: min(1100px, 150vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  transform: translateX(-50%);
  animation: rise 1.8s .1s var(--ease) both;
}
@keyframes rise { from { transform: translate(-50%, 30%); opacity: 0; } }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-block: clamp(56px, 9vw, 128px) clamp(64px, 8vw, 112px); }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.3 var(--mono); color: var(--accent2-ink); background: var(--soft2);
  padding: 9px 14px; border-radius: 999px; animation: fade .7s .1s var(--ease) both;
}
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 var(--accent2); animation: pulse 2.2s infinite; }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.line > span { display: inline-block; animation: up .9s var(--ease) both; }
.line + .line > span { animation-delay: .12s; }
@keyframes up { from { transform: translateY(110%); } }
.rotator { color: var(--accent); }
.caret { display: inline-block; width: .06em; height: .85em; margin-left: .05em; vertical-align: -.06em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; animation: fade .8s .35s var(--ease) both; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; animation: fade .8s .5s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

.hero-card {
  flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 60px -30px var(--shadow); animation: fade .9s .65s var(--ease) both;
}
.card-bar { display: flex; align-items: center; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.card-bar i:nth-child(1) { background: var(--accent); }
.card-bar i:nth-child(2) { background: var(--accent2); }
.card-bar span { padding-left: 8px; }
.model { display: flex; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.model:last-child { border-bottom: 0; }
.model:hover { background: var(--soft); }
.model svg { flex: none; margin-top: 3px; color: var(--accent); }
.model strong { display: block; font-size: 16px; margin-bottom: 4px; }
.model p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Clients marquee */
.clients { border-block: 1px solid var(--line); background: var(--surface); padding-block: 32px; }
.clients .label { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 20px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.slot {
  flex: none; height: 52px; margin-right: 10px; padding-inline: 22px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 500 14px var(--mono); color: var(--ink);
  transition: border-color .2s, color .2s;
}
.slot:hover { border-color: var(--accent); color: var(--accent); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card p { font-size: 15px; color: var(--muted); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 70%);
}
.spot:hover::before { opacity: 1; }
.ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--accent); }
.ico.alt { background: var(--soft2); color: var(--accent2-ink); }
.ico svg { transition: transform .35s var(--ease); }
.card:hover .ico svg { transform: rotate(-8deg) scale(1.1); }

/* AI band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .head > p, .band .card p { color: var(--band-muted); }
.band .card { background: transparent; border-color: var(--band-line); padding: 24px; gap: 12px; }
.band .card:hover { border-color: var(--band-accent); }
.band .ico { background: color-mix(in srgb, var(--band-accent) 15%, transparent); color: var(--band-accent); }
.ai-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.term { min-width: 0; border: 1px solid var(--band-line); border-radius: 16px; overflow: hidden; background: var(--term-bg); color: var(--term-ink); font: 400 13.5px/1.75 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--band-line); color: var(--term-dim); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--band-line); }
.term-bar span { padding-left: 8px; }
.term pre { margin: 0; padding: 18px 20px 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.term pre > span { display: block; }
.cta-box :focus-visible { outline-color: var(--accent-ink); }
.term .p { color: var(--band-accent); }
.term .d { color: var(--term-dim); }
.term .ok { color: var(--term-ok); }
.term-note { padding: 0 20px 16px; font-size: 12px; color: var(--term-dim); }

/* Process: the top rule fills as you scroll */
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 24px; padding-top: 28px; }
.steps::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
.steps .bar { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .k { font: 500 13px var(--mono); color: var(--accent); }
.step p { color: var(--muted); font-size: 15px; }

/* Founding clients */
.found {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px;
  padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.found > div { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.found > div:first-child { flex: 1 1 420px; }
.found > div:last-child { flex: 1 1 360px; gap: 22px; }
.found p { color: var(--muted); font-size: 17px; max-width: 48ch; }
.found .btn { align-self: flex-start; }

/* FAQ */
.faq-layout { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq-layout > :first-child { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.faq { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--ease), background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--accent-ink); }
.faq details p { padding-bottom: 22px; max-width: 68ch; color: var(--muted); }

/* Contact */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px;
  padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: var(--accent); color: var(--accent-ink);
}
.rings { position: relative; overflow: hidden; isolation: isolate; }
.rings::before {
  content: ""; position: absolute; z-index: -1; right: -20%; bottom: -60%; width: 900px; max-width: none; aspect-ratio: 1;
  background: repeating-radial-gradient(circle, transparent 0 34px, color-mix(in srgb, var(--accent-ink) 14%, transparent) 34px 35px);
  border-radius: 50%; animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.12); } }
.cta-box > div:first-child { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-box h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta-box p { max-width: 46ch; }
.contact-list { flex: 0 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.contact-list dd { margin: 2px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.copy { min-height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 12px var(--mono); cursor: pointer; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Scroll reveal: only elements below the fold at load are hidden, so the first frame is always complete */
[data-reveal].pending { opacity: 0; transform: translateY(20px); }
[data-reveal].revealing { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .caret { display: none; }
}
