@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Dark theme (default) */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #161e2e;
  --bg-accent: #1a2332;
  --fg-primary: #f0f4f8;
  --fg-secondary: #94a3b8;
  --fg-muted: #64748b;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.15);
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --border: rgba(148, 163, 184, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #f1f5f9;
  --bg-accent: #e2e8f0;
  --fg-primary: #0a0e17;
  --fg-secondary: #475569;
  --fg-muted: #94a3b8;
  --accent: #1d074b;
  --accent-glow: rgba(29, 7, 75, 0.08);
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  --border: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 2rem;
}

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

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-value.green { color: var(--green); }
.stat-value.cyan { color: var(--accent); }
.stat-value.amber { color: var(--amber); }

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Hero right: mock dashboard */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  z-index: 1;
}

.dashboard-mock {
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dash-header-left {
  display: flex;
  flex-direction: column;
}

.dash-title {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dash-total {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.dash-change {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  align-self: flex-start;
}

.dash-rows {
  padding: 0.5rem 0;
}

.dash-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s;
}

.dash-row:hover {
  background: var(--bg-accent);
}

.ticker-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--fg-secondary);
}

.ticker-info {
  display: flex;
  flex-direction: column;
}

.ticker-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.ticker-shares {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.ticker-value {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-pct {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.ticker-pct.up { color: var(--green); }
.ticker-pct.down { color: var(--red); }

.dash-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
}

.dash-alloc {
  display: flex;
  gap: 1rem;
}

.alloc-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.alloc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.alloc-dot.stocks { background: var(--accent); }
.alloc-dot.etfs { background: var(--green); }
.alloc-dot.crypto { background: var(--amber); }
.alloc-dot.bonds { background: #a78bfa; }

/* === PROBLEMS SECTION === */
.problems {
  padding: 6rem 6rem;
  position: relative;
}

.problems::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6rem;
  right: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.problems h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.2;
}

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

.problem-card {
  background: var(--bg-secondary);
  padding: 2rem;
}

.problem-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.problem-card .strike {
  text-decoration: line-through;
  color: var(--fg-muted);
}

/* === FEATURES === */
.features {
  padding: 6rem 6rem;
}

.features h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  line-height: 1.2;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 4rem 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 8rem 6rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.closing h2 .highlight {
  color: var(--accent);
}

.closing p {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FOOTER === */
footer {
  padding: 2rem 6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-primary);
}

.footer-right {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 6rem 2rem 3rem;
  }
  .hero-visual {
    padding: 0 2rem 4rem;
  }
  .problems, .features, .closing {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .feature-number {
    margin-bottom: -0.25rem;
  }
  footer {
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 5rem 1.5rem 2rem;
  }
  .hero-visual {
    padding: 0 1.5rem 3rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .problems, .features, .closing {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .problems::before {
    left: 1.5rem;
    right: 1.5rem;
  }
  footer {
    padding: 2rem 1.5rem;
  }
}