/* Playable Studio — public website.
   Alabaster surfaces, crisp ink, vivid coral / cobalt / emerald / amber accents. Flat colour shapes with depth; no neon, no glass. */
:root {
  --paper: #fbfaf7;
  --paper-2: #f1efe9;
  --surface: #ffffff;
  --ink: #0d1121;
  --ink-2: #2b3145;
  --muted: #5b6176;
  --line: #e6e4ec;
  --terra: #ff5a36;
  --terra-ink: #d93a17;
  --terra-soft: #ffe7df;
  --cobalt: #2350ff;
  --cobalt-ink: #1536b8;
  --cobalt-soft: #e4eaff;
  --emerald: #0fb27a;
  --amber: #ffb21e;
  --pink: #ff4f8b;
  --teal: #14b8c9;
  --slate: #0c1020;
  --slate-2: #151b30;
  --ok: #0c9a68;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.kicker { font-size: 12.5px; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font: 620 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 160ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn span { transition: transform 220ms var(--spring); }
.btn:hover span { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a271f; }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 82, 43, 0.75); }
.btn-terra:hover { background: var(--terra-ink); }
.btn-line { border-color: #cfc6b4; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--surface); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.link { text-decoration: none; font-weight: 560; color: var(--ink-2); font-size: 15px; }
.link:hover { color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, 0.94); border-bottom: 1px solid transparent; transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 241, 232, 0.98); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.logo { width: 28px; height: 28px; color: var(--ink); transition: transform 300ms var(--spring); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 540; padding: 7px 12px; border-radius: 9px; transition: background 160ms var(--ease), color 160ms var(--ease); }
.nav-links a:hover, .nav-links a.is-on { background: var(--paper-2); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 56px 0 90px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); font-weight: 750; letter-spacing: -0.04em; line-height: 0.98; }
.accent-word { color: var(--terra); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-top: 24px; max-width: 58ch; }
.lede b { color: var(--ink); font-weight: 640; }
.engine-toggle { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.eng { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease); }
.eng:hover { border-color: #cfc6b4; }
.eng:active { transform: scale(0.98); }
.eng.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 12px 24px -16px rgba(21, 19, 14, 0.45); }
.eng b { display: block; font-size: 15px; }
.eng small { color: var(--muted); font-size: 13px; }
.eng-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; position: relative; }
.eng-dot-game { background: var(--cobalt); }
.eng-dot-game::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; transform: translateX(2px); }
.eng-dot-product { background: var(--terra); }
.eng-dot-product::after { content: ''; position: absolute; left: 9px; right: 9px; top: 12px; bottom: 8px; border: 2px solid #fff; border-radius: 3px 3px 5px 5px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.facts b { color: var(--ink); font-weight: 680; }
.hero-stage { position: relative; display: grid; justify-items: center; padding: 20px 0; }
.slab { position: absolute; border-radius: 40px; }
.slab-terra { width: 62%; height: 66%; background: var(--terra); right: 2%; top: 4%; transform: rotate(6deg); }
.slab-cobalt { width: 44%; height: 40%; background: var(--cobalt); left: 4%; bottom: 10%; transform: rotate(-8deg); border-radius: 30px; }
.hero-cap { position: relative; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 122, 85, 0.5); animation: live 2.4s var(--ease) infinite; }

/* Phone frame (iframe scaled by site.js to the frame width) */
.phone { position: relative; margin: 0; padding: 12px; border-radius: 50px; background: #121109; box-shadow: 0 0 0 1px #000, inset 0 0 0 2px #36332b, 0 50px 90px -40px rgba(21, 19, 14, 0.6); transition: width 420ms var(--ease), height 420ms var(--ease); }
.phone::before { content: ''; position: absolute; z-index: 3; top: 21px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 14px; background: #121109; pointer-events: none; transition: all 420ms var(--ease); }
.phone.is-landscape::before { top: 50%; left: 21px; width: 25px; height: 88px; margin: -44px 0 0; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: var(--paper); }
.phone iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--paper); }
.phone-hero { width: 330px; height: 690px; }
.phone-sw { width: 310px; height: 648px; }
.phone-sw.is-landscape { width: 560px; height: 280px; }

/* Sections */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 720; }
.sec-sub { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 64ch; }
.engines { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eng-card { border-radius: var(--r-lg); padding: 34px; display: grid; gap: 14px; align-content: start; }
.eng-card h3 { font-size: 28px; font-weight: 700; }
.eng-card p { font-size: 16px; }
.eng-card-game { background: var(--slate); color: #eceae4; }
.eng-card-game p { color: #b9b6ad; }
.eng-card-product { background: var(--terra-soft); }
.eng-card-product p { color: var(--ink-2); }
.eng-card-head { display: flex; justify-content: space-between; align-items: center; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.badge-dark { background: var(--cobalt); color: #fff; }
.badge-terra { background: var(--terra); color: #fff; }
.count { font-size: 13px; opacity: 0.75; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 540; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.chips a:active { transform: scale(0.96); }
.eng-card-game .chips a { background: var(--slate-2); color: #eceae4; border: 1px solid #333a4b; }
.eng-card-game .chips a:hover { background: #2c3446; }
.eng-card-product .chips a { background: rgba(255, 255, 255, 0.7); border: 1px solid #ecc9b6; }
.eng-card-product .chips a:hover { background: #fff; }

/* Showcase */
.showcase { padding: 110px 0; }
.sw { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sw-rail { display: grid; gap: 14px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--paper-2); border-radius: 12px; justify-self: start; }
.seg-btn { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font: 600 14px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease); }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 19, 14, 0.1); }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 620px; overflow: auto; }
.sw-item { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px; border-radius: 14px; border: 1px solid transparent; background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.sw-item:hover { background: var(--surface); }
.sw-item:active { transform: scale(0.985); }
.sw-item.is-on { background: var(--surface); border-color: var(--line); box-shadow: 0 8px 20px -16px rgba(21, 19, 14, 0.5); }
.sw-item img { width: 46px; height: 62px; border-radius: 10px; object-fit: cover; object-position: top; flex: none; border: 1px solid var(--line); background: var(--paper-2); }
.sw-item b { display: block; font-size: 14.5px; }
.sw-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.sw-stage { display: grid; justify-items: center; gap: 16px; min-height: 720px; align-content: start; }
.sw-tools { display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 560 13.5px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.tool:hover { border-color: #cfc6b4; color: var(--ink); }
.tool:active { transform: scale(0.96); }
.tool[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sw-info { position: sticky; top: 90px; display: grid; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sw-info .kicker { margin-bottom: 0; }
.sw-info h3 { font-size: 28px; font-weight: 720; }
.sw-tag { font-size: 16.5px; color: var(--ink); font-weight: 520; }
.sw-how { color: var(--ink-2); font-size: 15px; }
.sw-note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--cobalt-soft); color: var(--cobalt); font-size: 13.5px; }
.sw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.swap { animation: swap 380ms var(--ease) both; }

/* Workflow (dark) */
.workflow { padding: 110px 0; background: var(--slate); color: #eceae4; }
.sec-head-light .kicker { color: #f0a07f; }
.sec-head-light h2 { color: #f5f3ee; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--slate-2); border: 1px solid #30374a; display: grid; gap: 12px; align-content: start; transition: transform 260ms var(--spring), border-color 260ms var(--ease); }
.step:hover { transform: translateY(-4px); border-color: #485270; }
.step-n { font: 700 13px var(--mono); color: #f0a07f; }
.step h3 { font-size: 21px; color: #fff; }
.step p { font-size: 14.5px; color: #b6b3aa; }
.mini { margin-top: 8px; height: 88px; border-radius: 14px; background: #161a23; border: 1px solid #2c3243; padding: 14px; display: grid; gap: 8px; align-content: center; }
.m-line { display: block; height: 8px; border-radius: 4px; background: #39415a; }
.w70 { width: 70%; } .w45 { width: 45%; }
.m-pick { display: flex; gap: 6px; }
.m-pick i { flex: 1; height: 22px; border-radius: 7px; background: #2b3245; }
.m-pick i.on { background: var(--terra); }
.mini-devices { grid-auto-flow: column; justify-content: center; align-items: end; gap: 10px; }
.mini-devices .d { display: block; border: 2px solid #8d95ab; border-radius: 6px; }
.d1 { width: 22px; height: 44px; } .d2 { width: 20px; height: 36px; } .d3 { width: 23px; height: 48px; } .d4 { width: 46px; height: 24px; border-color: var(--terra) !important; }
.mini-versions span { display: flex; justify-content: space-between; font-size: 12.5px; color: #c9c6bd; }
.mini-versions em { font-style: normal; color: #8a90a2; }
.mini-versions em.ok { color: #7bd3a8; }
.mini-export { grid-template-columns: 1fr 1fr; }
.mini-export span { font: 600 12px var(--mono); text-align: center; padding: 6px 0; border-radius: 7px; background: #262d3f; color: #dcd9d0; }

/* Exports */
.exports { padding: 110px 0; }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ex { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: transform 260ms var(--spring), box-shadow 260ms var(--ease); transition-delay: var(--d, 0ms); }
.ex:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(21, 19, 14, 0.4); }
.ex-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ex h3 { font-size: 19px; }
.ex-size { font: 650 12px var(--mono); color: var(--terra-ink); background: var(--terra-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ex-who { color: var(--ink-2); font-size: 14px; }
.ex dl { margin: 0; display: grid; gap: 6px; }
.ex dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 6px; }
.ex dt { color: var(--muted); }
.ex dd { margin: 0; text-align: right; }
.ex-note { font-size: 13px; color: var(--muted); }
.ex-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ex-checks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.ex-checks li::before { content: '✓'; font-weight: 700; color: var(--ok); }

/* Tracking */
.tracking { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--line); }
.flow-rail { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-bottom: 26px; }
.node { padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--ink-2); }
.node code { word-break: break-all; color: var(--cobalt); }
.node-k { font-weight: 680; color: var(--ink); font-size: 15px; }
.node-click { border-color: #c9d3e8; background: var(--cobalt-soft); }
.node-sale { border-color: #b9dccb; background: #e2f2ea; }
.arrow { align-self: center; width: 22px; height: 2px; background: #cfc6b4; position: relative; }
.arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border-left: 7px solid #cfc6b4; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; align-content: start; }
.tr-label { font-size: 12.5px; font-weight: 680; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.tr-label-sale { color: var(--ok); }
.url { display: block; padding: 14px; border-radius: 12px; background: var(--slate); color: #e9e6de; word-break: break-all; font-size: 13.5px; line-height: 1.6; }
.url mark { background: transparent; color: #f2a582; }
.tr-split { grid-template-columns: 1fr 1fr; }
.tr-split ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }

/* Principles */
.principles { padding: 110px 0; }
.pr-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.pr-grid h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 720; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-list li { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.pr-list b { font-size: 16px; }
.pr-list span { color: var(--muted); font-size: 14.5px; }
.roadmap { margin-top: 30px; padding: 22px 24px; border-radius: 16px; border: 1px dashed #cfc6b4; display: grid; gap: 8px; color: var(--ink-2); }

/* Final CTA + footer */
.final { padding: 0 0 110px; }
.final-in { border-radius: 28px; background: var(--terra); color: #fff; padding: 64px 48px; display: grid; justify-items: start; gap: 16px; }
.final h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 740; }
.final p { font-size: 18px; color: #fbe5da; margin-bottom: 10px; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; }
.foot nav { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.foot nav a:hover { color: var(--ink); }
.foot .muted { grid-column: 1 / -1; font-size: 13px; }

/* Reveal on scroll (only when JS is running; content stays visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 85, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 122, 85, 0); } }
@keyframes swap { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1180px) {
  .sw { grid-template-columns: 260px minmax(0, 1fr); }
  .sw-info { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; }
  .steps, .ex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 34px; }
  .eng-grid, .tr-grid, .pr-grid { grid-template-columns: 1fr; }
  .flow-rail { grid-template-columns: 1fr; }
  .arrow { justify-self: center; width: 2px; height: 18px; }
  .arrow::after { right: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #cfc6b4; border-bottom: 0; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-cta .link { display: none; }
  .nav-toggle { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 220ms var(--ease); }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .sw { grid-template-columns: 1fr; }
  .sw-list { grid-auto-flow: column; grid-auto-columns: 230px; max-height: none; overflow-x: auto; padding-bottom: 6px; }
  .sw-stage { min-height: 0; }
  .sw-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .phone-hero { width: 280px; height: 586px; }
  .phone-sw { width: 280px; height: 586px; }
  .phone-sw.is-landscape { width: min(100%, 520px); height: 250px; }
  .steps, .ex-grid, .pr-list, .tr-split { grid-template-columns: 1fr; }
  .engines, .showcase, .workflow, .exports, .tracking, .principles { padding: 76px 0; }
  .eng-card { padding: 24px; }
  .final-in { padding: 44px 26px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .nav-cta .btn-ink { height: 38px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }

/* ── v3: vivid studio finish ── */
body { background: var(--paper); }
.kicker { color: var(--terra-ink); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 18px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--terra) 0 33%, var(--amber) 33% 66%, var(--cobalt) 66%); }
.sec-head h2 { font-weight: 800; letter-spacing: -0.035em; }

/* Buttons: crisp depth */
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 18px -10px rgba(13,17,33,.6); }
.btn-ink:hover { background: #1c2238; transform: translateY(-1px); }
.btn-terra { background: linear-gradient(180deg, #ff6d4c, var(--terra) 60%, #f04b27); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 -2px 0 rgba(0,0,0,.1) inset, 0 14px 28px -12px rgba(255,90,54,.75); }
.btn-terra:hover { background: linear-gradient(180deg, #ff7a5c, #ff5f3c 60%, #ea4320); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 18px 32px -12px rgba(255,90,54,.8); }
.btn-line { border-color: #d7d5df; background: #fff; box-shadow: 0 1px 2px rgba(13,17,33,.05); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-paper { background: #fff; box-shadow: 0 12px 26px -12px rgba(0,0,0,.4); }

/* Nav */
.nav { background: rgba(251,250,247,.92); }
.nav.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(13,17,33,.4); border-bottom-color: transparent; }
.logo { color: var(--terra); }
.nav-links a:hover, .nav-links a.is-on { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 60px 0 70px; background:
  linear-gradient(180deg, rgba(255,255,255,0) 60%, var(--paper)),
  linear-gradient(90deg, rgba(13,17,33,.035) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(0deg, rgba(13,17,33,.035) 1px, transparent 1px) 0 0 / 44px 44px, #fff; }
.hero h1 { font-weight: 850; letter-spacing: -0.045em; }
.accent-word { background: linear-gradient(90deg, var(--terra), #ff8a1e 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede b { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255,178,30,.38) 62%); }
.eng { border: 0; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(13,17,33,.3); }
.eng:hover { box-shadow: 0 0 0 1px #c9c7d3, 0 10px 20px -12px rgba(13,17,33,.35); transform: translateY(-1px); }
.eng.is-on { box-shadow: 0 0 0 2px var(--ink), 0 16px 28px -16px rgba(13,17,33,.55); }
.eng-dot-game { background: linear-gradient(150deg, #4a72ff, var(--cobalt)); }
.eng-dot-product { background: linear-gradient(150deg, #ff7a5c, var(--terra)); }
.facts li::before { content: ''; display: inline-block; vertical-align: 1px; margin-right: 8px; width: 8px; height: 8px; border-radius: 3px; background: var(--terra); }
.facts li:nth-child(2)::before { background: var(--cobalt); }
.facts li:nth-child(3)::before { background: var(--emerald); }
.hero-stage { min-height: 740px; align-content: center; }
.tiles i { position: absolute; display: block; border-radius: 28%; box-shadow: inset 0 -10px 18px rgba(0,0,0,.14), inset 0 8px 14px rgba(255,255,255,.35), 0 24px 40px -22px rgba(13,17,33,.55); animation: drift 9s ease-in-out infinite; }
.tiles .t1 { width: 210px; height: 210px; background: var(--terra); right: 2%; top: 6%; transform: rotate(12deg); }
.tiles .t2 { width: 150px; height: 150px; background: var(--cobalt); left: 4%; bottom: 14%; transform: rotate(-10deg); animation-delay: -2s; }
.tiles .t3 { width: 86px; height: 86px; background: var(--amber); left: 10%; top: 10%; border-radius: 50%; animation-delay: -4s; }
.tiles .t4 { width: 70px; height: 70px; background: var(--emerald); right: 6%; bottom: 12%; transform: rotate(20deg); animation-delay: -1s; }
.tiles .t5 { width: 44px; height: 44px; background: var(--pink); right: 30%; top: 0; border-radius: 50%; animation-delay: -3s; }
.tiles .t6 { width: 54px; height: 54px; background: var(--teal); left: 26%; bottom: 2%; transform: rotate(-24deg); animation-delay: -5s; }
.hero-cap { border: 0; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(13,17,33,.35); font-weight: 560; z-index: 2; }
.phone { background: linear-gradient(160deg, #262a36, #0b0d14 40%); box-shadow: 0 0 0 1.5px #000, inset 0 0 0 2px #3c4152, inset 0 0 0 4px #101218, 0 60px 100px -40px rgba(13,17,33,.65), 0 30px 50px -30px rgba(13,17,33,.5); }
.phone::before { background: #07080c; }
.phone-screen, .phone iframe { background: #fff; }

/* Wall of demos */
.wall { padding: 20px 0 96px; overflow: hidden; background: var(--paper); }
.wall-k { text-align: center; color: var(--muted); font-weight: 560; margin-bottom: 26px; font-size: 15px; }
.wall-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall-row + .wall-row { margin-top: 18px; }
.wall-track { display: flex; gap: 18px; width: max-content; padding: 10px 0 18px; animation: marquee 60s linear infinite; }
.wall-row.is-rev .wall-track { animation-direction: reverse; animation-duration: 70s; }
.wall-row:hover .wall-track { animation-play-state: paused; }
.wall-card { display: grid; gap: 10px; width: 168px; text-decoration: none; color: var(--ink); transition: transform 300ms var(--spring); }
.wall-card:hover { transform: translateY(-6px) rotate(-1deg); }
.wall-shot { display: block; height: 252px; border-radius: 22px; padding: 5px; background: var(--c); box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--c) 80%, #000), inset 0 0 0 1px rgba(255,255,255,.25); }
.wall-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; background: #fff; }
.wall-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; padding-left: 4px; }
.wall-name i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* Engines */
.engines { background: #fff; border: 0; }
.eng-card { position: relative; overflow: hidden; padding: 36px; box-shadow: 0 30px 60px -36px rgba(13,17,33,.6); transition: transform 360ms var(--spring); }
.eng-card:hover { transform: translateY(-4px); }
.eng-card-game { background: linear-gradient(155deg, #2b55ff 0%, #1a3be0 55%, #142fb8 100%); color: #fff; }
.eng-card-game p { color: #d9e1ff; }
.eng-card-product { background: linear-gradient(155deg, #ff6e4b 0%, #ff5a36 50%, #ef4520 100%); color: #fff; }
.eng-card-product p { color: #fff0ea; }
.eng-card-head .badge { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.eng-card .count { color: #fff; opacity: .85; }
.eng-card-game .chips a, .eng-card-product .chips a { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 600; }
.eng-card-game .chips a:hover, .eng-card-product .chips a:hover { background: #fff; color: var(--ink); }
.fan { position: relative; height: 170px; margin: 4px 0 6px; }
.fan-card { position: absolute; top: 6px; width: 104px; height: 156px; border-radius: 18px; padding: 4px; background: #fff; box-shadow: 0 18px 30px -14px rgba(0,0,0,.45); transition: transform 420ms var(--spring); }
.fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; }
.fan-card:nth-child(1) { left: 0; transform: rotate(-8deg); }
.fan-card:nth-child(2) { left: 84px; top: 0; z-index: 2; }
.fan-card:nth-child(3) { left: 168px; transform: rotate(8deg); }
.eng-card:hover .fan-card:nth-child(1) { transform: rotate(-13deg) translate(-8px, 4px); }
.eng-card:hover .fan-card:nth-child(2) { transform: translateY(-8px); }
.eng-card:hover .fan-card:nth-child(3) { transform: rotate(13deg) translate(8px, 4px); }

/* Showcase */
.showcase { background: var(--paper); }
.seg { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.seg-btn.is-on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(13,17,33,.6); }
.sw-list { grid-template-columns: 1fr 1fr; gap: 10px; max-height: 700px; padding: 4px; }
.sw-item { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; border-radius: 18px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line); }
.sw-item:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, var(--line)), 0 14px 24px -16px rgba(13,17,33,.45); }
.sw-item.is-on { background: #fff; box-shadow: 0 0 0 2.5px var(--c), 0 16px 28px -16px color-mix(in srgb, var(--c) 70%, #000); }
.sw-thumb { display: block; height: 128px; border-radius: 13px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #fff); padding: 3px; }
.sw-item img { width: 100%; height: 100%; border-radius: 11px; border: 0; object-fit: cover; object-position: top; }
.sw-txt { padding: 0 4px; }
.sw-item b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.sw-item b::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.sw-item small { font-size: 12px; }
.sw-stage { position: relative; }
.sw-stage::before { content: ''; position: absolute; z-index: 0; top: 70px; width: 330px; height: 560px; border-radius: 60px; background: var(--sw-c, var(--cobalt)); transform: rotate(-6deg); opacity: .95; transition: background 500ms var(--ease); box-shadow: inset 0 -20px 40px rgba(0,0,0,.12); }
.sw-stage > * { position: relative; z-index: 1; }
.sw-stage.is-landscape-stage::before { width: 580px; height: 300px; top: 90px; }
.tool { border: 0; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(13,17,33,.25); }
.tool[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sw-info { border: 0; box-shadow: 0 0 0 1px var(--line), 0 26px 50px -32px rgba(13,17,33,.5); border-top: 6px solid var(--sw-c, var(--cobalt)); }
.sw-note { background: color-mix(in srgb, var(--sw-c, var(--cobalt)) 12%, #fff); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--sw-c, var(--cobalt)); }
.sw-note b { color: var(--ink); }

/* Workflow */
.workflow { background: var(--slate); }
.sec-head-light .kicker { color: #ffb39e; }
.step { background: var(--slate-2); border: 1px solid #252d4a; }
.step::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--sc); }
.step-1 { --sc: var(--terra); } .step-2 { --sc: var(--amber); } .step-3 { --sc: var(--emerald); } .step-4 { --sc: #5b82ff; }
.step-n { color: var(--sc); }
.step:hover { border-color: var(--sc); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--sc) 70%, #000); }
.mini { background: #0b0f1e; border-color: #222a45; }
.m-pick i.on { background: var(--terra); }
.d4 { border-color: var(--amber) !important; }
.mini-export span:nth-child(1) { background: rgba(255,90,54,.22); color: #ffc2b2; }
.mini-export span:nth-child(2) { background: rgba(255,178,30,.2); color: #ffe0a3; }
.mini-export span:nth-child(3) { background: rgba(35,80,255,.3); color: #c9d5ff; }
.mini-export span:nth-child(4) { background: rgba(15,178,122,.24); color: #b0f0d6; }
.mini-versions em.ok { color: #4fe0a8; }

/* Exports */
.exports { background: #fff; }
.ex { position: relative; overflow: hidden; border: 0; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -20px rgba(13,17,33,.35); }
.ex::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.ex:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, var(--line)), 0 24px 44px -26px color-mix(in srgb, var(--c) 60%, #000); }
.ex-size { background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); }
.ex-checks li { background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 540; }
.ex-checks li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Tracking */
.tracking { background: var(--paper); border: 0; }
.node { background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(13,17,33,.3); }
.node-click { background: var(--cobalt-soft); box-shadow: 0 0 0 1.5px #b6c6ff; }
.node-click .node-k { color: var(--cobalt-ink); }
.node-sale { background: #dcf7ec; box-shadow: 0 0 0 1.5px #96e2c2; }
.node-sale .node-k { color: #08734e; }
.tr-card { background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(13,17,33,.4); }
.url { background: var(--slate); }
.url mark { color: var(--amber); }

/* Principles */
.principles { background: #fff; }
.pr-list li { border: 0; box-shadow: 0 0 0 1px var(--line); position: relative; padding-left: 52px; transition: transform 260ms var(--spring), box-shadow 260ms var(--ease); }
.pr-list li:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -22px rgba(13,17,33,.4); }
.pr-list li::before { content: ''; position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; border-radius: 7px; background: var(--pc, var(--terra)); }
.pr-list li:nth-child(2) { --pc: var(--cobalt); } .pr-list li:nth-child(3) { --pc: var(--emerald); } .pr-list li:nth-child(4) { --pc: var(--amber); } .pr-list li:nth-child(5) { --pc: var(--pink); } .pr-list li:nth-child(6) { --pc: var(--teal); }
.roadmap { border-color: #d7d5df; background: var(--paper); }

/* Final CTA */
.final { background: #fff; }
.final-in { position: relative; overflow: hidden; background: linear-gradient(140deg, #ff6a45, var(--terra) 45%, #e9431f); box-shadow: 0 40px 80px -40px rgba(233,67,31,.7); }
.final-in > *:not(.final-tiles) { position: relative; z-index: 1; }
.final-tiles i { position: absolute; display: block; border-radius: 28%; box-shadow: inset 0 -10px 18px rgba(0,0,0,.15), inset 0 8px 14px rgba(255,255,255,.3); animation: drift 10s ease-in-out infinite; }
.final-tiles i:nth-child(1) { width: 180px; height: 180px; right: 6%; top: -40px; background: var(--amber); transform: rotate(14deg); }
.final-tiles i:nth-child(2) { width: 110px; height: 110px; right: 22%; bottom: -30px; background: var(--cobalt); transform: rotate(-12deg); animation-delay: -3s; }
.final-tiles i:nth-child(3) { width: 60px; height: 60px; right: 4%; bottom: 30px; background: var(--emerald); border-radius: 50%; animation-delay: -6s; }
.foot { background: #fff; }

@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1180px) { .sw-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .hero-stage { min-height: 0; } }
@media (max-width: 860px) {
  .sw-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; }
  .nav-links { background: #fff; }
  .nav-links a:hover, .nav-links a.is-on { background: var(--paper-2); color: var(--ink); }
}
@media (max-width: 640px) {
  .tiles .t1 { width: 150px; height: 150px; } .tiles .t2 { width: 110px; height: 110px; }
  .wall-card { width: 132px; } .wall-shot { height: 198px; }
  .sw-stage::before { width: 290px; height: 500px; }
  .fan-card { width: 86px; height: 130px; } .fan-card:nth-child(2) { left: 70px; } .fan-card:nth-child(3) { left: 140px; } .fan { height: 146px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-track { animation: none; }
  .wall-row { overflow-x: auto; }
  .tiles i, .final-tiles i { animation: none; }
}
[hidden] { display: none !important; }

/* Compatible ad networks (typography only) */
.net-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.net { position: relative; padding: 22px 20px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -20px rgba(13,17,33,.35); display: grid; gap: 12px; align-content: start; transition: transform 260ms var(--spring), box-shadow 260ms var(--ease); transition-delay: var(--d, 0ms); overflow: hidden; }
.net::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.net:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, var(--line)), 0 22px 40px -26px color-mix(in srgb, var(--c) 60%, #000); }
.net-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.net h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.net-flag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; white-space: nowrap; }
.net-flag-ok { background: #dcf7ec; color: #08734e; }
.net-flag-sunset { background: #ffe7df; color: #b23a17; }
.net-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.net-badges li { font: 600 12px/1.3 var(--font); padding: 5px 9px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); }
.net-badges small { color: var(--muted); font-weight: 500; }
.net-hook { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.net-hook code { color: var(--ink); font-weight: 600; font-size: 12px; text-align: right; word-break: break-all; }
.net-note { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 90ch; }
.aff-strip { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 6px; }
@media (max-width: 1180px) { .net-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .net-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .net-grid { grid-template-columns: 1fr; } }

/* ── v4: white Apple-style surfaces + five brand colours ──
   1 amber-orange · 2 pink-magenta · 3 bright blue · 4 teal-aqua · 5 purple-violet */
:root {
  --c1: #f08a3c; --c2: #ec4f8c; --c3: #2f6bff; --c4: #2fb5a8; --c5: #7b4ff0;
  --g1: linear-gradient(140deg, #f8c64a 0%, #ef6a35 100%);
  --g2: linear-gradient(140deg, #f04a62 0%, #ec5fa9 100%);
  --g3: linear-gradient(140deg, #5bb3ff 0%, #1f4dff 100%);
  --g4: linear-gradient(140deg, #7de8c4 0%, #3584b6 100%);
  --g5: linear-gradient(140deg, #b66ff3 0%, #5d31df 100%);
  --soft: #f7f8fa;
  --paper: #ffffff;
  --terra: var(--c1); --terra-ink: #c4561a; --cobalt: var(--c3); --emerald: var(--c4); --amber: #f6b23c; --pink: var(--c2); --teal: var(--c4);
  --tile-shine: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -10px 20px rgba(0,0,0,.08);
  --card-shadow: 0 1px 2px rgba(17,20,32,.04), 0 8px 24px -12px rgba(17,20,32,.14);
  --card-shadow-hover: 0 2px 4px rgba(17,20,32,.05), 0 22px 44px -18px rgba(17,20,32,.22);
}
body { background: #fff; }
.kicker { color: var(--ink-2); }
.kicker::before { width: 30px; background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80%); }

/* Buttons */
.btn-terra { background: var(--g1); box-shadow: var(--tile-shine), 0 12px 24px -12px rgba(239,106,53,.7); }
.btn-terra:hover { background: var(--g1); filter: brightness(1.04); box-shadow: var(--tile-shine), 0 16px 30px -12px rgba(239,106,53,.75); }
.logo { color: var(--c1); }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.accent-word { background: linear-gradient(90deg, #f4a33a, #ef6a35 45%, #ec4f8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede b { background: linear-gradient(transparent 62%, rgba(246,178,60,.35) 62%); }
.eng-dot-game { background: var(--g3); box-shadow: var(--tile-shine); }
.eng-dot-product { background: var(--g2); box-shadow: var(--tile-shine); }
.facts li::before { background: var(--c1); }
.facts li:nth-child(2)::before { background: var(--c3); }
.facts li:nth-child(3)::before { background: var(--c4); }
.tiles i { box-shadow: var(--tile-shine), 0 18px 34px -20px rgba(17,20,32,.35); border-radius: 30%; }
.tiles .t1 { background: var(--g1); }
.tiles .t2 { background: var(--g3); }
.tiles .t3 { background: var(--g4); border-radius: 32%; }
.tiles .t4 { background: var(--g2); }
.tiles .t5 { background: var(--g5); border-radius: 32%; }
.tiles .t6 { background: var(--g4); }

/* Wall + showcase surfaces */
.wall, .showcase, .tracking { background: var(--soft); }
.wall-shot { box-shadow: 0 16px 28px -18px rgba(17,20,32,.45); }

/* Engines: two colourful boxes on white */
.engines { background: #fff; }
.eng-card { border-radius: 30px; box-shadow: var(--tile-shine), 0 30px 60px -36px rgba(17,20,32,.5); }
.eng-card-game { background: var(--g3); }
.eng-card-product { background: var(--g2); }

/* Workflow: white section, Apple-style rounded cards */
.workflow { background: #fff; color: var(--ink); }
.workflow .sec-head h2 { color: var(--ink); }
.step { background: #fff; border: 0; border-radius: 28px; padding: 28px 24px 24px; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); }
.step::before { display: none; }
.step:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 0 0 1px #e6e8ef, var(--card-shadow-hover); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font: 800 15px var(--font); background: var(--sg); box-shadow: var(--tile-shine), 0 10px 18px -10px rgba(17,20,32,.4); }
.step-1 { --sg: var(--g1); } .step-2 { --sg: var(--g2); } .step-3 { --sg: var(--g3); } .step-4 { --sg: var(--g4); }
.step h3 { color: var(--ink); }
.step p { color: var(--muted); }
.mini { background: var(--soft); border: 0; border-radius: 18px; }
.m-line { background: #dfe2ea; }
.m-pick i { background: #e6e8ee; }
.m-pick i.on { background: var(--g1); }
.mini-devices .d { border-color: #b6bccb; }
.d4 { border-color: var(--c2) !important; }
.mini-versions span { color: var(--ink-2); }
.mini-versions em { color: var(--muted); }
.mini-versions em.ok { color: #13906e; font-weight: 650; }
.mini-export span { font-family: var(--font); color: #fff !important; box-shadow: var(--tile-shine); }
.mini-export span:nth-child(1) { background: var(--g1); } .mini-export span:nth-child(2) { background: var(--g2); }
.mini-export span:nth-child(3) { background: var(--g3); } .mini-export span:nth-child(4) { background: var(--g4); }

/* Ad network cards: simple, white, rounded, colourful icon tile */
.exports { background: #fff; }
.net-grid { gap: 16px; }
.net { border-radius: 26px; padding: 24px 22px 22px; gap: 10px; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); }
.net::before { display: none; }
.net:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px #e6e8ef, var(--card-shadow-hover); }
.net:active { transform: scale(0.98); }
.net-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; font: 800 20px var(--display); box-shadow: var(--tile-shine), 0 10px 18px -10px rgba(17,20,32,.4); background: var(--g1); }
.net:nth-child(5n+2) .net-ico { background: var(--g2); }
.net:nth-child(5n+3) .net-ico { background: var(--g3); }
.net:nth-child(5n+4) .net-ico { background: var(--g4); }
.net:nth-child(5n+5) .net-ico { background: var(--g5); }
.net h3 { font-size: 20px; margin-top: 4px; }
.net-who { font-size: 13.5px; color: var(--muted); line-height: 1.45; min-height: 2.9em; }
.net-badges li { background: var(--soft); border-radius: 999px; padding: 6px 11px; font-weight: 600; }
.net-badges li.net-closing { background: #ffe8ef; color: #b8245a; }
.net-note b { color: var(--ink); }
.ex-checks li { border-radius: 999px; }
.ex-checks li::before { background-color: var(--c4); }

/* Tracking: light boxes */
.node { border-radius: 22px; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); }
.node-click { background: #eef3ff; box-shadow: 0 0 0 1.5px #c9d8ff; }
.node-click .node-k { color: #1f4dff; }
.node-sale { background: #e9f8f5; box-shadow: 0 0 0 1.5px #b4e6dc; }
.node-sale .node-k { color: #1b7f74; }
.tr-card { border-radius: 26px; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); }
.tr-label { color: var(--c3); }
.tr-label-sale { color: #1b8f82; }
.url { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px #e6e8ef; }
.url mark { color: var(--c5); font-weight: 650; }
.aff-strip { background: var(--soft); border-radius: 22px; box-shadow: none; }

/* Principles + final */
.principles { background: var(--soft); }
.pr-list li { border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); }
.pr-list li::before { border-radius: 8px; background: var(--g1); box-shadow: var(--tile-shine); }
.pr-list li:nth-child(2)::before { background: var(--g2); } .pr-list li:nth-child(3)::before { background: var(--g3); }
.pr-list li:nth-child(4)::before { background: var(--g4); } .pr-list li:nth-child(5)::before { background: var(--g5); }
.pr-list li:nth-child(6)::before { background: var(--g1); }
.roadmap { background: #fff; border-radius: 22px; }
.final { background: var(--soft); }
.final-in { border-radius: 34px; background: var(--g5); box-shadow: var(--tile-shine), 0 40px 80px -40px rgba(93,49,223,.6); }
.final p { color: #efe7ff; }
.final-tiles i { box-shadow: var(--tile-shine); }
.final-tiles i:nth-child(1) { background: var(--g1); }
.final-tiles i:nth-child(2) { background: var(--g3); }
.final-tiles i:nth-child(3) { background: var(--g4); }
.foot { background: #fff; }
.sw-info { border-top: 0; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); border-radius: 26px; }
.sw-info::before { content: ''; display: block; height: 6px; border-radius: 6px; background: var(--sw-c, var(--c3)); margin: -6px 0 4px; }
.sw-item { border-radius: 20px; }
.eng, .tool, .seg { border-radius: 16px; }

/* ── v5 Tracking: simple steps + summary cards ── */
.tr-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.tr-step { background: #fff; border-radius: 26px; padding: 26px 22px 24px; display: grid; gap: 8px; align-content: start; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); transition: transform 300ms var(--spring), box-shadow 300ms var(--ease); }
.tr-step:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #e6e8ef, var(--card-shadow-hover); }
.tr-step:active, .tr-sum:active { transform: scale(0.985); }
.tr-step h3 { margin: 8px 0 0; font-size: 19px; color: var(--ink); }
.tr-step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tr-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font: 800 16px var(--font); box-shadow: var(--tile-shine), 0 10px 18px -10px rgba(17,20,32,.4); }
.tr-n1 { background: var(--g1); } .tr-n2 { background: var(--g2); } .tr-n3 { background: var(--g3); } .tr-n4 { background: var(--g4); }
.tr-grid { gap: 16px; }
.tr-sum { background: #fff; border-radius: 28px; padding: 30px 28px; display: grid; gap: 12px; align-content: start; box-shadow: 0 0 0 1px #eceef3, var(--card-shadow); transition: transform 300ms var(--spring), box-shadow 300ms var(--ease); }
.tr-sum:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #e6e8ef, var(--card-shadow-hover); }
.tr-sum h3 { margin: 4px 0 0; font-size: 22px; color: var(--ink); }
.tr-sum > p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.tr-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; box-shadow: var(--tile-shine), 0 10px 18px -10px rgba(17,20,32,.4); }
.tr-ico-link { background: var(--g5); } .tr-ico-vs { background: var(--g2); }
.tr-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-ticks li { background: var(--soft); border-radius: 999px; padding: 7px 13px 7px 30px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); position: relative; }
.tr-ticks li::before { content: ''; position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--g4); }
.tr-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-vs-col { border-radius: 20px; padding: 16px 16px 14px; color: #fff; box-shadow: var(--tile-shine); }
.tr-vs-col b { font-size: 16px; }
.tr-vs-col p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.92); }
.tr-vs-click { background: var(--g3); } .tr-vs-sale { background: var(--g4); }
.tr-foot { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) { .tr-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tr-steps, .tr-vs { grid-template-columns: 1fr; } .tr-sum { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .tr-step, .tr-sum { transition: none; } .tr-step:hover, .tr-sum:hover { transform: none; } }

/* ── v5 Modern edge-to-edge phone frame: no speaker/notch cut-out, slim bezel ── */
.phone { padding: 8px; border-radius: 46px; }
.phone::before { display: none; }
.phone-screen { border-radius: 38px; }

/* Premium badge + audience line */
.prem { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--g5); color: #fff; font: 800 9.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; font-style: normal; box-shadow: var(--tile-shine); }
.sw-for { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.sw-for span { color: var(--c5); }

/* ── v6 Showcase sidebar: no horizontal overflow, clean labels, smooth scroll ── */
.sw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.sw-list > li { min-width: 0; }
.sw-item { min-width: 0; }
.sw-txt { display: grid; gap: 3px; min-width: 0; }
.sw-txt .prem { justify-self: start; margin: 2px 0 0; }
.sw-item b { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
@media (max-width: 860px) {
  .sw-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44vw); overflow-x: auto; overflow-y: hidden; max-height: none; scroll-snap-type: x proximity; touch-action: pan-x pan-y; padding-bottom: 8px; }
  .sw-list > li { scroll-snap-align: start; }
}

/* ── v6 Live mascots (Wobnimo, MIT): one per section, tinted to the five site colours ── */
.showcase > .wrap, .workflow > .wrap, .exports > .wrap, .tracking > .wrap { position: relative; }
.mascot { position: absolute; top: -18px; right: 8px; width: 160px; height: 160px; z-index: 2; }
.mascot wobnimo-mascot { display: block; width: 160px; height: 160px; }
.mascot-note { position: absolute; right: 150px; top: 18px; width: 150px; text-align: right; transform: rotate(-7deg); font: 700 19px/1.15 "Bradley Hand", "Segoe Print", "Comic Sans MS", "Chalkboard SE", cursive; color: var(--note, var(--ink-2)); pointer-events: none; }
.m-showcase { --note: #e0741a; }
.m-workflow { --note: #2f5fe8; }
.m-exports { --note: #12a397; }
.m-tracking { --note: #d93f7e; }
.final-in { position: relative; }
.m-final { top: 50%; right: 48px; transform: translateY(-50%); width: 180px; height: 180px; }
.m-final wobnimo-mascot { width: 180px; height: 180px; }
.m-final .mascot-note { --note: #fff; right: 170px; top: 6px; }
@media (max-width: 1100px) { .mascot { width: 120px; height: 120px; } .mascot wobnimo-mascot { width: 120px; height: 120px; } .mascot-note { right: 112px; font-size: 16px; width: 120px; } }
@media (max-width: 860px) { .mascot:not(.m-final) { display: none; } .m-final { position: static; transform: none; margin: 12px auto 0; } .m-final .mascot-note { display: none; } }
.final-in .m-final { position: absolute; top: 50%; right: 64px; left: auto; transform: translateY(-50%); z-index: 2; margin: 0; }
@media (max-width: 860px) { .final-in .m-final { position: static; transform: none; margin: 8px auto 0; justify-self: center; } }
