/* pyrix.org · design system v2
   Full width (fluid margins, 12 columns), display type with tight tracking, hairlines instead of shadows,
   the real menu on glow stages, grain only where it adds depth. Brand: #06070A, Pyrix blue, cyan spark. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #06070a;
  --bg-2: #090b10;
  --surface: #0c0e13;
  --surface-2: #11141b;
  --surface-3: #171b24;
  --line: rgba(237, 241, 255, 0.08);
  --line-2: rgba(237, 241, 255, 0.14);
  --line-blue: rgba(41, 121, 255, 0.42);
  --text: #eef1f7;
  --text-2: #9aa3b5;
  --text-3: #636c7e;
  --blue: #2979ff;
  --blue-2: #4f8dff;
  --cyan: #4fc8ff;
  --green: #3ecf8e;
  --red: #ff6b6b;
  --amber: #f5b544;
  --discord: #5865f2;

  --m: clamp(16px, 4.2vw - 12px, 128px);
  --g: clamp(16px, 1.25vw + 6px, 40px);
  --sec: clamp(88px, 9vw, 200px);
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;

  --t-display: clamp(52px, 5.2vw + 8px, 160px);
  --t-h2: clamp(34px, 2.8vw + 8px, 96px);
  --t-h3: clamp(19px, 1vw + 8px, 34px);
  --t-lead: clamp(17px, 0.35vw + 12px, 22px);
  --t-body: clamp(15px, 0.2vw + 12px, 18px);

  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 450 var(--t-body) / 1.6 "Montserrat", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: rgba(41, 121, 255, 0.4); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.prose a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-color: var(--blue); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 14px; border-radius: var(--r-1); background: var(--blue); color: #fff; }
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.frame { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.section { padding-block: var(--sec); position: relative; }
.section + .section { padding-top: 0; }
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.grid-span { grid-column: 1 / -1; }

/* ---------- type ---------- */
.display { font-size: var(--t-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; }
.h2 { font-size: var(--t-h2); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; }
.h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: var(--t-lead); color: var(--text-2); line-height: 1.55; letter-spacing: -0.005em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 0.86em; }
.label { margin: 0 0 22px; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.label b { color: var(--cyan); font-weight: 500; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-2);
  font-weight: 650; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s, transform 0.14s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 28px -10px rgba(41, 121, 255, 0.7); }
.btn-primary:hover { background: var(--blue-2); }
.btn-line { background: rgba(255, 255, 255, 0.02); border-color: var(--line-2); }
.btn-line:hover { border-color: rgba(237, 241, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #6974f6; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-1); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font: 500 12.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--text-2); background: rgba(255, 255, 255, 0.02); max-width: 100%; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16); }
.tag { display: inline-block; flex: none; min-width: 74px; padding: 3px 8px; border-radius: 4px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; text-align: center; background: var(--surface-3); color: var(--text-2); }
.tag-new { background: rgba(41, 121, 255, 0.14); color: #8ab4ff; }
.tag-fixed { background: rgba(62, 207, 142, 0.12); color: var(--green); }
.tag-improved { background: rgba(79, 200, 255, 0.12); color: var(--cyan); }
.tag-removed, .tag-rewrote { background: rgba(255, 107, 107, 0.12); color: var(--red); }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s; }
.topbar.scrolled, .page .topbar { border-bottom-color: var(--line); background: rgba(6, 7, 10, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.topbar-in { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; view-transition-name: brand; }
.brand .mark { width: 26px; height: auto; }
.brand .wordmark { height: 24px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: clamp(8px, 2vw, 40px); }
.nav a { padding: 8px 14px; border-radius: var(--r-1); font-size: 14.5px; font-weight: 550; color: var(--text-2); transition: color 0.14s, background-color 0.14s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: var(--r-1); font-size: 13.5px; font-weight: 550; }
.nav-user img { width: 28px; height: 28px; border-radius: 5px; }
.nav-user:hover { border-color: var(--line-2); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 16px; height: 2px; background: var(--text); transition: transform 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- the spark line (from the loading intro) ---------- */
.spark { position: relative; height: 1px; background: var(--line-2); }
.spark-fill { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, rgba(41, 121, 255, 0), var(--blue) 30%); animation: spark-fill 1.7s 0.5s var(--ease) forwards; }
.spark-dot { position: absolute; left: 0; top: -13px; width: 13px; height: 13px; animation: spark-run 1.7s 0.5s var(--ease) forwards; view-transition-name: spark; }
.spark-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); transform-origin: 50% 100%; animation: spark-bounce 1.7s 0.5s linear forwards; }
.spark-dot::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(79, 200, 255, 0.35), transparent); }
@keyframes spark-fill { to { width: 64%; } }
@keyframes spark-run { 0%, 10% { left: 0; } 62%, 100% { left: calc(64% - 6.5px); } }
@keyframes spark-bounce {
  0% { transform: none; }
  10% { transform: translateY(2px) scale(1.25, 0.75); }
  36% { transform: translateY(-40px) scale(0.85, 1.2); }
  62% { transform: translateY(0) scale(1.3, 0.72); }
  76% { transform: translateY(-6px) scale(0.95, 1.05); }
  100% { transform: none; }
}

/* ---------- grain + backgrounds ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/img/noise.svg"); opacity: 0.05; mix-blend-mode: overlay; }
.gridlines { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(rgba(79, 200, 255, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(79, 200, 255, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%); }

/* ---------- stage: a menu capture on a glow ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 4% 4% 8%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(41, 121, 255, 0.34), transparent 78%),
    radial-gradient(closest-side at 80% 70%, rgba(79, 200, 255, 0.16), transparent 70%);
  filter: blur(70px);
}
.stage picture, .stage img { width: 100%; }
.stage img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(160, 190, 255, 0.25)); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 110px); padding-bottom: clamp(48px, 5vw, 100px); }
.hero-grid { align-items: center; row-gap: 56px; }
.hero-copy { grid-column: 1 / span 5; position: relative; z-index: 2; }
.hero-copy .display { margin: 26px 0 28px; font-size: clamp(46px, 4.2vw + 8px, 136px); }
.hero-copy .display span { color: var(--text-3); }
.hero-copy .lead { max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.hero-note { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--text-3); }
.hero-visual { grid-column: 6 / span 7; position: relative; }
.hero-visual > .stage { transform: perspective(2400px) rotateY(-5deg) rotateX(2deg); transform-origin: 60% 50%; }
.hero-layer { position: absolute; width: 21%; right: -1%; bottom: -13%; z-index: 3; }
.hero-layer::before { inset: 0; background: radial-gradient(closest-side, rgba(79, 200, 255, 0.4), transparent 75%); filter: blur(50px); }
.hero-line { margin-top: clamp(56px, 6vw, 110px); }

/* ---------- marquee (real changelog lines) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; padding: 22px 0; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
.marquee-item b { color: var(--cyan); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads + bento ---------- */
.section-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; margin-bottom: clamp(40px, 4vw, 80px); }
.section-head > div { grid-column: 1 / span 7; }
.section-head > p { grid-column: 9 / span 4; margin: 0; }
.bento { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: var(--g); }
.cell { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(22px, 2vw, 36px); display: flex; flex-direction: column; transition: border-color 0.2s; }
.cell:hover { border-color: var(--line-2); }
.cell h3 { margin-bottom: 10px; }
.cell p { color: var(--text-2); margin: 0; max-width: 44ch; }
.cell > .ico { width: 22px; height: 22px; color: var(--blue-2); margin-bottom: 20px; }
.cell-a { grid-column: span 7; grid-row: span 2; }
.cell-b { grid-column: span 5; grid-row: span 2; }
.cell-c, .cell-d, .cell-e { grid-column: span 4; }
.cell-media { margin-top: auto; padding-top: clamp(24px, 2.4vw, 44px); }
.cell-media .stage { margin-inline: auto; }
.media-fov .stage { width: min(100%, 560px); }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); margin-top: auto; padding-top: 22px; }
.stat b { display: block; font-size: clamp(30px, 2.4vw + 6px, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.stat span { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.code-chip { margin-top: auto; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-2); font: 500 13px/1.5 var(--mono); color: var(--cyan); word-break: break-all; background: rgba(79, 200, 255, 0.03); }

/* ---------- menu tour (tabs) ---------- */
.tour { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, 0.95fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 96px); align-items: center; }
.tour-side { display: flex; flex-direction: column; }
.tour-list { display: flex; flex-direction: column; gap: 4px; }
.tour-tab { display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; align-items: start; width: 100%; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--r-2); background: transparent; text-align: left; cursor: pointer; color: var(--text-2); transition: background-color 0.18s, border-color 0.18s, color 0.18s; }
.tour-tab .ico { margin-top: 2px; color: var(--text-3); transition: color 0.18s; }
.tour-tab strong { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-2); }
.tour-tab p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-3); display: none; }
.tour-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
.tour-tab[aria-selected="true"] strong { color: var(--text); }
.tour-tab[aria-selected="true"] .ico { color: var(--blue-2); }
.tour-tab[aria-selected="true"] p { display: block; }
.tour-progress { grid-column: 2; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.tour-tab[aria-selected="true"] .tour-progress { display: block; }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.tour.playing .tour-tab[aria-selected="true"] .tour-progress i { animation: progress 6500ms linear forwards; }
@keyframes progress { to { width: 100%; } }
.tour-pause { margin-top: 14px; align-self: flex-start; }
.tour-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.tour-stage > .stage { grid-area: 1 / 1; opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.tour-stage > .stage.on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- offer ---------- */
.offer { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.offer-copy { padding: clamp(28px, 3.4vw, 64px); }
.price-big { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 8px; }
.price-big b { font-size: clamp(56px, 4vw + 20px, 112px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; }
.price-big span { color: var(--text-2); font-size: 18px; }
.offer-media { position: relative; border-left: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 60%, rgba(41, 121, 255, 0.12), transparent 70%), var(--bg-2); padding: clamp(24px, 3vw, 56px); display: flex; align-items: center; justify-content: center; }
.offer-media .stage { width: min(100%, 360px); }
.checks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 13px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* ---------- updates ---------- */
.updates { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.update { padding: clamp(22px, 2vw, 32px); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.update header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; font: 500 12.5px/1.4 var(--mono); color: var(--text-3); }
.update header b { color: var(--text); font-weight: 600; }
.update h3 { font-size: 20px; letter-spacing: -0.02em; }
.change-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.change-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.95em; }

/* ---------- FAQ ---------- */
.faq-head { grid-column: 1 / span 4; }
.faq { grid-column: 5 / span 8; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: clamp(17px, 0.5vw + 13px, 22px); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--text-3); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 26px; max-width: 70ch; color: var(--text-2); }

/* ---------- final CTA ---------- */
.final { grid-column: 1 / -1; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 140px) clamp(24px, 4vw, 80px); border: 1px solid var(--line-2); border-radius: var(--r-3); background: radial-gradient(120% 140% at 85% 0%, rgba(41, 121, 255, 0.22), transparent 55%), var(--surface); display: grid; gap: 32px; justify-items: start; }
.final .display { font-size: clamp(44px, 4.2vw + 8px, 128px); max-width: 14ch; }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(56px, 7vw, 140px); padding-bottom: clamp(32px, 4vw, 72px); }
.page-head .display { font-size: clamp(46px, 4.4vw + 8px, 132px); margin: 18px 0 22px; max-width: 16ch; }

/* ---------- showcase page ---------- */
.fig { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; padding-block: clamp(40px, 5vw, 100px); border-top: 1px solid var(--line); }
.fig-copy { grid-column: 1 / span 4; }
.fig-copy .h2 { font-size: clamp(30px, 2vw + 10px, 64px); margin-bottom: 18px; }
.fig-media { grid-column: 5 / span 8; position: relative; }
.fig.flip .fig-copy { grid-column: 9 / span 4; grid-row: 1; }
.fig.flip .fig-media { grid-column: 1 / span 8; grid-row: 1; }
.fig-esp .fig-media { grid-column: 4 / span 9; }

/* ---------- shop ---------- */
.shop-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.products { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: var(--g); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease); }
.card:hover { border-color: var(--line-blue); transform: translateY(-3px); }
.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(100% 90% at 50% 100%, rgba(41, 121, 255, 0.14), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); }
.card-cover > .stage:not(.cover-layer) { position: absolute; inset: 10% 8% auto 8%; transition: transform 0.6s var(--ease); }
.card:hover .card-cover > .stage:not(.cover-layer) { transform: translateY(-6px) scale(1.015); }
.card-cover .cover-layer { position: absolute; width: 24%; right: 6%; bottom: 5%; z-index: 2; }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 3; flex-wrap: wrap; }
.card-badges .chip { background: rgba(6, 7, 10, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-body { display: grid; gap: 12px; padding: clamp(20px, 1.6vw, 28px); }
.card-body h2 { font-size: clamp(21px, 0.6vw + 14px, 28px); letter-spacing: -0.025em; }
.card-body p { margin: 0; color: var(--text-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.price span { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card-soon { border-style: dashed; background: transparent; justify-content: center; padding: clamp(24px, 2vw, 36px); gap: 14px; min-height: 320px; }
.card-soon:hover { transform: none; border-color: var(--line-2); }

/* ---------- product page ---------- */
.product { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.72fr); gap: clamp(28px, 3.5vw, 80px); align-items: start; }
.crumbs { display: flex; gap: 10px; align-items: center; font: 500 12.5px/1 var(--mono); color: var(--text-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.gallery-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-3); background: radial-gradient(90% 90% at 50% 60%, rgba(41, 121, 255, 0.1), transparent 70%), var(--bg-2); padding: clamp(18px, 3vw, 56px); }
.gallery-main > .stage { grid-area: 1 / 1; align-self: center; opacity: 0; transition: opacity 0.4s var(--ease); }
.gallery-main > .stage.on { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { padding: 8px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); cursor: pointer; display: grid; gap: 8px; text-align: left; transition: border-color 0.15s; }
.thumb picture { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.thumb span { font: 500 11.5px/1 var(--mono); color: var(--text-3); letter-spacing: 0.04em; }
.thumb[aria-current="true"] { border-color: var(--line-blue); }
.thumb[aria-current="true"] span { color: var(--text); }
.buybox { position: sticky; top: 96px; display: grid; gap: 22px; padding: clamp(22px, 2vw, 34px); border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface); }
.buybox h1 { font-size: clamp(28px, 1.4vw + 14px, 44px); letter-spacing: -0.035em; line-height: 1.05; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; }
.plans { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.plans legend { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.plan-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line-blue); border-radius: var(--r-2); background: rgba(41, 121, 255, 0.06); }
.plan-opt input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.plan-opt b { display: block; font-weight: 650; }
.plan-opt small { color: var(--text-2); font-size: 13px; }
.plan-opt .price { margin-left: auto; font-size: 20px; }
.buy-note { display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.buy-note div { display: flex; gap: 10px; align-items: flex-start; }
.buy-note .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--text-3); }
.specs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-top: clamp(56px, 6vw, 120px); }
.specs-feats { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.feat { padding: clamp(20px, 1.8vw, 30px); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.feat .ico { color: var(--blue-2); margin-bottom: 16px; }
.feat h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--text-2); font-size: 15px; }
.specs-side { grid-column: 10 / span 3; }
.dl { display: grid; margin: 0; border-top: 1px solid var(--line); }
.dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.dl dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- order review (drawer + page) ---------- */
.review { display: grid; gap: 18px; }
.review-row { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-thumb { width: 96px; flex: none; border-radius: var(--r-1); border: 1px solid var(--line); background: var(--bg-2); padding: 6px; }
.review-account { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2); }
.review-account img { width: 36px; height: 36px; border-radius: 6px; }
.review-lines { display: grid; gap: 10px; margin: 0; }
.review-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--text-2); }
.review-lines dd { margin: 0; text-align: right; }
.review-lines .total { padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: 17px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.review-small { font-size: 12.5px; color: var(--text-3); margin: 0; }
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(500px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
dialog.drawer::backdrop { background: rgba(3, 4, 6, 0.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.drawer[open] { animation: drawer-in 0.45s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-in { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 26px; overflow: auto; }
.drawer-close { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.checkout-wrap { grid-column: 4 / span 6; display: grid; gap: 22px; }
.notice { padding: 14px 18px; border: 1px solid rgba(41, 121, 255, 0.4); border-radius: var(--r-2); background: rgba(41, 121, 255, 0.08); font-size: 14.5px; }
.notice-err { border-color: rgba(255, 107, 107, 0.45); background: rgba(255, 107, 107, 0.08); }

/* ---------- auth / account ---------- */
.auth { min-height: calc(100svh - 72px); display: grid; place-items: center; padding-block: 48px; }
.auth-card { width: min(100%, 440px); padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface); display: grid; gap: 18px; text-align: center; }
.auth-card .mark { width: 40px; margin: 0 auto 4px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.03em; }
.profile { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile img { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--line-2); }
.profile .display { font-size: clamp(36px, 2.4vw + 14px, 72px); }
.profile-end { margin-left: auto; }
.panels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(32px, 4vw, 64px); }
.panel { padding: clamp(22px, 2vw, 32px); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.panel h2 { font-size: 20px; letter-spacing: -0.02em; }

/* ---------- changelog ---------- */
.releases { grid-column: 1 / -1; }
.release { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-block: 34px; border-top: 1px solid var(--line); }
.release-meta { grid-column: 1 / span 3; font: 500 13px/1.6 var(--mono); color: var(--text-3); }
.release-meta b { display: block; font-size: 20px; color: var(--text); font-family: "Montserrat", sans-serif; font-weight: 650; letter-spacing: -0.02em; }
.release-body { grid-column: 4 / span 8; }
.release-body h2 { font-size: clamp(20px, 0.6vw + 14px, 28px); letter-spacing: -0.02em; margin-bottom: 8px; }

/* ---------- legal ---------- */
.prose { grid-column: 1 / span 8; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 22px; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

/* ---------- footer ---------- */
.footer { margin-top: var(--sec); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { padding-block: clamp(48px, 5vw, 96px) 28px; row-gap: 40px; }
.footer-brand { grid-column: 1 / span 5; display: grid; gap: 18px; align-content: start; }
.footer-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.footer-col:first-of-type { grid-column: 7 / span 2; }
.footer-col h4 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.footer-legal p { margin: 0; max-width: 90ch; }
.footer-word { display: block; width: 100%; height: auto; margin-top: clamp(32px, 4vw, 64px); margin-bottom: calc(-1 * clamp(20px, 3vw, 60px)); opacity: 0.07; }

/* ---------- reveal on scroll (where supported) ---------- */
.capture .reveal { animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-copy { grid-column: 1 / span 6; }
  .hero-visual { grid-column: 7 / span 6; }
  .cell-a, .cell-b { grid-column: span 6; }
  .cell-c, .cell-d, .cell-e { grid-column: span 4; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-side { min-width: 0; }
  .tour-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .tour-tab { width: auto; flex: none; grid-template-columns: 20px auto; }
  .tour-tab p, .tour-tab[aria-selected="true"] p, .tour-tab .tour-progress { display: none !important; }
  .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .specs-feats { grid-column: 1 / -1; }
  .specs-side { grid-column: 1 / -1; margin-top: 40px; }
  .checkout-wrap { grid-column: 2 / span 10; }
}
@media (max-width: 900px) {
  .hero-copy, .hero-visual { grid-column: 1 / -1; }
  .hero-visual > .stage { transform: none; }
  .section-head > div, .section-head > p { grid-column: 1 / -1; }
  .section-head > p { margin-top: 18px; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: 1 / -1; grid-row: auto; }
  .offer { grid-template-columns: 1fr; }
  .offer-media { border-left: 0; border-top: 1px solid var(--line); }
  .updates { grid-template-columns: 1fr; }
  .faq-head, .faq { grid-column: 1 / -1; }
  .faq-head { margin-bottom: 24px; }
  .fig-copy, .fig-media, .fig.flip .fig-copy, .fig.flip .fig-media, .fig-esp .fig-media { grid-column: 1 / -1; grid-row: auto; }
  .fig-copy { margin-bottom: 28px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs-feats { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .release-meta, .release-body { grid-column: 1 / -1; }
  .release-meta { margin-bottom: 10px; }
  .prose { grid-column: 1 / -1; }
  .checkout-wrap { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type { grid-column: span 4; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; margin: 0; flex-direction: column; padding: 8px var(--m) 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 16px; }
  .hide-sm { display: none !important; }
  .nav-user span { display: none; }
  .nav-user { padding-right: 4px; }
  .change-list li { flex-direction: column; gap: 6px; }
  .footer-col, .footer-col:first-of-type { grid-column: span 6; }
  .card-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none !important; }
}
