:root {
  --bg: #0A0A0A;
  --bg-2: #0F0F0F;
  --bg-3: #141414;
  --gold: #D4A843;
  --gold-light: #E8C876;
  --gold-dim: #A07830;
  --fg: #F5F5F5;
  --fg-dim: #888;
  --fg-muted: #444;
  --border: #1E1E1E;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.gold-accent-1 {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.gold-accent-2 {
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* MARKET CARDS */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s ease;
}
.market-card:hover { border-color: var(--gold-dim); }
.market-card-2 { opacity: 0.7; }
.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.market-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,67,0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.market-time {
  font-size: 11px;
  color: var(--fg-dim);
}
.market-question {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.4;
}
.market-odds-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.odds-option { display: flex; align-items: center; gap: 12px; }
.odds-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  width: 36px;
}
.odds-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  width: 56px;
}
.odds-price.gold { color: var(--gold); }
.odds-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.odds-fill {
  height: 100%;
  background: var(--gold-dim);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.market-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-size: 14px; font-weight: 700; color: var(--fg); }
.stat-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* MARKETS SECTION */
.markets {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.markets-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.markets-grid { display: flex; flex-direction: column; gap: 0; }
.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.market-row:hover { background: var(--bg-2); }
.market-row-left { display: flex; align-items: center; gap: 16px; }
.m-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(212,168,67,0.08);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.m-q {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.market-row-right { display: flex; align-items: center; gap: 32px; }
.m-odds {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}
.m-yes { color: var(--fg-dim); }
.m-yes .gold { color: var(--gold); }
.m-no { color: var(--fg-muted); }
.m-vol {
  font-size: 12px;
  color: var(--fg-muted);
  min-width: 80px;
  text-align: right;
}

/* HOW IT WORKS */
.howitworks {
  padding: 100px 0;
  background: var(--bg-2);
}
.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 60px;
  line-height: 1.1;
  max-width: 600px;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 8px; }
.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-icon { margin-bottom: 20px; }
.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 40px;
  justify-content: center;
}
.step-connector::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.chain-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
  padding: 16px 20px;
  background: rgba(212,168,67,0.05);
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.chain-icon { font-size: 16px; }

/* FEATURES */
.features {
  padding: 100px 0;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.feature-icon { margin-bottom: 20px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* MANIFESTO */
.manifesto {
  padding: 100px 0;
  background: var(--bg-2);
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.manifesto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 600;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin-bottom: 28px;
  max-width: 760px;
}
.manifesto-body {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 680px;
  padding-left: 31px;
  margin-bottom: 60px;
}
.manifesto-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
  margin-bottom: 40px;
  margin-left: 31px;
}
.manifesto-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mp-item { display: flex; flex-direction: column; gap: 8px; }
.mp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
}
.mp-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* CLOSING */
.closing { padding: 100px 0; }
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.closing-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 20px;
}
.closing-body {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.closing-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #FF5F56; }
.t-dot.yellow { background: #FFBD2E; }
.t-dot.green { background: #27C93F; }
.t-label {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}
.t-line { margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.t-prompt { color: var(--gold); }
.t-cmd { color: var(--fg); }
.t-result { color: var(--fg-dim); margin-bottom: 12px; font-size: 13px; }
.t-ok { color: #27C93F; }
.t-wip { color: #FFBD2E; }
.t-blank { margin-top: 8px; }
.t-cursor { color: var(--gold); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* FOOTER */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-dim);
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 13px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-sep { color: var(--border); }
.footer-stellar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.stellar-badge {
  color: var(--gold);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto-points { grid-template-columns: 1fr; gap: 28px; }
  .closing-inner { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 600px) {
  .hero-inner, .markets-inner, .howitworks-inner, .features-inner, .manifesto-inner, .closing-inner, .footer-inner { padding: 0 20px; }
  .hero { padding: 60px 0 40px; }
  .market-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .market-row-right { width: 100%; justify-content: space-between; }
}

/* TRADE MODAL */
.trade-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.trade-overlay.open { display: flex; }
.trade-modal {
  background: var(--bg-2);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
}
.trade-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.trade-modal-close:hover { color: var(--fg); }
.trade-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.trade-subtitle {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 28px;
}
.trade-field { margin-bottom: 18px; }
.trade-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.trade-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.trade-input:focus { border-color: var(--gold-dim); }
.trade-input::placeholder { color: var(--fg-muted); }
.trade-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.outcome-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.outcome-chip:hover { border-color: var(--gold-dim); color: var(--fg); }
.outcome-chip.selected {
  border-color: var(--gold);
  background: rgba(212,168,67,0.15);
  color: var(--gold);
}
.trade-info {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  padding: 14px;
  background: var(--bg-3);
  border-radius: 10px;
}
.trade-info-item { flex: 1; }
.trade-info-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.trade-info-value { font-size: 14px; font-weight: 700; color: var(--gold); }
.trade-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.trade-btn:hover { background: var(--gold-light); }
.trade-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.trade-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.trade-result.ok { background: rgba(39,201,63,0.1); border: 1px solid rgba(39,201,63,0.3); color: #27C93F; }
.trade-result.err { background: rgba(255,95,86,0.1); border: 1px solid rgba(255,95,86,0.3); color: #FF5F56; }
.trade-hint { font-size: 11px; color: var(--fg-muted); margin-top: 8px; text-align: center; }

/* AFCON LIVE CARD */
.afcon-card {
  background: var(--bg-2);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 12px;
}
.afcon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.afcon-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,67,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}
.afcon-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #27C93F;
  font-weight: 600;
}
.afcon-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #27C93F;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
.afcon-question {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.3;
}
.afcon-outcomes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.afcon-outcome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.afcon-outcome:hover { border-color: var(--gold-dim); }
.afcon-outcome-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--fg); }
.afcon-outcome-price { font-size: 16px; font-weight: 700; color: var(--gold); min-width: 48px; text-align: right; }
.afcon-outcome-bar { flex: 0 0 120px; height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.afcon-outcome-fill { height: 100%; background: var(--gold-dim); border-radius: 2px; }
.afcon-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.afcon-stat { display: flex; flex-direction: column; gap: 3px; }
.afcon-stat-val { font-size: 16px; font-weight: 700; color: var(--fg); }
.afcon-stat-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.afcon-trade-row { display: flex; gap: 12px; align-items: center; }
.afcon-wallet-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
}
.afcon-wallet-input:focus { border-color: var(--gold-dim); }
.afcon-wallet-input::placeholder { color: var(--fg-muted); }
.trade-btn-small {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.trade-btn-small:hover { background: var(--gold-light); }
.trade-btn-small:disabled { opacity: 0.5; cursor: not-allowed; }
