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

:root {
  --gn-base: #0b1124;
  --gn-text: #f6f8ff;
  --gn-text-muted: rgba(246, 248, 255, 0.55);
  --gn-accent: rgb(78, 118, 200);
  --gn-accent-glow: rgba(78, 118, 200, 0.35);
  --gn-card-bg: rgba(246, 248, 255, 0.04);
  --gn-card-border: rgba(246, 248, 255, 0.06);
}

html {
  background: var(--gn-base);
  color: var(--gn-text);
  font-family: "SF Pro Display", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

main {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Ambient glow (matches app aesthetic) ───────────────────────────── */

.glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 62% at 50% 0%,
    var(--gn-accent-glow) 0%,
    rgba(78, 118, 200, 0) 64%
  );
  z-index: 0;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.app-icon {
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 16px 40px rgba(78, 118, 200, 0.25),
    0 0 0 1px rgba(78, 118, 200, 0.08);
  margin-bottom: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-icon:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.25),
    0 20px 48px rgba(78, 118, 200, 0.35),
    0 0 0 1px rgba(78, 118, 200, 0.15);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(78, 118, 200, 0.5), 0 0 80px rgba(78, 118, 200, 0.15);
}

.subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gn-text-muted);
  max-width: 600px;
  margin-top: 4px;
}

.hook {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(246, 248, 255, 0.65);
  max-width: 440px;
  margin-top: 16px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Use cases ───────────────────────────────────────────────────────── */

.use-cases {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 64px;
  text-align: center;
}

.use-cases h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gn-text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.use-case {
  background: var(--gn-card-bg);
  border: 1px solid var(--gn-card-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--gn-text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.use-case svg {
  flex-shrink: 0;
  color: var(--gn-accent);
  opacity: 0.8;
  margin-top: 1px;
}

/* ── Screenshot ──────────────────────────────────────────────────────── */

.screenshot {
  position: relative;
  z-index: 1;
  margin: 16px 0 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.screenshot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1000px;
}

/* ── Stage indicator ───────────────────────────────────────────────── */

.stage-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.stage-step {
  color: rgba(246, 248, 255, 0.35);
  text-transform: uppercase;
  transition: color 0.6s ease;
}

.stage-step.active {
  color: rgba(246, 248, 255, 0.85);
}

.stage-arrow {
  color: rgba(246, 248, 255, 0.3);
  font-size: 1rem;
  transition: color 0.6s ease;
}

.stage-arrow.flash {
  color: rgba(246, 248, 255, 0.85);
}

/* ── Video stage ───────────────────────────────────────────────────── */

.stage-videos {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.stage-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(246, 248, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(78, 118, 200, 0.08);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.stage-video.active {
  opacity: 1;
}

.screenshot-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(246, 248, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(78, 118, 200, 0.08);
}

/* ── Download button ─────────────────────────────────────────────────── */

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--gn-accent);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(78, 118, 200, 0.35);
}

.download-btn:hover {
  background: rgb(98, 138, 220);
  box-shadow: 0 6px 28px rgba(78, 118, 200, 0.5);
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.version-info {
  font-size: 0.85rem;
  color: var(--gn-text-muted);
  margin-top: 4px;
}

.requirement {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gn-text);
  background: rgba(246, 248, 255, 0.06);
  border: 1px solid rgba(246, 248, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  margin-top: 4px;
}

.intel-note {
  font-size: 0.78rem;
  color: var(--gn-text-muted);
  opacity: 0.5;
  margin-top: 2px;
  max-width: 440px;
}

/* ── Features ────────────────────────────────────────────────────────── */

.features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 48px;
}

.feature {
  background: var(--gn-card-bg);
  border: 1px solid var(--gn-card-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.feature:hover {
  border-color: rgba(246, 248, 255, 0.12);
  background: rgba(246, 248, 255, 0.06);
}

.feature-icon {
  color: var(--gn-accent);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gn-text-muted);
}

/* ── Install flow ────────────────────────────────────────────────────── */

.install-flow {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 64px;
  text-align: center;
}

.install-flow h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gn-text-muted);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--gn-card-bg);
  border: 1px solid var(--gn-card-border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gn-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gn-text-muted);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */

.pricing {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 64px;
  text-align: center;
}

.pricing h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gn-text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.pricing-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.pricing-col {
  background: var(--gn-card-bg);
  border: 1px solid var(--gn-card-border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: left;
}

.pricing-col.pro {
  border-color: rgba(78, 118, 200, 0.3);
  background: rgba(78, 118, 200, 0.06);
}

.pricing-col h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gn-text-muted);
  margin-bottom: 8px;
}

.pricing-col.pro h3 {
  color: var(--gn-accent);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gn-text);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.pricing-sub {
  font-size: 0.8rem;
  color: var(--gn-text-muted);
  margin-bottom: 16px;
}

.pricing-col ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.pricing-col li {
  font-size: 0.85rem;
  color: var(--gn-text-muted);
  line-height: 1.6;
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.pricing-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 248, 255, 0.15);
}

.pricing-col.pro li::before {
  background: var(--gn-accent);
  opacity: 0.6;
}

.pricing-cta {
  font-size: 0.8rem;
  color: var(--gn-text-muted);
  opacity: 0.6;
  font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gn-text-muted);
}

.footer strong {
  color: var(--gn-text);
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--gn-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--gn-text);
}

.footer-sep {
  color: var(--gn-text-muted);
  opacity: 0.4;
  font-size: 0.7rem;
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.5;
}

.analytics-opt-out {
  font-size: 0.7rem;
}

.analytics-opt-out a {
  color: var(--gn-text-muted);
  opacity: 0.5;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-opt-out a:hover {
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Tablet ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  main {
    padding: 60px 32px 48px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .use-case {
    font-size: 0.9rem;
    padding: 14px 18px;
    gap: 10px;
  }

  .use-case svg {
    margin-top: 2px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-cols {
    max-width: 100%;
  }
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
  main {
    padding: 48px 20px 48px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-cols {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 20px 18px;
  }
}
