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

:root {
  --bg: #070b14;
  --bg-surface: #0c1220;
  --bg-card: #0f1829;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --profit: #00ff9d;
  --loss: #ff4d6d;
  --text: #d6e4f0;
  --text-muted: #5a7390;
  --border: rgba(0, 212, 255, 0.15);
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { font-size: 16px; }

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

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 8vw 4rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #060a10 100%);
}

.hero-inner { max-width: 580px; }

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

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

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

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat { padding: 0 2rem; }
.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* TERMINAL */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.terminal-block {
  background: #060c18;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.06), 0 24px 48px rgba(0,0,0,0.4);
}

.terminal-header {
  background: #0a1120;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
}

.terminal-body {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
}

.t-line { }
.t-gray { color: #4a6a8a; }
.t-cyan { color: var(--accent); }
.t-yellow { color: #ffd94d; }
.t-green { color: var(--profit); }
.t-red { color: var(--loss); }
.t-white { color: #c8dce8; }
.t-key { color: #7ab8d4; }
.t-val { color: var(--profit); font-weight: 600; }
.t-indent { padding-left: 1.5rem; }
.cursor-line { padding-top: 0.5rem; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
}

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

/* ===================== SECTION SHARED ===================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===================== SCANNER ===================== */
.scanner {
  padding: 7rem 8vw;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.scanner-inner { max-width: 1100px; margin: 0 auto; }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.strategy-card:hover { border-color: rgba(0, 212, 255, 0.35); }

.strategy-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.strategy-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.strategy-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===================== LEARNER ===================== */
.learner {
  padding: 7rem 8vw;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.learner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.learner-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.flow-step:last-child { border-bottom: none; }

.flow-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}

.flow-text {
  font-size: 0.95rem;
  color: var(--text);
}

.flow-arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-left: 2.5rem;
  padding-bottom: 0;
  opacity: 0.5;
}

/* ===================== SAVING ===================== */
.saving {
  padding: 7rem 8vw;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.saving-inner { max-width: 900px; margin: 0 auto; }

.param-table {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.param-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 0.75rem 1.5rem;
  background: #0a1424;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.param-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 1rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.param-row:last-child { border-bottom: none; }

.param-ver { color: var(--text-muted); }
.param-val { color: var(--text); }
.param-val.highlight { color: var(--profit); font-weight: 600; }

.param-status {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  width: fit-content;
}

.param-status.active {
  background: rgba(0, 255, 157, 0.15);
  color: var(--profit);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.param-status:not(.active) {
  background: rgba(90, 115, 144, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(90, 115, 144, 0.2);
}

/* ===================== CLOSING ===================== */
.closing {
  padding: 8rem 8vw;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner { max-width: 800px; margin: 0 auto; }

.closing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 2.5rem 8vw;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 6vw 3rem; gap: 3rem; }
  .hero-visual { order: -1; }
  .terminal-block { max-width: 100%; }
  .strategy-grid { grid-template-columns: 1fr 1fr; }
  .learner-inner { grid-template-columns: 1fr; gap: 3rem; }
  .param-header, .param-row { grid-template-columns: 2fr 1fr 1fr; }
  .param-header span:nth-child(4),
  .param-header span:nth-child(5),
  .param-row span:nth-child(4),
  .param-row span:nth-child(5) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 5vw 2.5rem; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .stat-divider { display: none; }
  .stat { padding: 0; text-align: center; }
  .strategy-grid { grid-template-columns: 1fr; }
  .scanner, .learner, .saving, .closing { padding: 5rem 5vw; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .param-table { overflow-x: auto; }
}