@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F5F5F7;
  --bg-tertiary:   #EBEBEB;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #F5F5F7;
  --bg-topbar:     rgba(245,245,247,0.85);

  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary:  #AEAEB2;

  --border:         rgba(0,0,0,0.08);
  --border-medium:  rgba(0,0,0,0.12);
  --border-strong:  rgba(0,0,0,0.18);

  --accent:         #0066CC;
  --accent-light:   rgba(0,102,204,0.08);
  --accent-hover:   #0055AA;

  --success:        #34C759;
  --warning:        #FF9500;
  --error:          #FF3B30;
  --neutral:        #8E8E93;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

  --blur: blur(20px) saturate(180%);
}

:root[data-theme="dark"] {
  --bg-primary:    #000000;
  --bg-secondary:  #1C1C1E;
  --bg-tertiary:   #2C2C2E;
  --bg-card:       #1C1C1E;
  --bg-sidebar:    #161618;
  --bg-topbar:     rgba(28,28,30,0.85);

  --text-primary:   #F5F5F7;
  --text-secondary: #98989D;
  --text-tertiary:  #636366;

  --border:         rgba(255,255,255,0.06);
  --border-medium:  rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.16);

  --accent:         #0A84FF;
  --accent-light:   rgba(10,132,255,0.12);
  --accent-hover:   #409CFF;

  --success:        #30D158;
  --warning:        #FF9F0A;
  --error:          #FF453A;
  --neutral:        #636366;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ─── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 16px; line-height: 1.6; }
small { font-size: 13px; }
.mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  background: var(--bg-topbar);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.macos-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: default;
  transition: filter 0.15s ease;
}
.dot:hover { filter: brightness(0.85); }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-medium);
  margin: 0 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-logo {
  height: 20px;
  width: auto;
}

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

.topbar-badge-mls {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.topbar-nav a:hover { color: var(--text-primary); }
.topbar-nav a.active { color: var(--accent); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-switch {
  position: relative;
  width: 32px;
  height: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}
.theme-switch:hover { background: var(--bg-secondary); }

.theme-icon {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.badge-dev {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.btn-beta {
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}
.btn-beta:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn-beta:active { transform: translateY(0); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal]:nth-child(1) { transition-delay: 0ms; }
[data-reveal]:nth-child(2) { transition-delay: 60ms; }
[data-reveal]:nth-child(3) { transition-delay: 120ms; }
[data-reveal]:nth-child(4) { transition-delay: 180ms; }
[data-reveal]:nth-child(5) { transition-delay: 240ms; }
[data-reveal]:nth-child(6) { transition-delay: 300ms; }

/* ─── SECTION LABELS ─────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  padding-top: calc(52px + 80px);
  padding-bottom: 80px;
  background: var(--bg-primary);
  text-align: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--warning);
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  padding: 4px 12px;
  animation: hero-fade-down 0.4s ease-out both;
}

.hero h1 {
  color: var(--text-primary);
  max-width: 700px;
  animation: hero-fade-up 0.5s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  animation: hero-fade-up 0.5s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: hero-fade-up 0.5s ease-out 0.3s both;
}

.btn {
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-secondary); }

.hero-disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  animation: hero-fade 0.5s ease-out 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 32px;
  width: 100%;
  max-width: 600px;
  animation: hero-fade-up 0.5s ease-out 0.4s both;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 4px;
}

/* Terminal */
.terminal-wrap {
  max-width: 640px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fade-scale-in 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) 0.5s both;
}

.terminal-titlebar {
  background: var(--bg-tertiary);
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot-r { background: #FF5F57; }
.terminal-dot-y { background: #FEBC2E; }
.terminal-dot-g { background: #28C840; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.terminal-body {
  background: var(--bg-secondary);
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  height: 240px;
  overflow-y: auto;
  line-height: 1.6;
  text-align: left;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 2px; }

.log-dim    { color: var(--text-tertiary); display: block; }
.log-normal { color: var(--text-secondary); display: block; }
.log-accent { color: var(--accent); display: block; }
.log-success{ color: var(--success); display: block; }
.log-accent-bold { color: var(--accent); font-weight: 600; display: block; }

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.cursor {
  animation: cursor-blink 1s step-end infinite;
  color: var(--text-secondary);
}

/* ─── DEV BANNER ─────────────────────────────────────────────── */
.dev-banner {
  background: rgba(255, 149, 0, 0.08);
  border-top: 1px solid rgba(255, 149, 0, 0.2);
  border-bottom: 1px solid rgba(255, 149, 0, 0.2);
  padding: 16px 24px;
  text-align: center;
  font-size: 14px;
  color: #CC7700;
}
[data-theme="dark"] .dev-banner {
  color: #FFAA33;
}
.dev-banner a {
  color: var(--accent);
  text-decoration: underline;
}

/* ─── PIPELINE (Comment ça marche) ──────────────────────────── */
.pipeline {
  padding: 80px 24px;
  background: var(--bg-primary);
}

.pipeline-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pipeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.pipeline-header p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}

.step-num {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  line-height: 1.8;
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 4px;
  min-height: 40px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.4s ease-out;
}
.step-line.visible { transform: scaleY(1); }

.pipeline-step:last-child .step-line { display: none; }

.step-content {
  padding-bottom: 20px;
  flex: 1;
}

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

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.step-quote {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
}

/* ─── FEATURES ───────────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.features-header p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-primary);
  padding: 28px;
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: default;
  position: relative;
}
[data-theme="dark"] .feature-card { background: var(--bg-card); }
.feature-card:hover { background: var(--bg-secondary); }
[data-theme="dark"] .feature-card:hover { background: var(--bg-tertiary); }

.feature-card.featured {
  border-top: 2px solid var(--accent);
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.feature-badge {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 2px;
}

/* ─── DASHBOARD MOCKUP ───────────────────────────────────────── */
.dashboard-section {
  padding: 80px 24px;
  background: var(--bg-primary);
}

.dashboard-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

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

.dashboard-mockup {
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-titlebar {
  background: var(--bg-secondary);
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
}

.dash-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.dash-layout {
  display: flex;
  min-height: 400px;
}

.dash-sidebar {
  width: 130px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  flex-shrink: 0;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.dash-sidebar-item.active {
  background: var(--accent-light);
  color: var(--accent);
}
.dash-sidebar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dash-main {
  flex: 1;
  padding: 20px;
  background: var(--bg-primary);
  overflow: hidden;
}
[data-theme="dark"] .dash-main { background: var(--bg-secondary); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
[data-theme="dark"] .dash-main .dash-stat { background: var(--bg-tertiary); }

.dash-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.dash-stat-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.dash-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
[data-theme="dark"] .dash-main .dash-table { background: var(--bg-tertiary); }

.dash-table-header {
  display: grid;
  grid-template-columns: 50px 1fr 100px 120px 70px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
[data-theme="dark"] .dash-main .dash-table-header { background: var(--bg-primary); }

.dash-th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-table-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 120px 70px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  align-items: center;
  transition: background 0.15s;
}
.dash-table-row:last-child { border-bottom: none; }
.dash-table-row:hover { background: var(--bg-secondary); }

.dash-td {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-score {
  font-weight: 700;
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  border-radius: 100px;
  padding: 2px 8px;
}
.status-favorable {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}
[data-theme="dark"] .status-favorable { background: rgba(48, 209, 88, 0.12); }
.status-attente {
  background: rgba(255, 149, 0, 0.1);
  color: var(--warning);
}
.status-filtre {
  background: rgba(255, 59, 48, 0.1);
  color: var(--error);
}

.mockup-icon {
  font-size: 13px;
}

/* ─── PRICING ────────────────────────────────────────────────── */
.pricing {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 12px;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: rgba(0, 102, 204, 0.4);
}
[data-theme="dark"] .pricing-card.featured {
  border-color: rgba(10, 132, 255, 0.4);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-status-badge {
  font-size: 11px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border-radius: 100px;
  padding: 3px 10px;
  font-weight: 400;
}

.plan-featured-badge {
  font-size: 11px;
  background: var(--accent);
  color: white;
  border-radius: 100px;
  padding: 3px 10px;
  font-weight: 500;
}

.plan-price {
  margin-bottom: 20px;
}

.plan-price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.plan-price-period {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.plan-feature-check {
  color: var(--success);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-feature-dash {
  color: var(--text-tertiary);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-feature-text { color: var(--text-secondary); }
.plan-feature-text.muted { color: var(--text-tertiary); }

.plan-cta { width: 100%; }

.btn-plan-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease-out;
}
.btn-plan-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-plan-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease-out;
}
.btn-plan-secondary:hover { background: var(--bg-secondary); transform: translateY(-1px); }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ─── DEV STATUS ─────────────────────────────────────────────── */
.dev-status {
  padding: 80px 24px;
  background: var(--bg-primary);
}

.dev-status-inner {
  max-width: 720px;
  margin: 0 auto;
}

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

.dev-status-header p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

.status-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

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

.status-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.status-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.status-icon.done    { color: var(--success); }
.status-icon.in-progress { color: var(--accent); }
.status-icon.planned { color: var(--text-tertiary); }

.status-label {
  font-size: 12px;
  font-weight: 500;
}
.status-label.done    { color: var(--success); }
.status-label.in-progress {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-label.planned { color: var(--text-tertiary); }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}

.progress-section {
  text-align: center;
}

.progress-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-pct {
  font-weight: 700;
  color: var(--text-primary);
}

.progress-track {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── CTA FINAL ──────────────────────────────────────────────── */
.cta-final {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-final-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-final h2 {
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.cta-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 16px;
}

.cta-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cta-input::placeholder { color: var(--text-tertiary); }
.cta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}
[data-theme="dark"] .cta-input:focus {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.cta-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-out;
}
.cta-submit:hover { background: var(--accent-hover); }

.cta-form-error {
  font-size: 12px;
  color: var(--error);
  text-align: left;
  max-width: 480px;
  margin: 4px auto 0;
  display: none;
}
.cta-form-error.visible { display: block; }

.cta-form-success {
  font-size: 13px;
  color: var(--success);
  margin-top: 8px;
  display: none;
}
.cta-form-success.visible { display: block; }

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2s ease-in-out infinite;
}

.fine-print {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 10px 0 4px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  width: 100%;
  background: var(--bg-topbar);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--text-primary); }

/* ─── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes hero-fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .topbar-center { display: none; }
  .badge-dev { display: none; }
  .hamburger { display: flex; }

  .hero-stats {
    padding: 16px;
    flex-wrap: wrap;
  }
  .stat-item {
    flex: 0 0 50%;
    padding: 8px;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-left: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-radius: 0; }

  .terminal-body { height: 160px; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { width: 100px; }
  .dash-table-header,
  .dash-table-row { grid-template-columns: 40px 1fr 80px 90px; }
  .dash-th:last-child,
  .dash-td:last-child { display: none; }

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

  .cta-form { flex-direction: column; gap: 8px; }
  .cta-input { border-right: 1px solid var(--border-medium); border-radius: 8px; }
  .cta-submit { border-radius: 8px; padding: 12px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-top .footer-col:first-child { grid-column: auto; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .pipeline-step { gap: 16px; }
  .step-num { font-size: 11px; }
}
