/* ==========================================================================
   AFrame Holdings — site styles
   One file for both sites; .site-code switches the AFrameCode dark theme.
   ========================================================================== */

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1628;
  --navy-800: #10223d;
  --navy-700: #183257;
  --blue-500: #2f7cf6;
  --blue-400: #5a98f8;
  --blue-50:  #eef4ff;
  --amber:    #f5a524;
  --amber-600:#d98b0b;
  --ink:      #0f1a2b;
  --ink-2:    #45536a;
  --ink-3:    #6b788d;
  --line:     #e3e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fb;
  --ok:       #22c55e;
  --radius:   14px;
  --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(10,22,40,.06), 0 2px 8px rgba(10,22,40,.05);
  --shadow:    0 10px 30px -10px rgba(10,22,40,.18), 0 2px 6px rgba(10,22,40,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #c9d4e6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--amber); }
.section--dark .eyebrow { color: var(--blue-400); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section--dark .lead { color: #a9b7cd; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
  font-family: var(--font); line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber); color: var(--navy-950); box-shadow: 0 8px 20px -8px rgba(245,165,36,.7); }
.btn--primary:hover { background: #ffb740; color: var(--navy-950); }
.btn--blue { background: var(--blue-500); color: #fff; }
.btn--blue:hover { background: #1f6ae6; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Utility bar + header --------------------------------------------------- */
.topbar { background: var(--navy-950); color: #9fb0c8; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #cfd9e8; }
.topbar a:hover { color: #fff; }
.topbar-items { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(10,22,40,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-family: var(--font); font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #8ea2bf; margin-top: 2px; }
.brand-text { line-height: 1.05; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #d6e0ee; font-weight: 600; font-size: .96rem; padding: 10px 14px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.nav .btn { margin-left: 10px; padding: 11px 18px; }
.nav .btn:hover { background: #ffb740; color: var(--navy-950); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); color: #c3cfe1; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(47,124,246,.35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(245,165,36,.12), transparent 60%);
}
.hero::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: #b4c2d8; font-size: 1.2rem; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(47,124,246,.14); border: 1px solid rgba(90,152,248,.35); color: #cfe0ff;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: #d4deec; }
.trust svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* Hero console card */
.console {
  background: linear-gradient(180deg, #13284a, #0d1d36); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); padding: 22px; color: #cdd8ea;
}
.console-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .85rem; }
.console-head strong { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill--ok { background: rgba(34,197,94,.15); color: #6ee79a; }
.pill--warn { background: rgba(245,165,36,.15); color: #ffc66b; }
.pill--blue { background: rgba(47,124,246,.18); color: #9cc2ff; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.metric { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 14px; }
.metric b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.metric small { color: #8fa3c1; font-size: .78rem; }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-500), #6fb0ff); }
.bar i.amber { background: linear-gradient(90deg, var(--amber-600), var(--amber)); }
.feed { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.feed li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.feed li span:first-child { color: #dbe5f3; }
.console-note { font-size: .72rem; color: #6f84a3; margin-top: 10px; text-align: right; }

/* Service tabs ----------------------------------------------------------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  font: 700 1rem var(--font); color: var(--ink); cursor: pointer; transition: all .15s;
}
.tab-btn:hover { border-color: #c7d5ea; }
.tab-btn[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); box-shadow: var(--shadow); }
.tab-btn .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-500); flex: none; }
.tab-btn[aria-selected="true"] .ic { background: rgba(245,165,36,.16); color: var(--amber); }
.tab-btn .ic svg { width: 22px; height: 22px; }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .98rem; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f7cf6'%3E%3Cpath d='M8.3 13.3 4.9 9.9l1.2-1.2 2.2 2.2 5.6-5.6 1.2 1.2z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section--dark .checks li { color: #b9c6da; }
.section--dark .checks li::before { background-color: rgba(47,124,246,.18); }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3deee; }
.card p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; }
.card--dark { background: var(--navy-800); border-color: rgba(255,255,255,.08); }
.card--dark p { color: #a9b7cd; }
.card--dark:hover { border-color: rgba(90,152,248,.4); }
.card--dark .ic { background: rgba(47,124,246,.16); color: #8ab8ff; }
.card-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 700; font-size: .95rem; }

/* Pain points */
.pain { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.pain-list { display: grid; gap: 14px; }
.pain-item { display: flex; gap: 16px; padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pain-item .x { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #fff3e0; color: var(--amber-600); }
.pain-item .x svg { width: 18px; height: 18px; }
.pain-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pain-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat b span { color: var(--amber); }
.stat p { margin: 0; color: #a9b7cd; font-size: .95rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--blue-500);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .93rem; color: var(--ink); }
.chip svg { width: 16px; height: 16px; color: var(--blue-500); }
a.chip:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* Split feature (AFrameCode promo) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.code-window { background: #0b1220; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); overflow: hidden; font-family: var(--font-mono); font-size: .86rem; }
.code-window .bar-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); color: #6f84a3; font-size: .78rem; }
.code-window .bar-top i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-window .bar-top i:nth-child(2) { background: #febc2e; }
.code-window .bar-top i:nth-child(3) { background: #28c840; margin-right: 10px; }
.code-window pre { margin: 0; padding: 20px 22px; color: #cdd6e4; line-height: 1.75; overflow-x: auto; white-space: pre; }
.tk-k { color: #c792ea; } .tk-f { color: #82aaff; } .tk-s { color: #c3e88d; } .tk-c { color: #5f7290; font-style: italic; } .tk-n { color: #f5a524; } .tk-v { color: #f07178; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); background: linear-gradient(120deg, var(--navy-800), #173a6e 60%, #1f4e93); color: #c9d6ea; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: url("../img/logo-mark.svg") center/contain no-repeat; opacity: .08; transform: rotate(-8deg); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy-900); color: #b4c2d8; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(47,124,246,.3), transparent 60%); }
.page-hero .wrap { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 820px; }
.page-hero .lead { color: #b4c2d8; }
.crumbs { font-size: .85rem; color: #8ea2bf; margin-bottom: 14px; }
.crumbs a { color: #b6c6dd; }

/* Services detail */
.svc { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc-side .ic { width: 58px; height: 58px; border-radius: 14px; background: var(--navy-900); color: var(--amber); display: grid; place-items: center; margin-bottom: 18px; }
.svc-side .ic svg { width: 30px; height: 30px; }
.svc-side h2 { font-size: 1.8rem; }
.svc-side p { color: var(--ink-2); }
.svc-body .checks { margin-top: 0; }
.tagline-box { background: var(--bg-soft); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; padding: 16px 20px; color: var(--ink-2); font-size: .97rem; }
.subnav { position: sticky; top: 76px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { white-space: nowrap; padding: 16px 14px; font-weight: 600; font-size: .92rem; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--blue-500); border-color: var(--blue-500); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.founder-card { background: var(--navy-900); color: #b9c6da; border-radius: var(--radius-lg); padding: 34px; position: sticky; top: 110px; }
.founder-card h3 { color: #fff; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: .95rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 22px; bottom: 0; width: 2px; background: rgba(255,255,255,.1); }
.timeline li:last-child::after { display: none; }
.timeline b { color: #fff; display: block; }
.org { display: grid; gap: 16px; }
.org-top { text-align: center; background: var(--navy-900); color: #fff; border-radius: 14px; padding: 20px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.org-top small { display: block; font-family: var(--font); font-weight: 500; font-size: .85rem; color: #9fb0c8; }
.org-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #d6dee9; background: #fbfcfe; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47,124,246,.12); }
.field .err { color: #c62828; font-size: .85rem; }
.field.has-err input, .field.has-err textarea { border-color: #e57373; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-weight: 500; }
.alert--ok { background: #ecfdf3; border: 1px solid #a7f0c3; color: #166534; }
.alert--err { background: #fff1f1; border: 1px solid #ffc9c9; color: #9b1c1c; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list b { display: block; font-size: .85rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.info-list span, .info-list a { font-weight: 600; color: var(--ink); }
.next-steps { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: flex; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.next-steps li::before { content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-top: 1px; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy-950); color: #8ea2bf; padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #b8c6da; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   AFrameCode theme
   ========================================================================== */
.site-code { --bg: #070d18; background: #070d18; color: #c6d1e3; }
.site-code h1, .site-code h2, .site-code h3, .site-code h4 { color: #fff; }
.site-code .lead { color: #a5b3c9; }
.site-code .header { background: rgba(7,13,24,.85); }
.site-code .brand small { color: var(--amber); }
.site-code .section--soft { background: #0b1424; }
.site-code .card { background: #0d1729; border-color: rgba(255,255,255,.07); }
.site-code .card p { color: #9fb0c8; }
.site-code .card:hover { border-color: rgba(90,152,248,.45); box-shadow: 0 20px 40px -20px rgba(47,124,246,.35); }
.site-code .card .ic { background: rgba(47,124,246,.14); color: #8ab8ff; }
.site-code .step { background: #0d1729; border-color: rgba(255,255,255,.07); }
.site-code .step p { color: #9fb0c8; }
.site-code .step::before { background: rgba(245,165,36,.12); color: var(--amber); }
.site-code .eyebrow { color: #8ab8ff; font-family: var(--font-mono); letter-spacing: .06em; text-transform: none; font-size: .85rem; }
.site-code .eyebrow::before { content: "//"; width: auto; height: auto; background: none; color: var(--amber); }
.site-code .chip { background: #0d1729; border-color: rgba(255,255,255,.1); color: #dbe5f3; font-family: var(--font-mono); font-size: .85rem; }
.site-code .chip svg { color: var(--amber); }
.site-code .form-card { background: #0d1729; border-color: rgba(255,255,255,.08); }
.site-code .field label { color: #e3eaf5; }
.site-code .field input, .site-code .field select, .site-code .field textarea { background: #0a1322; border-color: rgba(255,255,255,.12); color: #e3eaf5; }
.site-code .field input:focus, .site-code .field textarea:focus, .site-code .field select:focus { background: #0a1322; }
.site-code .info-list .ic { background: rgba(47,124,246,.14); color: #8ab8ff; }
.site-code .info-list span, .site-code .info-list a { color: #e3eaf5; }
.site-code .next-steps li { color: #a5b3c9; }
.site-code .next-steps li::before { background: var(--amber); color: #0a1628; }
.site-code .btn--outline { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.site-code .btn--outline:hover { border-color: var(--amber); color: var(--amber); }
.site-code .tagline-box { background: #0d1729; color: #a5b3c9; }
.site-code a:not(.btn):not(.brand):not(.chip) { color: #8ab8ff; }
.site-code .nav a { color: #d6e0ee; }
.site-code .footer a { color: #b8c6da; }
.code-hero { position: relative; overflow: hidden; }
.code-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 80% 20%, rgba(47,124,246,.25), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(245,165,36,.1), transparent 60%); }
.code-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(64px, 9vw, 120px) 0; }
.code-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.code-hero h1 .accent { color: var(--amber); }
.code-hero .cursor { display: inline-block; width: .55em; height: .9em; background: var(--amber); vertical-align: -.08em; margin-left: 4px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mono { font-family: var(--font-mono); }
.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #0f1e38, #13294d); border: 1px solid rgba(90,152,248,.25); }
.guarantee .big { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; color: var(--amber); line-height: 1; }
.guarantee p { margin: 0; }
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-card .thumb { height: 150px; border-radius: 10px; margin: -6px -6px 20px; display: grid; place-items: center; background: linear-gradient(135deg, #12264a, #0b1426); border: 1px solid rgba(255,255,255,.06); color: #8ab8ff; }
.portfolio-card .thumb svg { width: 52px; height: 52px; }
.portfolio-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.portfolio-card .tags span { font-family: var(--font-mono); font-size: .75rem; padding: 4px 9px; border-radius: 6px; background: rgba(245,165,36,.1); color: #ffc66b; }
.portfolio-card--empty { border-style: dashed !important; justify-content: center; text-align: center; align-items: center; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .wrap, .code-hero .wrap, .split, .pain, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab-btn { min-width: max-content; }
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder-card { position: static; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-900); padding: 12px 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .site-code .nav { background: #070d18; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 10px 0 0; }
  .topbar .hide-sm { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .steps, .checks, .form-grid, .org-kids, .metrics { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
