/* ─── V3 Design Tokens ───────────────────────────────────────────── */
:root {
  --ink:         #0c0a09;
  --ink-subtle:  #292524;
  --paper:       #fafaf9;
  --paper-warm:  #f5f0eb;
  --muted:       #a8a29e;
  --muted-dark:  #78716c;
  --border:      #e7e5e4;
  --border-dark: rgba(255,255,255,0.12);
  --accent:      #7c3aed;
  --accent-light:#ede9fe;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.33, 1, 0.68, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* ─── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

/* ─── Nav ────────────────────────────────────────────────────────── */
.navbar {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.logo-link img { width: 34px; height: 34px; }

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

.nav-links a:not(.btn-cta) {
  font-size: 14px;
  font-weight: 500;
  color: rgba(250,250,249,0.6);
  transition: color 150ms;
}

.nav-links a:not(.btn-cta):hover { color: var(--paper); }

.btn-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink) !important;
  background: var(--paper);
  padding: 9px 20px;
  border-radius: 6px;
  transition: background 150ms, transform 150ms var(--ease-out);
}

.btn-cta:hover {
  background: var(--paper-warm);
  transform: translateY(-1px);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border-radius: 6px;
  transition: background 150ms;
}

.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle svg { width: 22px; height: 22px; }
.hamburger-open  { display: block; }
.hamburger-close { display: none; }
.nav-toggle[aria-expanded="true"] .hamburger-open  { display: none; }
.nav-toggle[aria-expanded="true"] .hamburger-close { display: block; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  padding: 100px 0 clamp(120px, 18vh, 160px);
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: 19px;
  color: rgba(250,250,249,0.6);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 44px;
}

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

.btn-hero {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 150ms, transform 150ms var(--ease-out), box-shadow 150ms;
}

.btn-hero:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}

.btn-hero:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.hero-note {
  font-size: 13px;
  color: rgba(250,250,249,0.4);
}

.hero-works-with {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.works-with-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,249,0.35);
}

.works-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(250,250,249,0.7);
}

.works-pill img { width: 14px; height: 14px; object-fit: contain; }

/* Hero screenshot panel */
.hero-visual {
  position: relative;
  align-self: center;
  max-width: 115%;
  margin-left: -7.5%;
}

.hero-screenshot-wrap {
  background: #1c1917;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.hero-chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Divider strip ──────────────────────────────────────────────── */
.strip {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 48px)); }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track {
    animation: none;
  }
  .strip-inner:nth-child(2) { display: none; }
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.strip-item img { 
  width: 18px; 
  height: 18px; 
  object-fit: contain;
  flex-shrink: 0;
}

.strip-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ─── Features ───────────────────────────────────────────────────── */
.features {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--paper);
}

.features-heading {
  margin-bottom: clamp(48px, 7vw, 96px);
  max-width: 640px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.features-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.features-heading p {
  font-size: 18px;
  color: var(--muted-dark);
  line-height: 1.65;
}

/* Numbered feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px 56px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.feature-row:last-child { border-bottom: 1px solid var(--border); }

.feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 4px;
}

.feature-meta {}

.feature-app {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-app img { width: 32px; height: 32px; object-fit: contain; }

.feature-app span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.feature-meta p {
  font-size: 15px;
  color: var(--muted-dark);
  line-height: 1.7;
}

.feature-detail h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.feature-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-dark);
  line-height: 1.5;
}

.feature-perks li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Universal row */
.universal-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-top: -1px;
}

.universal-row-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px 56px;
  align-items: start;
}

.universal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.universal-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.universal-body p {
  font-size: 15px;
  color: var(--muted-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}

.site-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-chip {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-dark);
  padding: 4px 12px;
}

.universal-props {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prop {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.prop-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.prop strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.prop p {
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.5;
  margin: 0;
}

/* ─── Steps ──────────────────────────────────────────────────────── */
.steps-section {
  background: var(--paper-warm);
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.steps-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

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

.step-card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}

.step-card:first-child { border-radius: 12px 0 0 12px; }
.step-card:last-child  { border-radius: 0 12px 12px 0; }

.step-bg-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  color: var(--border);
  position: absolute;
  bottom: -16px;
  right: 16px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.step-marker {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
}

.step-card p {
  font-size: 15px;
  color: var(--muted-dark);
  line-height: 1.65;
  position: relative;
}

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta {
  background: var(--ink);
  padding: clamp(64px, 9vw, 120px) 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 520px;
}

.cta-text p {
  font-size: 17px;
  color: rgba(250,250,249,0.55);
  max-width: 400px;
  line-height: 1.6;
}

.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.cta-note {
  font-size: 13px;
  color: rgba(250,250,249,0.35);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: #0c0a09;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(250,250,249,0.35);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,249,0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(250,250,249,0.55);
  margin-bottom: 12px;
  transition: color 150ms;
}

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

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-base p {
  font-size: 13px;
  color: rgba(250,250,249,0.25);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-row { grid-template-columns: 56px 1fr 1fr; gap: 32px 40px; }
  .universal-row-inner { grid-template-columns: 56px 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-subtle);
    border-bottom: 1px solid var(--border-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn-cta) {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(250,250,249,0.7);
  }
  .nav-links .btn-cta { margin-top: 12px; width: 100%; text-align: center; padding: 12px; }

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

  /* Strip */
  .strip-track { gap: 32px; }
  .strip-inner { gap: 32px; }
  .strip-sep { width: 5px; height: 5px; }
  
  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 32px)); }
  }
  .hero-screenshot-wrap {
    max-width: 100%;
  }

  /* Features */
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .feature-num { display: none; }
  .universal-row-inner { grid-template-columns: 1fr; }
  .universal-body { grid-template-columns: 1fr; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; gap: 2px; }
  .step-card:first-child { border-radius: 12px 12px 0 0; }
  .step-card:last-child  { border-radius: 0 0 12px 12px; }

  /* CTA */
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-side { width: 100%; }
  .btn-hero { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
}
