/* VELOX — v8 premium */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --black:   #020204;
  --bg:      #030305;
  --surf:    #0a0a0e;
  --surf-2:  #111116;
  --surf-3:  #181820;
  --line:    rgba(255,255,255,0.08);
  --line-mid:rgba(255,255,255,0.16);
  --line-hi: rgba(255,255,255,0.34);
  --ink:     #f7f7fa;
  --ink-2:   #8f8fa8;
  --ink-3:   #4a4a5e;
  --display: 'Unbounded', system-ui, sans-serif;
  --body:    'Bricolage Grotesque', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --r:       14px;
  --r-lg:    20px;
  --r-xl:    28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* ══ ANIMATED BACKGROUND ══ */
/* Slowly drifting radial spotlights */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60vw 50vh at 20% 20%, rgba(255,255,255,0.028) 0%, transparent 70%),
    radial-gradient(ellipse 50vw 40vh at 80% 80%, rgba(255,255,255,0.022) 0%, transparent 70%),
    radial-gradient(ellipse 40vw 30vh at 60% 10%, rgba(255,255,255,0.016) 0%, transparent 70%);
  animation: bg-drift 18s ease-in-out infinite alternate;
}
/* Animated grid */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pulse 6s ease-in-out infinite;
}
@keyframes bg-drift {
  0%   { background-position: 0% 0%, 100% 100%, 60% 0%; }
  33%  { background-position: 5% 10%, 90% 85%, 55% 15%; }
  66%  { background-position: -5% 5%, 95% 90%, 65% -5%; }
  100% { background-position: 3% -5%, 85% 95%, 50% 10%; }
}
@keyframes grid-pulse {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Keep all content above the background */
.wrap, nav, .hero-inner, .section, footer, .scene-interlude, .objects-interlude, .legacy-section {
  position: relative; z-index: 1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(255,255,255,0.14); }

/* ── Noise grain ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-1%, 1.5%); }
  50% { transform: translate(1.8%,-1%); }
  75% { transform: translate(-1.5%,0.8%); }
}

/* ── Ambient orbs — absolute inside hero ── */
.bg-orbs {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-orbs::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  top: -380px; left: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.026) 0%, transparent 58%);
}
.bg-orbs::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  bottom: -280px; right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.018) 0%, transparent 58%);
}

/* ── Dot grid — absolute inside hero ── */
.grid-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 0%, transparent 70%);
}

/* ── Spotlight — absolute inside hero ── */
.spotlight {
  position: fixed;
  top: -280px; left: -280px;
  width: 560px; height: 560px;
  border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 65%);
  will-change: transform;
}

/* ── Layout ── */
/* Nav wrapper sits above hero */
.nav-wrap {
  position: relative; z-index: 100;
}
.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 52px);
}

/* ── NAV ── */
#nav {
  position: sticky; top: 0; z-index: 200;
  padding: 14px 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  #nav {
    opacity: 0; transform: translateY(-12px);
    animation: nav-in 0.6s var(--ease) 0.05s forwards;
  }
}
@keyframes nav-in { to { opacity: 1; transform: none; } }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(3,3,5,0.8);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transition: border-color 0.3s;
}
.nav-inner:hover { border-color: var(--line-mid); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 15px; height: 15px; fill: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-right a {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-right a:hover {
  color: var(--ink); border-color: var(--line);
  background: rgba(255,255,255,0.04);
}
.nav-cta {
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--ink) !important;
  border-color: transparent !important;
  padding: 8px 18px !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.14) !important;
}

/* ── HERO ── */
/* Full-width self-contained block. overflow:hidden clips all absolute children. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  /* tall enough for content area + scene-wide at bottom */
  min-height: calc(100svh - 88px + clamp(220px, 28vw, 380px));
}

/* Centered content grid — sits above all decorative layers */
.hero-inner {
  position: relative; z-index: 2;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  min-height: calc(100svh - 88px);
  /* bottom padding == scene-wide height so content never overlaps the scene */
  padding: clamp(48px, 7vw, 84px) clamp(20px, 4.5vw, 52px) clamp(220px, 28vw, 380px);
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-right { display: none; }
}

/* Hero content above decorative layers */
.hero-left {
  position: relative; z-index: 2;
}
.hero-right {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}

/* ── WIDE 3D SCENE — absolute at bottom of hero ── */
.scene-wide {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(220px, 28vw, 380px);
  overflow: hidden;
  z-index: 1;
  /* Fade top & sides so objects emerge from darkness, no visible rectangle */
  -webkit-mask-image:
    linear-gradient(to bottom,  transparent 0%,   black 28%),
    linear-gradient(to right,   transparent 0%,   black 6%, black 94%, transparent 100%);
  mask-image:
    linear-gradient(to bottom,  transparent 0%,   black 28%),
    linear-gradient(to right,   transparent 0%,   black 6%, black 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surf);
}
.hero-label-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-2);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--ink-2);
  font-weight: 300;
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-top: 32px;
}

/* ── Hero right 3D scene ── */
.hero-3d-scene {
  width: 500px; height: 460px;
  position: relative;
  overflow: visible;
}

/* Three transparent-bg images
   Source images are 1536×1024 (3:2). Drive by HEIGHT so objects
   keep their natural proportions and don't look squished. */
.h3di {
  position: absolute;
  pointer-events: none;
  width: auto; /* never set width — let height drive scale */
}
.h3di--spheres {
  height: 92%;          /* ≈424px tall → width ≈636px, spheres look round */
  top: -8%; right: -18%;
  animation: float-b 10s ease-in-out -4s infinite;
}
.h3di--crystal {
  height: 70%;          /* ≈322px → crystal stays tall & slim */
  top: 14%; left: 4%;
  animation: float-b 8s ease-in-out 0s infinite;
}
.h3di--cube {
  height: 42%;          /* ≈193px → small accent cube */
  bottom: 4%; right: 18%;
  animation: float-b 7s ease-in-out -7s infinite;
}
@keyframes float-b {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-20px); }
}

@keyframes hero-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

.hero-badge-card {
  position: absolute;
  background: rgba(8,8,14,0.84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-mid); border-radius: var(--r);
  padding: 12px 16px;
  z-index: 10;
  animation: hero-float 6s ease-in-out infinite;
}
.hero-badge-card--a { top: 14%; right: -30px; animation-delay: -1.2s; animation-duration: 5.8s; }
.hero-badge-card--b { bottom: 20%; left: -36px; animation-delay: -2.8s; animation-duration: 6.8s; }

.badge-card-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px;
}
.badge-card-value { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.badge-card-sub { font-size: 11px; color: var(--ink-2); margin-top: 3px; }

.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2);
}
.badge-live::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.65); flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── WIDE 3D SCENE IMAGE ── */
.scene-wide-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  animation: scene-drift 18s ease-in-out infinite;
}
@keyframes scene-drift {
  0%,100% { transform: scale(1) translateX(0); }
  50% { transform: scale(1.04) translateX(-1%); }
}

/* ── FLOATING 3D DECORATORS ── */
.float-3d-wrap {
  pointer-events: none;
}
.float-3d-img {
  animation: hero-float 8s ease-in-out infinite;
}
.float-3d-img--a { animation-duration: 7s; animation-delay: 0s; }
.float-3d-img--b { animation-duration: 9s; animation-delay: -3s; }
.float-3d-img--c { animation-duration: 6s; animation-delay: -5s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg {
  width: 15px; height: 15px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.btn-primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(255,255,255,0.18);
}
.btn-ghost {
  background: transparent; color: var(--ink-2); border-color: var(--line-mid);
}
.btn-ghost:hover {
  color: var(--ink); background: rgba(255,255,255,0.05);
  border-color: var(--line-hi); transform: translateY(-1px);
}
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── DIVIDER ── */
.hr {
  border: none; border-top: 1px solid var(--line);
  background: var(--bg);
}

/* ── SECTION ── */
.section {
  background: var(--bg);
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.section-sub {
  margin-top: 12px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7; color: var(--ink-2);
  max-width: 56ch; text-wrap: pretty;
}
.section-head { margin-bottom: clamp(36px, 5vw, 52px); }

/* ── DECO STRIP ── */
.deco-strip {
  background: var(--bg);
  padding: 0 0 clamp(48px, 7vw, 80px);
}
.deco-strip-inner {
  overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line); height: 260px; position: relative;
}
.deco-strip-inner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: brightness(0.65);
}
.deco-strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.deco-strip-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
}
.deco-strip-text h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.deco-strip-text p { font-size: 14px; color: var(--ink-2); }

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }

/* ── TOOL CARD BASE ── */
@property --card-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes card-border-spin { to { --card-angle: 360deg; } }

.tool-card {
  position: relative;
  background: oklch(0.09 0 0);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
  border: 1px solid rgba(255,255,255,0.07);
  /* reveal animation */
  opacity: 0; transform: translateY(18px);
}
.tool-card.in {
  animation: card-in 0.55s var(--ease) forwards;
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
/* stagger delay per card */
.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.10s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.20s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.30s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.40s; }

/* spinning conic border on hover */
.tool-card::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  background: conic-gradient(
    from var(--card-angle),
    transparent 0%, transparent 55%,
    rgba(255,255,255,0.7) 72%,
    rgba(255,255,255,0.15) 85%,
    transparent 95%
  );
  opacity: 0; transition: opacity 0.35s;
  animation: card-border-spin 3s linear infinite;
  z-index: 0;
}
/* inner fill */
.tool-card::after {
  content: '';
  position: absolute; inset: 1px;
  border-radius: 17px;
  background: oklch(0.09 0 0);
  z-index: 1; pointer-events: none;
}
/* cursor spotlight */
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.05), transparent 55%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.tool-card:hover {
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.12);
  transform: translateY(-4px) scale(1.008);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .card-glow  { opacity: 1; }

/* ── Game Copier featured span ── */
.tc-copier { grid-column: span 2; }
@media (max-width: 860px) { .tc-copier { grid-column: span 1; } }

/* ── HORIZONTAL card (Game Copier) ── */
.tc-inner {
  position: relative; z-index: 3;
  display: flex; min-height: 190px;
}
.tc-content {
  display: flex; flex-direction: column;
  padding: 22px 20px; flex: 1; z-index: 2;
}
.tc-visual {
  position: relative;
  width: clamp(160px, 32%, 300px);
  flex-shrink: 0; overflow: hidden;
}
.tc-img--copier {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  height: 110%; width: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%);
  mask-image: linear-gradient(to right, transparent 0%, black 28%);
  filter: drop-shadow(0 4px 30px rgba(255,255,255,0.06));
  animation: tc-float-a 8s ease-in-out infinite;
}
@keyframes tc-float-a {
  0%,100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(calc(-50% - 10px)) rotate(1.5deg); }
}

/* ── VERTICAL cards (all others) ── */
.tc-img-wrap {
  position: relative; z-index: 3;
  height: clamp(100px, 12vw, 148px);
  overflow: hidden; flex-shrink: 0;
}
/* shared style for all vertical images */
.tc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}
/* individual floating animations */
.tc-img--followers { animation: float-c  10s ease-in-out infinite; }
.tc-img--shaders   { animation: float-d  11s ease-in-out infinite; }
.tc-img--join      { animation: float-b   9s ease-in-out infinite; }
.tc-img--offline   { animation: float-e   9s ease-in-out infinite; }
.tc-img--fps       { animation: float-fps 8s ease-in-out infinite; }
.tc-img--verify    { animation: float-v  10s ease-in-out infinite; }
.tc-img--fix       { animation: float-f  11s ease-in-out infinite; }

@keyframes float-b   { 0%,100%{transform:scale(1) translateY(0) rotate(0deg)} 40%{transform:scale(1.03) translateY(-8px) rotate(-1deg)} 70%{transform:scale(1.02) translateY(-4px) rotate(0.5deg)} }
@keyframes float-c   { 0%,100%{transform:scale(1) translateY(0)} 50%{transform:scale(1.04) translateY(-7px)} }
@keyframes float-d   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04) translateY(-5px)} }
@keyframes float-e   { 0%,100%{transform:scale(1) translateY(0) rotate(0deg)} 45%{transform:scale(1.03) translateY(-8px) rotate(1.2deg)} 70%{transform:scale(1.01) translateY(-3px) rotate(-0.4deg)} }
@keyframes float-fps { 0%,100%{transform:scale(1) rotate(0deg)} 50%{transform:scale(1.04) rotate(2.5deg)} }
@keyframes float-v   { 0%,100%{transform:scale(1) translateY(0)} 50%{transform:scale(1.03) translateY(-6px)} }
@keyframes float-f   { 0%,100%{transform:scale(1) rotate(0deg) translateY(0)} 35%{transform:scale(1.02) rotate(-1.5deg) translateY(-5px)} 70%{transform:scale(1.03) rotate(1deg) translateY(-8px)} }

.tc-mini { display: flex; flex-direction: column; }

.tc-content--pad {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 16px 16px;
  flex: 1;
}

.tc-top-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}

.card-num {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em;
  color: var(--ink-3);
}
.card-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 7px;
}
.card-title {
  font-weight: 700; font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: -0.03em; line-height: 1.25;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 11.5px; line-height: 1.6;
  color: var(--ink-2); text-wrap: pretty; flex: 1;
}
.card-actions { margin-top: 10px; }

/* ── LEGACY SECTION (crystal + cube 3D) ── */
.legacy-section {
  background: var(--bg);
  padding: clamp(64px, 9vw, 108px) 0;
}
.legacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .legacy-inner { grid-template-columns: 1fr; } }

.legacy-visual {
  position: relative;
  height: 440px;
}
.legacy-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  animation: hero-float 9s ease-in-out infinite;
}
.legacy-img--back {
  animation-duration: 11s; animation-delay: -3s;
  transform: perspective(900px) rotateY(12deg) rotateX(-5deg) scale(0.7) translate(-20%, 15%);
  filter: brightness(0.6) blur(1px);
  opacity: 0.55;
}
.legacy-img--front {
  animation-delay: -1.5s;
}
@media (max-width: 860px) {
  .legacy-visual { height: 300px; }
}

/* ── 3D SCENE INTERLUDE ── */
.scene-interlude {
  position: relative;
  width: 100%;
  height: clamp(260px, 32vw, 460px);
  overflow: hidden;
  background: var(--bg);
  /* fade edges so it blends into sections */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}
.scene-interlude__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  animation: scene-drift 20s ease-in-out infinite alternate;
  filter: brightness(0.9) contrast(1.05);
}
@keyframes scene-drift {
  0%   { transform: scale(1.08) translateX(-2%) translateY(0); }
  50%  { transform: scale(1.06) translateX(1%) translateY(-1%); }
  100% { transform: scale(1.1)  translateX(2%) translateY(0.5%); }
}

/* ── FLOATING OBJECTS INTERLUDE ── */
.objects-interlude {
  background: var(--bg);
  height: clamp(220px, 28vw, 380px);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
}
.obj-float {
  flex: 0 0 auto;
}
.obj-float--crystal {
  height: clamp(200px, 26vw, 360px);
  width: auto;
  animation: float-a 8s ease-in-out -1s infinite;
}
.obj-float--spheres {
  height: clamp(240px, 32vw, 440px);
  width: auto;
  animation: float-a 10s ease-in-out -4s infinite;
}
.obj-float--cube {
  height: clamp(180px, 23vw, 320px);
  width: auto;
  animation: float-a 7.5s ease-in-out -6s infinite;
}
@keyframes float-a {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

/* ── FEATURES STRIP ── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; margin-bottom: clamp(44px, 6vw, 64px);
}
@media (max-width: 640px) { .features-strip { grid-template-columns: 1fr; } }

.feature-cell {
  background: var(--surf);
  padding: 28px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: background 0.2s;
}
.feature-cell:hover { background: var(--surf-2); }

.feature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surf-3); color: var(--ink-2);
}
.feature-icon svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.feature-body h4 {
  font-size: 14px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px;
}
.feature-body p {
  font-size: 13px; color: var(--ink-2); line-height: 1.62; text-wrap: pretty;
}

/* ── INSTALL STEPS ── */
.steps-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; gap: 0;
}
@media (max-width: 840px) { .steps-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-track { grid-template-columns: 1fr; } }

.steps-track::before {
  content: '';
  position: absolute; top: 32px;
  left: calc(100% / 8); right: calc(100% / 8);
  height: 1px; background: var(--line); z-index: 0;
}
@media (max-width: 840px) { .steps-track::before { display: none; } }

.step-item {
  position: relative; z-index: 1;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 24px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.2s;
  border-radius: var(--r-lg);
}
.step-item.in { opacity: 1; transform: none; }
.step-item:nth-child(1).in { transition-delay: 0s; }
.step-item:nth-child(2).in { transition-delay: 0.08s; }
.step-item:nth-child(3).in { transition-delay: 0.16s; }
.step-item:nth-child(4).in { transition-delay: 0.24s; }
.step-item:hover { background: var(--surf); }

.step-num-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surf-2); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 20px;
}
.step-item:hover .step-num-wrap { border-color: var(--line-mid); }

.step-num {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3);
}
.step-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.step-text { font-size: 14px; color: var(--ink-2); line-height: 1.64; text-wrap: pretty; }
.step-text code {
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  background: var(--surf-3); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px;
}
.step-text strong { color: var(--ink); font-weight: 600; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.tool-card.reveal.in:nth-child(1) { transition-delay: 0s; }
.tool-card.reveal.in:nth-child(2) { transition-delay: 0.07s; }
.tool-card.reveal.in:nth-child(3) { transition-delay: 0.14s; }
.tool-card.reveal.in:nth-child(4) { transition-delay: 0.21s; }
.tool-card.reveal.in:nth-child(5) { transition-delay: 0.28s; }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--ink-3);
}
.foot-brand-mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--ink-3); display: grid; place-items: center;
}
.foot-brand-mark svg { width: 11px; height: 11px; fill: var(--bg); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 12px; color: var(--ink-3); transition: color 0.2s; }
.foot-links a:hover { color: var(--ink-2); }

/* ── DOWNLOAD STATES ── */
.btn[data-state='loading'] {
  pointer-events: none; opacity: 0.7;
  position: relative; overflow: hidden;
}
.btn[data-state='loading']::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); animation: btn-shimmer 0.85s ease-in-out infinite;
}
@keyframes btn-shimmer { to { transform: translateX(100%); } }

.btn[data-state='done'] {
  background: rgba(255,255,255,0.1) !important;
  border-color: var(--line-hi) !important; color: var(--ink) !important;
}
.btn[data-state='err'] {
  border-color: rgba(255,80,80,0.5) !important;
  color: rgba(255,150,150,1) !important;
  animation: btn-shake 0.4s var(--ease);
}
@keyframes btn-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ── BUTTON RIPPLE ── */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripple-out 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  top: 50%; left: 50%;
  margin: -60px 0 0 -60px;
}
@keyframes ripple-out {
  to { transform: scale(2.8); opacity: 0; }
}

/* ── HERO ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-label { opacity:0; transform:translateY(12px); animation: fade-up 0.6s var(--ease) 0.1s forwards; }
  .hero-headline { opacity:0; transform:translateY(18px); animation: fade-up 0.75s var(--ease) 0.2s forwards; }
  .hero-sub { opacity:0; transform:translateY(14px); animation: fade-up 0.65s var(--ease) 0.32s forwards; }
  .hero-actions { opacity:0; transform:translateY(12px); animation: fade-up 0.6s var(--ease) 0.42s forwards; }
  .hero-right { opacity:0; transform:translateX(22px); animation: slide-left 0.85s var(--ease) 0.26s forwards; }
}
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes slide-left { to { opacity: 1; transform: none; } }

/* ── REVIEWS ── */
.reviews-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.reviews-aggregate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surf);
  flex-shrink: 0;
}
.agg-stars { font-size: 16px; letter-spacing: 2px; color: rgba(255,255,255,0.9); }
.agg-score {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.agg-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
}
.agg-count {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.agg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.review-card:hover {
  border-color: var(--line-hi);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.rhead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ravatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}
.rmeta { flex: 1; min-width: 0; }
.rname {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rdate {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
}
.rstars {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.rtext {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0;
}
.rtag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  align-self: flex-start;
}

/* ── HOW IT WORKS ── */
.howto-section { border-top: 1px solid var(--line); }
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 700px) {
  .howto-grid { grid-template-columns: 1fr; }
  .howto-line { display: none; }
}

.howto-step {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.howto-step:last-child { border-right: none; }
@media (max-width: 700px) {
  .howto-step { border-right: none; border-bottom: 1px solid var(--line); }
  .howto-step:last-child { border-bottom: none; }
}

.howto-num {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  user-select: none;
}

.howto-title {
  font-family: var(--display);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 10px;
}
.howto-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-wrap: pretty;
  margin: 0;
}

/* ── FAQ ── */
.faq-section { overflow: hidden; }
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-right { display: none; }
}

.faq-right {
  position: relative;
  height: 520px;
  pointer-events: none;
}
.faq-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: faq-float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.06));
}
@keyframes faq-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-14px) rotate(1.2deg); }
  66% { transform: translateY(8px) rotate(-0.8deg); }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item[open] > .faq-q { color: var(--ink); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--ink); }

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease), color 0.2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--ink-2);
}

.faq-a {
  padding-bottom: 18px;
}
.faq-a p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 560px;
  text-wrap: pretty;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .step-item { opacity: 1; transform: none; transition: none; }
  .spotlight { display: none; }
  .hero-label, .hero-headline, .hero-sub, .hero-actions, .hero-right,
  #nav { opacity: 1; transform: none; animation: none; }
  .hero-img-main, .hero-badge-card, .legacy-img { animation: none; }
  body::before, .hero-label-dot, .badge-live::before { animation: none; }
  .marquee-track { animation: none; }
  .faq-3d { animation: none; }
}
