/* Same palette as the Beamline app's DARK theme (mobile/src/theme.js) so the
   marketing site and the product feel like one brand, not two. */
:root {
  --bg: #06070A;
  --bg-elevated: #0D0F14;
  --bg-elevated-2: #14171E;
  --bg-glass: rgba(255,255,255,0.045);

  --ink: #F3F5F6;
  --ink-2: #9DA3AC;
  --ink-3: #666C76;

  --line: rgba(255,255,255,0.09);

  --accent: #00F5A0;
  --accent-dark: #00C888;
  --accent-soft: rgba(0,245,160,0.14);
  --on-accent: #04140D;

  --danger: #FF5C6C;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --container: 1120px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient background glow, fixed behind everything */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(0,245,160,0.10), transparent 60%),
    radial-gradient(500px circle at 85% 20%, rgba(0,245,160,0.06), transparent 55%),
    var(--bg);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,7,10,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.brand-mark { height: 30px; width: auto; display: block; flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.nav-cta) { color: var(--ink-2); font-size: 14.5px; font-weight: 600; transition: color .15s ease; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(0,245,160,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(0,245,160,0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 28px rgba(0,245,160,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,245,160,0.55); }
.btn-ghost {
  background: var(--bg-glass);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-elevated-2); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-center { justify-content: center; width: 100%; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 96px 24px 80px;
  min-height: 88vh;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.hero-stat strong span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hero-stat-label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.glow-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,160,0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.phone {
  position: relative;
  width: 240px;
  border-radius: 34px;
  background: #000;
  border: 6px solid #1b1e26;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  z-index: 1;
}
.phone img { width: 100%; display: block; }
.phone-notch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 46%; height: 20px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 2;
}
.phone-main { width: 260px; }
.phone-side {
  position: absolute;
  width: 160px;
  opacity: 0.92;
}
.phone-side-a { right: -10px; bottom: 10px; transform: rotate(8deg); z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: left; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.6px; margin: 0 0 12px; }
.section-sub { color: var(--ink-2); font-size: 15.5px; margin: 0; }
#gallery .section-head, #download .section-head { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,245,160,0.35); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.feature-card-soon { opacity: 0.92; }
.feature-soon-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-left: 2px solid var(--line); padding-left: 20px; }
.step-num { display: block; font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-bottom: 10px; }
.step h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.gallery-item { margin: 0; text-align: center; }
.phone-gallery { width: 100%; max-width: 260px; margin: 0 auto; }
.gallery-item figcaption { margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin: 0 0 20px; }

/* ---------- Download ---------- */
.section-download { text-align: center; }
.download-inner { max-width: 640px; }
.download-inner h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.6px; margin: 0 0 14px; }
.store-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 36px 0 20px; }
.store-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  color: var(--ink);
  opacity: 0.6;
  cursor: default;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; text-align: left; }
.store-badge small { font-size: 10.5px; color: var(--ink-3); }
.store-badge strong { font-size: 15.5px; font-weight: 700; }
.store-badge-soon::after {
  content: "Coming soon";
  position: absolute;
  top: -10px; right: -8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}
.download-note { font-size: 13.5px; color: var(--ink-3); margin-top: 20px; }
.download-note a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-tagline { color: var(--ink-2); font-size: 13.5px; margin: 0; max-width: 360px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-3); font-size: 12px; margin: 8px 0 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 460px; margin-top: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 48px; }

  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .phone-side { display: none; }
}
