:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --card: #141417;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  --radius: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --bg-2: #f5f5f7;
    --card: #fff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: rgba(0, 0, 0, 0.1);
    --accent: #0071e3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  max-width: 100vw;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.pill { background: var(--accent); color: #fff !important; opacity: 1 !important; padding: 4px 12px; border-radius: 980px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 72px 16px 24px; max-width: var(--max); margin: 0 auto; }
.glow {
  position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(255, 55, 95, 0.22), transparent 70%),
    radial-gradient(40% 40% at 70% 25%, rgba(10, 132, 255, 0.24), transparent 70%),
    radial-gradient(35% 35% at 50% 60%, rgba(191, 90, 242, 0.2), transparent 70%);
  filter: blur(20px);
}
.hero-logo { margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(120, 90, 255, 0.35)); }
.eyebrow { color: var(--muted); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 18px; }
.grad {
  background: linear-gradient(90deg, #ff375f, #ff9f0a 25%, #ffd60a 40%, #30d158 55%, #0a84ff 75%, #bf5af2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 720px; margin: 0 auto 28px; line-height: 1.4; }
.cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn { font-size: 17px; border-radius: 980px; padding: 12px 24px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { text-decoration: none; filter: brightness(1.1); }
.hero-shot { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line); }
.caption { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* Stats */
.stats { max-width: var(--max); margin: 56px auto; padding: 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.stats b { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 15px; }

/* Feature rows */
.feature { max-width: var(--max); margin: 0 auto; padding: 80px 16px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
.feature.alt { grid-template-columns: 1.5fr 1fr; }
.feature.alt .copy { order: 2; }
.feature > *, .cli > *, .grid-features > *, .stats > * { min-width: 0; }
.feature figure, .tools figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.copy p:not(.eyebrow) { color: var(--muted); font-size: 19px; line-height: 1.5; margin: 0; }
.center { text-align: center; max-width: 760px; margin: 0 auto 40px; }

/* Cards */
.grid-features { max-width: var(--max); margin: 40px auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, #0a84ff, #bf5af2); }
.card:nth-child(2) .ico { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.card:nth-child(3) .ico { background: linear-gradient(135deg, #30d158, #0a84ff); }
.card:nth-child(4) .ico { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.card:nth-child(5) .ico { background: linear-gradient(135deg, #bf5af2, #ff375f); }
.card:nth-child(6) .ico { background: linear-gradient(135deg, #64d2ff, #30d158); }
.card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.tools { max-width: var(--max); margin: 0 auto; padding: 100px 16px 40px; }

/* CLI */
.cli { max-width: var(--max); margin: 0 auto; padding: 80px 16px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.term { margin: 0; background: #1c1c1e; color: #e5e5ea; border-radius: 16px; padding: 22px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.term .p { color: #64d2ff; }
.term .ok { color: #30d158; }

/* Download */
.download { text-align: center; padding: 100px 16px; background: var(--bg-2); border-top: 1px solid var(--line); }
.download img { margin: 0 auto 18px; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 16px; justify-content: center; margin: 32px auto 20px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: transform 0.2s, border-color 0.2s; }
.platform:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.platform.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.platform b { font-size: 20px; }
.platform .os { font-size: 12px; color: var(--accent); font-weight: 600; min-height: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

footer { text-align: center; padding: 28px 16px 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .feature, .feature.alt, .cli { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 56px 16px; }
  .feature.alt .copy { order: 0; }
  .grid-features { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .nav-links { gap: 12px; }
  .platforms { grid-template-columns: 1fr; max-width: 360px; }
  .nav-links a:not(.pill) { display: none; }
}
