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

/* ── Design tokens — neomodern / gyokuro ───────────────────────────────── */
:root {
  --bg-darkest: #0a0a0b;
  --bg-primary: #141515;
  --bg-secondary: #1b1c1d;
  --bg-elevated: #222324;
  --bg-selection: #323436;

  --text-primary: #e8e0d0;
  --text-secondary: #b5b5a8;
  --text-muted: #8e8e84;
  --text-dim: #5e5e58;

  --accent: #4ade80;
  --accent-light: #6ee7a0;
  --accent-dim: #143d24;

  --border: #252627;
  --border-focus: #3a3b3d;

  --error: #e67e80;

  --radius: 12px;
  --radius-sm: 8px;

  --max-width: 1280px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-darkest);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-primary);
}

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.section-headline {
  font-size: 40px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* Headline with no sub gets full margin; with sub gets reduced */
.section-headline + .usecases-grid,
.section-headline + .pricing-grid,
.section-headline + .faq-list,
.section-headline + .steps-grid {
  margin-top: 36px;
}

/* ── Animations ────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  border-left: 1px solid var(--border-focus);
  padding-left: 12px;
  margin-left: 4px;
}

.accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links .btn {
  margin-left: 48px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-darkest);
  font-size: 16px;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 16px;
}

.btn-ghost:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 10px;
  background: #111112;
  color: #fff;
  border: 1px solid #2a2a2c;
}

.btn-sm:hover {
  background: #1a1a1c;
  border-color: #3a3a3c;
  box-shadow: none;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 40%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.hero-pill-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-focus);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.hero-pill-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.hero-headline {
  font-size: 50px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-xl {
  padding: 10px 20px 10px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg-darkest);
  border: none;
  gap: 10px;
}

.btn-xl:hover {
  background: var(--accent-light);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.25);
  transform: scale(1.02);
}

.btn-xl svg {
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border-radius: 0;
  stroke: var(--bg-darkest);
  flex-shrink: 0;
}

.hero-trust-text {
  font-size: 14px;
  color: var(--text-dim);
}

.browser-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.browser-logos-label {
  font-size: 13px;
  color: var(--text-dim);
}

.browser-logos-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-logo {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.browser-logo:hover {
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* Hero demo (right column) */
.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ── Demo (inside hero) ────────────────────────────────────────────────── */
.demo-video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.video-placeholder:hover {
  background: var(--bg-secondary);
}

.video-placeholder:hover svg {
  transform: scale(1.1);
}

.video-placeholder svg {
  transition: transform 0.2s;
}

.demo-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.demo-caption {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ── Features Showcase ──────────────────────────────────────────────────── */
.showcase-headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 36px 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.showcase-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.showcase-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: var(--accent-dim);
  border-radius: 100px;
  margin-bottom: 16px;
}

.showcase-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.showcase-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.showcase-screenshot {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg-secondary);
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ── How it Works / Steps ──────────────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-darkest);
  font-size: 20px;
  font-weight: 700;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
  flex-shrink: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 56px;
}

/* ── Use Cases ─────────────────────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.usecase:hover {
  border-color: var(--border-focus);
}

.usecase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.usecase-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.usecase-command {
  display: block;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  line-height: 1.5;
}

.usecase-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-darkest);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-decimal {
  font-size: 24px;
  font-weight: 500;
}

.pricing-period {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 32px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 120px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-trust-text {
    text-align: center;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .section-headline {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .section-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .section-headline + .section-sub {
    margin-top: -4px;
  }

  /* Showcase */
  .showcase-headline {
    font-size: 28px;
  }

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

  .showcase-card {
    padding: 28px 28px 0;
  }

  /* Steps */
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step {
    padding: 0;
    max-width: 360px;
  }

  .step-connector {
    display: none;
  }

  /* Use cases */
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-grid,
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    justify-content: center;
  }

  .cta-headline {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 32px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .hero-headline {
    font-size: 32px;
  }

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

  .pricing-price {
    font-size: 40px;
  }

}
