:root {
  --bg: #060814;
  --bg-elevated: #0f1428;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.45);
  --text: #f4f6ff;
  --text-soft: rgba(244, 246, 255, 0.72);
  --text-muted: rgba(244, 246, 255, 0.45);
  --accent-2: #60a5fa;
  --accent-3: #a78bfa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.28), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.16), transparent 26%),
    radial-gradient(circle at 72% 82%, rgba(167, 139, 250, 0.12), transparent 32%);
  filter: blur(48px);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.nav, main, .footer, .marquee-wrap { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px var(--blue-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

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

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: white !important;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--blue-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 400;
}

.hero h1 em { font-style: italic; color: rgba(244, 246, 255, 0.9); }

.lede {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.hero-stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-bright);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1d4ed8 55%, var(--accent-3));
  box-shadow: 0 16px 40px var(--blue-glow);
  color: white;
}

.btn-sub {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.legal-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 520px;
  font-size: 0.86rem;
  color: var(--text-soft);
  cursor: pointer;
}

.legal-check input { margin-top: 3px; accent-color: var(--blue-bright); }
.legal-check a { color: var(--accent-2); text-decoration: underline; }

.download-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.download-btn.is-disabled:hover { transform: none; }

/* Phone showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.phone-stage {
  position: relative;
  z-index: 2;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--blue-glow), transparent 65%);
  filter: blur(30px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #1a1f35, #0a0d18);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.phone-frame img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.shot-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.shot-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.shot-tab:hover { border-color: var(--blue-bright); color: var(--text); }

.shot-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 6px 20px var(--blue-glow);
}

.hero-mark {
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 50px var(--blue-glow);
  animation: float 5s ease-in-out infinite;
  z-index: 1;
  opacity: 0.95;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(37, 99, 235, 0.06);
}

.marquee {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.marquee span:nth-child(even) { opacity: 0.35; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.coming-soon {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.coming-soon-inner {
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(167, 139, 250, 0.08));
}

.pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill.pulse { animation: pill-pulse 2s ease-in-out infinite; }

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

.coming-soon h2 { margin: 0 0 6px; font-size: 1.5rem; }
.coming-soon p { margin: 0; color: var(--text-soft); max-width: 720px; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-head h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.section-sub {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Screenshot carousel */
.screenshot-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 4px 28px;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.shot-card {
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: center;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.55;
  transform: scale(0.92);
}

.shot-card.active {
  opacity: 1;
  transform: scale(1);
}

.shot-card img {
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.shot-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  background: var(--blue);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.carousel-dot.active {
  background: var(--blue-bright);
  transform: scale(1.3);
}

/* Feature tabs */
.feature-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.feature-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.feature-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 8px 24px var(--blue-glow);
}

.feature-panel { display: none; animation: fade-up 0.4s ease; }
.feature-panel.active { display: block; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.feature-card span { font-size: 1.6rem; }
.feature-card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 0.94rem; }

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-panel, .why-quote {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.why-panel h2, .why-quote blockquote {
  margin: 0 0 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.12;
}

.why-list { margin: 0; padding-left: 18px; color: var(--text-soft); }
.why-list li { margin-bottom: 10px; }
.why-quote blockquote { font-style: italic; }
.quote-credit { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 20, 40, 0.95));
  box-shadow: var(--shadow);
}

.download-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 32px var(--blue-glow);
}

.download-card h2 { margin: 0 0 6px; font-size: 1.7rem; }
.download-card p { margin: 0; color: var(--text-soft); }
.download-meta { margin: 14px 0 0; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

.legal-banner {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-banner a { color: var(--accent-2); text-decoration: underline; }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-soft);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer a { color: var(--accent-2); }
.footer-legal { font-size: 0.86rem; color: var(--text-muted); }
.footer-legal a { color: var(--text-soft); text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-height: 78vh;
  max-width: min(360px, 90vw);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal page styles (shared) */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
}

.legal-updated { margin: 0 0 28px; color: var(--text-muted); font-size: 0.92rem; }

.legal-callout {
  margin-bottom: 32px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.1);
  color: var(--text-soft);
  line-height: 1.55;
}

.legal-section { margin-bottom: 28px; }
.legal-section h2 { margin: 0 0 10px; font-size: 1.15rem; }
.legal-section p, .legal-section li { color: var(--text-soft); line-height: 1.6; }
.legal-section ul { padding-left: 20px; }

.legal-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.download-meta #download-count {
  color: var(--accent-2);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero, .why, .download-card { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 460px; }
  .hero-mark { right: 4%; width: 80px; height: 80px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 24px;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .download-card .btn { width: 100%; }
  .carousel-btn { display: none; }
}
