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

:root {
  --bg: #08080A;
  --bg-2: #0F0F12;
  --bg-3: #141418;
  --accent: #CAFF00;
  --accent-dim: rgba(202, 255, 0, 0.15);
  --accent-glow: rgba(202, 255, 0, 0.08);
  --text: #F0F0E8;
  --text-muted: rgba(240, 240, 232, 0.45);
  --text-dim: rgba(240, 240, 232, 0.25);
  --border: rgba(202, 255, 0, 0.12);
  --border-bright: rgba(202, 255, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  background: var(--accent-dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(202, 255, 0, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-headline {
  font-size: clamp(52px, 7vw, 96px);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.0;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

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

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

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 120px;
  line-height: 1.4;
}

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

/* === WIDGET STACK === */
.widget-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-widget,
.prediction-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.widget-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  padding: 2px 7px;
  letter-spacing: 0.08em;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.widget-count {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  padding: 2px 8px;
}

.chart-area { margin-bottom: 12px; }

.candlestick-svg { width: 100%; height: 80px; }

.chart-footer {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.chart-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.chart-change {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* === PREDICTION WIDGET === */
.market-list { display: flex; flex-direction: column; gap: 10px; }

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.market-q {
  font-size: 11px;
  color: var(--text);
  flex: 1;
}

.market-odds {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.yes-val, .no-val {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
}

.yes-val { background: rgba(202, 255, 0, 0.12); color: var(--accent); }
.no-val { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* === SCROLL INDICATOR === */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* === MARKETS SECTION === */
.markets-section {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.markets-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.markets-header { margin-bottom: 56px; }

.markets-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text);
  max-width: 500px;
}

.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.market-card {
  padding: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.market-card-accent {
  background: var(--accent-glow);
  border-color: var(--border-bright);
}

.card-icon { margin-bottom: 24px; }

.card-title {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 14px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-tag {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

/* === FEATURES === */
.features-section { padding: 100px 40px; }

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.feature-item {}

.feature-icon { margin-bottom: 16px; }

.feature-title {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === PROCESS === */
.process-section {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.process-inner { max-width: 1200px; margin: 0 auto; }

.process-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 72px;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}

.step-title {
  font-size: 16px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 32px;
  background: linear-gradient(to right, var(--border), var(--accent-dim));
}

/* === CONVICTION === */
.conviction-section {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}

.conviction-inner { max-width: 1200px; margin: 0 auto; }

.conviction-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  padding: 4px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.conviction-title {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--text);
  max-width: 800px;
  margin-bottom: 28px;
  line-height: 1.2;
}

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

.conviction-body {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 64px;
}

.conviction-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.conv-num { display: flex; flex-direction: column; gap: 6px; }

.conv-val {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
}

.conv-label {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.5;
}

/* === FOOTER === */
.footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  background: var(--accent-dim);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
}

/* === TRADING PAGE === */
.trade-page {
  min-height: 100vh;
  padding-top: 80px;
}

.trade-header {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.trade-title {
  font-size: 28px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.wallet-label {
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-balance {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Syne', sans-serif;
}

.trade-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.trade-main { padding: 24px 40px; }

.trade-sidebar {
  border-left: 1px solid var(--border);
  padding: 24px;
  overflow-y: auto;
}

/* Market card */
.market-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.market-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: border-color 0.2s;
}

.market-card:hover {
  border-color: var(--border-bright);
}

.market-question {
  font-size: 15px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.market-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.market-tag {
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  padding: 2px 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-volume {
  font-size: 11px;
  color: var(--text-muted);
}

.market-odds-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.odds-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.odds-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.odds-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

.odds-yes { color: var(--accent); }
.odds-no { color: var(--text-muted); }

.odds-pct {
  font-size: 11px;
  color: var(--text-dim);
}

.market-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-trade {
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.15s;
}

.btn-yes {
  background: var(--accent);
  color: #08080A;
}

.btn-yes:hover {
  background: #d4ff33;
  transform: translateY(-1px);
}

.btn-no {
  background: rgba(240, 240, 232, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-no:hover {
  background: rgba(240, 240, 232, 0.14);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

/* Trade Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
  width: 400px;
  max-width: 90vw;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-question {
  font-size: 16px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  max-width: 300px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.side-btn {
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  background: rgba(240, 240, 232, 0.06);
  color: var(--text-muted);
  transition: all 0.15s;
}

.side-btn.selected-yes {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.side-btn.selected-no {
  background: rgba(255,255,255,0.06);
  border-color: rgba(240,240,232,0.4);
  color: var(--text);
}

.modal-field {
  margin-bottom: 16px;
}

.modal-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus { border-color: var(--accent); }

.modal-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: 6px;
}

.cost-label { font-size: 12px; color: var(--text-muted); }
.cost-value { font-size: 16px; color: var(--accent); font-weight: 700; font-family: 'Syne', sans-serif; }

.modal-confirm {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #08080A;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: background 0.15s;
}

.modal-confirm:hover { background: #d4ff33; }
.modal-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 8px;
  display: none;
}

.modal-success {
  color: var(--accent);
  font-size: 12px;
  margin-top: 8px;
  display: none;
}

/* Sidebar */
.sidebar-title {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.position-list { display: flex; flex-direction: column; gap: 10px; }

.position-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}

.position-market {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.position-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.position-side {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.side-yes-tag { background: var(--accent-dim); color: var(--accent); }
.side-no-tag { background: rgba(240,240,232,0.08); color: var(--text-muted); }

.position-shares {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  font-family: 'Syne', sans-serif;
}

.position-value {
  font-size: 11px;
  color: var(--text-muted);
}

.empty-positions {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  z-index: 300;
  display: none;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-tagline { display: none; }

  .hero { padding: 100px 20px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-headline { font-size: 48px; }

  .markets-section { padding: 64px 20px; }
  .markets-grid { grid-template-columns: 1fr; }
  .market-card { padding: 32px; }

  .features-section { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }

  .process-section { padding: 64px 20px; }
  .process-steps { flex-direction: column; gap: 32px; }
  .step-connector { width: 40px; height: 1px; margin: 0; }

  .conviction-section { padding: 64px 20px; }
  .conviction-numbers { grid-template-columns: 1fr; gap: 28px; }
  .conv-val { font-size: 28px; }

  .footer-inner { flex-wrap: wrap; gap: 16px; }
  .footer-meta { margin-left: 0; }
}

/* === TEXT SELECTION === */
::selection { background: var(--accent-dim); color: var(--accent); }
