/* =========================================
   AlphaStack — Premium Fintech Landing Page
   Dark terminal aesthetic, teal accent
   ========================================= */

:root {
  --bg: #080c10;
  --bg-2: #0d1420;
  --bg-card: #0f1724;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-glow: rgba(0, 229, 160, 0.08);
  --gold: #f5c842;
  --text: #e8eaf0;
  --text-muted: #7a8499;
  --text-dim: #4a5268;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(0, 229, 160, 0.3);
  --radius: 12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

/* ======================== NAVBAR ======================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 12, 16, 0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { font-size: 18px; color: var(--accent); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 24px 80px;
  max-width: 1100px; margin: 0 auto;
  position: relative;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 0%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}
.headline-accent { color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--text-muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 48px;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
}
.stat { padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat-value {
  display: block; font-family: var(--font-head);
  font-size: 28px; font-weight: 700; color: var(--text);
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual — Terminal */
.hero-visual { position: relative; z-index: 1; }
.terminal-window {
  background: #0a0f18;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0, 229, 160, 0.05);
}
.terminal-bar {
  background: #0d1420;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #28c840; }
.t-label { margin-left: 12px; font-size: 11px; color: var(--text-muted); font-family: monospace; }
.terminal-body {
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
}
.t-line { color: #c8d0e0; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-muted { color: var(--text-muted); }
.t-success { color: var(--accent); }
.t-accent { color: #82aaff; }
.t-buy { color: var(--gold); background: rgba(245, 200, 66, 0.1); padding: 1px 6px; border-radius: 3px; font-size: 11px; margin: 0 6px; }
.cursor-line { opacity: 0.5; }
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ======================== MARKET BAR ======================== */
.marketbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.marketbar-inner {
  display: flex; gap: 0;
  animation: scroll-ticker 20s linear infinite;
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-sym { font-size: 12px; font-weight: 600; color: var(--text-muted); font-family: monospace; }
.ticker-price { font-size: 14px; font-weight: 600; color: var(--text); font-family: monospace; }
.ticker-change { font-size: 12px; font-weight: 500; font-family: monospace; }
.ticker-change.up { color: var(--accent); }
.ticker-change.down { color: #ff6b6b; }

/* ======================== SECTIONS ======================== */
section { padding: 100px 24px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ======================== FEATURES ======================== */
.features { background: var(--bg); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  padding: 36px;
  transition: background 0.2s;
}
.feature-card:hover { background: #121d2e; }
.feature-icon { margin-bottom: 20px; }
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ======================== HOW IT WORKS ======================== */
.how-it-works { background: var(--bg-2); }
.steps {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 24px; align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { border-top: 1px solid var(--border); }
.step-number {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-content p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.step-connector {
  width: 1px; height: 24px;
  background: var(--border-accent);
  margin: 0 0 0 30px;
  display: none;
}

/* ======================== TIERS ======================== */
.tiers { background: var(--bg); }
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px; margin: 0 auto;
}
.tier-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.tier-card.tier-featured {
  background: linear-gradient(135deg, #0a1a28 0%, #0f2538 100%);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 229, 160, 0.08);
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 100px;
}
.tier-name {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.tier-price {
  font-family: var(--font-head);
  font-size: 48px; font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1;
}
.tier-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.tier-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier-features li {
  font-size: 14px; color: var(--text);
  display: flex; align-items: flex-start; gap: 8px;
}
.tier-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ======================== MANIFESTO ======================== */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.manifesto-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.manifesto-attribution { font-size: 13px; color: var(--text-muted); letter-spacing: 0.05em; }

/* ======================== CLOSING ======================== */
.closing { background: var(--bg); padding: 120px 24px; }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.closing-sub { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px;
}
.footer-brand .logo-mark { font-size: 20px; color: var(--accent); }
.footer-brand .logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-left: 8px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim);
}
.footer-disclaimer { text-align: right; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-disclaimer { text-align: center; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .nav-links { display: none; }
}