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

:root {
  --bg: #0a0a0d;
  --surface: #111118;
  --surface-2: #16161f;
  --border: #1e1e2a;
  --border-light: #2a2a38;
  --fg: #e8e8f0;
  --fg-dim: #7a7a90;
  --fg-muted: #4a4a60;
  --accent: #00e676;
  --accent-dim: rgba(0, 230, 118, 0.12);
  --accent-2: #00b8ff;
  --red: #ff5252;
  --yellow: #ffca28;
  --green: #00e676;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { font-size: 20px; color: var(--accent); }
.logo-text { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--fg); letter-spacing: -0.02em; }
.navbar-links { display: flex; gap: 32px; }
.navbar-links a { color: var(--fg-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-headline {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 440px;
}

/* TERMINAL PREVIEW */
.hero-terminal-preview { margin-top: 32px; }
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}
.terminal-bar {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.tb-dot { width: 12px; height: 12px; border-radius: 50%; }
.tb-red { background: #ff5f57; }
.tb-yellow { background: #ffbd2e; }
.tb-green { background: #28ca41; }
.tb-title { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); margin-left: 8px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.t-line { color: var(--fg); }
.t-dim { color: var(--fg-dim); }
.t-green { color: var(--accent); }
.t-spacer { height: 16px; }
.t-header { color: var(--fg-muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; font-size: 11px; letter-spacing: 0.05em; }
.t-row { display: flex; gap: 16px; padding: 4px 0; border-radius: 4px; }
.t-row:hover { background: var(--surface-2); }
.t-active { background: rgba(0, 230, 118, 0.05); }

/* TERMINAL SECTION */
.terminal-section { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); }
.terminal-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-label { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.section-headline { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; }
.section-body { color: var(--fg-dim); font-size: 16px; line-height: 1.7; }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.ch-lang { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.ch-cmd { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.code-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.cb-line { color: var(--fg); }
.cb-comment { color: var(--fg-muted); }
.cb-dim { color: var(--fg-dim); }
.cb-green { color: var(--accent); }
.cb-spacer { height: 16px; }

/* FEATURES */
.features { padding: 100px 0; }
.features-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feature-icon { color: var(--accent); margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.feature-body { font-size: 14px; color: var(--fg-dim); line-height: 1.6; }

/* MARKETS TABLE */
.markets { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); }
.markets-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; text-align: center; }
.markets-inner .section-headline { margin-top: 16px; margin-bottom: 16px; }
.markets-inner .section-body { max-width: 600px; margin: 0 auto 56px; }
.markets-table { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-align: left; }
.mt-header { display: grid; grid-template-columns: 1fr 80px 80px 100px 120px; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.06em; }
.mt-row { display: grid; grid-template-columns: 1fr 80px 80px 100px 120px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: center; font-family: var(--mono); font-size: 13px; transition: background 0.15s; }
.mt-row:last-child { border-bottom: none; }
.mt-row:hover { background: var(--surface-2); }
.mt-hot { background: rgba(0, 230, 118, 0.03); }
.mt-pr { display: flex; align-items: center; gap: 12px; color: var(--fg-dim); }
.mt-pr-num { font-family: var(--mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; color: var(--fg-muted); white-space: nowrap; }
.mt-yes { color: var(--accent); font-weight: 600; }
.mt-no { color: var(--red); font-weight: 600; }
.mt-vol { color: var(--fg-dim); }
.mt-signal { font-size: 11px; font-family: var(--mono); font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.mt-strong { background: rgba(0, 230, 118, 0.15); color: var(--accent); }
.mt-neutral { background: rgba(255, 202, 40, 0.15); color: var(--yellow); }
.mt-bear { background: rgba(255, 82, 82, 0.12); color: var(--red); }
.mt-bull { background: rgba(0, 184, 255, 0.12); color: var(--accent-2); }
.mt-very-strong { background: rgba(0, 230, 118, 0.2); color: var(--accent); }
.markets-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--fg-muted); }
.mn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* HOW IT WORKS */
.how { padding: 100px 0; }
.how-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.how-header { text-align: center; margin-bottom: 80px; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.how-connector { display: none; }
.how-step { position: relative; }
.hs-num { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 16px; }
.hs-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.hs-body { font-size: 14px; color: var(--fg-dim); line-height: 1.65; }

/* CLOSING */
.closing { padding: 120px 0; border-top: 1px solid var(--border); }
.closing-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; text-align: center; }
.closing-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid rgba(0, 230, 118, 0.3); padding: 6px 16px; border-radius: 100px; margin-bottom: 32px; letter-spacing: 0.05em; }
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.closing-headline { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
.closing-sub { font-size: 17px; color: var(--fg-dim); line-height: 1.7; max-width: 600px; margin: 0 auto 40px; }
.closing-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ctag { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--border); padding: 6px 16px; border-radius: 100px; }

/* FOOTER */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-tagline { font-size: 13px; color: var(--fg-muted); font-family: var(--mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--fg-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-terminal-preview { display: none; }
  .terminal-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .mt-header, .mt-row { grid-template-columns: 1fr 70px 70px 90px 100px; }
}
@media (max-width: 640px) {
  .navbar-links { display: none; }
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .mt-header, .mt-row { grid-template-columns: 1fr 60px 60px 80px 90px; font-size: 11px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
