/* =========================================================
   Design tokens — dark by default, light on user preference
   ========================================================= */
:root {
  --bg:           #000000;
  --bg-secondary: #0a0a0a;
  --bg-card:      #111111;
  --bg-nav:       rgba(0, 0, 0, 0.72);
  --border:       rgba(255, 255, 255, 0.08);
  --border-card:  rgba(255, 255, 255, 0.06);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary:  #515154;
  --accent:       #2997ff;
  --accent-hover: #62b0ff;
  --btn-bg:       #2997ff;
  --btn-text:     #ffffff;
  --step-bg:      #1a1a1a;
  --video-bg:     #0d0d0d;
  --video-border: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:           #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card:      #ffffff;
    --bg-nav:       rgba(255, 255, 255, 0.80);
    --border:       rgba(0, 0, 0, 0.08);
    --border-card:  rgba(0, 0, 0, 0.06);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary:  #aeaeb2;
    --accent:       #0071e3;
    --accent-hover: #0077ed;
    --btn-bg:       #0071e3;
    --btn-text:     #ffffff;
    --step-bg:      #f5f5f7;
    --video-bg:     #f0f0f0;
    --video-border: rgba(0, 0, 0, 0.08);
  }
}

html[data-theme="dark"] {
  --bg:           #000000;
  --bg-secondary: #0a0a0a;
  --bg-card:      #111111;
  --bg-nav:       rgba(0, 0, 0, 0.72);
  --border:       rgba(255, 255, 255, 0.08);
  --border-card:  rgba(255, 255, 255, 0.06);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary:  #515154;
  --accent:       #2997ff;
  --accent-hover: #62b0ff;
  --btn-bg:       #2997ff;
  --btn-text:     #ffffff;
  --step-bg:      #1a1a1a;
  --video-bg:     #0d0d0d;
  --video-border: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] {
  --bg:           #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card:      #ffffff;
  --bg-nav:       rgba(255, 255, 255, 0.80);
  --border:       rgba(0, 0, 0, 0.08);
  --border-card:  rgba(0, 0, 0, 0.06);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary:  #aeaeb2;
  --accent:       #0071e3;
  --accent-hover: #0077ed;
  --btn-bg:       #0071e3;
  --btn-text:     #ffffff;
  --step-bg:      #f5f5f7;
  --video-bg:     #f0f0f0;
  --video-border: rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 55px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-back {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-back:hover {
  color: var(--text-primary);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--border);
  border: none;
  border-radius: 980px;
  padding: 5px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: rgba(128, 128, 128, 0.2);
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 980px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--border);
}

.nav-cta-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--btn-text);
  background: var(--btn-bg);
  padding: 7px 17px;
  border-radius: 980px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.nav-cta-btn:active { transform: translateY(0); }

@media (max-width: 720px) {
  .nav-center { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* =========================================================
   Scroll offset for fixed nav
   ========================================================= */
#demo, #features, #how, #buy {
  scroll-margin-top: 55px;
}

/* =========================================================
   Shared layout util
   ========================================================= */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 165px 24px 100px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 17px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 980px;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-disabled,
.nav-cta-btn.btn-disabled,
.btn-primary.btn-disabled {
  background: var(--border);
  color: var(--text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.75;
  border: none;
  font-family: inherit;
}
.btn-disabled:hover,
.btn-disabled:active {
  background: var(--border);
  transform: none;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 8px 16px;
  border-radius: 980px;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* =========================================================
   Demo video
   ========================================================= */
.demo {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}

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

.demo-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.demo-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.demo-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 56px;
}

.video-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--video-border);
  background: var(--video-bg);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-tertiary);
}

.video-placeholder-inner span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =========================================================
   Features
   ========================================================= */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

@media (prefers-color-scheme: light) {
  .feature-card:hover {
    border-color: rgba(0, 0, 0, 0.14);
  }
}

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

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   How it works
   ========================================================= */
.how {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}

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

.how-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.how-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 56px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--step-bg);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px 28px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.steps li p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* =========================================================
   Buy
   ========================================================= */
.buy {
  padding: 120px 24px;
  text-align: center;
}

.buy-inner {
  max-width: 480px;
  margin: 0 auto;
}

.buy-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 980px;
  padding: 4px 14px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.buy-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.buy-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.55;
}

.price-tag {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.price-cents {
  font-size: 36px;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: -0.02em;
}

.stripe-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-buy {
  font-size: 19px;
  padding: 16px 40px;
}

.buy-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-flag {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 120px 24px 80px; }
  .feature-card { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
