/* ==========================================================================
   Torquity - ElevenLabs-inspired Dark Theme
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8b8b94;
  --text-muted: #6e6e77;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);

  --border: #27272a;
  --border-light: #3f3f46;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.15);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------- Layout ---------- */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  height: 32px;
}

.logo-icon img {
  height: 100%;
  width: auto;
  filter: invert(1) brightness(2);
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

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

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

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 12px 0;
  font-size: 16px;
}

.mobile-cta {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Screenshot */
.hero-screenshot {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.screenshot-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.screenshot-placeholder {
  background: var(--bg-tertiary);
}

.placeholder-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 245, 0.96) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.chrome-dots span:first-child { background: #ef4444; }
.chrome-dots span:nth-child(2) { background: #eab308; }
.chrome-dots span:last-child { background: #22c55e; }

.chrome-bar {
  flex: 1;
  height: 28px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.95) 100%);
  border-radius: var(--radius-sm);
  max-width: 400px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.screenshot-surface {
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.hero-snapshot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.placeholder-body {
  display: flex;
  min-height: 400px;
}

.placeholder-sidebar {
  width: 200px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placeholder-main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ph-block {
  background: var(--border);
  border-radius: 4px;
  opacity: 0.6;
}

.ph-block.highlight {
  background: var(--accent);
  opacity: 0.5;
}

.placeholder-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.placeholder-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.placeholder-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
}

.placeholder-chart {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}

.chart-placeholder-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 150px;
}

.cpb {
  flex: 1;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 4px 4px 0 0;
  transition: opacity 0.3s;
}

.cpb:nth-child(even) {
  background: var(--accent-hover);
  opacity: 0.2;
}

/* Hero Glow Effects */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.12);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.08);
  bottom: -100px;
  right: -100px;
}

/* ---------- Social Proof ---------- */
.capabilities {
  padding: 48px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}

.capabilities-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0 24px;
}

.capabilities-strip {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.capability-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 0;
  text-align: left;
  position: relative;
  border-top: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.capability-item:hover {
  border-top-color: var(--accent);
}

.capability-item + .capability-item {
  margin-left: 32px;
}

.capability-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.capability-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* --- Infinite Scroll Marquee --- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 12px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}

.marquee-reverse .marquee-track {
  animation-name: marquee-scroll-reverse;
  animation-duration: 55s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

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

.marquee-item {
  flex-shrink: 0;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.marquee-item span {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.marquee-item:hover span {
  color: rgba(255, 255, 255, 0.8);
}


/* ---------- Feature Sections ---------- */
.feature-section {
  padding: 120px 24px;
}

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

.feature-row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list li svg {
  color: #22c55e;
  flex-shrink: 0;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-hover);
  transition: gap 0.2s;
}

.feature-link:hover {
  gap: 10px;
}

.feature-visual {
  width: 100%;
}

.editorial-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.editorial-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.26) 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.editorial-visual-alt::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(0, 0, 0, 0) 50%);
}

.editorial-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.editorial-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 380px;
  padding: 20px;
  background: rgba(9, 9, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.editorial-overlay-right {
  margin-left: auto;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.editorial-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.editorial-metric-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-metric strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.editorial-caption {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Dashboard Placeholders ---------- */
.dashboard-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-snapshot-frame {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #2a2a2e 0%, #1e1e22 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dashboard-snapshot-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 16px 16px 12px;
}

.dashboard-snapshot-frame-expanded .dashboard-snapshot-meta {
  margin-bottom: 0;
}

.dashboard-snapshot-frame-expanded .dashboard-snapshot-window {
  padding: 0;
}

.dashboard-snapshot-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-snapshot-note {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: right;
}

.dashboard-snapshot-window {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  border: none;
  background: #1a1a1e;
}

.dashboard-snapshot-window::before {
  content: "";
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, #3a3a3e 0%, #2e2e32 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-image:
    radial-gradient(circle at 24px 50%, #ff5f57 5px, transparent 5px),
    radial-gradient(circle at 44px 50%, #febc2e 5px, transparent 5px),
    radial-gradient(circle at 64px 50%, #28c840 5px, transparent 5px);
  background-repeat: no-repeat;
}

/* ---------- macOS Window Container ---------- */
.macos-window {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.macos-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.macos-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.macos-dot-red { background: #ff5f57; }
.macos-dot-yellow { background: #febc2e; }
.macos-dot-green { background: #28c840; }

.macos-content {
  padding: 0;
}

.dashboard-snapshot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #1c1c1e;
}

/* ---------- Hero Scene (photo + floating metrics) ---------- */
.hero-visual {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.hero-scene {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}

.hero-scene-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scene-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.22) 50%,
      rgba(0, 0, 0, 0.50) 100%
    ),
    linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, transparent 50%);
  z-index: 1;
}

/* ---------- Floating Metric Cards ---------- */
.metric-float {
  position: absolute;
  width: 172px;
  padding: 16px;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 3;
  animation: metricFloat 6s ease-in-out infinite;
}

.mf-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.mf-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
}

.mf-value-green {
  color: #34d399;
}

.mf-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
}

.mf-arrow {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.mf-detail {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  line-height: 1.3;
}

.mf-spark {
  display: block;
  width: 100%;
  height: 20px;
  opacity: 0.8;
}

.mf-distribution {
  display: block;
  width: 100%;
  height: 28px;
  opacity: 0.9;
}

.mf-breakdown-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-hover);
  opacity: 0.85;
  cursor: pointer;
}

.mf-score-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mf-score-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #34d399, #22c55e);
}

@keyframes metricFloat {
  0%, 100% { transform: translateY(0); }
}

/* Hero metric positions — diagonal stagger */
.mf-hero-1 {
  top: 6%;
  right: 4%;
  animation-delay: 0s;
}

.mf-hero-2 {
  top: 42%;
  left: 3%;
  animation-delay: 2s;
}

.mf-hero-3 {
  bottom: 6%;
  right: 4%;
  animation-delay: 4s;
}

/* ---------- Editorial Scene Section ---------- */
.editorial-scene-section {
  padding: 0 24px;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
}

.editorial-scene-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.editorial-scene-header .feature-label {
  margin-bottom: 16px;
}

.editorial-scene-header h2 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.editorial-scene {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- Before / After Slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-base {
  filter: brightness(0.65) saturate(0.85);
}

.ba-reveal {
  z-index: 1;
  clip-path: inset(0 0 0 70%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: col-resize;
}

.ba-handle-line {
  flex: 1;
  width: 3px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.ba-handle-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-active .ba-handle-knob,
.ba-handle-knob:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.ba-label {
  position: absolute;
  bottom: 16px;
  z-index: 4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 6px;
  pointer-events: none;
}

.ba-label-before {
  left: 16px;
}

.ba-label-after {
  right: 16px;
}

/* Editorial metric positions — pointer-events: none so they don't block slider drag */
.editorial-scene .metric-float {
  pointer-events: none;
}

.mf-edit-1 {
  top: 8%;
  right: 4%;
  animation-delay: 0s;
}

.mf-edit-2 {
  top: 55%;
  right: 4%;
  animation-delay: 2s;
}

.mf-edit-3 {
  top: 8%;
  right: 22%;
  animation-delay: 4s;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dp-tabs {
  display: flex;
  gap: 8px;
}

.dp-tab-active {
  background: var(--accent) !important;
  opacity: 0.6 !important;
}

.dp-content {
  padding: 20px;
}

.dp-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dp-url-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.dp-analyze-btn {
  background: var(--accent) !important;
  opacity: 0.7 !important;
}

.dp-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dp-metric {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
}

/* Map placeholder */
.dp-map-placeholder {
  position: relative;
  height: 300px;
  background: var(--bg-tertiary);
  margin: 0;
  overflow: hidden;
  /* Subtle grid pattern */
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.map-dot-active {
  opacity: 1;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
  animation: pulse 2s infinite;
}

.map-popup {
  position: absolute;
  top: 22%;
  left: 68%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 120px;
  box-shadow: var(--shadow-md);
}

/* Spreadsheet placeholder */
.dp-spreadsheet {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sp-header-row {
  border-bottom: 2px solid var(--border-light);
}

.sp-total-row {
  border-top: 2px solid var(--border-light);
  border-bottom: none;
  padding-top: 12px;
}

.dp-export-badge {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- Stats Section ---------- */
.stats-section {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  text-align: center;
}

.stat {
  padding: 12px;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1.05;
}

.stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
  line-height: 1.55;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2,
.section-header h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Use Cases ---------- */
.use-cases-section {
  padding: 120px 24px;
}

.use-cases-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.uc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-hover);
}

.use-case-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ---------- Testimonials ---------- */
.testimonials-section {
  padding: 120px 24px;
  background: var(--bg-secondary);
}

.testimonials-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.tc-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
}

.tc-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
}

.tc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ---------- Blog Preview ---------- */
.blog-preview-section {
  padding: 120px 24px;
}

.blog-cards {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.bc-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.bc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .bc-thumb img {
  transform: scale(1.04);
}

.bc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bc-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--accent-hover);
}

.bc-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.bc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.bc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  transition: color 0.2s;
}

.bc-link:hover {
  color: var(--accent);
}

.blog-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Waitlist Section (footer form) ---------- */
.waitlist-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.waitlist-container {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-container h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.waitlist-container > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-msg {
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.waitlist-msg.waitlist-success {
  color: #34d399;
  padding: 0;
}

.waitlist-msg.waitlist-error {
  color: #f87171;
}

/* ---------- CTA / Waitlist Section ---------- */
.cta-section {
  position: relative;
  padding: 120px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--accent);
}

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

.waitlist-success {
  padding: 24px;
}

.waitlist-success .success-check {
  margin-bottom: 16px;
}

.waitlist-success h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.waitlist-success p {
  color: var(--text-secondary);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  padding: 120px 24px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-list {
  margin-top: 0;
}

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

.faq-item.active {
  border-bottom-color: var(--border-light);
}

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

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

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

.faq-answer {
  padding-bottom: 24px;
  animation: slideDown 0.3s ease-out;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: invert(1) brightness(2);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  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-tertiary);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

/* ---------- Animations ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.use-cases-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.use-cases-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.use-cases-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }
.use-cases-grid .animate-in:nth-child(5) { transition-delay: 0.4s; }
.use-cases-grid .animate-in:nth-child(6) { transition-delay: 0.5s; }

.testimonials-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-row-reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section-header h2,
  .section-header h1,
  .feature-text h2,
  .cta-content h2 {
    font-size: 32px;
  }

  .dashboard-snapshot-meta {
    flex-direction: column;
  }

  .dashboard-snapshot-note {
    max-width: none;
    text-align: left;
  }

  .metric-float {
    width: 152px;
    padding: 12px;
  }

  .mf-value {
    font-size: 22px;
  }

  .editorial-scene-header h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav-center,
  .nav-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 20px 60px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-form,
  .hero-cta-buttons {
    flex-direction: column;
  }

  .hero-cta-buttons .btn-primary,
  .hero-cta-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .placeholder-sidebar {
    display: none;
  }

  .placeholder-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-number {
    font-size: 36px;
  }

  .use-cases-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .blog-cards {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .capabilities-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .capability-item + .capability-item {
    margin-left: 0;
  }

  .capability-item {
    padding: 14px 16px 14px 0;
    border-top: none;
    border-left: 2px solid var(--border);
    padding-left: 12px;
  }

  .capability-item:hover {
    border-top-color: transparent;
    border-left-color: var(--accent);
  }

  .capability-name {
    font-size: 13px;
  }

  .capability-desc {
    font-size: 11px;
  }

  .feature-section {
    padding: 80px 20px;
  }

  .editorial-visual,
  .editorial-image {
    min-height: 420px;
  }

  .editorial-overlay {
    max-width: none;
  }

  .dashboard-snapshot-frame {
    padding: 0;
  }

  .dashboard-snapshot-window {
    padding: 0;
  }

  .dashboard-snapshot-window::before {
    height: 36px;
    margin-bottom: 0;
    background-image:
      radial-gradient(circle at 20px 50%, #ff5f57 4px, transparent 4px),
      radial-gradient(circle at 36px 50%, #febc2e 4px, transparent 4px),
      radial-gradient(circle at 52px 50%, #28c840 4px, transparent 4px);
  }

  .macos-titlebar {
    padding: 10px 14px;
    gap: 6px;
  }

  .macos-dot {
    width: 10px;
    height: 10px;
  }

  .hero-visual {
    padding: 0 20px;
    margin-top: 40px;
  }

  .hero-scene {
    aspect-ratio: 4 / 3;
  }

  .metric-float {
    width: 140px;
    padding: 10px;
    border-radius: 10px;
  }

  .mf-label {
    font-size: 9px;
  }

  .mf-value {
    font-size: 20px;
  }

  .mf-detail {
    font-size: 10px;
  }

  .mf-hero-3 {
    display: none;
  }

  .editorial-scene-section {
    padding: 0 20px;
  }

  .editorial-scene-header h2 {
    font-size: 28px;
  }

  .editorial-scene-header p {
    font-size: 14px;
  }

  .ba-slider {
    height: 380px;
  }

  .ba-handle-knob {
    width: 36px;
    height: 36px;
  }

  .ba-handle-knob svg {
    width: 16px;
    height: 16px;
  }

  .mf-edit-3 {
    display: none;
  }

  .use-cases-section,
  .testimonials-section,
  .blog-preview-section,
  .faq-section {
    padding: 80px 20px;
  }

  .cta-section {
    padding: 80px 20px;
  }

  .waitlist-input-group {
    flex-direction: column;
  }

  .section-header h2,
  .section-header h1,
  .feature-text h2,
  .cta-content h2 {
    font-size: 28px;
  }
}

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

  .editorial-visual,
  .editorial-image {
    min-height: 360px;
  }

  .editorial-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }

  .editorial-metric strong {
    font-size: 20px;
  }

  .hero-scene {
    aspect-ratio: 3 / 4;
  }

  .mf-hero-2 {
    bottom: 8%;
    left: 4%;
  }

  .mf-hero-1 {
    top: 8%;
    right: 4%;
  }

  .editorial-scene-header h2 {
    font-size: 24px;
  }

  .ba-slider {
    height: 300px;
  }

  .mf-edit-1 {
    top: 4%;
    right: 4%;
  }

  .mf-edit-2 {
    top: 30%;
    right: 4%;
  }

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

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

/* ---------- Hero Inline Form ---------- */
.hero-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 32px auto 0;
}

.hero-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.hero-input::placeholder {
  color: var(--text-muted);
}

.hero-input:focus {
  border-color: var(--accent);
}

.hero-form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

.hero-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-cta-buttons .btn-primary,
.hero-cta-buttons .btn-secondary {
  min-width: 140px;
}


/* ---------- Pricing Section ---------- */
.pricing-section {
  padding: 100px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.pricing-section .feature-label {
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 28px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.14), transparent 40%),
    var(--bg-card);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.pricing-top {
  margin-bottom: 28px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
  color: var(--accent-hover);
  background: #1e1a2e;
  border: 1px solid rgba(129, 140, 248, 0.3);
  white-space: nowrap;
}

.pricing-tier {
  display: block;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 14px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.pricing-price-custom {
  font-size: 36px;
}

.pricing-period {
  font-size: 15px;
  color: var(--text-tertiary);
  padding-bottom: 6px;
}

.pricing-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(129, 140, 248, 0.95);
}

.pricing-list li a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(129, 140, 248, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.pricing-list li a:hover {
  text-decoration-color: rgba(129, 140, 248, 0.9);
}

.pricing-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

/* -- Manual pricing card -- */
.pricing-card-manual {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.015) 14px,
      rgba(255, 255, 255, 0.015) 15px
    ),
    var(--bg-card);
  border-color: var(--border);
  opacity: 0.85;
}

.pricing-card-manual:hover {
  opacity: 0.92;
  transform: none;
  box-shadow: none;
}

.pricing-price-manual {
  font-size: 36px;
  color: #ef4444;
  -webkit-text-fill-color: #ef4444;
  background: none;
  white-space: nowrap;
}

.pricing-list-manual li::before {
  content: "\00d7";
  color: #ef4444;
  font-size: 16px;
  font-weight: 700;
}

.pricing-manual-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.pricing-manual-verdict {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Billing Toggle ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.billing-toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.billing-toggle-label.billing-toggle-active {
  color: var(--text-primary);
}

.billing-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.billing-toggle-switch:hover {
  border-color: var(--accent);
}

.billing-toggle-switch.active {
  background: var(--accent);
  border-color: var(--accent);
}

.billing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform 0.3s ease;
}

.billing-toggle-switch.active .billing-toggle-knob {
  transform: translateX(22px);
}

.billing-toggle-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ---------- Pricing Price Original (strikethrough) ---------- */
.pricing-price-original {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-right: 8px;
  -webkit-text-fill-color: var(--text-tertiary);
}

/* ---------- Pricing CTA on Home ---------- */
.pricing-cta-section {
  padding: 80px 24px;
  text-align: center;
}

/* ---------- Comparison Table ---------- */
.comparison-section {
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead th {
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table tbody td svg {
  color: var(--accent-hover);
}

.comparison-category td {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover) !important;
  background: rgba(99, 102, 241, 0.05);
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 20px !important;
}

/* ---------- Pricing page layout (3 cards, no manual) ---------- */
.pricing-section .pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .pricing-section .pricing-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }
}

/* ---------- Blog Page Overrides ---------- */
.blog-header {
  padding: 120px 24px 60px;
  text-align: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.blog-header h1,
.blog-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-header p,
.blog-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.blog-posts {
  padding: 40px 24px 80px;
  background: var(--bg-primary);
}

.blog-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Blog section on home page */
.blog-section {
  padding: 80px 24px;
  background: var(--bg-secondary);
  text-align: center;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.view-all-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 48px;
}

.view-all-link:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.featured-posts {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.featured-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.featured-post:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.post-title {
  margin-bottom: 12px;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--accent-hover);
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-tag {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  text-decoration: none;
}

.read-more:hover {
  color: var(--accent);
}

/* ---------- Blog Post Page ---------- */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  background: var(--bg-primary);
}

.blog-post .breadcrumbs {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--accent-hover);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-post .post-title {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-post .post-title a,
.blog-post .post-title {
  font-size: 40px;
  color: var(--text-primary);
}

.post-content {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 16px;
}

.post-content img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 32px 0;
  display: block;
}

.post-content p { margin-bottom: 1.5rem; }
.post-content h2 {
  font-size: 28px;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.post-content h3 {
  font-size: 22px;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}
.post-content ul, .post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content a {
  color: var(--accent-hover);
  text-decoration: underline;
}
.post-content a:hover {
  color: var(--accent);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 1.5rem 0;
  color: var(--text-tertiary);
  font-style: italic;
}
.post-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.share-button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.share-button:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.author-bio {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.author-bio h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.related-posts {
  margin: 80px auto;
  max-width: var(--container);
  padding: 0 24px;
}

.related-posts h2 {
  color: var(--text-primary);
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.related-post:hover {
  border-color: var(--border-light);
}

.related-post-title {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text-primary);
}

/* ---------- Page Headers (Features, About, etc.) ---------- */
.features-header,
.about-header {
  text-align: center;
  padding: 120px 24px 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.features-title,
.about-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.features-subtitle,
.about-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Coming Soon ---------- */
.coming-soon {
  text-align: center;
  padding: 160px 24px;
  background: var(--bg-primary);
}

.coming-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.coming-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---------- Integrations Page ---------- */
.integrations-page {
  padding: 140px 24px 100px;
  max-width: 720px;
  margin: 0 auto;
}

.integrations-header {
  text-align: center;
  margin-bottom: 48px;
}

.integrations-header .feature-label {
  margin-bottom: 16px;
}

.integrations-header h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.integrations-header p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.integrations-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.integrations-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.integrations-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .integrations-header h1 {
    font-size: 30px;
  }

  .integrations-form-card {
    padding: 24px;
  }
}

/* ---------- Auth Pages (Login / Signup) ---------- */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
}

.auth-card {
  max-width: 420px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-placeholder {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Privacy Section ---------- */
.privacy-section {
  text-align: center;
  padding: 100px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.privacy-section > * {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.security-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Values Grid (About Page) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Team Grid (About Page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
}

.team-member {
  text-align: center;
  color: var(--text-primary);
}

.team-photo {
  width: 100px;
  height: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0 auto 12px;
}

/* ---------- CTA Container (used on blog posts) ---------- */
.cta-container {
  max-width: var(--container-narrow);
  margin: 80px auto;
  padding: 60px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cta-container p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- 404 Page ---------- */
.page-placeholder {
  padding: 160px 24px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
}

.page-placeholder h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-placeholder p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
}

/* ---------- Utility: primary/secondary buttons used in templates ---------- */
.primary-button, .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.primary-button:hover, .cta-button:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}

.secondary-button:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
}

/* ---------- Legacy form classes (used in blog CTA) ---------- */
.email-input-container {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--accent);
}

.waitlist-button {
  padding: 14px 28px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.waitlist-button:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

/* Blog CTA section */
.blog-cta {
  padding: 0 24px 80px;
  background: var(--bg-primary);
}

.cta-waitlist-form {
  margin-top: 24px;
}

/* ---------- Error / 404 Page ---------- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: var(--bg-primary);
}

.error-container {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.error-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .email-input-container {
    flex-direction: column;
  }

  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: 24px;
  }
}

/* ---------- Flex Page (Affiliates, Privacy, etc.) ---------- */
.flex-page {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.flex-page h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.flex-page h2:first-child {
  margin-top: 0;
  font-size: 42px;
}

.flex-page p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.flex-page p:last-child {
  margin-bottom: 0;
}

.flex-page a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.flex-page a:hover {
  color: var(--text-primary);
}

.flex-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.flex-page .form-card {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flex-page .form-group {
  margin-bottom: 20px;
}

.flex-page .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.flex-page .form-group input,
.flex-page .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s;
}

.flex-page .form-group input:focus,
.flex-page .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .flex-page {
    padding: 120px 20px 60px;
  }

  .flex-page h2:first-child {
    font-size: 32px;
  }

  .flex-page h2 {
    font-size: 24px;
  }
}

/* ---------- Affiliate Form ---------- */
.affiliate-form-wrapper {
  margin-top: 8px;
}

.affiliate-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.af-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.af-field input,
.af-field select,
.af-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.af-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23a1a1aa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.af-field input:focus,
.af-field select:focus,
.af-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.af-field input::placeholder,
.af-field textarea::placeholder {
  color: var(--text-muted);
}

.af-field-full {
  width: 100%;
}

.affiliate-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

.af-msg {
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.af-error {
  color: #f87171;
}

.af-success-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.af-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid #22c55e;
  font-size: 2rem;
  color: #22c55e;
  margin-bottom: 20px;
}

.af-success-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.af-success-state p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .af-row {
    grid-template-columns: 1fr;
  }

  .affiliate-form {
    padding: 24px 20px;
  }
}
