/* ========================
   SPINMARKET — THEME CSS
   ======================== */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --fg: #e8e8f0;
  --fg-muted: #7a7a90;
  --accent: #00FF85;
  --accent-dim: rgba(0, 255, 133, 0.12);
  --accent-glow: 0 0 24px rgba(0, 255, 133, 0.3);
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo-bracket { color: var(--accent); }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ---- HERO ---- */
.hero {
  padding: 130px 24px 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Terminal window */
.terminal-window {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,133,0.06);
}
.terminal-bar {
  background: #16161f;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  min-height: 220px;
}
.code-line { white-space: nowrap; overflow: hidden; }
.code-indent-1 { padding-left: 24px; }
.code-indent-2 { padding-left: 48px; }
.token-comment { color: #5a5a70; }
.token-keyword { color: #c678dd; }
.token-fn { color: #61afef; }
.token-punc { color: #abb2bf; }
.token-op { color: #56b6c2; }
.token-str { color: #98c379; }
.token-prop { color: #e06c75; }
.token-num { color: #d19a66; }

/* Spinner in terminal */
.spinner-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  animation: blink-cursor 1s step-end infinite;
}
.spinner-dot {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #5a5a70;
}
.spinner-ad-indicator {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* Status bar */
.terminal-statusbar {
  background: #1a1a28;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.statusbar-left { display: flex; align-items: center; gap: 10px; color: var(--fg-muted); }
.status-icon { color: var(--accent); font-size: 0.6rem; }
.status-branch { display: flex; align-items: center; gap: 4px; }
.statusbar-right { display: flex; align-items: center; gap: 14px; }
.statusbar-spinmarket {
  display: flex; align-items: center; gap: 5px;
  color: var(--accent);
  font-weight: 600;
}
.statusbar-earnings {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(0,255,133,0.2);
}

/* Hero text side */
.hero-text-side { padding: 20px 0; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
.hero-headline {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-install {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.install-cmd {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--accent);
  display: inline-block;
}
.install-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- SPINNER DEMO SECTION ---- */
.spinner-section {
  padding: 0 24px 80px;
  border-top: 1px solid var(--border);
}
.spinner-section-inner { max-width: 1200px; margin: 0 auto; }
.spinner-label-row { margin-bottom: 32px; }
.spinner-section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.spinner-states {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.spinner-state { text-align: center; }
.spinner-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.spinner-before .spinner-text-state { color: #5a5a70; }
.spinner-after {
  border-color: rgba(0,255,133,0.25);
  background: rgba(0,255,133,0.04);
}
.spinner-after .spinner-spinner {
  color: var(--accent);
  font-weight: 600;
}
.spinner-earning-chip {
  background: rgba(0,255,133,0.15);
  border: 1px solid rgba(0,255,133,0.2);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.spinner-arrow { color: var(--fg-muted); }
.spinner-state-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- SECTION SHARED ---- */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 80px 24px; border-top: 1px solid var(--border); }
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}
.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- REVENUE SPLIT ---- */
.revenue-section { padding: 80px 24px; border-top: 1px solid var(--border); }
.revenue-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.revenue-visual { display: flex; flex-direction: column; gap: 12px; }
.rev-bar-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rev-you-tag {
  background: rgba(0,255,133,0.15);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
}
.rev-bar {
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.rev-bar-fill {
  height: 100%;
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.rev-bar-kickbacks { width: 50%; background: #3a3a50; }
.rev-bar-idleads { width: 70%; background: #4a4a65; }
.rev-bar-spinmarket { width: 90%; background: linear-gradient(90deg, var(--accent), #00cc6a); }
.rev-bar-label-inline {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
  font-weight: 600;
}
.revenue-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.revenue-metric {
  background: var(--bg-card);
  border: 1px solid rgba(0,255,133,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.metric-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.metric-label { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* ---- COMPETITORS ---- */
.competitors-section { padding: 80px 24px; border-top: 1px solid var(--border); }
.comp-inner { max-width: 1200px; margin: 0 auto; }
.comp-table-wrap { overflow-x: auto; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comp-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.comp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
}
.comp-table td.cell-highlight { color: var(--accent); font-weight: 600; }
.comp-table tr:last-child td { border-bottom: none; }
.row-label { color: var(--fg) !important; }

/* ---- MANIFESTO ---- */
.manifesto { padding: 100px 24px; border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-quote {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.manifesto-quote p {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-style: italic;
}
.manifesto-attr {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stat-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* ---- FOOTER ---- */
.footer { padding: 48px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--fg); }
.footer-tagline { font-size: 0.82rem; color: var(--fg-muted); max-width: 320px; text-align: center; }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 0.82rem; color: var(--fg-muted); }
.footer-link:hover { color: var(--fg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-code-side { display: none; }
  .revenue-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .manifesto-stats { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .comp-table { font-size: 0.8rem; }
  .comp-table th, .comp-table td { padding: 10px 12px; }
  .spinner-states { gap: 24px; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a40; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a55; }

/* ---- SELECTION ---- */
::selection { background: rgba(0,255,133,0.2); color: var(--fg); }
