/* ==========================================================================
   Arcaneflow — Nocturne II · shared site styles
   Built on 04 Nocturne Light. Every section carries data-tone="night" | "dusk" | "cream";
   components only read the tone tokens, so any section can be dark or cream.
   Variant layouts (islands, split, dimmer) live in each site's own site.css.
   ========================================================================== */

:root {
  --night: #0A0C17;            /* hero floor, dark sections, seams, footer: one colour so the seams vanish */
  --night-0: #07080F;
  --dusk: #100F20;             /* the second dark, used for dark-on-dark rhythm */
  --cream: #F5F2EC;
  --cream-2: #EEEAE2;
  --paper: #FBFAF7;
  --ink: #141220;

  --pink: #FF1B6B;
  --cyan: #45CAFF;
  --supply: #2F5BFF;
  --demand: #FF2FBF;
  --violet: #9B48E0;

  --f-head: "Albert Sans", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  --r-xs: 3px;
  --r-s: 8px;
  --r-m: 16px;
  --r-l: 28px;
  --e: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- tones */
[data-tone="cream"] {
  --bg: var(--cream); --bg-2: var(--cream-2); --surface: var(--paper); --surface-2: #fff; --surface-line: rgba(20, 18, 32, .075);
  --fg: #141220; --fg-2: #2B2838; --muted: #625E75; --muted-2: #6E6A80;
  --line: rgba(20, 18, 32, .13); --line-soft: rgba(20, 18, 32, .075); --hover: rgba(20, 18, 32, .04);
  --accent: #5E35B5; --accent-2: #C4105A; --label: #C4105A;
  --focus: #2F5BFF;
  --btn-bg: #141220; --btn-fg: #F5F2EC; --btn-hover: #000; --btn-glow: rgba(20, 18, 32, .6);
  --shade: rgba(32, 24, 60, .28);
  --em-bg: linear-gradient(90deg, #5E35B5, #5E35B5);
  --hot-bg: linear-gradient(90deg, #F0502A 0%, #E0245A 45%, #B5137A 100%);
  --rule-em: linear-gradient(90deg, #2F4FE0, #7A3CD0 50%, #D21C7E);
  --logo-filter: grayscale(1) brightness(0); --logo-filter-alt: invert(1) grayscale(1) contrast(1.6); --logo-op: .62;
  --panel: var(--paper); --panel-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 70px -48px rgba(32, 24, 60, .28);
  --stage-bg: linear-gradient(180deg, #F8F5EF, #ECE5D9); --stage-ring: inset 0 0 0 1px rgba(20, 18, 32, .07);
  --tab-on-bg: var(--paper); --tab-on-ring: inset 0 0 0 1px rgba(20, 18, 32, .13), 0 20px 40px -28px rgba(32, 24, 60, .28);
  --card-glow: rgba(42, 26, 92, .32);
  color-scheme: light;
}
[data-tone="night"], [data-tone="dusk"] {
  --bg: var(--night); --bg-2: #12111F; --surface: #121124; --surface-2: #17162C; --surface-line: rgba(236, 234, 246, .08);
  --fg: #F1F0FA; --fg-2: #D9D7EA; --muted: #A9A7C0; --muted-2: #908DAA;
  --line: rgba(236, 234, 246, .13); --line-soft: rgba(236, 234, 246, .075); --hover: rgba(255, 255, 255, .045);
  --accent: #C9AEFF; --accent-2: #FF86C2; --label: #FF86C2;
  --focus: #BFA9FF;
  --btn-bg: #E4DEF4; --btn-fg: #17141F; --btn-hover: #fff; --btn-glow: rgba(166, 201, 255, .55);
  --shade: rgba(0, 0, 0, .55);
  --em-bg: linear-gradient(90deg, #A6C9FF 4%, #B99BF2 50%, #F1A0D1 94%);
  --hot-bg: linear-gradient(90deg, #FFB06B 0%, #FF5A6E 40%, #FF2F8E 70%, #C08BF0 100%);
  --rule-em: linear-gradient(90deg, #8FA6FF, #C08BF0 50%, #FF7AD6);
  --logo-filter: grayscale(1) brightness(0) invert(1); --logo-filter-alt: grayscale(1) contrast(1.4) brightness(1.15); --logo-op: .66;
  --panel: linear-gradient(180deg, rgba(23, 21, 44, .92), rgba(15, 14, 32, .92)); --panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -50px rgba(0, 0, 0, .9);
  --stage-bg: radial-gradient(60% 60% at 50% 62%, rgba(110, 60, 210, .22), rgba(110, 60, 210, 0) 70%), linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(180deg, #0F0D22, #090818);
  --stage-ring: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --tab-on-bg: rgba(255, 255, 255, .06); --tab-on-ring: inset 0 0 0 1px rgba(236, 234, 246, .16), 0 24px 44px -28px rgba(0, 0, 0, .9);
  --card-glow: rgba(120, 70, 230, .34);
  color-scheme: dark;
}
[data-tone="dusk"] { --bg: var(--dusk); --surface: #17152B; --surface-2: #1C1A33; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: #F1F0FA;
  font: 400 16px/1.6 var(--f-body); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
em { font-style: normal; }
::selection { background: #E7DDFF; color: var(--ink); }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--pad))); margin-inline: auto; }
[data-tone] { background-color: var(--bg); color: var(--fg); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus, #BFA9FF); outline-offset: 4px; border-radius: 3px; }
.site-header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #BFA9FF; }
.holo:focus-visible { outline: none; }

.skip { position: absolute; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; background: #fff; color: #000; font: 500 13px var(--f-mono); border-radius: 4px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* --------------------------------------------------------------- shared atoms */
.label, .label-note, .kicker, .rail-title, .forge-built, .fig, .b-num, .fp-num, .fp-ctx, .format-fig {
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.label { color: var(--label); }
.label-muted { color: var(--muted); }
.label-note { color: var(--muted); letter-spacing: .12em; }
.fig { letter-spacing: .08em; color: var(--muted-2); text-transform: none; font-size: 11px; }

.label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 76px);
}
.label-mark { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--f-head); letter-spacing: -.03em; color: var(--fg-2); }
.label-mark img { width: 18px; height: 18px; }

.pix-dot { display: inline-block; width: 6px; height: 6px; background: var(--pink); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 50px; padding: 15px 20px; border-radius: var(--r-xs);
  font: 500 12px/1 var(--f-mono); letter-spacing: .03em; white-space: nowrap;
  transition: background-color .3s var(--e), color .3s var(--e), transform .3s var(--e), box-shadow .3s var(--e);
}
.btn .arr, .text-link .arr { font-family: var(--f-body); font-size: 16px; line-height: 1; transition: transform .3s var(--e); }
.btn:hover .arr, .text-link:hover .arr { transform: translate(2px, -2px); }
.btn-light { background: #E4DEF4; color: #17141F; }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(166, 201, 255, .55); }
.btn-main { background: var(--btn-bg); color: var(--btn-fg); }
.btn-main:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 16px 34px -18px var(--btn-glow); }
.btn-ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); transform: translateY(-2px); }

.text-link {
  display: inline-flex; align-items: center; gap: 22px; padding: 12px 0 11px;
  border-bottom: 1px solid currentColor; font: 500 12px/1 var(--f-mono); letter-spacing: .03em; color: var(--fg);
  transition: color .25s var(--e), gap .3s var(--e);
}
.text-link:hover { color: var(--accent); gap: 28px; }
.text-link.is-down:hover .arr { transform: translateY(3px); }

/* --------------------------------------------------------------- header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; color: #E9E7F6; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; position: relative; }
.brand { display: block; flex: none; }
.brand img { width: 212px; height: auto; }
.nav { display: flex; align-items: center; gap: 38px; font: 500 12px/1 var(--f-mono); letter-spacing: .02em; position: relative; }
.nav a, .nav-login { color: #C7C5DA; padding: 10px 0; transition: color .25s; }
.nav a:hover, .nav-login:hover { color: #fff; }
.nav .nav-demo { color: #DCCFFF; }
.nav-login span { padding-left: 6px; color: #9F97B9; }
.login-note {
  position: absolute; right: 0; top: calc(100% + 14px); display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: #14132A; border: 1px solid #3B3458; border-radius: 6px;
  font: 500 12px/1.4 var(--f-mono); color: #DAD6EE; white-space: nowrap; box-shadow: 0 18px 40px -18px #000;
}
.login-note[hidden] { display: none; }
.menu-toggle { display: none; }

/* --------------------------------------------------------------- hero (always night) */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #F1F0FA;
  min-height: max(680px, min(980px, 100svh));
  background:
    radial-gradient(52% 58% at 72% 46%, rgba(90, 42, 133, .26), rgba(90, 42, 133, 0) 72%),
    radial-gradient(38% 42% at 8% 0%, rgba(47, 91, 255, .10), rgba(47, 91, 255, 0) 70%),
    linear-gradient(162deg, #05060C 0%, #080A14 48%, var(--night) 82%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 12, 23, 0) 0%, rgba(10, 12, 23, .82) 64%, var(--night) 100%); }
.hero-scrim { display: none; }
.hero-grid { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding: 150px 0 160px; pointer-events: none; }
.hero-copy { width: min(640px, 50%); pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .04em; color: #B3B6C8; }
.pix { width: 5px; height: 5px; flex: none; background: #A99EE7; box-shadow: 8px 0 rgba(169, 158, 231, .42), 0 8px rgba(169, 158, 231, .42), 8px 8px rgba(169, 158, 231, .2); margin-right: 10px; transform: translateY(-4px); }
.hero h1 { margin-top: 30px; font: 600 clamp(58px, 6.5vw, 106px)/.97 var(--f-head); letter-spacing: -.064em; color: #F4F3FC; }
.hero h1 em {
  background: linear-gradient(90deg, #A6C9FF 4%, #B99BF2 50%, #F1A0D1 94%);
  -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; padding-right: .05em;
}
.platform { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(163, 172, 200, .2); max-width: 480px; font-size: 18px; letter-spacing: -.012em; color: #C3C4D4; }
.t-blue { color: #9FBFFF; }
.t-pink { color: #F08BC8; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.hero-secondary { font: 500 12px/1 var(--f-mono); letter-spacing: .03em; color: #C9C7DC; padding: 10px 0; border-bottom: 1px solid rgba(201, 199, 220, .28); transition: color .25s, border-color .25s; }
.hero-secondary span { display: inline-block; margin-left: 10px; transition: transform .3s var(--e); }
.hero-secondary:hover { color: #fff; border-color: #fff; }
.hero-secondary:hover span { transform: translateX(3px); }

.hero-base {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: #9C9EB4;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 16px; transition: color .25s; }
.scroll-cue:hover { color: #fff; }
.cue-box { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(139, 134, 181, .32); font-size: 12px; transition: border-color .25s, transform .3s var(--e); }
.scroll-cue:hover .cue-box { border-color: rgba(255, 255, 255, .7); transform: translateY(2px); }
.hero-base .fig { color: #8C8DA6; letter-spacing: .06em; }
.motion-btn { display: inline-flex; align-items: center; gap: 12px; padding: 9px 0; font: inherit; letter-spacing: inherit; color: #9C9EB4; transition: color .25s; }
.motion-btn:hover { color: #fff; }
.motion-ico { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.motion-btn.is-paused .motion-ico { border: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; height: 0; width: 0; }

/* --------------------------------------------------------------- pixel seams + twinkles */
.seam { position: relative; height: clamp(116px, 13vw, 200px); background: var(--seam-bg, var(--night)); margin-block: -1px; z-index: 2; }
.seam canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seam.is-dim { height: clamp(64px, 7vw, 112px); }
.seam.is-flat { display: none; }

/* the hero's flickering lights carry into every dark section: two tiled pixel starfields (tiles built in JS),
   one static and faint, one that flickers, plus a few brand-coloured glints */
[data-tone="night"]:is(.section, .dev, .partners, .cta), [data-tone="dusk"]:is(.section, .dev, .partners, .cta) {
  background-image: var(--twk-b, none); background-size: 590px 410px; background-position: 130px 60px;
}
[data-tone="night"]:is(.section, .dev, .partners, .cta)::after, [data-tone="dusk"]:is(.section, .dev, .partners, .cta)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--twk-a, none), var(--twk-c, none);
  background-size: 460px 340px, 760px 520px; background-position: 0 0, 300px 140px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  animation: twk 6.4s linear infinite;
}
[data-tone="dusk"]:is(.section, .dev, .partners, .cta)::after { animation-delay: -2.7s; }
@keyframes twk {
  0%, 100% { opacity: .6; } 8% { opacity: .22; } 9% { opacity: .56; } 31% { opacity: .46; } 33% { opacity: .14; } 35% { opacity: .5; }
  52% { opacity: .34; } 66% { opacity: .62; } 74% { opacity: .2; } 75% { opacity: .52; }
}
.af-paused [data-tone]::after { animation: none !important; }

/* --------------------------------------------------------------- sections */
.section { position: relative; isolation: isolate; padding: clamp(84px, 10vw, 140px) 0; }
[data-tone="night"].section::before, [data-tone="dusk"].section::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 60% at 100% 10%, rgba(155, 72, 224, .085), rgba(155, 72, 224, 0) 70%),
    radial-gradient(40% 50% at 0% 90%, rgba(47, 91, 255, .07), rgba(47, 91, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.statement, .section-head h2, .cta h2 {
  font: 600 clamp(40px, 5.1vw, 74px)/1.02 var(--f-head); letter-spacing: -.054em; color: var(--fg);
}
.statement em, .section-head h2 em, #dev-title em {
  background: var(--em-bg); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .04em;
}
.accent-pink { color: var(--accent-2); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { font-size: 14px; line-height: 1.7; color: var(--muted); text-align: right; max-width: 280px; padding-bottom: 8px; }

/* --------------------------------------------------------------- partners */
.partners { position: relative; isolation: isolate; padding: 30px 0 84px; }
.partners-head { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.partners-rule { flex: 1; height: 1px; background: var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .af-paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; justify-content: space-around; gap: 48px; padding: 0 24px; list-style: none; min-width: max(1180px, 100vw); }
.marquee-group li { width: 156px; height: 56px; display: grid; place-items: center; flex: none; }
.marquee img { max-width: 138px; max-height: 34px; width: auto; height: auto; filter: var(--logo-filter); opacity: var(--logo-op); transition: opacity .3s var(--e), transform .3s var(--e); }
.marquee img.p-consumable { filter: var(--logo-filter-alt); opacity: .74; }
.marquee img.p-consumable { max-width: 150px; max-height: 40px; }
.marquee img.p-adprime { max-height: 40px; }
.marquee li:hover img { opacity: 1; transform: translateY(-1px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- 01 intro */
.intro { padding-top: clamp(80px, 9vw, 128px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro-aside p { font-size: 18px; line-height: 1.62; color: var(--muted); max-width: 400px; margin-bottom: 30px; }

/* --------------------------------------------------------------- 02 monetize */
.module {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(250px, 296px); gap: clamp(28px, 4vw, 60px); align-items: center;
  background: var(--panel); border: 1px solid var(--surface-line); border-radius: var(--r-l);
  padding: clamp(28px, 4.2vw, 60px);
  box-shadow: var(--panel-shadow);
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--label); margin-bottom: 28px; }
.module h3 { font: 600 clamp(42px, 4.6vw, 68px)/.98 var(--f-head); letter-spacing: -.058em; margin-bottom: 26px; color: var(--fg); }
.module h3 em { color: var(--accent-2); }
.module-copy > p:not(.kicker) { color: var(--muted); font-size: 16px; line-height: 1.72; max-width: 420px; margin-bottom: 30px; }

.rail-title { color: var(--muted); margin-bottom: 16px; }
.rail-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rail-item {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 20px 6px 20px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%;
  transition: padding .45s var(--e), background-color .3s;
}
.rail-item img { width: 40px; height: auto; transition: transform .45s var(--e), filter .3s; filter: saturate(.85); }
.ri-text strong { display: block; font: 500 16px/1.2 var(--f-mono); letter-spacing: -.02em; color: var(--fg); }
.ri-text small { display: block; margin-top: 7px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ri-num { font: 500 10px var(--f-mono); color: var(--muted-2); letter-spacing: .08em; }
.rail-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--pink); transform: scale(0); transition: transform .4s var(--e); }
.rail-item[aria-selected="true"] { padding-left: 18px; }
.rail-item[aria-selected="true"]::before { transform: scale(1); }
.rail-item[aria-selected="true"] img { transform: translateY(-2px) rotate(-4deg); filter: none; }
.rail-item[aria-selected="true"] .ri-num { color: var(--accent-2); }
.rail-item:hover img { transform: translateY(-2px) rotate(-4deg); }

.int-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 1200px; }
.int-hint { font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.hint-touch { display: none; }
@media (hover: none) { .int-hint { display: none; } .hint-hover { display: none; } .hint-touch { display: inline; } }

/* holo cards (shared look; the face stays white on any tone) */
.holo { --card-cell: 6px; --card-ring: 12px; border-radius: 18px; }
.holo-face { background: #fff; border-radius: 5px; color: #141220; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #4F4B62; }
.card-mark { display: inline-flex; align-items: center; gap: 6px; }
.card-mark img { width: 14px; height: 14px; }
.card-art { position: relative; margin: 0 10px; border-radius: 6px; overflow: hidden; background: #100F24; aspect-ratio: 16 / 10.4; flex: none; }
.card-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art .holo-sheen { border-radius: inherit; }
.card-body { padding: 14px 14px 0; }
.card-body h3, .card-body h4 { font: 600 22px/1.08 var(--f-head); letter-spacing: -.04em; color: #141220; margin-bottom: 6px; }
.card-body p { font-size: 13px; line-height: 1.5; color: #67637A; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px 12px; border-top: 1px dashed rgba(20, 18, 32, .14); font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #6B6780; }
.int-card { width: 100%; max-width: 296px; aspect-ratio: 5 / 7; transform: perspective(1000px) translateY(calc(var(--holo) * -6px)) rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 calc(20px + var(--holo) * 20px) calc(40px + var(--holo) * 28px) -22px var(--card-glow); }
.int-card .card-body h4 { font-size: 24px; }
.int-card .card-art { aspect-ratio: 1 / .8; }
.int-card .holo-face { transition: transform .22s var(--e), opacity .22s; transform-origin: 50% 50%; }
.int-card.is-flipping .holo-face { transform: rotateY(90deg) scale(.96); opacity: .35; }

/* --------------------------------------------------------------- developers */
.dev { position: relative; isolation: isolate; padding: clamp(84px, 9vw, 128px) 0 clamp(76px, 8vw, 112px); }
.dev-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dev h2 { max-width: 1000px; margin: 24px auto 34px; font: 600 clamp(34px, 4.5vw, 66px)/1.05 var(--f-head); letter-spacing: -.052em; color: var(--fg); }
.caret { display: inline-block; width: .38em; height: .74em; margin-left: .14em; background: var(--pink); vertical-align: -.02em; animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.af-paused .caret { animation: none; }
.dev-stack { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dev-stack i { width: 5px; height: 5px; background: var(--violet); }

/* --------------------------------------------------------------- 03 manaforge (the whole section is the dark stage) */
.forge-section { padding-top: clamp(56px, 6vw, 92px); padding-bottom: clamp(84px, 9vw, 128px); }
.section.forge-section::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(48% 52% at 50% 104%, rgba(155, 72, 224, .20), rgba(155, 72, 224, 0) 70%),
    radial-gradient(36% 44% at 0% 8%, rgba(47, 91, 255, .12), rgba(47, 91, 255, 0) 70%),
    radial-gradient(36% 44% at 100% 8%, rgba(255, 47, 191, .09), rgba(255, 47, 191, 0) 70%),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
.forge-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 56px); }
.forge-logo { width: 176px; height: auto; margin: 0 0 34px; }
.forge-intro h2 { font: 600 clamp(48px, 6.2vw, 96px)/.95 var(--f-head); letter-spacing: -.058em; color: #F4F2FC; }
.forge-kicker { display: block; margin-bottom: 18px; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #B6B2CF; }
.forge-intro h2 em { background: linear-gradient(90deg, #8FA6FF 0%, #C08BF0 48%, #FF7AD6 96%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.forge-aside { padding-bottom: 6px; }
.forge-aside > p:first-child { font-size: 18px; line-height: 1.6; color: #C6C3DA; max-width: 400px; margin-bottom: 26px; }
.forge-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.forge-built { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #8E8AA8; }

.heat { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: clamp(24px, 3.4vw, 48px); align-items: stretch; }
.heat-stage { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #08071A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 90px -60px rgba(110, 50, 220, .55); aspect-ratio: 2.1 / 1; }
#heat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.edge { position: absolute; top: 14px; z-index: 2; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #8EA6FF; pointer-events: none; }
.edge b { font-weight: 500; }
.edge-l { left: 16px; }
.edge-r { right: 16px; color: #FF8FD9; }
.trust-chips span {
  position: absolute; left: var(--u); top: var(--v); z-index: 2; transform: translate(-50%, calc(-100% - 14px));
  padding: 5px 8px 6px; border-radius: 4px; background: rgba(9, 8, 24, .86); border: 1px solid rgba(143, 224, 255, .4);
  font: 500 9.5px/1 var(--f-mono); letter-spacing: .06em; color: #C7F1FF; white-space: nowrap;
  opacity: 0; transition: opacity .45s var(--e), transform .45s var(--e); pointer-events: none;
}
.trust-chips span:first-child { transform: translate(-14%, calc(-100% - 14px)); }
.trust-chips span:last-child { transform: translate(-86%, calc(-100% - 14px)); }
.heat[data-mode="3"] .trust-chips span { opacity: 1; }

.heat-ui { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* slanted plates — the capability selector, after the stacked plates of the launch page */
.plates-wrap { position: relative; padding: 30px 0 28px; }
.plates { display: flex; flex-direction: column; gap: 12px; transform: skewY(-10deg); transform-origin: 0 50%; }
.plate {
  --c: #8EA6FF; --c-hi: #C9D5FF; --c-sh: #2340C8; --c-glow: rgba(47, 91, 255, .5);
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) 15px; align-items: center; gap: 10px;
  height: 50px; width: calc(100% - 44px); margin-left: calc(var(--i) * 12px); padding: 0 14px 0 13px;
  background: linear-gradient(90deg, #1D1638, #17112D); color: #D7D1EF;
  border-radius: 3px; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(195, 139, 240, .24), inset 0 1px 0 rgba(255, 255, 255, .08), 0 7px 0 #2A2150, 0 9px 0 rgba(0, 0, 0, .35);
  font: 600 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  transition: transform .4s var(--e), background .3s, color .3s, box-shadow .4s var(--e);
}
.plate:nth-child(2) { --c: #FF7AD6; --c-hi: #FFD3F1; --c-sh: #B21C86; --c-glow: rgba(255, 47, 191, .5); }
.plate:nth-child(3) { --c: #C38BF0; --c-hi: #EEDCFF; --c-sh: #5B2A93; --c-glow: rgba(155, 72, 224, .55); }
.plate:nth-child(4) { --c: #8FE0FF; --c-hi: #E2F7FF; --c-sh: #1F6FB8; --c-glow: rgba(69, 202, 255, .45); }
.plate-n { font-size: 9.5px; letter-spacing: .06em; opacity: .55; }
.plate-glyph { width: 15px; height: 15px; color: var(--c); shape-rendering: crispEdges; transition: color .3s; }
.plate:hover { transform: translate(4px, -3px); box-shadow: inset 0 0 0 1px rgba(195, 139, 240, .5), inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 0 #34295F, 0 12px 0 rgba(0, 0, 0, .35); color: #fff; }
.plate[aria-selected="true"], .plate[aria-selected="true"]:hover {
  transform: translateX(16px);
  background: linear-gradient(90deg, var(--c-hi), var(--c)); color: #120B26;
  box-shadow: inset 0 0 0 1px var(--c-hi), 0 7px 0 var(--c-sh), 0 0 38px -4px var(--c-glow);
}
.plate[aria-selected="true"] .plate-glyph { color: #120B26; }
.plate[aria-selected="true"] .plate-n { opacity: .7; }
.plates-note { position: absolute; right: 0; bottom: 0; font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6F6B88; }

.tab-panel { min-height: 112px; }
.tab-panel h3 { font: 600 27px/1.12 var(--f-head); letter-spacing: -.04em; color: #F4F2FC; margin-bottom: 10px; }
.tab-panel p { color: #BDB9D3; font-size: 15.5px; line-height: 1.6; }
.tab-panel.is-swap h3, .tab-panel.is-swap p { animation: swapIn .5s var(--e); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.heat-key { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 18px; font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #9A97B3; }
.heat-key > span { display: inline-flex; align-items: center; }
.heat-key i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }
.k-supply { background: var(--supply); }
.k-demand { background: var(--demand); }
.k-clear { background: var(--cyan); }
.k-scale { gap: 3px; width: 100%; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.k-scale em { font-style: normal; color: #8C8AA6; margin: 0 6px; }
.k-scale em:first-child { margin-left: 0; }
.k-scale i { width: 14px; height: 7px; margin: 0; }
.k-scale i:nth-of-type(1) { background: #191734; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.k-scale i:nth-of-type(2) { background: #2F5BFF; }
.k-scale i:nth-of-type(3) { background: #9B48E0; }
.k-scale i:nth-of-type(4) { background: #FF2FBF; }
.k-scale i:nth-of-type(5) { background: #45CAFF; }
.fig-dark { color: #8C8AA6; }

/* --------------------------------------------------------------- 04 one connected marketplace + formats */
.formats { padding-top: clamp(72px, 8vw, 116px); }
.rule-title { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin: 0 0 clamp(34px, 4vw, 52px); font: 600 clamp(34px, 4.2vw, 62px)/1.08 var(--f-head); letter-spacing: -.05em; color: var(--fg); white-space: nowrap; }
.rule-title > span { text-wrap: balance; }
.formats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 16px; margin-bottom: clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.formats-head p { margin: 0; max-width: 560px; text-align: right; font-size: 15px; line-height: 1.6; color: var(--muted); }
.formats-head strong { color: var(--fg); font-weight: 600; }
.formats-head .label { white-space: nowrap; flex: none; }
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 1px; }
.rule-title::before { background: linear-gradient(90deg, rgba(47, 91, 255, 0), rgba(47, 91, 255, .55)); }
.rule-title::after { background: linear-gradient(90deg, rgba(255, 47, 191, .55), rgba(255, 47, 191, 0)); }
.rule-title em { background: var(--rule-em); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .03em; }
.rule-px { display: inline-flex; gap: 4px; align-items: center; }
.rule-px i { width: 6px; height: 6px; background: var(--supply); }
.rule-px i:nth-child(2) { background: var(--violet); }
.rule-px i:nth-child(3) { background: var(--demand); }

.formats-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.format-stage { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 560px; }
.format-stage { background: var(--stage-bg); box-shadow: var(--stage-ring); }
.format-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.format-fig { position: absolute; left: 22px; bottom: 18px; font-family: "Geist Pixel", var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: none; color: var(--muted); }
.format-badge { position: absolute; right: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.format-badge i { width: 6px; height: 6px; background: var(--pink); animation: blink 1.6s steps(1) infinite; }
.af-paused .format-badge i { animation: none; }

.format-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.format-tabs { display: flex; flex-direction: column; gap: 8px; }
.ftab {
  --c: #2F5BFF; --c-soft: rgba(47, 91, 255, .14);
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 70px; padding: 10px 16px 10px 11px; border-radius: 12px; text-align: left; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background-color .3s var(--e), box-shadow .35s var(--e), transform .35s var(--e);
}
.ftab[data-f="1"] { --c: #9B48E0; --c-soft: rgba(155, 72, 224, .14); }
.ftab[data-f="2"] { --c: #1BA7E0; --c-soft: rgba(69, 202, 255, .16); }
.ftab[data-f="3"] { --c: #E0158F; --c-soft: rgba(255, 47, 191, .13); }
.ftab[data-f="4"] { --c: #FF1B6B; --c-soft: rgba(255, 27, 107, .12); }
.ftab:hover { background: var(--hover); transform: translateX(3px); }
.ftab-ico {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 9px;
  background: var(--c-soft); color: var(--c);
  transition: background-color .3s var(--e), color .3s, box-shadow .35s var(--e), transform .35s var(--e);
}
.ftab-ico svg { width: 26px; height: 26px; shape-rendering: crispEdges; overflow: visible; }
.ftab-ico::before, .ftab-ico::after { content: ""; position: absolute; width: 6px; height: 6px; border: 2px solid var(--c); opacity: 0; transition: opacity .3s, transform .35s var(--e); }
.ftab-ico::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; transform: translate(3px, 3px); }
.ftab-ico::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; transform: translate(-3px, -3px); }
.ftab-txt strong { display: block; font: 600 19px/1.15 var(--f-head); letter-spacing: -.032em; color: var(--fg); }
.ftab-txt small { display: block; margin-top: 5px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ftab-n { font: 500 10px var(--f-mono); letter-spacing: .08em; color: var(--muted-2); }
.ftab-bar { position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); opacity: .9; }
.ftab[aria-selected="true"] { background: var(--tab-on-bg); box-shadow: var(--tab-on-ring); }
.ftab[aria-selected="true"] .ftab-ico { background: var(--c); color: #fff; box-shadow: 0 10px 24px -10px var(--c); }
.ftab[aria-selected="true"] .ftab-ico::before, .ftab[aria-selected="true"] .ftab-ico::after { opacity: 1; transform: none; }
.ftab[aria-selected="true"] .ftab-n { color: var(--label); }
.formats.is-auto .ftab[aria-selected="true"] .ftab-bar { animation: fbar var(--fdur, 6.5s) linear forwards; }
@keyframes fbar { to { transform: scaleX(1); } }
/* pixel icon life while selected */
.ftab .px-live { transform-box: fill-box; transform-origin: 50% 100%; }
.ftab[aria-selected="true"] .px-blink { animation: pxBlink 1.2s steps(1) infinite; }
.ftab[aria-selected="true"] .px-bounce, .ftab[aria-selected="true"] .px-wave { animation: pxBounce .9s steps(3) infinite alternate; animation-delay: calc(var(--k, 0) * -.3s); }
.ftab .px-wave { transform-box: fill-box; transform-origin: 50% 50%; }
.ftab[aria-selected="true"] .px-slide { animation: pxSlide 2.4s steps(6) infinite; }
@keyframes pxBlink { 50% { opacity: .25; } }
@keyframes pxBounce { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes pxSlide { 0% { transform: translateX(-3px); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.af-paused .ftab .px-blink, .af-paused .ftab .px-bounce, .af-paused .ftab .px-wave, .af-paused .ftab .px-slide { animation: none !important; }

.format-panel { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 2px 0; }
.fp-num { color: var(--label); margin-bottom: 14px; }
.fp-title { font: 600 clamp(30px, 2.6vw, 38px)/1.05 var(--f-head); letter-spacing: -.045em; color: var(--fg); }
.fp-spec { margin-top: 8px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fp-desc { margin-top: 16px; font-size: 16px; line-height: 1.68; color: var(--muted); max-width: 440px; }
.fp-ctx { margin-top: 14px; color: var(--muted-2); letter-spacing: .1em; }
.format-panel .text-link { margin-top: 22px; }

/* --------------------------------------------------------------- 05 benefits */
.benefits { padding-top: clamp(84px, 9vw, 128px); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.benefit { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 30px 36px 44px 0; border-bottom: 1px solid var(--line-soft); outline: none; }
.benefit:not(:nth-child(3n)) { border-right: 1px solid var(--line-soft); }
.benefit:not(:nth-child(3n+1)) { padding-left: 36px; }
.b-top { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: 16px; }
.b-num { color: var(--muted-2); letter-spacing: .1em; padding-top: 4px; }
.b-ico { width: 184px; height: 138px; flex: none; margin: -10px 0 0 -18px; }
.benefit h3 { font: 600 23px/1.15 var(--f-head); letter-spacing: -.038em; margin: 14px 0 14px; color: var(--fg); }
.benefit p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 350px; }
.benefit::after { content: ""; position: absolute; left: 0; right: 36px; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--supply), var(--violet), var(--demand)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--e); }
.benefit:not(:nth-child(3n+1))::after { left: 36px; }
.benefit:hover::after, .benefit:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------- cta */
.cta { position: relative; isolation: isolate; padding: clamp(72px, 8vw, 112px) 0 clamp(96px, 10vw, 150px); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 44px; border-top: 1px solid var(--line); }
.cta-title-wrap { position: relative; }
.cta h2 { margin-top: 24px; font-size: clamp(44px, 6vw, 92px); line-height: .98; letter-spacing: -.058em; }
.cta h2 em { position: relative; display: inline-block; }
.cta-title-wrap h2 em { background: var(--hot-bg); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .04em; }
.embers { position: absolute; z-index: -1; pointer-events: none; left: -4%; right: -4%; top: -40%; bottom: -10%; width: 108%; height: 150%; }
.cta-aside p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 420px; margin-bottom: 30px; }
.cta-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--night); color: #C9C8DA; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) 170px 200px minmax(0, 1fr); gap: 48px; padding: 36px 0 70px; align-items: start; }
.footer-logo { width: 212px; height: auto; }
.footer-brand p { margin-top: 22px; color: #8D8BA4; font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 14.5px; }
.footer nav h2 { margin: 6px 0 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8C8AA6; }
.footer nav a { color: #D9D8E8; transition: color .25s; }
.footer nav a:hover { color: #fff; }
.footer-grow img { width: min(100%, 268px); height: auto; margin-left: auto; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .08); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .06em; color: #8E8CA6; }
.footer-base a { transition: color .25s; }
.footer-base a:hover { color: #fff; }
.footer-legal { display: flex; gap: 26px; }

/* --------------------------------------------------------------- reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .75s var(--e) var(--d, 0s), transform .75s var(--e) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ================================================================ responsive */
@media (max-height: 800px) and (min-width: 761px) {
  .hero-grid { padding: 122px 0 118px; }
}
@media (max-width: 1180px) {
  .module { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .module-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .module-copy .kicker, .module-copy h3 { grid-column: 1; }
  .module-copy > p:not(.kicker), .module-copy .text-link { grid-column: 2; justify-self: start; }
  .module-copy h3 { grid-row: 2 / span 2; margin-bottom: 0; }
  .module-copy > p:not(.kicker) { grid-row: 2; margin-bottom: 18px; }
  .module-copy .text-link { grid-row: 3; }
  .footer-main { grid-template-columns: minmax(0, 1.2fr) 150px 180px; }
  .footer-grow { grid-column: 1 / -1; }
  .footer-grow img { margin-left: 0; width: 220px; }
}
@media (max-width: 1100px) {
  .heat { grid-template-columns: minmax(0, 1fr); }
  .heat-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 18px; align-items: start; }
  .plates-wrap { grid-row: 1 / span 3; }
  .heat-key { margin-top: 0; }
  .formats-grid { grid-template-columns: minmax(0, 1fr); }
  .format-stage { min-height: 0; height: clamp(360px, 56vw, 540px); }
  .format-side { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}
@media (max-width: 980px) {
  .hero-copy { width: min(560px, 62%); }
  .hero h1 { font-size: clamp(54px, 7.4vw, 74px); }
  .intro-grid, .cta-inner, .forge-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:not(:nth-child(3n)) { border-right: 0; }
  .benefit:not(:nth-child(3n+1)) { padding-left: 0; }
  .benefit:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 32px; }
  .benefit:nth-child(even) { padding-left: 32px; }
  .benefit::after, .benefit:not(:nth-child(3n+1))::after { left: 0; right: 32px; }
  .benefit:nth-child(even)::after { left: 32px; right: 0; }
}
@media (max-width: 760px) {
  .header-inner { padding-top: 22px; }
  .brand img { width: 168px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(233, 231, 246, .26); font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: #E9E7F6;
  }
  .menu-bars { display: grid; gap: 4px; }
  .menu-bars i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--e); }
  .menu-toggle[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .nav {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: none; flex-direction: column; align-items: stretch; gap: 0;
    min-width: 230px; padding: 8px 18px; background: #12111F; border: 1px solid #2E2A47; border-radius: 10px; box-shadow: 0 24px 50px -20px #000;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav-login { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; font-size: 13px; }
  .nav-login { border-bottom: 0; }
  .login-note { position: static; margin: 0 0 12px; white-space: normal; }

  .hero { min-height: max(720px, 100svh); }
  .hero-scrim { display: block; position: absolute; inset: auto 0 0; height: 64%; z-index: 1; background: linear-gradient(180deg, rgba(10, 12, 23, 0) 0%, rgba(10, 12, 23, .82) 38%, var(--night) 72%); pointer-events: none; }
  .hero-grid { align-items: flex-end; padding: 0 0 112px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(46px, 13.4vw, 64px); margin-top: 18px; }
  .platform { margin-top: 26px; padding-top: 16px; font-size: 16px; }
  .hero-actions { margin-top: 24px; gap: 22px; }
  .hero-base { bottom: 22px; }
  .hero-base .fig { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head p { text-align: left; max-width: none; }
  .label-row { margin-bottom: 36px; }
  .module { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 30px; border-radius: 22px; }
  .module-copy { display: block; }
  .int-stage { order: 3; }
  .rail-item { gap: 14px; padding-block: 16px; }
  .forge-logo { width: 140px; margin-bottom: 24px; }
  .heat-stage { aspect-ratio: auto; height: 340px; border-radius: 14px; }
  .heat-ui { display: flex; grid-template-columns: minmax(0, 1fr); }
  .plates-wrap { grid-row: auto; padding: 30px 0 34px; }
  .plate { width: min(calc(100% - 44px), 340px); }
  .rule-title { white-space: normal; text-align: center; font-size: 30px; margin-bottom: 28px; }
  .formats-head { flex-direction: column; gap: 8px; }
  .formats-head p { text-align: left; }
  /* tabs sit right above the stage, so a tap rebuilds the model in view */
  .formats-grid { display: flex; flex-direction: column; }
  .formats-grid .format-side { display: contents; }
  .formats-grid .format-tabs { order: 1; }
  .formats-grid .format-stage { order: 2; }
  .formats-grid .format-panel { order: 3; }
  .seam { height: clamp(140px, 38vw, 176px); }
  .seam.is-dim { height: 96px; }
  .rule-title::before, .rule-title::after { min-width: 24px; }
  .format-stage { height: clamp(300px, 80vw, 420px); border-radius: 20px; }
  .format-side { display: flex; align-items: stretch; }
  .format-tabs { flex-direction: row; overflow-x: auto; gap: 8px; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .format-tabs::-webkit-scrollbar { display: none; }
  .ftab { flex: none; grid-template-columns: 40px auto; min-height: 60px; padding: 9px 16px 9px 9px; scroll-snap-align: start; }
  .ftab-ico { width: 40px; height: 40px; }
  .ftab-ico svg { width: 22px; height: 22px; }
  .ftab-txt small, .ftab-n { display: none; }
  .ftab-txt strong { font-size: 16px; white-space: nowrap; }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .benefit, .benefit:nth-child(odd), .benefit:nth-child(even) { border-right: 0; padding: 24px 0 34px; min-height: 0; }
  .benefit::after, .benefit:nth-child(even)::after, .benefit:not(:nth-child(3n+1))::after { left: 0; right: 0; }
  .b-ico { width: 152px; height: 114px; margin: -8px 0 0 -14px; }
  .benefit h3 { margin-top: 10px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; padding-bottom: 48px; }
  .footer-brand, .footer-grow { grid-column: 1 / -1; }
  .footer-base { flex-wrap: wrap; }
  .footer-legal { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .hero-actions .hero-secondary { display: none; }
  .forge-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .caret, .format-badge i { animation: none; }
  .int-card .holo-face { transition: none; }
}
