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

/* ── Design tokens ──────────────────────────────────────────── */
/*
  Dark-first. Apple-style dark surface palette.
  Grove green (#52B788 / #1A7A4A) is the ONLY accent — no purple.
*/
:root {
  --font:        system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono:        ui-monospace, 'SF Mono', Menlo, monospace;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 980px;

  /* Dark (default) */
  --bg:       #000000;
  --bg-raised: #1C1C1E;
  --bg-section: #0A0A0A;
  --border:   rgba(255, 255, 255, 0.09);
  --accent:   #52B788;
  --accent-dim: rgba(82, 183, 136, 0.15);
  --check:    #32D74B;
  --text:     #F5F5F7;
  --text-2:   #86868B;
  --text-3:   #48484A;
  --red:      #FF453A;
  --yellow:   #FFD60A;
  --green:    #32D74B;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #F5F5F7;
    --bg-raised: #FFFFFF;
    --bg-section: #FFFFFF;
    --border:    rgba(0, 0, 0, 0.08);
    --accent:    #1A7A4A;
    --accent-dim: rgba(26, 122, 74, 0.1);
    --check:     #1A7A4A;
    --text:      #1D1D1F;
    --text-2:    #6E6E73;
    --text-3:    #AEAEB2;
  }
}
:root[data-theme="light"] {
  --bg:        #F5F5F7;
  --bg-raised: #FFFFFF;
  --bg-section: #FFFFFF;
  --border:    rgba(0, 0, 0, 0.08);
  --accent:    #1A7A4A;
  --accent-dim: rgba(26, 122, 74, 0.1);
  --check:     #1A7A4A;
  --text:      #1D1D1F;
  --text-2:    #6E6E73;
  --text-3:    #AEAEB2;
}
:root[data-theme="dark"] {
  --bg:       #000000;
  --bg-raised: #1C1C1E;
  --bg-section: #0A0A0A;
  --border:   rgba(255, 255, 255, 0.09);
  --accent:   #52B788;
  --accent-dim: rgba(82, 183, 136, 0.15);
  --check:    #32D74B;
  --text:     #F5F5F7;
  --text-2:   #86868B;
  --text-3:   #48484A;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--text);
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--text);
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}
p { color: var(--text-2); }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 1rem auto 0;
  text-align: center;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* White pill — for dark sections */
.btn-primary {
  background: #FFFFFF;
  color: #1D1D1F;
}
.btn-primary:hover { opacity: 0.86; }

/* Dark pill — for light sections */
.btn-primary-dark {
  background: #1D1D1F;
  color: #FFFFFF;
}
.btn-primary-dark:hover { opacity: 0.8; }
@media (prefers-color-scheme: light) {
  .btn-primary-dark { background: #1D1D1F; color: #FFFFFF; }
}

/* Ghost — outlined white for dark */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: light) {
  nav {
    background: rgba(245, 245, 247, 0.82);
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }
}
:root[data-theme="light"] nav {
  background: rgba(245, 245, 247, 0.82);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme="dark"] nav {
  background: rgba(0, 0, 0, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
  padding: 0.25rem 0;
}
.nav-link:hover { color: var(--text); }

.nav-actions { display: flex; gap: 0.625rem; align-items: center; }

.btn-nav-buy {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-nav-buy:hover { opacity: 0.86; }

/* ── Hero ───────────────────────────────────────────────────── */
/* Hero is always dark — a committed design choice. */
.hero {
  background: #000000;
  text-align: center;
  padding: 6rem 2rem 5rem;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #86868B;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.875rem;
  margin-bottom: 2rem;
}

.hero h1 {
  color: #F5F5F7;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1875rem;
  color: #86868B;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.hero-trial {
  font-size: 0.8125rem;
  color: #48484A;
  margin-bottom: 4rem;
}

/* ── Hero screenshot ────────────────────────────────────────── */
.window-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 80px 160px rgba(0, 0, 0, 0.4);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Section wrapper ────────────────────────────────────────── */
.section {
  padding: 96px 2rem;
  text-align: center;
}
.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* ── Features ───────────────────────────────────────────────── */
.features { background: var(--bg-section); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.5rem;
  text-align: left;
}

.feature-card {
  background: var(--bg-raised);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.125rem;
  color: var(--accent);
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9375rem; line-height: 1.6; }

.feature-card.feature-highlight {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.feature-highlight .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.feature-highlight h3 { margin-bottom: 0.375rem; }

/* ── Screenshots gallery ────────────────────────────────────── */
.screenshots { background: var(--bg); }

.screenshot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.75rem;
  margin-top: 3.5rem;
  text-align: left;
}

.screenshot-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  line-height: 0;
}
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-caption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Why native ─────────────────────────────────────────────── */
.why { background: var(--bg); }

.why-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  align-items: center;
  text-align: left;
}
.why-text { flex: 1; min-width: 0; }
.why-text .eyebrow { margin-bottom: 0.75rem; }
.why-text h2 { margin-bottom: 1.75rem; }

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.why-list li {
  display: flex;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
  align-items: flex-start;
}
.check {
  color: var(--check);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.why-visual { flex-shrink: 0; }
.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 240px;
}
.badge {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
}

/* ── Agents ─────────────────────────────────────────────────── */
.agents { background: var(--bg-section); }

.agent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.agent-pill {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s;
}
.agent-pill:hover { border-color: var(--accent); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing { background: var(--bg); }

.pricing-card {
  max-width: 420px;
  margin: 3rem auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  text-align: left;
}

.pricing-name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  gap: 0.125rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-currency {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-2);
  padding-top: 0.6rem;
}
.pricing-price {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pricing-period {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 1.75rem;
  display: block;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pricing-features li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  align-items: flex-start;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: opacity 0.15s;
}
.pricing-btn:hover { opacity: 0.86; }

.pricing-note {
  margin-top: 1.125rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .why-inner { flex-direction: column; gap: 3rem; }
  .why-visual { width: 100%; }
  .badge-stack { max-width: none; }
  .screenshot-gallery { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .section { padding: 72px 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-highlight { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
