/* Prototype start page: a pinned 3D stage that scrolling drives (next.js). */
.story { position: relative; height: 560vh; padding: 0; pointer-events: none; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(90% 70% at 68% 46%, #101a05 0%, #050704 42%, #000 78%); }
#pc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 38%, transparent 62%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 22%); }

/* Placed on whole pixels by next.js (centred vertically); a transform only while a text moves in or out, so it stays sharp. */
.ov { position: absolute; left: max(32px, calc((100vw - 1200px) / 2 + 32px)); top: 30%; width: min(520px, 42vw); opacity: 0; visibility: hidden; }
.ov-hero { width: min(640px, 48vw); }
.ov h1 { font-size: clamp(44px, 5.4vw, 86px); }
.ov .lead { margin-top: 22px; max-width: 500px; }
.ov .cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 13px var(--mono); color: var(--muted); background: rgba(0,0,0,.4); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hint { font: 13px var(--mono); color: var(--muted); }
.hint b { display: inline-block; color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.ov-big h2, .final-h { margin: 0; font-weight: 600; font-size: clamp(54px, 7.6vw, 124px); line-height: .92; letter-spacing: -0.06em; }
.ov-big p { margin: 20px 0 0; font-size: 19px; line-height: 1.5; color: #b9b9b9; max-width: 440px; }

.card { width: min(430px, 38vw); padding: 26px 26px 22px; border-radius: 20px; border: 1px solid rgba(212,255,58,.28); background: rgba(8,10,6,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 60px rgba(212,255,58,.07); }
.card .tag { margin: 0 0 14px; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0 0 12px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; }
.card p { margin: 0; color: #b5b5b5; font-size: 15.5px; line-height: 1.55; }
.card .fix { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--text); }
.card .fix b { color: var(--accent); font-weight: 600; }

/* The dot on the part and the line from it to the card */
.pin { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(212,255,58,.22), 0 0 26px 6px rgba(212,255,58,.55); opacity: 0; pointer-events: none; }
.wire { position: absolute; left: 0; top: 0; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(212,255,58,.9), rgba(212,255,58,.25)); opacity: 0; pointer-events: none; }
.rail { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.rail i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.proto-note { margin: 0; padding: 22px 32px; text-align: center; font: 13px var(--mono); color: var(--muted); border-top: 1px solid var(--line); }
.proto-note a { color: var(--text); text-decoration: underline; }

@media (max-width: 860px) {
  .story { height: 500vh; }
  .stage { background: radial-gradient(120% 60% at 50% 40%, #101a05 0%, #050704 45%, #000 80%); }
  .vignette { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 34%, transparent 56%); }
  .ov { left: 20px; right: 20px; width: auto; top: auto; bottom: 26px; transform: none; }
  .ov-hero:not(.ov-final) { top: 84px; bottom: auto; }
  .ov h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .ov .lead { font-size: 16px; margin-top: 16px; }
  .ov .cta { margin-top: 20px; }
  .ov-big h2, .final-h { font-size: clamp(48px, 15vw, 76px); }
  .ov-big p { font-size: 16px; margin-top: 12px; }
  .card { padding: 20px 20px 18px; border-radius: 18px; }
  .card h3 { font-size: 23px; }
  .card p { font-size: 14.5px; }
  .site-header .nav a:not(.btn) { display: none; }
}

/* No WebGL: the same texts as a normal page. */
.no3d .story { height: auto; }
.no3d .stage { position: static; height: auto; overflow: visible; padding: 72px 0 56px; background: none; }
.no3d #pc, .no3d .vignette, .no3d .pin, .no3d .wire, .no3d .rail, .no3d .hint { display: none; }
.no3d .ov { position: static; transform: none; opacity: 1; visibility: visible; width: auto; max-width: 720px; margin: 0 auto 44px; padding-left: 32px; padding-right: 32px; }
.no3d .card { padding: 26px; margin-left: 32px; margin-right: 32px; }

/* The real before/after test, below the 3D part */
.proof-sec .hero-proof { margin-top: 36px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 18px; }
.proof-sec .proof-note, .proof-sec .hero-review { grid-column: 1 / -1; }
.proof-sec .trust { margin-top: 30px; grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 28px; }
@media (max-width: 860px) {
  .proof-sec .hero-proof { grid-template-columns: 1fr; }
  .proof-sec .trust { grid-template-columns: 1fr 1fr; }
}

/* ============ Everything below the 3D part: the same energy ============ */
.nx { position: relative; border-left: 0; border-right: 0; max-width: none; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 40% at 85% 8%, rgba(212,255,58,.07), transparent 70%),
    radial-gradient(50% 30% at 10% 45%, rgba(212,255,58,.05), transparent 70%),
    radial-gradient(60% 40% at 90% 85%, rgba(212,255,58,.06), transparent 70%),
    #000; }
.nx::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.nx .rule { border-top-color: rgba(255,255,255,.06); }
.nx-glow { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(212,255,58,.10), transparent 62%); opacity: 0; transition: opacity .4s; }
.nx > section, .nx > div:not(.nx-glow) { position: relative; z-index: 1; }

/* Headings: huge, set word by word as they come into view */
.nx h2 { font-size: clamp(46px, 7.4vw, 120px); line-height: .92; letter-spacing: -0.06em; font-weight: 600; max-width: 14ch; }
.nx h2 .dim { color: #5a5a5a; }
/* Each word's mask is a bit larger than the word on every side (the negative margins keep the layout unchanged): with
   the headings' tight letter spacing, the last letter used to be cut off on the right. */
.nx .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .08em .08em; margin: -.1em -.08em -.08em; }
.nx .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.nx .in .w > span { transform: none; }
.nx .label { font: 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.nx .label b { font: 600 15px var(--mono); color: #000; background: var(--accent); padding: 4px 9px; border-radius: 6px; box-shadow: 0 0 24px rgba(212,255,58,.45); }
.nx .label::after { content: ""; flex: 0 1 140px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.nx .intro, .nx .plan-intro { font-size: 20px; max-width: 560px; color: #a5a5a5; }

/* Anything marked .rv slides in when it comes into view */
.nx .rv { opacity: 0; transform: translateY(46px); filter: blur(8px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s; transition-delay: calc(var(--i, 0) * 70ms); }
.nx .rv.in { opacity: 1; transform: none; filter: none; }

/* Cards with a light that follows the mouse */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,58,.14), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,58,.95), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* Proof */
.proof-sec .proof-shot { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.proof-sec .proof-shot:hover { transform: scale(1.02); }
.proof-sec .proof-delta b { font-size: clamp(54px, 6vw, 96px); }
.proof-sec .trust li { font-size: 14px; }

/* Ticker of real setting names */
.nx-ticker { overflow: hidden; border-block: 1px solid rgba(212,255,58,.25); background: linear-gradient(90deg, #000, rgba(212,255,58,.06), #000); transform: rotate(-1.6deg) scale(1.04); margin: 30px 0 10px; }
.nx-ticker-track { display: flex; width: max-content; gap: 28px; padding: 22px 0; animation: nx-tick 38s linear infinite; }
.nx-ticker span { font: 600 clamp(26px, 3vw, 44px)/1 var(--sans); letter-spacing: -0.03em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.nx-ticker span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.nx-ticker i { font-style: normal; color: var(--accent); font-size: 26px; align-self: center; text-shadow: 0 0 14px var(--accent); }
@keyframes nx-tick { to { transform: translateX(-50%); } }

/* Numbers */
.nx .specs { border: 0; gap: 0; }
.nx .spec { border: 0 !important; padding: 56px 32px; }
.nx .spec b { font-size: clamp(64px, 8vw, 132px); line-height: .9; letter-spacing: -0.07em; color: var(--text); text-shadow: 0 0 60px rgba(212,255,58,.18); }
.nx .spec:nth-child(odd) b { color: var(--accent); }
.nx .spec span { font: 13px/1.5 var(--mono); letter-spacing: .04em; color: #8a8a8a; max-width: 22ch; display: block; margin-top: 14px; }

/* Measure: three metric cards, each with a frame-time line that draws itself */
.nx .metrics { gap: 18px; border: 0; margin-top: 56px; }
.nx .metric { border: 1px solid rgba(255,255,255,.08) !important; border-radius: 22px; padding: 30px 28px 26px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); overflow: hidden; }
.nx .metric h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.04em; }
.nx .metric svg { display: block; width: 100%; height: 86px; margin: 4px 0 18px; overflow: visible; }
.nx .metric svg path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212,255,58,.7)); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.16,1,.3,1) .2s; }
.nx .metric.in svg path { stroke-dashoffset: 0; }
.nx .metric svg .spike { stroke: #ff5a5a; filter: drop-shadow(0 0 6px rgba(255,90,90,.7)); }

/* Features: a bento grid */
.nx .index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; margin-top: 56px; }
.nx .index .row { display: block; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 22px; padding: 30px 28px 28px; min-height: 230px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.005)); transition: transform .5s cubic-bezier(.16,1,.3,1), background .3s; }
.nx .index .row:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(212,255,58,.07), rgba(255,255,255,.01)); }
.nx .index .row:nth-child(1), .nx .index .row:nth-child(4) { grid-column: span 2; }
.nx .index .row .n { display: block; font: 600 64px/1 var(--sans); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(212,255,58,.55); margin-bottom: 26px; }
.nx .index .row h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; margin: 0 0 10px; }
.nx .index .row:nth-child(1) h3, .nx .index .row:nth-child(4) h3 { font-size: clamp(30px, 3vw, 46px); }
.nx .index .row p { color: #9a9a9a; font-size: 16px; }

/* How it works: a line that fills as you scroll */
.nx .steps { position: relative; gap: 16px; }
.nx .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.08); }
.nx .steps::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--fill, 0) * 100%); background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.nx .step { border: 1px solid rgba(255,255,255,.08); border-radius: 22px; margin-top: 30px; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.nx .step:not(:last-child)::after { display: none; }
.nx .step b { font-size: 72px; color: transparent; -webkit-text-stroke: 1.5px var(--accent); text-shadow: none; }
.nx .step h3 { font-size: 28px; }

/* Pricing: tilting cards, Premium with a running border */
.nx .plans { perspective: 1400px; gap: 20px; }
.nx .plan { border-radius: 28px; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s; will-change: auto; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.nx .plan .amount { font-size: clamp(64px, 6vw, 96px); letter-spacing: -0.06em; }
.nx .plan-pro { border: 0 !important; background: linear-gradient(#070905, #070905) padding-box, conic-gradient(from var(--ang, 0deg), rgba(212,255,58,.15), var(--accent), rgba(212,255,58,.15) 40%, rgba(212,255,58,.15)) border-box; border: 1.5px solid transparent !important; box-shadow: 0 0 120px rgba(212,255,58,.12); animation: nx-spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes nx-spin { to { --ang: 360deg; } }
.nx .cmp { border-radius: 24px; overflow: hidden; }
.nx .cmp-row { transition: background .2s; }
.nx .cmp-row:hover { background: rgba(212,255,58,.04); }

/* Guides */
.nx .doc-card { border-radius: 22px; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nx .doc-card:hover { transform: translateY(-6px) rotate(-.4deg); }

/* FAQ */
.nx .faq details { border-color: rgba(255,255,255,.08); transition: background .3s; }
.nx .faq details[open] { background: rgba(212,255,58,.03); }
.nx .faq summary { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.02em; }

/* Final: a huge running line behind the last call */
.nx-final { position: relative; overflow: hidden; padding: 180px 0 160px !important; }
.nx-mega { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-4deg); pointer-events: none; z-index: 0; }
.nx-mega-track { display: flex; width: max-content; animation: nx-tick 28s linear infinite; }
.nx-mega span { font: 800 clamp(120px, 19vw, 300px)/1 var(--sans); letter-spacing: -0.07em; text-transform: uppercase; white-space: nowrap; padding-right: .4em; color: transparent; -webkit-text-stroke: 1.5px rgba(212,255,58,.18); }
.nx-final .wrap { position: relative; z-index: 1; text-align: center; }
.nx-final h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(54px, 8.6vw, 150px); }
.nx-final .cta { justify-content: center; margin-top: 46px; }
.nx-final .btn:first-child { height: 64px; padding: 0 36px; font-size: 18px; background: var(--accent); box-shadow: 0 0 60px rgba(212,255,58,.45); }
.nx .btn { transition: transform .25s cubic-bezier(.16,1,.3,1), background .15s, box-shadow .3s; }

@media (max-width: 860px) {
  .nx h2 { font-size: clamp(40px, 12vw, 64px); }
  .nx .index { grid-template-columns: 1fr; }
  .nx .index .row:nth-child(1), .nx .index .row:nth-child(4) { grid-column: auto; }
  .nx .index .row { min-height: 0; }
  .nx .spec { padding: 34px 20px; }
  .nx-final { padding: 120px 0 110px !important; }
  .nx-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nx .rv, .nx .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .nx-ticker-track, .nx-mega-track, .nx .plan-pro { animation: none; }
}

/* fixes: the before/after pair side by side at the same size, numbers in the display font, no leftover pills */
.proof-sec .hero-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 22px; position: relative; }
.proof-sec .hero-proof .proof-shot { width: auto !important; max-width: none !important; margin: 0 !important; transform: none; position: relative !important; inset: auto !important; }
.proof-sec .hero-proof .proof-shot.after { grid-column: 2; grid-row: 1; }
.proof-sec .hero-proof .proof-shot:not(.after) { grid-column: 1; grid-row: 1; }
.proof-sec .hero-proof .proof-delta { position: absolute; left: 50%; right: auto; top: calc(50% - 30px); transform: translate(-50%, -50%); z-index: 3; padding: 16px 22px; border-radius: 22px; background: rgba(0,0,0,.82); border: 1px solid rgba(212,255,58,.5); box-shadow: 0 0 60px rgba(212,255,58,.25); backdrop-filter: blur(10px); flex-direction: column; gap: 4px; }
.proof-sec .proof-shot figcaption strong { font-size: 40px; }
.nx .spec b { font: 600 clamp(64px, 8vw, 132px)/.9 var(--sans); }
.nx .index .row .n { align-self: auto; padding: 0; border: 0; border-radius: 0; background: none; font: 600 64px/1 var(--sans); color: transparent; }
@media (max-width: 860px) {
  .proof-sec .hero-proof { grid-template-columns: 1fr !important; }
  .proof-sec .hero-proof .proof-shot.after { grid-column: 1; grid-row: 3; }
  .proof-sec .hero-proof .proof-shot:not(.after) { grid-column: 1; grid-row: 1; }
  .proof-sec .hero-proof .proof-delta { position: relative; left: auto; top: auto; transform: none; grid-row: 2; justify-self: center; flex-direction: row; }
}
/* Side by side: the +10% sits on the seam, centred on the videos (not on the whole block with the note and quote below,
   which put it on top of "After 632"). Half a video's height: half of (column width × 9/16). The After caption moves
   to the right edge, away from the seam; the game's FPS counter stays visible top left. */
@media (min-width: 861px) {
  .proof-sec .hero-proof { container-type: inline-size; }
  .proof-sec .hero-proof .proof-delta { top: calc((100cqw - 22px) * 9 / 64); }
  .proof-sec .proof-shot.after figcaption { left: auto; right: 14px; }
}
.nx .specs { max-width: var(--max); margin: 0 auto; padding: 40px 0; } .nx .spec:first-child { padding-left: 32px; }

/* The 3D stage stays fixed behind the whole page; the story above is only the scroll track for it, and everything
   after it scrolls over the PC. */
.has3d .stage { position: fixed; inset: 0; z-index: 0; }
.stage .ov, .stage .ov * { pointer-events: auto; }
.has3d .nx { z-index: 2; background-color: transparent;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.5) 340px, rgba(0,0,0,.62) 100%),
    radial-gradient(60% 40% at 85% 8%, rgba(212,255,58,.07), transparent 70%),
    radial-gradient(50% 30% at 10% 45%, rgba(212,255,58,.05), transparent 70%),
    radial-gradient(60% 40% at 90% 85%, rgba(212,255,58,.06), transparent 70%); }
.has3d .site-footer, .has3d .proto-note { position: relative; z-index: 2; background: #000; }
#pc { transition: opacity .2s linear; }

/* The page doesn't wait for the 3D part to end: the next section rises over the PC while it puts itself back
   together (the last quarter of the story's scroll track). */
.has3d .nx { margin-top: -128vh; }
.has3d .proof-sec { padding-top: 4vh; }
@media (max-width: 860px) { .has3d .nx { margin-top: -110vh; } .has3d .proof-sec { padding-top: 4vh; } }
/* The phone/Mac hint (site.js) sits over the 3D scene: solid enough to read on top of it. */
.ov .device-note { background: rgba(8, 9, 5, 0.92); backdrop-filter: blur(8px); }
