/* ai404 — design system */
:root {
  --ink: 231,233,238;           /* neutral ink (for translucent borders/overlays) */
  --bg: #0a0d14;
  --bg-soft: #0e121c;
  --surface: #111726;
  --surface-2: #161d2e;
  --border: rgba(var(--ink),0.08);
  --border-2: rgba(var(--ink),0.16);

  --accent: #d97757;            /* terracotta — punctuation only */
  --accent-2: #e08a6c;
  --accent-soft: rgba(217,119,87,0.13);

  --text: #e7e9ee;
  --muted: #99a0b0;
  --faint: #5b6273;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --maxw: 2400px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  /* coding / terminal font system — distinct role per font */
  --font-display: "Space Mono", ui-monospace, monospace;   /* headings */
  --font-text: "JetBrains Mono", ui-monospace, monospace;   /* body */
  --font-mono: "Geist Mono", ui-monospace, monospace;       /* buttons / labels */
  --scrim: rgba(10,13,20,0.97);
}

:root[data-theme="light"] {
  --ink: 17,22,33;
  --scrim: rgba(246,247,249,0.97);
  --bg: #f6f7f9;
  --bg-soft: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --accent: #c25636;          /* deepened terracotta for AA contrast on light */
  --accent-2: #a8452a;
  --accent-soft: rgba(194,86,54,0.12);
  --text: #14181f;
  --muted: #555d6c;
  --faint: #8a93a4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px; line-height: 1.65;
  overflow-x: hidden;
}

/* faint neutral grain (no colour wash) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.022; mix-blend-mode: overlay;
}

/* selection — no highlight box; the text itself flips colour */
::selection { background: transparent; color: var(--accent); }
::-moz-selection { background: transparent; color: var(--accent); }
.accent::selection, .t-price b::selection, .topcta .signin::selection,
.kicker::selection, .tag::selection, .r-n b::selection { color: var(--text); }
.accent::-moz-selection, .t-price b::-moz-selection { color: var(--text); }

a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

.wrap { width: 90vw; max-width: var(--maxw); margin: 0 auto; }

/* mono kickers / labels — no leading line/slash (AI tell) */
.kicker, .eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 500; text-transform: uppercase;
}
.eyebrow { color: var(--muted); }

/* buttons — mono, near-rectangular */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn-primary { color: #1a1106; background: var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: rgba(var(--ink),0.34); }
.btn .arr { font-size: 13px; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* ---------- nav (in-flow, scrolls away) ---------- */
.topbar {
  position: relative; z-index: 10;
  width: 90vw; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 30px 0 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand .mark { width: 42px; height: 42px; border-radius: 10px; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: 0.02em; line-height: 1; color: var(--text); }
.brand .wordmark b { color: var(--text); font-weight: 700; }
.topnav { justify-self: center; display: flex; align-items: center; gap: 34px; }
.topnav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; color: var(--muted); transition: color .25s; }
.topnav a:hover { color: var(--accent); }
.topnav a.scrambling { color: var(--accent); }
.topcta { justify-self: end; display: flex; align-items: center; gap: 18px; }
.topcta .signin { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.topcta .signin:hover { color: var(--accent); }
.topcta .btn { --h: 42px; }

/* theme toggle */
.themebtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: var(--r-sm); background: transparent; border: 1px solid var(--border-2);
  color: var(--text); cursor: pointer; transition: border-color .25s, color .25s, background .25s;
}
.themebtn:hover { border-color: var(--accent); color: var(--accent); }
.themebtn svg { width: 18px; height: 18px; }
.themebtn .ic-moon { display: none; }
.themebtn .ic-sun { display: block; }
:root[data-theme="light"] .themebtn .ic-sun { display: none; }
:root[data-theme="light"] .themebtn .ic-moon { display: block; }
.mm-cta .themebtn { width: 100%; height: 54px; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.mm-cta .themebtn::after { content: "Theme"; }
:root[data-theme="light"] .mm-cta .themebtn::after { content: "Dark theme"; }
:root:not([data-theme="light"]) .mm-cta .themebtn::after { content: "Light theme"; }

/* hamburger toggle (mobile/tablet only) */
.navtoggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-left: 4px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .navtoggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .navtoggle span:nth-child(2) { opacity: 0; }
body.menu-open .navtoggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu drawer */
.mobilemenu {
  display: none; position: fixed; inset: 0; z-index: 9;
  flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(28px, 8vw, 56px);
  background: var(--scrim); backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.mobilemenu.show { opacity: 1; pointer-events: auto; }
.mm-nav { display: flex; flex-direction: column; gap: 4px; }
.mm-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.8rem);
  letter-spacing: -0.03em; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color .25s;
}
.mm-nav a:hover, .mm-nav a:active { color: var(--accent); }
.mm-cta { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.mm-cta .signin { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 0; }
.mm-cta .btn { --h: 54px; width: 100%; font-size: 13px; }
body.menu-open .cookie { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero.no-webgl::before { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 50% at 74% 50%, rgba(217,119,87,0.26), transparent 62%); }
.hero .wrap { width: 90vw; position: relative; z-index: 3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.hero-inner { max-width: min(44vw, 820px); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 6.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 .accent { color: var(--accent); }
.hl { color: var(--accent); }
.eyebrow { margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.hint { position: absolute; bottom: 28px; left: 5vw; z-index: 3; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.9s infinite; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; padding: clamp(96px, 12vw, 220px) 0; }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 5rem); letter-spacing: -0.035em; line-height: 0.98; }

/* platforms — bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(clamp(170px, 15vw, 280px), auto); gap: 14px; }
.card {
  position: relative; padding: clamp(24px, 1.8vw, 40px); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s var(--ease), border-color .3s, background .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.card::after { /* terracotta sheen that sweeps on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(217,119,87,0.14), transparent 55%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(217,119,87,0.4); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card.b-lg { grid-column: span 2; grid-row: span 2; }
.card.b-wide { grid-column: span 2; }
.card .glyph {
  position: absolute; right: clamp(16px, 1.6vw, 34px); top: clamp(56px, 6vw, 96px);
  font-family: var(--font-mono); font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 3.4vw, 4rem); color: rgba(var(--ink),0.06);
  transition: color .4s, transform .5s var(--ease); pointer-events: none; white-space: nowrap;
}
.card.b-lg .glyph { top: auto; bottom: clamp(20px, 2vw, 44px); right: clamp(24px, 2.4vw, 56px); font-size: clamp(5rem, 9vw, 12rem); }
.card.b-wide .glyph { top: auto; bottom: clamp(20px, 2vw, 40px); font-size: clamp(3rem, 5vw, 6rem); }
.card:hover .glyph { color: rgba(217,119,87,0.18); transform: translateY(-6px) rotate(-3deg); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; position: relative; z-index: 1; }
.card .tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.card h3 { font-size: clamp(1.15rem, 1.5vw, 1.5rem); letter-spacing: -0.02em; margin-top: 28px; line-height: 1.1; position: relative; z-index: 1; }
.card.b-lg h3 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); }
.card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.card .chips span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; transition: border-color .3s, color .3s; }
.card:hover .chips span { border-color: var(--border-2); }
.card .chips .live { color: var(--accent); border-color: rgba(217,119,87,0.35); }
.card .go { margin-top: 22px; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 7px; transition: color .25s, gap .3s var(--ease); position: relative; z-index: 1; }
.card .go em { font-style: normal; }
.card:hover .go { color: var(--accent); gap: 12px; }

/* how it works — editorial rows (clean, no connector line) */
.rows { list-style: none; }
.row { position: relative; display: grid; grid-template-columns: clamp(100px, 9vw, 190px) 1fr auto; align-items: center; gap: clamp(20px, 4vw, 80px); padding: clamp(30px, 3.6vw, 60px) clamp(18px, 1.8vw, 32px); transition: background .35s; }
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.row:hover { background: rgba(var(--ink),0.025); }
.row:hover::before { transform: scaleY(1); }
.row .r-n { font-family: var(--font-display); }
.row .r-n b { font-size: clamp(1.7rem, 2.8vw, 3.2rem); font-weight: 700; color: var(--faint); letter-spacing: -0.02em; transition: color .3s; }
.row:hover .r-n b { color: var(--accent); }
.row .r-body h3 { font-size: clamp(1.4rem, 2.4vw, 2.5rem); letter-spacing: -0.025em; }
.row .r-body p { color: var(--muted); margin-top: 12px; font-size: clamp(0.95rem, 1vw, 1.1rem); max-width: 60ch; }
.row .r-meta { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .05em; }

/* pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(28px, 2.4vw, 48px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .3s, background .3s; }
.tier::before { content: ""; position: absolute; left: clamp(20px, 2.2vw, 44px); right: clamp(20px, 2.2vw, 44px); top: 6px; height: 3px; background: var(--accent); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tier:hover { transform: translateY(-6px); border-color: var(--border-2); }
.tier:hover::before, .tier.featured::before { transform: scaleX(1); }
.tier.featured { background: var(--surface-2); border-color: rgba(217,119,87,0.4); }
.tier .t-flag { position: absolute; top: -1px; right: clamp(20px, 2vw, 40px); transform: translateY(-50%); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #1a1106; background: var(--accent); padding: 5px 12px; border-radius: 999px; }
.tier .t-name { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tier .t-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.tier .t-price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 3.6vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.tier.featured .t-price b { color: var(--accent); }
.tier .t-price span { font-family: var(--font-mono); font-size: 14px; color: var(--faint); }
.tier .t-sub { color: var(--muted); font-size: 0.95rem; }
.tier .t-list { list-style: none; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.tier .t-list li { position: relative; padding-left: 26px; color: var(--text); font-size: 0.95rem; }
.tier .t-list li::before { content: "+"; position: absolute; left: 0; top: -1px; font-family: var(--font-mono); color: var(--accent); }
.tier .btn { width: 100%; }

/* footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: clamp(80px, 8vw, 160px) 0 56px; }
.foot-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 16vw, 19rem); line-height: 0.82; letter-spacing: -0.04em; margin-bottom: clamp(50px, 6vw, 110px); color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ink),0.22); }
.foot-mark b { color: var(--accent); -webkit-text-stroke: 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.footer a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 0; transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer .blurb { color: var(--muted); font-size: 15px; max-width: 320px; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; padding: 0; }
.socials a:hover { color: var(--text); border-color: var(--border-2); }
.footer-bottom { margin-top: clamp(48px, 5vw, 84px); border-top: 1px solid var(--border); }
.footer-bottom .fb-inner { display: flex; justify-content: space-between; padding: 28px 0; color: var(--faint); font-family: var(--font-mono); font-size: 12px; flex-wrap: wrap; gap: 12px; }

/* cookie */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 80; max-width: 360px; background: var(--surface-2); backdrop-filter: blur(16px); border: 1px solid var(--border-2); border-radius: var(--r); padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: translateY(180%); transition: transform .6s var(--ease); }
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 13.5px; color: var(--muted); } .cookie b { color: var(--text); }
.cookie .row { display: flex; gap: 10px; margin-top: 16px; border: 0; padding: 0; }
.cookie .btn { --h: 38px; font-size: 11px; padding: 0 14px; }

.reveal { opacity: 0; transform: translateY(26px); }
[data-anim] { opacity: 0; will-change: transform, opacity; }

@media (max-width: 940px) {
  .topbar { grid-template-columns: 1fr auto; padding: 20px 0; }
  .topnav { display: none; }
  .topcta .signin, .topcta > .btn { display: none; }
  .navtoggle { display: flex; }
  .mobilemenu { display: flex; }
  .hero { align-items: flex-end; min-height: 90svh; padding-bottom: clamp(56px, 12vw, 110px); }
  .hero .wrap { width: 90vw; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { max-width: 100%; }
  .hint { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.b-lg, .card.b-wide { grid-column: span 2; }
  .card.b-lg { grid-row: span 1; }
  .row { grid-template-columns: clamp(70px, 16vw, 120px) 1fr; }
  .row .r-meta { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.b-lg, .card.b-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-anim] { opacity: 1 !important; transform: none !important; }
  .hint .dot { animation: none; }
}

/* ============================================================
   SUBPAGES  (about · services · pricing · contact · legal)
   ============================================================ */
/* uniform vertical rhythm on subpages — every inter-section gap is equal */
body.sub { --gap: clamp(72px, 9vw, 150px); }
body.sub section { padding-top: 0; padding-bottom: var(--gap); }
body.sub .subhero { padding-top: clamp(48px, 6vw, 110px); padding-bottom: var(--gap); }
body.sub .footer { padding-top: var(--gap); }

.subhero { position: relative; z-index: 2; padding: clamp(64px, 8vw, 140px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.subhero::before {
  content: ""; position: absolute; top: -14%; right: -6%;
  width: 54vw; height: 54vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at center, rgba(217,119,87,0.13), transparent 62%);
  pointer-events: none; z-index: -1;
}
.subhero .crumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.subhero .crumbs a { color: var(--muted); } .subhero .crumbs a:hover { color: var(--accent); }
.subhero .crumbs em { color: var(--accent); font-style: normal; }
.subhero h1 { font-size: clamp(2.5rem, 6vw, 6.5rem); letter-spacing: -0.045em; line-height: 0.98; max-width: 17ch; margin-top: 22px; }
.subhero h1 .hl { color: var(--accent); }
.subhero .lead { margin-top: 30px; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.3rem); line-height: 1.62; max-width: 60ch; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: clamp(24px, 2.2vw, 40px); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.stat:hover { border-color: var(--border-2); transform: translateY(-4px); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 3.4vw, 3.4rem); letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* feature / value grid */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fgrid.two { grid-template-columns: repeat(2, 1fr); }
.feature { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.2vw, 44px); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, background .3s; }
.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(217,119,87,0.12), transparent 55%); transition: opacity .4s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(217,119,87,0.4); background: var(--surface-2); }
.feature:hover::after { opacity: 1; }
.feature .fic { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.2vw, 2.1rem); color: var(--accent); line-height: 1; margin-bottom: 22px; }
.feature h3 { font-size: clamp(1.15rem, 1.6vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.1; position: relative; z-index: 1; }
.feature p { margin-top: 14px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; position: relative; z-index: 1; }
.feature .ftag { margin-top: auto; padding-top: 22px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); position: relative; z-index: 1; }

/* alternating editorial split rows (services) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; }
.split .s-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.split h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); margin: 16px 0 18px; letter-spacing: -0.03em; line-height: 1.02; }
.split p { color: var(--muted); max-width: 54ch; font-size: clamp(0.95rem, 1.1vw, 1.1rem); line-height: 1.62; }
.split .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.split .chips span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }
.split .s-visual { aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--surface), var(--surface-2)); position: relative; overflow: hidden; display: grid; place-items: center; transition: border-color .4s; }
.split .s-visual:hover { border-color: rgba(217,119,87,0.4); }
.split .s-visual .big { font-family: var(--font-mono); font-size: clamp(3rem, 8vw, 7rem); color: rgba(217,119,87,0.18); letter-spacing: -0.04em; }
.split .s-visual .stamp { position: absolute; bottom: clamp(16px,2vw,28px); left: clamp(18px,2vw,30px); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.split.flip .s-visual { order: -1; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform .field.grow { flex: 1; }
.cform .field.grow textarea { flex: 1; min-height: 150px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field textarea { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 14px 16px; color: var(--text); font-family: var(--font-text); font-size: 15px; transition: border-color .25s; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 150px; }
.cmethods { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.cmethod { padding: clamp(22px, 2vw, 32px); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.cmethod:hover { border-color: var(--border-2); transform: translateY(-3px); }
.cmethod .cm-k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.cmethod .cm-v { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.45rem); }
.cmethod .cm-v a:hover { color: var(--accent); }

/* legal prose */
.legal { display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.legal .toc { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 4px; }
.legal .toc a { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--border); transition: color .25s, border-color .25s; }
.legal .toc a:hover { color: var(--accent); border-color: var(--accent); }
.prose .updated { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); margin: 50px 0 16px; letter-spacing: -0.02em; scroll-margin-top: 40px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 16px; line-height: 1.72; }
.prose ul { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.prose ul li { position: relative; padding-left: 24px; color: var(--muted); line-height: 1.6; }
.prose ul li::before { content: "+"; position: absolute; left: 0; top: 0; font-family: var(--font-mono); color: var(--accent); }
.prose a.inline { color: var(--accent); } .prose a.inline:hover { text-decoration: underline; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: clamp(20px, 2vw, 28px) clamp(20px, 2vw, 30px); transition: border-color .3s, background .3s; }
.faq details:hover { border-color: var(--border-2); }
.faq details[open] { background: var(--surface-2); border-color: rgba(217,119,87,0.4); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 14px; line-height: 1.66; }

/* shared CTA band */
.cta { text-align: left; }
.cta .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.cta h2 { font-size: clamp(2.1rem, 5vw, 5rem); letter-spacing: -0.04em; line-height: 0.98; max-width: 18ch; }
.cta .sub { color: var(--muted); max-width: 50ch; margin-top: -6px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }

/* ---- mock UI windows (services visuals) ---- */
.s-visual { display: block; padding: 0; place-items: stretch; }
.s-visual .mockwin { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(165deg, var(--surface-2), var(--bg-soft)); }
.mockwin .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.mockwin .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--ink),0.16); }
.mockwin .bar i.a { background: var(--accent); }
.mockwin .bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .03em; }
.mockwin .body { flex: 1; padding: clamp(16px, 1.8vw, 26px); display: flex; flex-direction: column; gap: clamp(9px, 1vw, 13px); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); overflow: hidden; }
.s-visual:hover .mockwin .px.acc, .s-visual:hover .m-prog i { filter: brightness(1.1); }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-row .ln { color: var(--faint); width: 16px; text-align: right; flex: none; font-size: 11px; }
.m-row .hash { color: var(--accent); flex: none; }
.m-row .st { font-size: 11px; color: var(--faint); flex: none; }
.px { height: 9px; border-radius: 3px; background: rgba(var(--ink),0.10); flex: 1; }
.px.acc { background: rgba(217,119,87,0.55); }
.m-row b { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-2); flex: none; display: grid; place-items: center; font-size: 11px; color: transparent; }
.m-row.done b { background: var(--accent); border-color: var(--accent); color: #1a1106; }
.m-prog { height: 7px; border-radius: 999px; background: rgba(var(--ink),0.08); overflow: hidden; margin-top: auto; }
.m-prog i { display: block; height: 100%; background: var(--accent); }
.m-app { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(var(--ink),0.02); }
.m-app .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.live { background: #5fd08a; } .dot.build { background: var(--accent); } .dot.idle { background: var(--faint); }

/* richer mock detail */
.m-tabs { display: flex; gap: 6px; margin-bottom: 2px; }
.m-tabs .tab { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.m-tabs .tab.on { color: var(--text); background: rgba(var(--ink),0.05); border-color: var(--border-2); }
.m-cap { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.m-cap .bar2 { height: 1px; background: var(--border); flex: 1; }
.m-row .kw { color: var(--accent); flex: none; } .m-row .fn { color: #7aa2f7; flex: none; }
.m-row .au { color: var(--faint); font-size: 10.5px; flex: none; margin-left: auto; }
.m-row .add { color: #5fd08a; font-size: 10.5px; flex: none; }
.m-row .del { color: var(--accent); font-size: 10.5px; flex: none; }
.m-app .meta { margin-left: auto; font-size: 10.5px; color: var(--faint); flex: none; }
.m-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.m-pills span { font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.m-pills span.on { color: var(--accent); border-color: rgba(217,119,87,0.4); }

/* ---- contact form as a real panel ---- */
.cform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 46px); gap: 20px; }
.cform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform .field input, .cform .field textarea { padding: 15px 16px; font-size: 15px; }
.cform > .btn { align-self: flex-start; --h: 52px; padding: 0 34px; margin-top: 4px; }

/* ---- numbered legal sections ---- */
.prose { counter-reset: sec; }
.prose h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 14px; }
.prose h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.62em; font-weight: 500; color: var(--accent); flex: none; }

@media (max-width: 940px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fgrid, .fgrid.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.flip .s-visual { order: 0; }
  .split .s-visual { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal .toc a { border-left: 0; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
}
@media (max-width: 560px) {
  .cform .frow { grid-template-columns: 1fr; }
}
