:root {
  color-scheme: dark;
  --bg: #07070b;
  --surface: #12121a;
  --line: rgb(255 255 255 / 0.09);
  --text: #f2f2f7;
  --muted: #8b8b9e;
  --pink: #ff3d7f;
  --violet: #7c5cff;
  --cyan: #2ee6d6;
  --grad: linear-gradient(100deg, var(--pink), var(--violet));
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 500; }

.logo {
  font: 800 19px/1 var(--mono);
  letter-spacing: 0.18em;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-sm { font-size: 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgb(7 7 11 / 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 14px; text-decoration: none; font-weight: 700;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgb(255 61 127 / 0.55); }
.btn-accent:hover { box-shadow: 0 16px 40px -8px rgb(255 61 127 / 0.7); }
.btn-ghost { background: rgb(255 255 255 / 0.06); border: 1px solid var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px;
}
.wall {
  position: absolute; inset: -20% -10%;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  transform: rotate(-9deg) scale(1.1);
  opacity: 0; transition: opacity 1.2s ease;
}
.wall.ready { opacity: 1; }
.col { display: flex; flex-direction: column; gap: 14px; animation: drift 90s linear infinite; will-change: transform; }
.col:nth-child(even) { animation-direction: reverse; animation-duration: 110s; }
.col img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; background: var(--surface);
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgb(7 7 11 / 0.92), rgb(7 7 11 / 0.55) 60%, rgb(7 7 11 / 0.35)),
    linear-gradient(to bottom, rgb(7 7 11 / 0.2), transparent 30%, transparent 70%, var(--bg));
}
.hero-in { position: relative; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 7px 14px;
  border: 1px solid rgb(46 230 214 / 0.35); border-radius: 99px;
  font: 500 13px/1 var(--mono); color: var(--cyan); letter-spacing: .04em;
  background: rgb(7 7 11 / 0.5); backdrop-filter: blur(8px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 {
  margin: 0; font-weight: 700;
  font-size: clamp(44px, 8vw, 104px); line-height: .98; letter-spacing: -0.035em;
}
.lede { max-width: 560px; margin: 26px 0 34px; font-size: clamp(17px, 2vw, 20px); color: rgb(242 242 247 / 0.78); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 56px 0 0; }
.stats div { min-width: 140px; }
.stats dt { font: 800 30px/1 var(--mono); }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.eyebrow { margin: 0 0 12px; font: 800 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
h2 { margin: 0; max-width: 760px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.sub { max-width: 640px; color: var(--muted); margin: 18px 0 0; }

.modes {
  display: grid; grid-template-columns: .55fr .9fr 1.1fr 1.5fr; gap: 18px;
  align-items: end; margin-top: 56px;
}
.mode h3 { margin: 18px 0 2px; font-size: 20px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
.mode .res { font: 500 13px/1.6 var(--mono); color: var(--cyan); }
.frame {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(124 92 255 / 0.5);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.mode:hover .frame { transform: translateY(-6px); }
.frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.frame img.on { opacity: 1; }
.frame-phone { aspect-ratio: 9 / 19.5; border-radius: 22px; border-width: 5px; border-color: #1d1d27; }
.frame-tablet { aspect-ratio: 4 / 3; border-radius: 16px; border-width: 6px; border-color: #1d1d27; }
.frame-desktop { aspect-ratio: 16 / 9; border-radius: 10px; border-width: 5px; border-color: #1d1d27; }
.frame-ultra { aspect-ratio: 21 / 9; border-radius: 10px; border-width: 5px; border-color: #1d1d27; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feat {
  padding: 26px; border-radius: 20px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent), var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.feat:hover { border-color: rgb(255 61 127 / 0.4); transform: translateY(-3px); }
.feat h3 { margin: 14px 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { font-size: 26px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.plat {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.plat b { color: var(--text); font-size: 19px; }
.plat span { font: 500 13px/1.5 var(--mono); }
.plat i { position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-style: normal; font-size: 22px; color: var(--pink); transition: translate .25s; }
.plat-live { border-color: rgb(255 61 127 / 0.35); background: linear-gradient(120deg, rgb(255 61 127 / 0.12), rgb(124 92 255 / 0.08)), var(--surface); }
.plat-live span { color: var(--cyan); }
.plat-live:hover i { translate: 4px -50%; }

.foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .modes { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .features, .platforms { grid-template-columns: repeat(2, 1fr); }
  .wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .features, .platforms { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(3, 1fr); inset: -10% -30%; }
  .section { padding: 80px 0; }
  .stats { gap: 18px 28px; }
  .stats div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .col, .dot { animation: none; }
  html { scroll-behavior: auto; }
}
