/* ===== DESIGN TOKENS ===== */
:root {
  --blue: #0071E3;
  --blue-light: #147CE5;
  --green: #30D158;
  --red: #FF453A;
  --gold: #FFD60A;

  --bg: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-dark: #1D1D1F;
  --bg-darker: #0A0A0A;
  --bg-mid: #2C2C2E;

  --text: #1D1D1F;
  --text-muted: #6E6E73;
  --text-light: #AEAEB2;
  --text-inv: #F5F5F7;

  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.06);

  --font: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  height: 52px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-brand span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(0, 113, 227, 0.08); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); }

.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #3a3a3c; }

.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }

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

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #0A0A0A 0%, #1D1D1F 55%, #0A0A0A 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,113,227,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.15);
  border: 1px solid rgba(0, 113, 227, 0.3);
  color: #5AC8FA;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #FFFFFF;
  max-width: 820px;
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
}

.hero-stat {
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  flex: 1;
  min-width: 110px;
}

.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.06); }

.hero-stat-label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-stat-value.pos { color: var(--green); }
.hero-stat-value.neg { color: var(--red); }

/* ===== SHOWCASE SECTION ===== */
.showcase {
  background: var(--bg);
  padding: 80px 0 100px;
}

.showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.showcase-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.showcase-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.1;
}

.showcase-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.regime-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.regime-chip.growth {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: #30D158;
}

.regime-chip.defensive {
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: #F5C518;
}

.regime-chip.loading {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.regime-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

/* Performance Strip */
.perf-strip {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.perf-item {
  flex: 1;
  min-width: 80px;
  padding: 14px 16px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perf-item.perf-vs {
  background: rgba(0, 113, 227, 0.03);
  border-left: 1px solid rgba(0, 113, 227, 0.1);
}

.perf-label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perf-val {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.pos { color: var(--green) !important; }
.neg { color: var(--red) !important; }
.neutral { color: var(--text-muted) !important; }

/* ===== CHART PANEL ===== */
.chart-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.period-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.period-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
}

.period-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.period-tab:hover:not(.active) { color: var(--text); }

.chart-return-summary { display: flex; gap: 8px; flex-wrap: wrap; }

.ret-badge {
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
}

.ret-badge.blue { background: rgba(0,113,227,0.1); color: var(--blue); }
.ret-badge.gray { background: rgba(110,110,115,0.1); color: var(--text-muted); }
.ret-badge.green { background: rgba(48,209,88,0.1); color: var(--green); }
.ret-badge.red { background: rgba(255,69,58,0.1); color: var(--red); }

.chart-wrapper {
  position: relative;
  height: 320px;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  z-index: 10;
}

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

.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DATA GRID ===== */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  margin-bottom: 20px;
}

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header h3, .card > h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.holdings-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 980px;
}

/* ===== HOLDINGS TABLE ===== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.holdings-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.holdings-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

.holdings-table tr:last-child td { border-bottom: none; }
.holdings-table tr:hover td { background: var(--bg); }

.holding-name { display: flex; flex-direction: column; gap: 2px; }

.ticker-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: -0.2px;
}

.company-name { font-size: 11px; color: var(--text-muted); }

.weight-bar-cell { display: flex; flex-direction: column; gap: 3px; }

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

.weight-bar {
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 0.4;
  max-width: 100%;
}

.price-cell {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.holdings-table td.pos,
.holdings-table td.neg {
  font-weight: 600;
}

.loading-row {
  text-align: center;
  color: var(--text-muted) !important;
  padding: 32px !important;
}

/* ===== RIGHT PANEL ===== */
.right-panel { display: flex; flex-direction: column; gap: 18px; }

.winners-card h3,
.metrics-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.winners-list { display: flex; flex-direction: column; gap: 8px; }

.winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.winner-item:hover { background: rgba(0,0,0,0.06); }

.winner-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.winner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.winner-ticker {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
}

.winner-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-return {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-item {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.showcase-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.6;
}

.showcase-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.showcase-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.showcase-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.section-title.inv { color: #fff; }

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-sub.inv { color: var(--text-light); }

/* ===== HOW IT WORKS ===== */
.how-section { background: #FFFFFF; padding: 100px 24px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0A6FD4, #0071E3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
}

.step-num {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  font-family: var(--mono);
}

.step-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ===== STRATEGY METHODOLOGY ===== */
.strategy-section { background: var(--bg-dark); padding: 100px 24px; }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.strategy-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s;
}

.strategy-card:hover { background: rgba(255,255,255,0.06); }

.strategy-card-icon { font-size: 28px; margin-bottom: 14px; }
.strategy-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 113, 227, 0.2);
  color: #5AC8FA;
  margin-bottom: 10px;
}

.strategy-card h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.strategy-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }

.formula-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #5AC8FA;
  line-height: 1.8;
  overflow-x: auto;
}

/* ===== SOCIAL TRADING ===== */
.social-section { background: var(--bg); padding: 100px 24px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pc-creator { display: flex; align-items: center; gap: 10px; }

.pc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071E3, #5AC8FA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.pc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pc-strategy { font-size: 12px; color: var(--text-muted); }

.pc-monetized-badge {
  padding: 3px 9px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 214, 10, 0.12);
  color: #F5C518;
  border: 1px solid rgba(255, 214, 10, 0.2);
}

.pc-returns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.pc-return-item { text-align: center; }
.pc-return-label { font-size: 9px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; display: block; margin-bottom: 3px; }
.pc-return-val { font-size: 13px; font-weight: 700; }

.pc-metrics { display: flex; gap: 14px; margin-bottom: 14px; font-size: 12px; color: var(--text-muted); }
.pc-metrics span { display: flex; align-items: center; gap: 4px; }

.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.badge { padding: 3px 9px; border-radius: 980px; font-size: 11px; font-weight: 600; }
.badge-alpha { background: rgba(0,113,227,0.1); color: var(--blue); }
.badge-risk { background: rgba(48,209,88,0.1); color: var(--green); }
.badge-veteran { background: rgba(255,214,10,0.1); color: #F5C518; }

/* ===== PRICING ===== */
.pricing-section { background: #FFFFFF; padding: 100px 24px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
}

.price-card.featured {
  background: var(--bg-dark);
  border-color: transparent;
  transform: scale(1.02);
}

.price-featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 4px 14px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.price-tier { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.price-card.featured .price-tier { color: #5AC8FA; }

.price-amount { font-size: 42px; font-weight: 700; letter-spacing: -1.5px; color: var(--text); margin-bottom: 4px; }
.price-card.featured .price-amount { color: #fff; }

.price-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.price-card.featured .price-period { color: var(--text-light); }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { font-size: 14px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; }
.price-card.featured .price-features li { color: var(--text-light); }
.price-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ===== SHAREKHAN CTA ===== */
.sharekhan-section {
  background: linear-gradient(160deg, #0A0A0A 0%, #1D1D1F 100%);
  padding: 80px 24px;
  text-align: center;
}

.sharekhan-section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; letter-spacing: -1px; margin-bottom: 14px; }
.sharekhan-section p { font-size: 17px; color: var(--text-light); max-width: 500px; margin: 0 auto 32px; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border-dark);
}

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

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

.footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--blue); }
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer-col h4 { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

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

.modal h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.form-field { margin-bottom: 14px; }

.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--blue); }

.form-field textarea { resize: vertical; min-height: 80px; }

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.modal-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.modal-switch { text-align: center; font-size: 13px; color: var(--text-muted); }
.modal-switch a { color: var(--blue); font-weight: 500; cursor: pointer; text-decoration: none; }

.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }
.form-success { font-size: 12px; color: var(--green); margin-top: 6px; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.25s ease;
  max-width: 320px;
}

.toast.success { background: var(--bg-dark); color: var(--green); border: 1px solid rgba(48,209,88,0.2); }
.toast.error { background: var(--bg-dark); color: var(--red); border: 1px solid rgba(255,69,58,0.2); }
.toast.info { background: var(--bg-dark); color: #5AC8FA; border: 1px solid rgba(90,200,250,0.2); }

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

/* ===== USER CHIP ===== */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 980px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid var(--border);
}

.user-chip:hover { background: rgba(0,0,0,0.06); }

.user-chip-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.user-chip-name { font-size: 13px; font-weight: 500; color: var(--text); }

/* ===== QUANT PLANS ===== */
.quant-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.quant-plan-opt {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.quant-plan-opt:hover { border-color: rgba(0,113,227,0.4); }
.quant-plan-opt.selected { border-color: var(--blue); background: rgba(0,113,227,0.05); }
.quant-plan-name { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 2px; }
.quant-plan-price { font-size: 12px; color: var(--text-muted); }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .data-grid { grid-template-columns: 1fr; }
  .right-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-stats { flex-wrap: wrap; border-radius: var(--radius-sm); }
  .hero-stat { min-width: calc(50% - 0.5px); }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .perf-strip { flex-wrap: wrap; }
  .perf-item { min-width: calc(33.33% - 1px); }
  .steps-grid { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .price-card.featured { transform: none; }
  .right-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .chart-wrapper { height: 240px; }
}

@media (max-width: 480px) {
  .hero-stat { min-width: 100%; border-top: 1px solid rgba(255,255,255,0.06) !important; border-left: none !important; }
  .perf-item { min-width: calc(50% - 1px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .quant-plans { grid-template-columns: 1fr; }
  .chart-controls { flex-direction: column; align-items: flex-start; }
}
