:root {
  --bg: #08080f;
  --bg-alt: #0c0c16;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #efeef7;
  --text-dim: #9d9ab5;
  --accent: #8b7ff0;
  --accent-2: #5eead4;
  --accent-hover: #a194ff;
  --radius: 16px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* No global `scroll-behavior: smooth` here — it forces every native
   middle-click autoscroll step through the smooth-scroll animation,
   which is what made autoscroll jerky. Smooth scrolling for anchor
   links is done in JS instead (see main.js). */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  /* Horizontal only — using the `padding` shorthand here would override the
     vertical padding of any <section> that also carries the .container class. */
  padding-left: 24px;
  padding-right: 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(90px);
  opacity: 0.55;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob-1 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(139, 127, 240, 0.5), transparent 65%);
  top: -20%; left: -10%;
  animation: drift 26s ease-in-out infinite alternate;
}

.blob-2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 65%);
  top: 30%; right: -15%;
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(217, 112, 255, 0.22), transparent 65%);
  bottom: -15%; left: 25%;
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, 6vh) scale(1.15); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(8, 8, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: #0d0d14 !important; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 24px 90px;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin-bottom: 36px;
}

.waveform span {
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  animation: wave 1.6s ease-in-out infinite;
  height: 30%;
}

.waveform span:nth-child(3n)   { animation-delay: 0.15s; }
.waveform span:nth-child(3n+1) { animation-delay: 0.3s; }
.waveform span:nth-child(4n)   { animation-delay: 0.5s; }
.waveform span:nth-child(5n)   { animation-delay: 0.7s; }
.waveform span:nth-child(7n)   { animation-delay: 0.9s; }
.waveform span:nth-child(2n)   { animation-duration: 1.3s; }

@keyframes wave {
  0%, 100% { height: 18%; opacity: 0.6; }
  50%      { height: 100%; opacity: 1; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
  background: rgba(94, 234, 212, 0.06);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, #d170ff 55%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  max-width: 600px;
  margin: 0 auto 42px;
  color: var(--text-dim);
  font-size: 1.12rem;
}

.tagline strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }

.release-note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 1.2em;
  margin-top: 4px;
}

.download-safety {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  text-align: left;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 14px;
  background: rgba(94, 234, 212, 0.07);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.safety-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--accent-2);
  background: rgba(94, 234, 212, 0.12);
}

.safety-icon svg { width: 21px; height: 21px; }
.download-safety strong { display: block; margin-bottom: 5px; font-family: var(--font-display); }
.download-safety p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #6f5ce8);
  color: #fff;
  box-shadow: 0 0 0 rgba(139, 127, 240, 0);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(139, 127, 240, 0.42);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

.btn-lg { padding: 17px 42px; font-size: 1.08rem; }

/* Sections */
section { padding: 84px 24px; }
section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 44px;
  text-align: center;
}

/* Steps */
.how { background: linear-gradient(to bottom, transparent, rgba(139, 127, 240, 0.05), transparent); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6f5ce8);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 127, 240, 0.4);
}

.steps strong { font-family: var(--font-display); font-size: 1.05rem; }
.steps p { color: var(--text-dim); font-size: 0.93rem; margin-top: 4px; }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 127, 240, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(139, 127, 240, 0.12);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 127, 240, 0.2), rgba(94, 234, 212, 0.12));
  border: 1px solid rgba(139, 127, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Privacy */
.privacy { background: linear-gradient(to bottom, transparent, rgba(94, 234, 212, 0.04), transparent); }

.privacy-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.privacy-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  color: var(--text-dim);
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.privacy-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  margin-top: 3px;
}

/* Requirements */
.req-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* Final CTA */
.final-cta { text-align: center; padding-bottom: 110px; }
.final-cta h2 { margin-bottom: 30px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Scroll reveal — only hide content when JS is running to un-hide it.
   Without the .js gate, a script hiccup would leave the whole page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .blob, .waveform span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { font-size: 0.82rem; }
  .hero { padding: 80px 24px 64px; }
  section { padding: 60px 24px; }
  .download-safety { padding: 16px; }
}
