/* ==========================================================================
   SCRATIX — Main stylesheet
   Sections: 1 Reset/base · 2 Layout · 3 Typography · 4 Buttons/chips
             5 Header/nav · 6 Hero · 7 Sections & cards · 8 Page templates
             9 Forms · 10 Footer · 11 Motion · 12 Responsive
   ========================================================================== */

/* 1. Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-500); color: var(--on-brand); }

/* subtle grain + grid backdrop */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand-500); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* 2. Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-9); position: relative; }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-elev-1) 20%, var(--bg-elev-1) 80%, transparent); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }

/* 3. Typography --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--space-4); color: var(--text-muted); }
.lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 62ch; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.mono { font-family: var(--font-mono); }

/* 4. Buttons / chips ---------------------------------------------------- */
.btn {
  --_bg: var(--bg-elev-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  background: var(--_bg); border: 1px solid var(--line-strong);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--brand-400); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad-brand); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 14px 50px -8px rgba(255, 95, 15, .75); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); background: rgba(255,255,255,.02);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 10px var(--brand-500); }
.chip--volt .dot { background: var(--volt-400); box-shadow: 0 0 10px var(--volt-400); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 5. Header / nav ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(8, 8, 11, .78); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.logo img { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); transition: color .2s, background .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 6px;
  min-width: 560px; padding: 14px; border-radius: var(--radius-lg);
  background: rgba(16, 16, 22, .96); backdrop-filter: blur(18px); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s, translate .25s var(--ease-out), visibility .2s;
}
.dropdown--narrow { min-width: 300px; grid-template-columns: 1fr; }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; translate: -50% 0; }
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.dropdown a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); transition: background .2s; }
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 95, 15, .12); color: var(--brand-400); }
.dropdown .ico svg { width: 18px; height: 18px; }
.dropdown strong { display: block; font-size: var(--fs-sm); }
.dropdown span { display: block; font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.4; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform .25s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: var(--space-5) var(--gutter) var(--space-7); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu h6 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-300); margin: var(--space-5) 0 var(--space-2); }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-menu .btn { margin-top: var(--space-5); }

/* 6. Hero --------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-8); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -260px; z-index: -1;
  background: var(--grad-glow); filter: blur(20px); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: var(--space-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Scratch card — signature element */
.scratch {
  position: relative; aspect-ratio: 4 / 5; max-width: 440px; margin-left: auto; border-radius: 28px;
  background: var(--bg-elev-1); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,95,15,.08);
  overflow: hidden; isolation: isolate; rotate: 2deg; transition: rotate .5s var(--ease-out);
}
.scratch:hover { rotate: 0deg; }
.scratch__prize {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(255,95,15,.35), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(44,229,192,.15), transparent 70%),
    var(--bg-elev-1);
}
.scratch__prize .label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-300); }
.scratch__prize .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.scratch__prize ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.scratch__prize li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: var(--fs-sm); }
.scratch__prize li b { font-family: var(--font-mono); color: var(--brand-300); font-weight: 500; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; z-index: 2; transition: opacity .6s; }
.scratch canvas.is-done { opacity: 0; pointer-events: none; }
.scratch__hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; pointer-events: none;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(8,8,11,.75); border: 1px solid var(--line-strong);
  transition: opacity .3s;
}
.scratch.is-scratched .scratch__hint { opacity: 0; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: rgba(255,255,255,.015); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--brand-500); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. Sections & cards --------------------------------------------------- */
.card {
  position: relative; padding: var(--space-6); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), border-color .35s;
}
.card:hover { border-color: rgba(255, 95, 15, .35); }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-5); background: rgba(255,95,15,.1); color: var(--brand-400); border: 1px solid rgba(255,95,15,.2); }
.card .ico svg { width: 22px; height: 22px; }

/* pillar cards (one core, every model) */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.pillar { padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-elev-1); display: flex; flex-direction: column; gap: var(--space-3); min-height: 210px; transition: background .3s, border-color .3s, transform .35s var(--ease-out); }
.pillar:hover { background: var(--bg-elev-2); border-color: rgba(255,95,15,.4); transform: translateY(-4px); }
.pillar .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim); }
.pillar h3 { font-size: var(--fs-md); margin: auto 0 0; }
.pillar p { font-size: var(--fs-sm); margin: 0; }

/* product cards */
.product-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.product-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; background: var(--grad-glow); opacity: 0; transition: opacity .4s; pointer-events: none; }
.product-card:hover { transform: translateY(-6px); }
.product-card:hover::after { opacity: 1; }
.product-card .tag { position: absolute; top: var(--space-6); right: var(--space-6); }
.product-card .more { margin-top: auto; padding-top: var(--space-5); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); color: var(--brand-300); }
.product-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.product-card:hover .more svg { transform: translateX(4px); }

/* delivery tabs */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-6); }
.tabs__list { display: flex; flex-direction: column; gap: 8px; }
.tabs__btn { text-align: left; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev-1); transition: border-color .2s, background .2s; }
.tabs__btn strong { display: block; font-family: var(--font-display); font-weight: 600; }
.tabs__btn span { font-size: var(--fs-sm); color: var(--text-dim); }
.tabs__btn[aria-selected="true"] { border-color: var(--brand-500); background: linear-gradient(90deg, rgba(255,95,15,.14), transparent); }
.tabs__panel { padding: var(--space-7); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--bg-elev-1); position: relative; overflow: hidden; }
.tabs__panel[hidden] { display: none; }
.tabs__panel .timeline { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: var(--space-4); }
.tabs__panel .timeline b { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1; }
.check-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text); }
.check-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: rgba(255,95,15,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* wallet / currency engine */
.wallet { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--bg-elev-1); border: 1px solid var(--line-strong); }
.wallet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.wallet__total { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.wallet__rows { display: grid; gap: 10px; }
.wallet__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.wallet__coin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.wallet__row small { display: block; color: var(--text-dim); font-size: var(--fs-xs); }
.wallet__row .amt { font-family: var(--font-mono); font-size: var(--fs-sm); }
.wallet__row .bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.wallet__row .bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 4px; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.module { padding: var(--space-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.module:hover { background: var(--bg-elev-1); }
.module:nth-child(3n) { border-right: 0; }
.module:nth-last-child(-n+3) { border-bottom: 0; }
.module .code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand-400); margin-bottom: var(--space-3); display: block; }
.module h4 { margin-bottom: var(--space-2); }
.module p { font-size: var(--fs-sm); margin: 0; }

/* process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--brand-500), var(--line-strong)); }
.step { position: relative; counter-increment: step; }
.step::before { content: "0" counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--brand-500); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--brand-300); margin-bottom: var(--space-5); position: relative; }
.step h4 { margin-bottom: var(--space-2); }
.step p { font-size: var(--fs-sm); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: var(--space-6) var(--space-5); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; line-height: 1; margin-bottom: var(--space-2); }
.stat span { font-size: var(--fs-sm); color: var(--text-muted); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: var(--space-5) 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-mono); color: var(--brand-400); transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(255,95,15,.12); }
.faq details p { padding: 0 48px var(--space-5) 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: var(--space-8) var(--space-7);
  background: var(--grad-brand); color: var(--on-brand);
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-6); align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 2px, transparent 2px 14px); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--on-brand); margin-bottom: var(--space-3); }
.cta-band p { color: rgba(20,7,0,.75); margin: 0; font-size: var(--fs-md); }
.cta-band .btn { background: var(--on-brand); color: var(--text); border-color: transparent; }
.cta-band .btn--ghost { background: transparent; color: var(--on-brand); border-color: rgba(20,7,0,.35); }

/* compliance strip */
.compliance { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.compliance .item { padding: var(--space-5); border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.compliance .item b { display: block; font-family: var(--font-display); font-weight: 500; margin-bottom: 4px; }
.compliance .item span { font-size: var(--fs-sm); color: var(--text-dim); }

/* 8. Page templates (product / solution / about) ------------------------ */
.page-hero { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-8); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 800px; height: 800px; left: 50%; top: -400px; translate: -50% 0; background: var(--grad-glow); z-index: -1; pointer-events: none; }
.breadcrumbs { display: flex; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim); margin-bottom: var(--space-5); }
.breadcrumbs a:hover { color: var(--brand-300); }
.page-hero h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.25rem); max-width: 18ch; }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--space-7); align-items: end; }
.kpis { display: grid; gap: 12px; }
.kpi { padding: var(--space-5); border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(16,16,22,.7); }
.kpi b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.1; }
.kpi span { font-size: var(--fs-sm); color: var(--text-muted); }

.prose { max-width: 70ch; }
.prose p { font-size: var(--fs-md); }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.related a { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; transition: border-color .2s, background .2s; }
.related a:hover { border-color: var(--brand-500); background: var(--bg-elev-1); }
.related svg { width: 18px; height: 18px; color: var(--brand-400); }

/* 9. Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-elev-1); color: var(--text); font: inherit; font-size: var(--fs-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(255,95,15,.15); }
.field .err { color: var(--danger); font-size: var(--fs-xs); min-height: 1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); transition: all .2s; }
.checks input:checked + span { background: rgba(255,95,15,.15); border-color: var(--brand-500); color: var(--brand-200); }
.checks input:focus-visible + span { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.form-note { font-size: var(--fs-xs); color: var(--text-dim); }
.form-success { padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid rgba(44,229,192,.4); background: rgba(44,229,192,.06); }
.form-success h3 { color: var(--volt-400); }

.contact-info { display: grid; gap: var(--space-4); }
.contact-info .card { padding: var(--space-5); }
.contact-info small { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }

/* 10. Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-top: var(--space-8); margin-top: var(--space-8); background: linear-gradient(180deg, transparent, var(--bg-elev-1)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--space-6); padding-bottom: var(--space-7); }
.footer-brand p { max-width: 34ch; font-size: var(--fs-sm); margin-top: var(--space-4); }
.footer-col h5 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 var(--space-4); font-weight: 500; }
.footer-col a { display: block; padding: 5px 0; font-size: var(--fs-sm); color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--brand-300); }
.socials { display: flex; gap: 8px; margin-top: var(--space-5); }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s, color .2s; color: var(--text-muted); }
.socials a:hover { border-color: var(--brand-500); color: var(--brand-400); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: var(--fs-xs); color: var(--text-dim); }
.footer-bottom nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }
.rg-note { font-size: var(--fs-xs); color: var(--text-dim); padding-bottom: var(--space-5); max-width: 90ch; }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.05em; text-align: center; background: linear-gradient(180deg, rgba(255,95,15,.22), rgba(255,95,15,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-top: var(--space-5); overflow: hidden; }

/* 11. Motion ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .30s; }
.reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* 12. Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .menu-toggle { display: grid; }
  .hero__grid, .split, .page-hero__grid { grid-template-columns: 1fr; }
  .scratch { margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tabs__btn { flex: none; min-width: 200px; }
  .modules { grid-template-columns: 1fr 1fr; }
  .module:nth-child(3n) { border-right: 1px solid var(--line); }
  .module:nth-child(2n) { border-right: 0; }
  .module:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .module:nth-last-child(-n+2) { border-bottom: 0; }
  .process { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .process::before { display: none; }
  .stats, .compliance { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: var(--space-7) var(--space-6); }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding-block: var(--space-8); }
  .grid-2, .grid-3, .grid-4, .pillars, .modules, .process, .compliance, .form .row { grid-template-columns: 1fr; }
  .module { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .module:last-child { border-bottom: 0 !important; }
  .check-list { grid-template-columns: 1fr; }
  .tabs__panel { padding: var(--space-6) var(--space-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .btn--primary { display: none; }
  .faq details p { padding-right: 0; }
  .scratch { rotate: 0deg; }
}
