/* ============================================================
   NeuralTrade AI — Complete Design System
   Futuristic ML Trading Platform Stylesheet
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg-primary:       #0a0e17;
  --bg-secondary:     #0f1423;
  --bg-card:          #131a2b;
  --bg-card-hover:    #182035;
  --bg-surface:       rgba(19, 26, 43, 0.85);

  /* Borders & dividers */
  --border-color:     rgba(255, 255, 255, 0.06);
  --border-glow:      rgba(0, 240, 255, 0.12);

  /* Accent colors */
  --accent-cyan:      #00f0ff;
  --accent-cyan-dim:  rgba(0, 240, 255, 0.15);
  --accent-purple:    #a855f7;
  --accent-purple-dim:rgba(168, 85, 247, 0.15);
  --accent-green:     #22c55e;
  --accent-green-dim: rgba(34, 197, 94, 0.15);
  --accent-orange:    #f59e0b;
  --accent-orange-dim:rgba(245, 158, 11, 0.15);
  --accent-red:       #ef4444;

  /* Text */
  --text-primary:     #f0f2f5;
  --text-secondary:   #8a94a6;
  --text-muted:       #5a6478;

  /* Fonts */
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing & sizing */
  --nav-height:       72px;
  --container-max:    1200px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        24px;

  /* Shadows */
  --shadow-card:      0 4px 24px rgba(0, 0, 0, 0.3),
                      0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.15),
                      0 0 60px rgba(0, 240, 255, 0.05);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.15),
                        0 0 60px rgba(168, 85, 247, 0.05);

  /* Transitions */
  --transition-fast:  0.15s ease;
  --transition-base:  0.3s ease;
  --transition-slow:  0.5s ease;
}


/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}


/* ── Background Effects ────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--cyan {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.bg-orb--purple {
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -30px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(0.95); }
  75%      { transform: translate(30px, 40px) scale(1.02); }
}


/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Typography ────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}


/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

/* Sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0090a8);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent-cyan);
}


/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 840px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 32px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-cyan);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.cyan   { color: var(--accent-cyan); }
.stat-value.green  { color: var(--accent-green); }
.stat-value.purple { color: var(--accent-purple); }
.stat-value.orange { color: var(--accent-orange); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Hero terminal */
.hero-terminal {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 180px;
}

.terminal-body .prompt {
  color: var(--accent-cyan);
}

.terminal-body .success {
  color: var(--accent-green);
}

.terminal-body .warn {
  color: var(--accent-orange);
}

.terminal-body .info {
  color: var(--accent-purple);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-cyan);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* ── Trust Bar / Logo Row ──────────────────────────────────── */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.trust-bar p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.trust-logos span {
  font-size: 1.4rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition-base);
  white-space: nowrap;
}

.trust-logos span:hover {
  opacity: 1;
}


/* ── Page Header (Interior pages) ──────────────────────────── */
.page-header {
  text-align: center;
  padding: calc(var(--nav-height) + 64px) 24px 48px;
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ── Cards (Features, general) ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card-icon.cyan   { background: var(--accent-cyan-dim); }
.card-icon.purple { background: var(--accent-purple-dim); }
.card-icon.green  { background: var(--accent-green-dim); }
.card-icon.orange { background: var(--accent-orange-dim); }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ── Pricing Cards ─────────────────────────────────────────── */
.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-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.pricing-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(0,240,255,0.05) 0%, var(--bg-card) 40%);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.06) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), #0090a8);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* All-plans-include section */
.plans-include {
  margin-top: 80px;
  text-align: center;
}

.plans-include-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.plans-include-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.plans-include-item .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.plans-include-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.plans-include-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}


/* ── Timeline (How It Works) ───────────────────────────────── */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-cyan),
    var(--accent-purple),
    var(--accent-green)
  );
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  animation: fadeInUp 0.6s ease-out both;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ── Architecture Diagram ──────────────────────────────────── */
.architecture-diagram {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  overflow-x: auto;
  margin-top: 48px;
}

.architecture-diagram pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre;
}

.architecture-diagram .hl-cyan   { color: var(--accent-cyan); }
.architecture-diagram .hl-purple { color: var(--accent-purple); }
.architecture-diagram .hl-green  { color: var(--accent-green); }


/* ── Signal Lifecycle Cards ────────────────────────────────── */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lifecycle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.lifecycle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.lifecycle-card .step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.lifecycle-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lifecycle-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Metrics (Performance page) ────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.metric-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Equity curve chart placeholder */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 64px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chart-container canvas {
  width: 100%;
  height: 100%;
}

.chart-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Instrument breakdown table */
.perf-table-wrapper {
  margin-top: 64px;
  overflow-x: auto;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.perf-table thead {
  position: sticky;
  top: 0;
}

.perf-table th {
  text-align: left;
  padding: 14px 20px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-color);
}

.perf-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.perf-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.perf-table .positive { color: var(--accent-green); }
.perf-table .negative { color: var(--accent-red); }

/* Confidence distribution */
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.confidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.confidence-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.confidence-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  overflow: hidden;
  margin-bottom: 12px;
}

.confidence-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.confidence-fill.high   { background: var(--accent-green); }
.confidence-fill.medium { background: var(--accent-orange); }
.confidence-fill.low    { background: var(--accent-red); }


/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-question .icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-answer a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── Auth Pages (Login / Signup) ───────────────────────────── */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

select.form-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238a94a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Social auth buttons */
.auth-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.auth-footer a {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Password strength indicator */
.password-strength {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-secondary);
  transition: background var(--transition-fast);
}

.strength-bar.active.weak   { background: var(--accent-red); }
.strength-bar.active.medium { background: var(--accent-orange); }
.strength-bar.active.strong { background: var(--accent-green); }


/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}


/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 96px 24px;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── Disclaimer / Notices ──────────────────────────────────── */
.disclaimer {
  margin-top: 64px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.disclaimer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.disclaimer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-up:nth-child(1)  { animation-delay: 0.05s; }
.fade-in-up:nth-child(2)  { animation-delay: 0.10s; }
.fade-in-up:nth-child(3)  { animation-delay: 0.15s; }
.fade-in-up:nth-child(4)  { animation-delay: 0.20s; }
.fade-in-up:nth-child(5)  { animation-delay: 0.25s; }
.fade-in-up:nth-child(6)  { animation-delay: 0.30s; }
.fade-in-up:nth-child(7)  { animation-delay: 0.35s; }
.fade-in-up:nth-child(8)  { animation-delay: 0.40s; }
.fade-in-up:nth-child(9)  { animation-delay: 0.45s; }


/* ── Responsive ────────────────────────────────────────────── */

/* <= 1024px — Tablets */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-include-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .lifecycle-grid,
  .confidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* <= 768px — Mobile landscape / small tablets */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 4px;
    z-index: 999;
    animation: fadeIn 0.2s ease;
  }

  .nav-actions.open {
    display: flex;
    justify-content: center;
    position: fixed;
    top: calc(var(--nav-height) + 280px);
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero-stats {
    gap: 32px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .features-grid,
  .pricing-grid,
  .lifecycle-grid,
  .confidence-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-include-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline-marker {
    left: -48px;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .section-padding {
    padding: 64px 0;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* <= 480px — Phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: calc(var(--nav-height) + 24px) 16px 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-terminal {
    font-size: 0.7rem;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .pricing-price {
    font-size: 2.2rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .auth-social {
    flex-direction: column;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-marker {
    left: -40px;
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .cta-section {
    padding: 64px 16px;
  }
}


/* ── Utility Classes ───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
}

.text-cyan   { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-green  { color: var(--accent-green); }
.text-orange { color: var(--accent-orange); }
.text-muted  { color: var(--text-muted); }

.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }

.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* Glow hover effect */
.glow-hover {
  transition: box-shadow var(--transition-base);
}
.glow-hover:hover {
  box-shadow: var(--shadow-glow-cyan);
}


/* ── Scrollbar Styling ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
