/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #0c0a14;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --ink: #f5f3fa;
  --ink-muted: rgba(245, 243, 250, 0.55);
  --ink-soft: rgba(245, 243, 250, 0.75);
  --accent-orange: #feac5e;
  --accent-purple: #c779d0;
  --accent-teal: #4bc0c8;
  --gradient: linear-gradient(135deg, var(--accent-orange), var(--accent-purple), var(--accent-teal));
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(12, 10, 20, 0.7);
  --phone-bg: #1a1726;
  --phone-border: rgba(255, 255, 255, 0.12);
  --phone-glow: rgba(199, 121, 208, 0.15);
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-hover-bg: rgba(255, 255, 255, 0.08);
  --cta-text: var(--bg);
  --font: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ── Light Mode ─────────────────────────────────────── */
[data-theme="light"] {
  --bg: #fdf8f3;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.88);
  --ink: #1c1528;
  --ink-muted: rgba(28, 21, 40, 0.50);
  --ink-soft: rgba(28, 21, 40, 0.70);
  --border: rgba(28, 21, 40, 0.08);
  --border-strong: rgba(28, 21, 40, 0.14);
  --shadow: 0 24px 64px rgba(28, 21, 40, 0.08);
  --nav-bg: rgba(253, 248, 243, 0.75);
  --phone-bg: #ffffff;
  --phone-border: rgba(28, 21, 40, 0.10);
  --phone-glow: rgba(199, 121, 208, 0.08);
  --chip-bg: rgba(28, 21, 40, 0.04);
  --chip-hover-bg: rgba(28, 21, 40, 0.07);
  --cta-text: #ffffff;
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(254, 172, 94, 0.12), transparent 50%),
    radial-gradient(ellipse at 70% 5%, rgba(199, 121, 208, 0.10), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(75, 192, 200, 0.08), transparent 40%),
    var(--bg);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

code {
  font-family: "SF Mono", "Menlo", monospace;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.88em;
}

/* ── Typography ─────────────────────────────────────── */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 auto 48px;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--cta-text) !important;
  font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--gradient);
  color: var(--cta-text);
  box-shadow: 0 16px 40px rgba(254, 172, 94, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(254, 172, 94, 0.35);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.08rem;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 80px;
  min-height: 100vh;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero-sub {
  color: var(--ink-muted);
  font-size: 1.12rem;
  line-height: 1.72;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ── Phone Video ────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 280px;
  max-height: 580px;
  border-radius: 36px;
  border: 3px solid var(--phone-border);
  background: var(--phone-bg);
  box-shadow: var(--shadow), 0 0 120px var(--phone-glow);
  overflow: hidden;
}

.phone-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── Custom Actions Section ─────────────────────────── */
.custom-actions {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 80px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.example-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 200ms ease;
}

.example-card:hover {
  border-color: var(--border-strong);
}

.example-prompt {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

.example-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 12px 0;
}

.example-result {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.example-result strong {
  color: var(--ink);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.examples-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* ── Action Store ───────────────────────────────────── */
.action-store {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 40px;
}

/* ── Carousel Banner ────────────────────────────────── */
.carousel-banner {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 80px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-row {
  overflow: hidden;
  margin-bottom: 12px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.carousel-reverse {
  animation: scroll-right 40s linear infinite;
}

.carousel-row-1 .carousel-track { animation-duration: 45s; }
.carousel-row-2 .carousel-track { animation-duration: 38s; }
.carousel-row-3 .carousel-track { animation-duration: 42s; }
.carousel-row-4 .carousel-track { animation-duration: 36s; }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.chip {
  flex-shrink: 0;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color 200ms ease, background 200ms ease;
}

.chip:hover {
  border-color: var(--border-strong);
  background: var(--chip-hover-bg);
}

/* Pause on hover */
.carousel-banner:hover .carousel-track {
  animation-play-state: paused;
}

/* ── How It Works ───────────────────────────────────── */
.how-it-works {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.step {
  flex: 1;
  max-width: 320px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.4rem;
  color: var(--ink-muted);
  padding-top: 40px;
}

/* ── Download ───────────────────────────────────────── */
.download {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 48ch;
}

.footer-legal {
  font-size: 0.82rem;
}

.footer-legal a {
  color: var(--ink-muted);
  transition: color 150ms;
}

.footer-legal a:hover { color: var(--ink); }

/* ── Theme Toggle ──────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms ease, background 200ms ease;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-visual { order: -1; }
  .phone-frame { width: 240px; max-height: 500px; }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 100px 0 40px; }

  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }

  .phone-frame { width: 220px; max-height: 460px; }

  .chip { padding: 12px 24px; font-size: 0.92rem; }

  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
