/* =====================================================================
   Hawaii Robo Labs — marketing site
   Brand tokens match the academy app (app.hawaiirobolabs.com) so the two
   read as one product. Layout utilities come from Bootstrap's
   utilities-only bundle (loaded before this file); everything visual
   lives here.
   ===================================================================== */
:root {
  --ink: #14181C; --ink2: #5A626B; --ink3: #8A9199;
  --bg: #F6F5F1; --surface: #FFFFFF; --surface2: #EFEDE7; --line: #E3E0D8; --line2: #EDEAE3;
  --teal: #2E8F88; --teal-deep: #1F6B65; --teal-soft: #DFF1EE; --teal-ink: #17524D; --teal-bright: #5AC0B6;
  --amber: #E8930C; --amber-deep: #C67A05; --amber-soft: #FDEFD6; --amber-bright: #FFB84D;
  --violet: #5B6BD6; --violet-soft: #E6E9FA;
  --night: #0F1418; --night2: #161C22; --night3: #1E262E; --night-line: rgba(255,255,255,.1); --code: #9FE8C1;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --radius-lg: 24px; --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,24,28,.05), 0 4px 12px rgba(20,24,28,.05);
  --shadow: 0 2px 6px rgba(20,24,28,.05), 0 14px 34px rgba(20,24,28,.09);
  --shadow-lg: 0 30px 60px rgba(20,24,28,.16);
  --grad-brand: linear-gradient(135deg, var(--amber) 0%, var(--amber-bright) 100%);
  --grad-teal: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-bright) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1180px;
  --header-h: 76px;
  --space: clamp(64px, 9vw, 120px);
  --space-tight: clamp(48px, 6vw, 80px);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.nav-open { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
code { font: 500 .9em var(--mono); background: var(--surface2); padding: 1px 6px; border-radius: 5px; }
.lead { font-size: 1.12rem; color: var(--ink2); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--ink2); }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--amber); border-radius: 2px; }
.section { padding-block: var(--space); position: relative; }
.section.tight { padding-block: var(--space-tight); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.dark { background: var(--night); color: #fff; overflow: hidden; }
.section.dark h2 { color: #fff; }
.section.dark .lead { color: #B8C0C8; }
.section.dark .eyebrow { color: var(--code); }
.section.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(700px 400px at 0% 0%, rgba(46,143,136,.28), transparent 60%),
  radial-gradient(600px 400px at 100% 100%, rgba(232,147,12,.16), transparent 60%); }
.section.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.section.dark .container { position: relative; z-index: 1; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p, h2 + .lead { margin-top: 14px; }
.section-head.center { text-align: center; margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 801px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 24px); } }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 .9rem var(--display); transition: top .2s; }
.skip-link:focus { top: 16px; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font: 600 .95rem var(--display); border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brand); color: var(--ink); box-shadow: 0 8px 22px rgba(232,147,12,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(232,147,12,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(20,24,28,.18); }
.btn-dark:hover { background: #262E36; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .86rem; }
.btn .arrow { transition: transform .18s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,245,241,.8); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s; }
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   become the containing block for the mobile drawer and clip it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(20,24,28,.06); }
/* On dark pages the header floats over the hero: transparent black at rest,
   deepening once the page scrolls. The hero below pads itself by --header-h. */
.site-header.on-dark { background: rgba(8,12,14,.28); margin-bottom: calc(-1 * var(--header-h)); }
.site-header.on-dark.scrolled { background: rgba(10,14,17,.78); border-bottom-color: var(--night-line); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.on-dark + main > .hero { padding-top: var(--header-h); }
.on-dark + main > .page-hero { padding-top: calc(var(--header-h) + clamp(56px, 7vw, 88px)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.1rem var(--display); color: var(--ink); letter-spacing: -.01em; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 4px 12px rgba(232,147,12,.35); }
.on-dark .logo { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { flex: none; }
.nav-links a { position: relative; display: block; white-space: nowrap; padding: 9px 13px; border-radius: 10px; font: 500 .93rem var(--body); color: var(--ink); transition: background .18s, color .18s; }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover { text-decoration: none; background: rgba(20,24,28,.05); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.on-dark .nav-links a { color: #E6EBEF; }
.on-dark .nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-mobile-actions { display: none; }
.nav-toggle { display: none; position: relative; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); flex: none; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; top: 50%; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
.on-dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.2); }

/* ---------- hero (home) ---------- */
.hero { background: #0E1517; color: #F2F4F6; position: relative; overflow: hidden; isolation: isolate; }
.hero-video-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: .42; pointer-events: none; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 10%, #000 22%, #000 78%, rgba(0,0,0,.55) 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 10%, #000 22%, #000 78%, rgba(0,0,0,.55) 90%, transparent 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 500px at 8% 0%, rgba(46,143,136,.32), transparent 60%),
  radial-gradient(700px 500px at 100% 100%, rgba(232,147,12,.2), transparent 60%),
  linear-gradient(90deg, rgba(7,12,14,.78), rgba(16,23,25,.15) 48%, rgba(7,12,14,.78)),
  linear-gradient(180deg, rgba(5,9,10,.2), rgba(5,9,10,.66)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background: url("../img/pattern-circuit.svg") center / 640px repeat; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 90%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 90%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 120px); }
.hero .eyebrow { color: var(--code); }
.hero h1 em { font-style: normal; color: var(--amber); background: linear-gradient(90deg, #FFB84D, var(--amber)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { color: #B8C0C8; margin-top: 22px; font-size: 1.18rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 20px; font: 500 .82rem var(--mono); color: #8A9199; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; list-style: none; padding: 0; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font: 500 .78rem var(--mono); color: #C9D0D7; }
.hero-badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--code); box-shadow: 0 0 0 3px rgba(159,232,193,.2); }
.hero-visual { position: relative; }
/* No motion on the frame or chips: the hero video is already scrubbed by the pointer. */
.hero-visual .frame { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); background: var(--night2); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1A2129; border-bottom: 1px solid rgba(255,255,255,.06); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A4450; }
.frame-bar i:nth-child(1) { background: #FF5F57; } .frame-bar i:nth-child(2) { background: #FEBC2E; } .frame-bar i:nth-child(3) { background: #28C840; }
.frame-bar span { margin-left: 10px; font: 500 .72rem var(--mono); color: #8A9199; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-chip { position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font: 600 .8rem var(--body); display: flex; align-items: center; gap: 10px; }
.hero-chip i { width: 10px; height: 10px; border-radius: 50%; background: #2F9E6F; box-shadow: 0 0 0 4px rgba(47,158,111,.25); flex: none; }
.hero-chip.one { left: -22px; bottom: 32px; }
.hero-chip.two { right: -18px; top: 64px; }
.hero-chip small { display: block; font-weight: 400; color: var(--ink2); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* stat band (home) */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding-block: 0; }
.trust .container > div { padding: 24px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font: 600 .78rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.trust .container > div:first-child { border-left: 0; padding-left: 0; }
.trust .container > div b { font: 800 2rem/1 var(--display); color: var(--teal-deep); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-brand); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal-soft); color: var(--teal-deep); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: .97rem; }
.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font: 600 .88rem var(--display); }
.card .more .arrow { transition: transform .18s var(--ease); }
.card:hover .more .arrow { transform: translateX(3px); }
.card.dark { background: var(--night2); border-color: var(--night-line); color: #fff; }
.section.dark .card.dark { background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.card.dark p { color: #AEB6BF; }
.card.dark .icon { background: rgba(255,255,255,.08); color: var(--code); }
.card.dark:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.card.compact { padding: 22px; }
.card.compact .icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; }
.card.compact h3 { font-size: 1.05rem; }
.card.compact p { font-size: .93rem; }
.tone-arduino .icon { background: var(--amber-soft); color: var(--amber-deep); }
.tone-ros .icon { background: var(--teal-soft); color: var(--teal-deep); }
.tone-cv .icon { background: var(--violet-soft); color: var(--violet); }
.tone-teacher .icon { background: #E7F4EC; color: #1F7A4C; }
.tone-admin .icon { background: #EEEEF2; color: #454B55; }
.tone-kb .icon { background: #FBE8E4; color: #B9432F; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: clamp(40px, 5vw, 64px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); position: relative; }
.feature-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); border-radius: inherit; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.02); }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 12px 0; }
.feature .lead { font-size: 1.04rem; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .96rem; }
.feature li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.feature .win { margin-top: 22px; padding: 14px 18px; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; font-size: .95rem; }
.feature .win b { font-family: var(--display); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .68rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); margin-right: 6px; }
.tag.amber { background: var(--amber-soft); color: #8F5A05; }
.tag.violet { background: var(--violet-soft); color: #3C48A6; }
.tag.soon { background: #EEEEF2; color: #454B55; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 26px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--amber)); opacity: .45; }
.step { counter-increment: s; position: relative; }
.step::before { content: counter(s); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad-teal); color: #fff; font: 800 1.1rem var(--display); margin-bottom: 20px; position: relative; box-shadow: 0 8px 20px rgba(46,143,136,.3), 0 0 0 6px var(--surface); }
.step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--ink2); font-size: .95rem; }

/* ---------- code panel ---------- */
.panel-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--night); color: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--night-line); box-shadow: var(--shadow-lg); }
.panel-code > div { padding: 32px; min-width: 0; }
.panel-code .panel-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding: 12px 18px; background: #151B21; border-bottom: 1px solid var(--night-line); }
.panel-code .panel-bar i { width: 10px; height: 10px; border-radius: 50%; }
.panel-code .panel-bar i:nth-child(1) { background: #FF5F57; } .panel-code .panel-bar i:nth-child(2) { background: #FEBC2E; } .panel-code .panel-bar i:nth-child(3) { background: #28C840; }
.panel-code .panel-bar span { margin-left: 10px; font: 500 .74rem var(--mono); color: #8A9199; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-code .blocks { display: flex; flex-direction: column; gap: 6px; }
.blk { position: relative; border-radius: 8px; padding: 8px 14px; font: 600 .86rem var(--body); color: #fff; width: max-content; max-width: 100%; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.blk::before { content: ""; position: absolute; left: 14px; top: -5px; width: 16px; height: 6px; border-radius: 3px 3px 0 0; background: inherit; }
.blk.hat::before { display: none; }
.blk.inner { margin-left: 22px; }
.blk .f { background: rgba(255,255,255,.22); border-radius: 5px; padding: 1px 7px; margin: 0 2px; }
.panel-code pre { margin: 0; background: #0A0D10; border-radius: 12px; padding: 18px; font: 500 .8rem/1.6 var(--mono); color: var(--code); overflow-x: auto; border: 1px solid rgba(255,255,255,.06); }
.panel-code pre .k { color: #7FB3FF; } .panel-code pre .n { color: #FFD17A; } .panel-code pre .c { color: #6C7A86; }
.panel-code .label { font: 700 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: #8A9199; margin-bottom: 14px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--teal-soft); opacity: .6; }
.stat b { display: block; font: 900 2.6rem/1 var(--display); color: var(--teal-deep); font-variant-numeric: tabular-nums; letter-spacing: -.02em; position: relative; }
.stat span { display: block; margin-top: 8px; color: var(--ink2); font-size: .92rem; position: relative; }

/* ---------- product grid ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
/* Fixed 16:10 frame; the image is pinned inside it so a square/portrait photo
   can never stretch the card. Swap object-fit: contain -> cover to fill the
   frame edge-to-edge (or use the Bootstrap utility .object-fit-cover on the img). */
.product .media { background: linear-gradient(160deg, var(--surface2), #E4E9EA); aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.product .media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 100%, rgba(46,143,136,.12), transparent 70%); }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 24px; object-fit: contain; object-position: center; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.product:hover .media img { transform: scale(1.04); }
.product .media .status { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--teal-ink); box-shadow: var(--shadow-sm); }
.product .media .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2F9E6F; box-shadow: 0 0 0 3px rgba(47,158,111,.2); }
.product .media .status.soon { color: #454B55; }
.product .media .status.soon::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(232,147,12,.2); }
.product .body { padding: 24px 24px 26px; }
.product h3 { margin-bottom: 8px; font-size: 1.35rem; }
.product .kind { font: 700 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.product p { color: var(--ink2); font-size: .95rem; }
.spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.spec span { font: 500 .74rem var(--mono); background: var(--surface2); padding: 5px 9px; border-radius: 7px; color: var(--ink2); }
.product .actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- pricing/packages ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--teal); box-shadow: 0 20px 50px rgba(46,143,136,.18); }
.plan.featured::after { content: "Most schools start here"; position: absolute; top: -13px; left: 20px; background: var(--grad-teal); color: #fff; font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.plan h3 { margin-bottom: 6px; }
.plan .for { color: var(--ink2); font-size: .9rem; min-height: 44px; }
.plan ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .93rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan .price { font: 700 .78rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin: 12px 0 4px; padding: 8px 12px; background: var(--teal-soft); border-radius: 8px; display: inline-block; align-self: flex-start; }

/* ---------- KB / articles ---------- */
.kb-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-topic { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kb-topic .n { font: 800 1.1rem var(--display); color: var(--amber-deep); font-variant-numeric: tabular-nums; }
.kb-topic b { display: block; font-family: var(--display); }
.kb-topic span { color: var(--ink2); font-size: .9rem; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font: 900 5rem/1 var(--display); color: var(--amber); opacity: .18; pointer-events: none; }
.quote p { font-size: 1.02rem; line-height: 1.6; flex: 1; }
.quote footer { margin-top: 20px; font: 600 .88rem var(--display); display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; line-height: 1.3; }
.quote footer::before { content: attr(data-initials); grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-teal); color: #fff; display: grid; place-items: center; font: 800 .8rem var(--display); letter-spacing: .04em; }
.quote footer span { grid-column: 2; display: block; font: 400 .82rem var(--body); color: var(--ink2); margin-top: 2px; }

/* ---------- CTA billboard ---------- */
.cta { padding-block: var(--space-tight); }   /* equal space above and below: the billboard sits centred in its band */
.cta .container { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: clamp(40px, 6vw, 64px); border-radius: var(--radius-lg); background: var(--grad-brand); color: var(--ink); box-shadow: 0 30px 60px rgba(232,147,12,.28); max-width: calc(var(--container) - 48px); }
.cta .container::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; background: url("../img/pattern-circuit.svg") center / 520px repeat; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta .container::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.18); pointer-events: none; }
.cta .container > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta p { margin-top: 12px; color: #4A3306; font-size: 1.05rem; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-dark { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.cta .btn-ghost { background: rgba(255,255,255,.85); border-color: transparent; }
.cta .btn-ghost:hover { background: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--night); color: #fff; padding-block: clamp(56px, 7vw, 88px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 8% 0%, rgba(46,143,136,.42), transparent 60%), radial-gradient(700px 480px at 100% 100%, rgba(232,147,12,.22), transparent 60%); }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background: url("../img/pattern-circuit.svg") center / 640px repeat; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.page-hero .eyebrow { color: var(--code); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 20ch; }
.page-hero .lead { color: #B8C0C8; margin-top: 18px; }
.page-hero .hero-actions { margin-top: 26px; }
.page-hero-art { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.page-hero-art .frame { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px rgba(0,0,0,.5); background: var(--night2); transform: perspective(1400px) rotateY(-6deg); }
.page-hero-art .frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero-art .photo { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #F6F5F1, #D9DFE0 70%); box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.4); overflow: hidden; display: grid; place-items: center; padding: 8%; position: relative; }
.page-hero-art .photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.page-hero-art .ring { position: absolute; inset: -7%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; pointer-events: none; }
.page-hero-art .orbit { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.page-hero-art .chip { position: absolute; background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 13px; box-shadow: var(--shadow-lg); font: 600 .78rem var(--body); display: flex; align-items: center; gap: 9px; z-index: 2; animation: float 6s ease-in-out infinite; }
.page-hero-art .chip i { width: 9px; height: 9px; border-radius: 50%; background: #2F9E6F; box-shadow: 0 0 0 4px rgba(47,158,111,.25); flex: none; }
.page-hero-art .chip small { display: block; font-weight: 400; color: var(--ink2); }
.page-hero-art .chip.a { left: -16px; bottom: 26px; }
.page-hero-art .chip.b { right: -12px; top: 18px; animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font: 600 .85rem var(--display); }
.form input, .form select, .form textarea { font: inherit; font-family: var(--body); font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s; width: 100%; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: none; background: var(--surface); box-shadow: 0 0 0 4px rgba(46,143,136,.15); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .note { font-size: .82rem; color: var(--ink2); }
.form .btn { justify-self: start; }
.form.card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.form.card::before { display: none; }
.contact-side .card { margin-top: 14px; }
.contact-side .card:first-child { margin-top: 0; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); font-size: .95rem; }
.contact-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.contact-direct { display: grid; gap: 14px; margin-top: 12px; }
.contact-direct a, .contact-direct div { display: flex; gap: 12px; align-items: center; color: #fff; font-size: .95rem; }
.contact-direct .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--code); display: grid; place-items: center; flex: none; margin: 0; }
.contact-direct small { display: block; color: #8A9199; font-size: .78rem; }

.win { padding: 14px 18px; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--ink); }

/* ---------- beliefs (vision list) ---------- */
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin: 0; padding: 0; list-style: none; }
.beliefs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.beliefs li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.beliefs b { display: block; font: 700 1.02rem/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 5px; }
.beliefs p { color: var(--ink2); font-size: .95rem; }

/* ---------- syllabus stages ---------- */
.syllabus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--teal); }
.stage.amber { border-top-color: var(--amber); }
.stage.violet { border-top-color: var(--violet); }
.stage .lvl { font: 700 .7rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.stage h3 { margin: 8px 0 8px; }
.stage p { color: var(--ink2); font-size: .95rem; }
.topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.topics li { font: 500 .78rem var(--mono); background: var(--surface2); color: var(--ink2); padding: 6px 10px; border-radius: 8px; }
.card.dark .topics li, .section.dark .topics li { background: rgba(255,255,255,.07); color: #C9D0D7; }

/* ---------- flow (step chain) ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flow li { display: inline-flex; align-items: center; gap: 10px; }
.flow li span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 700 .84rem var(--display); color: var(--ink); white-space: nowrap; }
.flow li:not(:last-child)::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A9199' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: .6; }
.flow.mono li span { font: 500 .8rem var(--mono); letter-spacing: -.01em; }
.flow.stack { flex-direction: column; align-items: flex-start; gap: 7px; }
.flow.stack li { flex-direction: column; align-items: flex-start; gap: 7px; }
.flow.stack li:not(:last-child)::after { transform: rotate(90deg); margin-left: 15px; }
.section.dark .flow li span, .card.dark .flow li span { background: rgba(255,255,255,.06); border-color: var(--night-line); color: #fff; }
.section.dark .flow li:not(:last-child)::after, .card.dark .flow li:not(:last-child)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FE8C1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); opacity: .8; }

/* ---------- pathway ladder ---------- */
.pathway { position: relative; display: grid; }
.pathway::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--amber)); opacity: .45; }
.rung { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding: 14px 0 22px; }
.rung > i { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--teal); color: var(--teal-deep); font: 800 .92rem var(--display); font-style: normal; }
.rung:nth-child(3) > i { border-color: var(--violet); color: var(--violet); }
.rung:nth-child(4) > i { border-color: var(--amber); color: var(--amber-deep); }
.rung h3 { margin-bottom: 6px; }
.rung p { color: var(--ink2); font-size: .96rem; max-width: 62ch; }
.section.dark .rung > i { background: var(--night2); }
.section.dark .rung h3 { color: #fff; }
.section.dark .rung p { color: #AEB6BF; }

/* ---------- two-column checklist ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B65' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #AEB6BF; padding-block: clamp(48px, 6vw, 72px) 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 300px at 0% 100%, rgba(46,143,136,.18), transparent 60%); }
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D0D7; font-size: .93rem; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .blurb { max-width: 36ch; font-size: .93rem; }
[hidden] { display: none !important; }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font: 700 1rem/1.2 var(--display); }
.footer-contact svg { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--code); flex: none; transition: background .15s; }
.footer-contact small { display: block; margin-top: 3px; font: 500 .76rem/1.3 var(--body); color: #8A9199; }
.footer-contact:hover { color: #fff; }
.footer-contact:hover svg { background: rgba(255,255,255,.16); }
.footer-whatsapp .footer-contact svg { color: #5DE39B; padding: 7px; }
.footer-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); font: 500 .78rem var(--mono); color: #C9D0D7; }
.footer-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2F9E6F; box-shadow: 0 0 0 3px rgba(47,158,111,.25); }
.footer-bottom { border-top: 1px solid var(--night-line); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #8A9199; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--ink); }

/* ---------- reveal (resting state is visible) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-art .chip, .page-hero-art .ring { animation: none; }
  .page-hero-art .frame { transform: none; }
}
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } .site-header, .cta, .nav-toggle, .to-top { display: none; } }

/* ---------- responsive ---------- */
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav-links a { padding: 9px 9px; font-size: .9rem; }
  .nav { gap: 14px; }
}
@media (max-width: 1024px) {
  .grid-4, .stats, .plans, .steps { grid-template-columns: repeat(2, 1fr); }
  .syllabus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 72px; gap: 44px; }
  .hero-visual { max-width: 720px; }
  .hero-chip.one { left: 12px; } .hero-chip.two { right: 12px; }
  .page-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-art { justify-self: center; max-width: 420px; }
  .page-hero-art .frame { transform: none; }
  .trust .container { grid-template-columns: repeat(3, 1fr); }
  .trust .container > div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .trust .container > div { padding-inline: 18px; }
}
@media (max-width: 1080px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 32px; background: var(--surface); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .on-dark .nav-links { background: var(--night2); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 500; }
  .on-dark .nav-links a { border-bottom-color: var(--night-line); }
  .nav-links a::after { content: ""; position: static; width: 18px; height: 18px; transform: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A9199' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; }
  .nav-links a:hover, .on-dark .nav-links a:hover { background: transparent; }
  .nav-links a[aria-current="page"] { color: var(--teal-deep); }
  .on-dark .nav-links a[aria-current="page"] { color: var(--code); }
  .nav-mobile-actions { display: grid; gap: 10px; padding-top: 20px; }
  .nav-links .nav-mobile-actions .btn { width: 100%; justify-content: center; padding: 12px 22px; border-radius: 999px; border-bottom: 1.5px solid transparent; font: 600 .95rem var(--display); }
  .nav-links .nav-mobile-actions .btn::after { display: none; }
  .nav-links .nav-mobile-actions .btn-primary { color: var(--ink); }
  .nav-links .nav-mobile-actions .btn-ghost { color: var(--ink); border-color: var(--line); }
  .nav-links .nav-mobile-actions .btn-ghost:hover { border-color: var(--ink); }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 800px) {
  .grid-2, .grid-3, .feature, .panel-code, .products, .kb-topics, .quotes, .cta .container, .form .row { grid-template-columns: 1fr; }
  .beliefs, .checklist, .syllabus { grid-template-columns: 1fr; }
  .beliefs li { padding: 16px 0; }
  .feature { gap: 28px; padding-block: 40px; }
  .feature.flip .feature-media { order: 0; }
  .cta .actions { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 32px 74px; }
  .step::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 54px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--amber)); opacity: .35; }
  .hero-chip { display: none; }
}
@media (max-width: 640px) {
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust .container > div { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .trust .container > div:nth-child(-n+2) { border-top: 0; }
  .trust .container > div:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
  .trust .container > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust .container > div b { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .grid-4, .stats, .plans, .footer-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .card { padding: 22px; }
  .product .body { padding: 20px 18px 22px; }
  .panel-code > div { padding: 22px 18px; }
  .cta .container { max-width: calc(100% - 36px); }
  .page-hero-art { max-width: 320px; }
  .page-hero-art .chip { display: none; }
  .nav { gap: 12px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding-inline: 12px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo img { width: 34px; height: 34px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 360px) {
  .logo { font-size: 0; gap: 0; }
}
