/* ============================================
   Fundamental AI — Complete Stylesheet
   Built modularly: Reset → Tokens → Layout → Components → Pages → Animations
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   1. CSS RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ============================================
   2. DESIGN TOKENS (CSS Custom Properties)
   ============================================ */

/* -- Dark theme (default) -- */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #111118;
  --bg-card: #0d0d14;
  --bg-card-hover: #151520;
  --bg-elevated: #18181f;
  --bg-input: #111118;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --border-color: rgba(148, 163, 184, 0.08);
  --border-strong: rgba(148, 163, 184, 0.15);

  --brand-primary: #a855f7;
  --brand-primary-light: #c084fc;
  --brand-primary-dark: #7c3aed;
  --brand-accent: #06b6d4;
  --brand-accent-light: #22d3ee;
  --brand-gradient: linear-gradient(135deg, #9a71e7 0%, #6dc3ea 100%);

  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.1);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.08);

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

/* -- Light theme -- */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-input: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;

  --border-color: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);

  --brand-primary: #a855f7;
  --brand-primary-light: #9333ea;
  --brand-primary-dark: #7c3aed;
  --brand-accent: #06b6d4;
  --brand-accent-light: #0891b2;
  --brand-gradient: linear-gradient(135deg, #9a71e7 0%, #6dc3ea 100%);

  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.08);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, 0.08);
  --yellow: #d97706;
  --yellow-bg: rgba(217, 119, 6, 0.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.06);

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

/* ============================================
   3. BASE / GLOBAL
   ============================================ */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

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

/* ============================================
   4. HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.8);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: white;
}

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

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.theme-toggle:hover { color: var(--text-primary); background: var(--bg-tertiary); }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover { color: var(--text-primary); }

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

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-xl { padding: 18px 36px; font-size: 1rem; }

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-primary-light);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

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

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

/* Trusted By */
.trusted-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
}

.avatar-stack { display: flex; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.trusted-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trusted-text strong { color: var(--text-primary); }

/* ============================================
   7. HERO DASHBOARD MOCKUP
   ============================================ */
.hero-dashboard {
  max-width: 950px;
  margin: 0 auto;
  perspective: 1200px;
}

.dashboard-img {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.dash-toolbar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.r { background: #ef4444; }
.dash-dot.y { background: #f59e0b; }
.dash-dot.g { background: #22c55e; }

.dash-body {
  display: flex;
  min-height: 320px;
}

/* Dashboard Sidebar */
.dash-sidebar {
  width: 180px;
  padding: 12px 10px;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: all 0.2s;
}

.dash-sidebar-item.active {
  background: rgba(168, 85, 247, 0.1);
  color: var(--brand-primary-light);
}

/* Dashboard Main */
.dash-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-chart {
  flex: 1;
  min-height: 160px;
}

.dash-chart svg { width: 100%; height: 100%; }

.dash-stats {
  display: flex;
  gap: 10px;
}

.dash-stat-card {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.dash-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash-stat-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.dash-stat-value.up { color: var(--green); }
.dash-stat-value.down { color: var(--red); }

/* Dashboard Right Panel */
.dash-right {
  width: 220px;
  padding: 12px;
  border-left: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dash-right-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.dash-news-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.dash-news-item:last-child { border-bottom: none; }

.dash-news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.dash-news-dot.bullish { background: var(--green); }
.dash-news-dot.bearish { background: var(--red); }
.dash-news-dot.neutral { background: var(--yellow); }

.dash-news-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dash-news-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   8. SOCIAL PROOF / CREATORS
   ============================================ */
.social-proof { padding: 80px 0; }

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.creator-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.creator-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
}

/* ============================================
   9. PARTNERS / LOGO CAROUSEL
   ============================================ */
.partners {
  padding: 40px 0;
  overflow: hidden;
}

.section-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.logo-carousel { overflow: hidden; position: relative; }

.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.logo-carousel::before { left: 0; background: linear-gradient(to right, var(--bg-primary), transparent); }
.logo-carousel::after { right: 0; background: linear-gradient(to left, var(--bg-primary), transparent); }

.logo-track {
  display: flex;
  gap: 60px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}

.partner-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

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

/* ============================================
   10. TESTIMONIALS
   ============================================ */
.testimonials { padding: 100px 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

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

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.author-info .name { font-size: 0.85rem; font-weight: 600; }
.author-info .role { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   11. FEATURE SECTIONS
   ============================================ */
.feature-section {
  padding: 80px 0;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-split.reverse .feature-content { order: 2; }
.feature-split.reverse .feature-visual-container { order: 1; }

.feature-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Feature Mockups */
.feature-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* News Playbook */
.playbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.playbook-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.playbook-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.playbook-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.playbook-card:last-child { margin-bottom: 0; }

.playbook-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.playbook-card-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.playbook-card-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.forecast-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.forecast-value {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.forecast-value.positive { color: var(--green); }
.forecast-value.negative { color: var(--red); }

/* Headlines Visual */
.headline-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.headline-item:last-child { border-bottom: none; }

.headline-alert {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.headline-alert.high { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.headline-alert.medium { background: var(--yellow); }
.headline-alert.low { background: var(--green); }

.headline-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

.headline-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Candle Visual */
.candle-visual { position: relative; }

.candle-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  padding-bottom: 20px;
}

.candlestick {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.candle-body {
  width: 10px;
  min-height: 15px;
  border-radius: 2px;
}

.candlestick.bullish .candle-body { background: var(--green); }
.candlestick.bearish .candle-body { background: var(--red); }

.candle-wick {
  width: 2px;
  min-height: 5px;
}

.candlestick.bullish .candle-wick { background: var(--green); }
.candlestick.bearish .candle-wick { background: var(--red); }

.candle-tooltip {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.candle-tooltip-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary-light);
  margin-bottom: 8px;
}

.candle-tooltip-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   12. PRICING
   ============================================ */
.pricing { padding: 100px 0; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.toggle-label.active { color: var(--text-primary); font-weight: 600; }

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  position: relative;
  transition: all 0.3s;
}

.toggle-switch.active { background: var(--brand-primary); border-color: var(--brand-primary); }

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

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

.save-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.old-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.billed-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card .btn { width: 100%; }

/* ============================================
   13. FAQ
   ============================================ */
.faq { padding: 100px 0; }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   14. CONTACT
   ============================================ */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 24px;
}

.email-display {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary-light);
  margin-bottom: 20px;
}

/* ============================================
   15. CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================
   16. NEWSLETTER
   ============================================ */
.newsletter {
  padding: 60px 0;
  text-align: center;
}

.newsletter h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { outline: none; border-color: var(--brand-primary); }

/* ============================================
   17. FOOTER
   ============================================ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 360px;
}

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

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

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

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-column li { margin-bottom: 10px; }

.footer-column a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.footer-disclaimer p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================
   18. SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-primary-dark); }

/* ============================================
   19. AUTH PAGES (Sign In / Sign Up)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .logo { justify-content: center; margin-bottom: 20px; }

.auth-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { outline: none; border-color: var(--brand-primary); }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
}

.forgot {
  color: var(--brand-primary-light);
  font-weight: 500;
  transition: color 0.2s;
}

.forgot:hover { color: var(--brand-primary); }

.auth-card .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.auth-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 24px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--border-color);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s;
}

.social-btn:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--brand-primary-light);
  font-weight: 600;
}

.auth-footer a:hover { color: var(--brand-primary); }

/* ============================================
   20. SCROLL ANIMATIONS
   ============================================ */
.animate-in,
.animate-left,
.animate-right {
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in { transform: translateY(30px); }
.animate-left { transform: translateX(-40px); }
.animate-right { transform: translateX(40px); }

.animate-in.visible,
.animate-left.visible,
.animate-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   21. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-split.reverse .feature-content { order: 1; }
  .feature-split.reverse .feature-visual-container { order: 2; }

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

  .dash-sidebar,
  .dash-right { display: none; }
}

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

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    gap: 12px;
  }

  .mobile-toggle { display: flex; }

  .header-actions .btn { display: none; }

  .hero h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn { width: 100%; }

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

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

  .forecast-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .newsletter-form { flex-direction: column; }

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

  .social-login { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

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

  .pricing-card { padding: 28px 20px; }

  .auth-card { padding: 28px 20px; }
}
