/* ================================================
   NimbleAI — styles.css
   Direction: Dark ultra-premium
   Palette: Near-black #0a0908 + amber gold #D4A14A
   Fonts: Fraunces (display) + Figtree (body)
   ================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Backgrounds */
  --bg:        #0a0908;
  --surface:   #131210;
  --surface-2: #1c1a17;
  --surface-3: #262320;

  /* Accent — single amber gold */
  --accent:        #D4A14A;
  --accent-hover:  #e0b05a;
  --accent-low:    rgba(212, 161, 74, 0.10);
  --accent-border: rgba(212, 161, 74, 0.22);
  --accent-glow:   0 0 40px rgba(212, 161, 74, 0.14);

  /* Text */
  --text:   #f0ece6;
  --text-2: #9a9590;
  --text-3: #5a5752;

  /* Borders */
  --border:   rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --max-w:   1200px;
  --nav-h:   64px;
  --gutter:  clamp(20px, 5vw, 40px);

  /* Section spacing */
  --section-py: clamp(80px, 10vw, 140px);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);

  /* Transitions */
  --t-fast: 150ms ease-out;
  --t-base: 250ms ease-out;
  --t-slow: 400ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* grain overlay removed — caused CSS parse issues */

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

ul { list-style: none; }

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

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.btn:active { transform: scale(0.97); }

.btn-accent {
  background: var(--accent);
  color: #0a0908;
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--r-lg);
}

/* Responsive fallback: on narrow screens, longer button labels (French/
   other translations) must wrap instead of overflowing their container.
   white-space:nowrap above is fine for short EN labels but has no fallback
   below a certain text width — this covers all .btn variants including
   .cta-btn and modal buttons. */
@media (max-width: 640px) {
  .btn,
  .btn-lg,
  .cta-btn {
    white-space: normal;
    text-align: center;
  }
}

/* ─── SECTION SHARED ─── */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}

/* Fallback: si landing.js ne charge pas, tout reste visible */
body:not(.js-ready) .reveal {
  opacity: 1;
  transform: none;
}

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

/* ─── ACCENT TEXT ─── */
.accent-text { color: var(--accent); }

/* ═══════════════════════════════ NAVBAR ═══════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.nav.scrolled {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.logo-icon { flex-shrink: 0; }

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--t-base);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu */
.nav-mobile[hidden] { display: none !important; }

.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 9, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--gutter) 24px;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-link {
  display: block;
  padding: 12px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}

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

/* ═══════════════════════════════ HERO ═══════════════════════════════ */

.hero {
  min-height: calc(100vh - 10px);   /* fallback */
  min-height: calc(100svh - 10px);  /* modern browsers: ignores collapsed mobile address bar */
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Subtle background radial gradient */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 70vh;
  background: radial-gradient(ellipse at center, rgba(212, 161, 74, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeUp 600ms ease-out 100ms both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 161, 74, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(212, 161, 74, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeUp 600ms ease-out 200ms both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 600ms ease-out 320ms both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeUp 600ms ease-out 420ms both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 600ms ease-out 500ms both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.trust-item i {
  color: var(--accent);
  font-size: 15px;
}

/* Hero visual / mockup */
.hero-visual {
  position: relative;
  animation: fadeUp 700ms ease-out 350ms both;
}

/* ─── MOCKUP ─── */
.mockup {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--accent-glow);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

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

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

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-filename {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  flex: 1;
}

.mockup-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.mockup-status.done {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.mockup-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.mockup-section:last-of-type { border-bottom: none; }

.mockup-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mockup-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.mockup-tag.accent {
  background: var(--accent-low);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Timeline */
.mockup-timeline { margin-bottom: 8px; }

.timeline-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--accent)     0%,  var(--accent)     16%,
    var(--surface-3) 16%, var(--surface-3) 22%,
    var(--accent)    22%, var(--accent)    38%,
    var(--surface-3) 38%, var(--surface-3) 44%,
    var(--accent)    44%, var(--accent)    62%,
    var(--surface-3) 62%, var(--surface-3) 67%,
    var(--accent)    67%, var(--accent)    82%,
    var(--surface-3) 82%, var(--surface-3) 86%,
    var(--accent)    86%, var(--accent)    100%
  );
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 6px;
}

.timeline-meta strong { color: var(--accent); font-weight: 600; }

/* Clips in mockup */
.mockup-clips { display: flex; flex-direction: column; gap: 8px; }

.mockup-clip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.clip-thumb {
  width: 44px;
  height: 32px;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3px;
  position: relative;
  overflow: hidden;
}

.clip-waveform {
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(
    to right,
    var(--accent) 0px,
    var(--accent) 2px,
    transparent 2px,
    transparent 5px
  );
  border-radius: 1px;
  opacity: 0.8;
}

.clip-dur {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(240, 236, 230, 0.7);
}

.clip-info { flex: 1; min-width: 0; }

.clip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.clip-sub {
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-dl {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.clip-dl:hover { background: var(--accent-low); color: var(--accent); }

.mockup-more {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  padding-top: 6px;
}

.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.mockup-dl-all {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.mockup-dl-all:hover {
  background: rgba(212, 161, 74, 0.18);
  box-shadow: var(--accent-glow);
}

.mockup-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Floating stats */
.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
}

.hero-float-a {
  top: -20px;
  right: -16px;
}

.hero-float-b {
  bottom: -16px;
  left: -16px;
}

.float-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 3px;
}

.float-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════ TRUST BAR ═══════════════════════════════ */

.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 32px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.trust-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ═══════════════════════════════ HOW IT WORKS ═══════════════════════════════ */

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
}

.step:hover {
  border-color: var(--border-2);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: -4px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--accent);
  font-size: 20px;
  align-self: center;
  flex-shrink: 0;
}

.connector-line { display: none; }

/* ═══════════════════════════════ FEATURES ═══════════════════════════════ */

.feat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: 100px;
}

.feat-block:last-child { margin-bottom: 0; }

.feat-block-reverse { direction: rtl; }
.feat-block-reverse > * { direction: ltr; }

.feat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.feat-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feat-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.feat-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.feat-bullets li i {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* Feature cards */
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.feat-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* Waveform visualization */
.feat-waveform {
  position: relative;
  height: 56px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 6px;
}

.feat-waveform .wf-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 8px 10px;
}

.wf-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.7;
  min-width: 2px;
}

.feat-waveform.clean .wf-bar {
  opacity: 0.85;
}

.wf-silence-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wf-silence {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(239, 68, 68, 0.12);
  border-left: 1px solid rgba(239, 68, 68, 0.4);
  border-right: 1px solid rgba(239, 68, 68, 0.4);
}

.silence-tag {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  color: #f87171;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.feat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 12px;
}

.feat-card-meta i { margin-right: 5px; }

/* Feature: clips list */
.feat-clips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.feat-clip-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clip-rank {
  width: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
  text-align: right;
}

.clip-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}

.clip-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  opacity: 0.85;
}

.clip-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  min-width: 32px;
  text-align: right;
}

.clip-dl-icon {
  color: var(--text-3);
  font-size: 14px;
  cursor: default;
  transition: color var(--t-fast);
}

.feat-clip-row:hover .clip-dl-icon { color: var(--accent); }

.feat-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.feat-dl-btn:hover {
  background: rgba(212, 161, 74, 0.18);
  box-shadow: var(--accent-glow);
}

/* Feature: video subtitle mock */
.feat-card-video { padding: 0; overflow: hidden; }

.fake-video {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 340px;
  background: #0d1117;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.fake-video-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 161, 74, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(100, 100, 200, 0.04) 0%, transparent 50%);
}

.fake-speaker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.speaker-shape {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border-2);
}

.fake-subtitle {
  position: absolute;
  bottom: 48px;
  left: 16px;
  right: 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  line-height: 1.4;
}

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

.fake-video-ui {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fake-platform {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

.fake-dur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

.style-picker {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface-2);
}

.style-opt {
  flex: 1;
  padding: 6px;
  text-align: center;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}

.style-opt.active,
.style-opt:hover {
  background: var(--accent-low);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Feature: format cards */
.feat-card-formats { padding: 28px; }

.fmt-grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.fmt-item {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  gap: 6px;
  transition: border-color var(--t-base);
}

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

.fmt-916 { width: 56px; height: 96px; }
.fmt-169 { width: 96px; height: 54px; }
.fmt-11  { width: 72px; height: 72px; align-self: center; }

.fmt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
}

.fmt-platforms {
  display: flex;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.fmt-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Feature: viral hooks list */
.feat-hooks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.feat-hook-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}

.feat-hook-item:hover { border-color: var(--accent-border); }

.hook-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.hook-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.hook-score {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  padding: 3px 8px;
  white-space: nowrap;
}

/* Feature: thumbnail generator */
.feat-thumb-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.feat-thumb-prompt i { color: var(--accent); flex-shrink: 0; }

.feat-thumb-preview {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(212, 161, 74, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(100, 100, 200, 0.18) 0%, transparent 55%),
    var(--surface-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-preview-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0 16px;
}

.thumb-preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13,17,23,0.7);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  padding: 4px 9px;
}

/* Feature: language picker (translate) */
.lang-picker {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface-2);
  flex-wrap: wrap;
}

.lang-opt {
  flex: 1;
  min-width: 60px;
  padding: 6px;
  text-align: center;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}

.lang-opt.active,
.lang-opt:hover {
  background: var(--accent-low);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Feature: competitor analysis */
.feat-comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.comp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}

.comp-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.comp-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

.comp-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.comp-stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.comp-stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.comp-stat-label i { color: var(--accent); font-size: 14px; }

.comp-stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ═══════════════════════════════ STATS ═══════════════════════════════ */

.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(212, 161, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: inline;
  letter-spacing: -0.03em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
  display: inline;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ═══════════════════════════════ PRICING ═══════════════════════════════ */

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 40px;
}

/* 4 subscription tiers, always in one row on desktop — packs are
   handled separately below as a one-time add-on, not a 5th tier. */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  max-width: 1180px;
  gap: 22px;
  margin: 0 auto 0;
}

.pricing-grid-4 .price-card {
  flex: none;
  max-width: none;
  min-width: 0;
  padding: 36px 26px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 340px;
  max-width: 380px;
  min-width: 300px;
}

.price-card-featured {
  border-color: var(--accent-border);
  background: var(--surface);
  z-index: 1;
}

.price-badge-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.price-badge-top {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1200;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.price-curr {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--text-2);
}

.price-dec {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 10px;
}

.price-was {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-3);
  text-decoration: line-through;
  align-self: center;
  margin-left: 6px;
  font-weight: 400;
}

.price-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 28px;
}

.price-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  list-style: none;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}

.price-features li i {
  font-size: 16px;
  flex-shrink: 0;
  color: var(--text-3);
}

.price-card-featured .price-features li:not(.feat-no) i { color: var(--accent); }

.feat-no {
  opacity: 0.45;
}

.feat-no i { color: var(--text-3) !important; }

.price-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

.price-btn i {
  transition: transform 220ms ease-out;
}

.price-btn:hover i {
  transform: translateX(3px);
}

.price-renew-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin: -6px 0 20px;
}

.price-guarantee {
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: center;
  margin-top: 10px;
}

/* Free tier — split chips (video / features) */
.price-credits-row {
  display: flex;
  gap: 10px;
  margin: 2px 0 18px;
}

.price-credit-chip {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: center;
}

.price-credit-chip i {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 4px;
  display: inline-block;
}

.price-credit-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.price-credit-chip span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

/* Paid tiers — single prominent total */
.price-total-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  text-align: center;
  margin: 2px 0 8px;
}

.price-card-featured .price-total-block {
  background: rgba(212, 161, 74, 0.08);
  border-color: var(--accent-border);
}

.price-total-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 6px;
}

.price-value-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  margin-top: 8px;
  opacity: 0.85;
}

/* Packs — one-time top-up, set apart from the 4 subscription tiers */
.pricing-addon-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 40px auto 24px;
}

.pricing-addon-divider::before,
.pricing-addon-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pricing-addon-divider span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.pricing-addon {
  max-width: 620px;
  margin: 0 auto;
}

.price-card-packs {
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  border-style: dashed;
  border-color: var(--border-2);
}

.price-card-packs:hover {
  border-color: var(--accent-border);
  box-shadow: none;
  transform: none;
}

.pricing-addon-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.pricing-addon-text .price-tier {
  margin-bottom: 4px;
}

.pricing-addon-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}

.pricing-addon-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.pricing-addon-price .price-period {
  margin-top: 2px;
}

.price-amount-packs {
  font-family: var(--font-display);
}

.price-packs-plus {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-2);
  margin-left: 2px;
  align-self: flex-start;
  margin-top: 8px;
}

/* Billing toggle — Monthly / Annual (Annual on by default, affects Pro only) */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 32px;
  flex-wrap: wrap;
}

.billing-toggle-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  transition: color var(--t-fast);
}

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

.billing-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}

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

.billing-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.billing-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform var(--t-base), background var(--t-base);
}

.billing-toggle.is-annual {
  background: var(--accent-low);
  border-color: var(--accent-border);
}

.billing-toggle.is-annual .billing-toggle-thumb {
  transform: translateX(18px);
  background: var(--accent);
}

.billing-toggle-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  padding-left: 4px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}

/* Credit packs — modal */
.packs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-base);
}

.packs-modal-overlay[hidden] {
  display: none;
}

.packs-modal-overlay.is-open {
  opacity: 1;
}

.packs-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 28px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform var(--t-base), opacity var(--t-base);
}

.packs-modal-overlay.is-open .packs-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.packs-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 16px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.packs-modal-close:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface-2);
}

.packs-modal-header {
  margin-bottom: 24px;
  padding-right: 32px;
}

.packs-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.packs-modal-header p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 440px;
}

.packs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pack-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: border-color var(--t-fast);
}

.pack-row:hover {
  border-color: var(--border-2);
}

.pack-row-featured {
  border-color: var(--accent-border);
  background: var(--accent-low);
}

.pack-row-tag {
  position: absolute;
  top: -9px;
  left: 16px;
  background: var(--accent);
  color: #0a0908;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.pack-row-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.pack-row-credits {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.pack-row-credits strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.pack-row-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.pack-row-btn {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 13px;
}

.packs-modal-footnote {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

/* ═══════════════════════════════ REVIEWS ═══════════════════════════════ */

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

.reviews-grid > :nth-child(2),
.reviews-grid > :nth-child(5) {
  transform: translateY(24px);
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.review-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  font-style: normal;
}

.review-text::before {
  content: '"';
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 0;
  vertical-align: -6px;
  margin-right: 2px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--av-bg, var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 236, 230, 0.8);
  flex-shrink: 0;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  transition: color var(--t-fast);
}

.review-name:hover { color: var(--accent); }

.review-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ═══════════════════════════════ CASE STUDY — PIN + SWIPE ═══════════════════════════════ */

.case-pin-section { padding: 0; }

.case-pin-wrap {
  position: relative;
  height: 300vh;   /* fallback */
  height: 300svh;  /* 3 copies x 100svh de distance de scroll pour les 2 transitions */
}

.case-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;   /* fallback */
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-pin-progress {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.case-pin-progress i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--border-2);
  transition: background var(--t-fast);
}

.case-pin-progress i.active { background: var(--accent); }

.case-pin-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 84px 0 16px;
  will-change: transform;
}

/* Mise en page côte à côte (vidéo | flèche | grille des clips) pour le mode pin
   (>900px uniquement — en dessous de 900px la section redevient un empilement
   classique, voir plus bas). Plutôt que d'empiler et de tout rétrécir pour
   tenir dans 100vh, on étale horizontalement : ça exploite la largeur de
   l'écran et permet des éléments nettement plus grands tout en restant dans
   la hauteur dispo (la hauteur de la ligne vidéo+clips est plafonnée par la
   colonne vidéo, qui est la plus haute des deux). */
@media (min-width: 901px) {
  .case-pin-progress { top: 76px; }

  .case-pin-slide .container {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 56px minmax(460px, 820px);
    column-gap: 24px;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
  }

  .case-pin-slide .section-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  .case-pin-slide .section-title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }
  .case-pin-slide .section-sub { display: none; }

  .case-pin-slide .case-original {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .case-pin-slide .case-original-top { padding: 8px 14px; }
  .case-pin-slide .case-original-bottom { padding: 10px 14px 12px; }
  .case-pin-slide .case-original-title { font-size: 0.92rem; margin-bottom: 6px; }
  .case-pin-slide .case-original-channel { margin-bottom: 8px; }
  .case-pin-slide .case-original-avatar { width: 22px; height: 22px; }
  .case-pin-slide .case-original-channel-name { font-size: 12px; }
  .case-pin-slide .case-original-meta { font-size: 11px; gap: 10px; }

  .case-pin-slide .case-arrow {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .case-pin-slide .case-arrow i { font-size: 20px; transform: rotate(-90deg); }
  .case-pin-slide .case-arrow span { display: none; }

  .case-pin-slide .case-clips-grid {
    grid-column: 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: none;
    width: 100%;
    gap: 8px;
  }
  .case-pin-slide .case-clip-body { padding: 7px 8px 8px; }
  .case-pin-slide .case-clip-name { font-size: 11px; }
  .case-pin-slide .case-clip-sub { display: none; }
  .case-pin-slide .case-clip-dur { font-size: 9.5px; padding: 2px 5px; bottom: 5px; right: 5px; }

  .case-pin-slide .case-swipe-hint { display: none; }
  .case-pin-slide .case-cta { grid-column: 1 / -1; margin-top: 18px; }
  .case-pin-slide .case-cta-note { font-size: 11px; }
}

/* En dessous de 900px, le scroll-jacking horizontal se désactive :
   les 3 copies s'empilent normalement en scroll vertical classique. */
@media (max-width: 900px) {
  .case-pin-section { padding: var(--section-py) 0; }
  .case-pin-wrap { height: auto; }
  .case-pin-sticky { position: static; height: auto; overflow: visible; display: block; }
  .case-pin-progress { display: none; }
  .case-pin-slide {
    position: static;
    inset: auto;
    display: block;
    overflow: visible;
    padding: 0 0 72px;
    transform: none !important;
  }
  .case-pin-slide:last-child { padding-bottom: 0; }
}

/* ═══════════════════════════════ CASE STUDY ═══════════════════════════════ */

.case-original {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1815, #0d0c0a);
  border: 1px solid var(--border-2);
  max-width: 760px;
  margin: 0 auto 48px;
}

.case-original-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
}

.case-original-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.case-original-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.case-original-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-original-bottom { padding: 16px 20px 20px; }

.case-original-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.case-original-channel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.case-original-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.case-original-channel-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.case-original-channel-name i {
  font-size: 13px;
  color: var(--text-2);
}

.case-original-meta {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.case-original-meta span { display: flex; align-items: center; gap: 5px; }

.case-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto 32px;
  color: var(--text-3);
}

.case-arrow i { font-size: 20px; color: var(--accent); }

.case-arrow span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-clips-grid {
  display: flex;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.case-clip {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.case-clip:hover { border-color: var(--accent-border); transform: translateY(-3px); }

.case-clip-video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
}

.case-clip-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-clip-dur {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text);
  background: rgba(0, 0, 0, .6);
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
}

.case-clip-body { padding: 8px 9px 9px; }

.case-clip-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1px;
}

.case-clip-sub {
  font-size: 10px;
  color: var(--text-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-cta { text-align: center; margin-top: 40px; }

.case-cta-note { font-size: 12.5px; color: var(--text-3); }

.case-swipe-hint {
  display: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 14px;
}

@media (max-width: 768px) {
  .case-clips-grid {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 6px;
    margin: 0 calc(-1 * var(--gutter, 20px));
    padding-left: var(--gutter, 20px);
    padding-right: var(--gutter, 20px);
    scrollbar-width: none;
  }
  .case-clips-grid::-webkit-scrollbar { display: none; }
  .case-clip { flex: 0 0 155px; scroll-snap-align: start; }
  .case-swipe-hint { display: block; }
}

/* ═══════════════════════════════ FINAL CTA ═══════════════════════════════ */

.cta-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212, 161, 74, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: clamp(48px, 8vw, 80px);
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--accent-glow);
}

.cta-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 36px;
}

.cta-btn {
  font-size: 17px;
  padding: 16px 36px;
  min-height: 56px;
  border-radius: var(--r-lg);
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 18px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  flex-shrink: 0;
  max-width: 200px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 17px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.footer-social:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-low);
}

.footer-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 28px 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--t-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.footer-credit a {
  color: var(--text-2);
  transition: color var(--t-fast);
}

.footer-credit a:hover { color: var(--accent); }

/* ═══════════════════════════════ ANIMATIONS ═══════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════ REDUCED MOTION ═══════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-badge,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .hero-trust,
  .hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float-a { top: -12px; right: -8px; }
  .hero-float-b { bottom: -8px; left: -8px; }

  .feat-block {
    gap: 40px;
  }

  .pricing-grid {
    max-width: 780px;
  }

  .price-card {
    flex: 1 1 300px;
    max-width: 360px;
  }

  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 780px;
  }

  .pricing-grid-4 .price-card {
    max-width: none;
  }

  .price-card-featured {
    transform: none !important;
  }

  .pricing-addon {
    max-width: 560px;
  }

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

@media (max-width: 560px) {
  .pricing-grid {
    max-width: 420px;
    gap: 20px;
  }

  .price-card {
    flex: 1 1 100%;
    max-width: 420px;
    padding: 32px 26px;
  }

  .pricing-grid-4 {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 20px;
  }

  .price-amount {
    font-size: 3rem;
  }

  .price-total-num {
    font-size: 2.1rem;
  }

  .price-card-packs {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
  }

  .pricing-addon-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pricing-addon-price {
    align-items: flex-start;
    margin-left: 0;
  }
}

/* Tablet narrow: 900px */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-ghost { display: none; }

  /* BUG FIX: the language switcher's trigger has no fixed/min width, so its
     label (e.g. "Français", "Português") could grow past the space left by
     the logo + hamburger, pushing/clipping the "Try Free" button off the
     right edge of the screen — which is exactly what was blocking sign-ups.
     It's already duplicated inside the hamburger menu (#lang-switcher-slot-mobile),
     so on mobile we only need it there, not in the fixed top bar. */
  #lang-switcher-slot { display: none !important; }
  #theme-toggle-slot { display: none !important; }

  /* Defensive hardening: even after removing the switcher, make sure the
     remaining nav items can never force the bar wider than the viewport. */
  .nav-inner { flex-wrap: nowrap; }
  .nav-actions { min-width: 0; gap: 8px; }
  .nav-logo { min-width: 0; }
  .logo-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text { align-items: center; display: flex; flex-direction: column; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-float-a, .hero-float-b { display: none; }

  .feat-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feat-block-reverse { direction: ltr; }

  .steps-grid {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector {
    transform: rotate(90deg);
    align-self: flex-start;
    margin-left: 40px;
    padding: 0;
  }

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

  .reviews-grid > :nth-child(2),
  .reviews-grid > :nth-child(5) {
    transform: none;
  }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .hero-title { font-size: 2.2rem; }

  .steps-grid { gap: 8px; }

  .trust-bar-inner { gap: 0; }
  .trust-stat { padding: 8px 16px; }
  .trust-divider:nth-child(8),
  .trust-divider:nth-child(10) { display: none; }

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

  .billing-toggle-wrap { gap: 8px 10px; }
  .billing-toggle-note { flex-basis: 100%; border-left: none; padding-left: 0; text-align: center; }

  .pack-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "credits btn";
    row-gap: 8px;
  }
  .pack-row-name    { grid-area: name; }
  .pack-row-price   { grid-area: price; justify-self: end; }
  .pack-row-credits { grid-area: credits; }
  .pack-row-btn     { grid-area: btn; justify-self: end; }

  .cta-inner { padding: 36px 20px; }

  .packs-modal { padding: 28px 18px 20px; }
  .packs-modal-header { padding-right: 28px; }

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

/* Mobile small: 375px */
@media (max-width: 375px) {
  .hero-title { font-size: 2rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .trust-divider { display: none; }
  .trust-stat { padding: 8px 12px; }

  /* Give the nav a little more breathing room on the smallest screens */
  .nav-actions .btn-accent { padding: 10px 16px; font-size: 14px; }
  .logo-wordmark { max-width: 92px; }
}