/* ===================================================================
   HX Africa — homepage. Cinematic, premium, award-minded.
   =================================================================== */
:root {
  --bg: #07090c;
  --bg-1: #0b0e13;
  --bg-2: #10141b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6f9;
  --text-dim: #9aa4b2;
  --text-faint: #626b78;
  --gold: #f0b90b;
  --gold-2: #ffd75e;
  --emerald: #0ecb81;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --down: #f6465d;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --mono: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 40%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 10px; padding: 10px 18px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
}
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1a1400; box-shadow: 0 8px 30px rgba(240, 185, 11, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(240, 185, 11, 0.42); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--gold); }
.btn-outline { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 12, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 12px 40px;
}
.brand { display: flex; align-items: baseline; gap: 7px; }
.brand-mark {
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: #1a1400;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  padding: 3px 8px; border-radius: 7px;
}
.brand-name { font-weight: 700; font-size: 20px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 40px 0; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; z-index: 1; top: -10%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(240,185,11,0.16), transparent 62%);
  filter: blur(20px);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(240,185,11,0.3); border-radius: 30px; padding: 6px 14px;
  background: rgba(240,185,11,0.06); margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 82px); line-height: 1.02; font-weight: 800;
  letter-spacing: -2px; margin-bottom: 24px;
}
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-dim); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-faint); font-size: 14px; }

/* Hero live card */
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 22px;
  backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hc-title { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.hc-title span { font-size: 22px; }
.hc-badge { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(14,203,129,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,203,129,0.5); } 70% { box-shadow: 0 0 0 10px rgba(14,203,129,0); } 100% { box-shadow: 0 0 0 0 rgba(14,203,129,0); } }
.hc-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hc-last { font-size: 40px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; }
.hc-chg { font-size: 16px; font-weight: 700; font-family: var(--mono); }
.hc-spark { width: 100%; height: 90px; display: block; margin: 6px 0 16px; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-stats > div { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.hc-stats .k { display: block; font-size: 11px; color: var(--text-faint); }
.hc-stats .v { display: block; font-size: 16px; font-weight: 700; font-family: var(--mono); margin-top: 3px; }
.up { color: var(--emerald); } .down { color: var(--down); }

/* Ticker strip */
.ticker-strip {
  position: relative; z-index: 2; margin-top: 60px; width: 100vw; left: 50%; transform: translateX(-50%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(11,14,19,0.7); backdrop-filter: blur(10px); overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; gap: 44px; width: max-content; animation: scroll-x 40s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.tk .tk-ic { font-size: 18px; }
.tk .tk-sym { font-weight: 700; }
.tk .tk-px { color: var(--text-dim); }

/* ---------- Stats band ---------- */
.stats-band {
  max-width: var(--maxw); margin: 40px auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; padding: 30px 12px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.stat-num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -1px; font-family: var(--mono); background: linear-gradient(120deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 40px; }
.section-head { max-width: 680px; margin-bottom: 50px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 17px; }

/* Market grid */
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mk {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.mk:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.mk-glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; filter: blur(40px); opacity: 0.4; }
.mk-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; }
.mk-ic { font-size: 24px; }
.mk-sym { font-weight: 700; font-size: 16px; }
.mk-city { font-size: 12px; color: var(--text-faint); }
.mk-px { font-size: 26px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.5px; position: relative; }
.mk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 13px; position: relative; }
.mk-yield { color: var(--gold); font-size: 12px; margin-top: 12px; position: relative; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 30px; position: relative; }
.step-no { position: absolute; top: 22px; right: 26px; font-size: 40px; font-weight: 800; color: rgba(255,255,255,0.05); font-family: var(--mono); }
.step-ic { font-size: 34px; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Features */
.features { display: flex; flex-direction: column; gap: 90px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.1; }
.feature-text p { color: var(--text-dim); font-size: 17px; margin-bottom: 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(240,185,11,0.15); color: var(--gold); font-size: 12px; display: grid; place-items: center; }
.glass { background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid var(--line-2); border-radius: 20px; backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.feature-visual { min-height: 320px; padding: 24px; }
/* mini order book */
.mb-row { display: grid; grid-template-columns: 1fr 1fr 1fr; font-family: var(--mono); font-size: 13px; padding: 4px 8px; position: relative; }
.mb-row .d { position: absolute; top: 0; bottom: 0; right: 0; opacity: 0.14; z-index: 0; }
.mb-row span { position: relative; z-index: 1; }
.mb-row .r { text-align: right; color: var(--text-dim); }
.mb-ask { color: var(--down); } .mb-bid { color: var(--emerald); }
.mb-mid { text-align: center; font-family: var(--mono); font-weight: 800; font-size: 20px; padding: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.mb-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 11px; color: var(--text-faint); padding: 0 8px 8px; }
.mb-cols .r { text-align: right; }
/* yield visual */
.yield-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.yv-big { font-size: 72px; font-weight: 800; font-family: var(--mono); color: var(--gold); letter-spacing: -2px; }
.yv-lbl { color: var(--text-dim); margin-bottom: 24px; }
.yv-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; width: 100%; justify-content: center; }
.yv-bar { width: 26px; background: linear-gradient(180deg, var(--gold), rgba(240,185,11,0.2)); border-radius: 6px 6px 0 0; transition: height 1s ease; }

/* Properties */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pc { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.pc:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.pc-hero { height: 150px; display: grid; place-items: center; font-size: 60px; position: relative; }
.pc-tag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: rgba(0,0,0,0.4); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(6px); }
.pc-body { padding: 18px; }
.pc-name { font-size: 18px; font-weight: 700; }
.pc-loc { color: var(--text-faint); font-size: 13px; margin: 3px 0 14px; }
.pc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pc-metrics > div { background: var(--bg-2); border-radius: 10px; padding: 8px; text-align: center; }
.pc-metrics .k { font-size: 10px; color: var(--text-faint); display: block; }
.pc-metrics .v { font-size: 14px; font-weight: 700; font-family: var(--mono); margin-top: 3px; display: block; }
.pc-cta { display: flex; justify-content: space-between; align-items: center; }
.pc-price { font-family: var(--mono); font-weight: 800; font-size: 18px; }
.pc-btn { font-size: 13px; font-weight: 700; color: var(--gold); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.trust-card .ti { font-size: 30px; margin-bottom: 14px; }
.trust-card h3 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { color: var(--text-dim); font-size: 14px; }

/* Final CTA */
.cta-final { position: relative; text-align: center; padding: 120px 40px; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(240,185,11,0.14), transparent 60%); pointer-events: none; }
.cta-final h2 { position: relative; font-size: clamp(30px, 4.4vw, 58px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.06; }
.cta-final p { position: relative; color: var(--text-dim); font-size: 18px; margin: 18px 0 30px; }
.cta-final .btn { position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 40px 30px; }
.foot-cols { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--text-dim); margin-top: 14px; max-width: 280px; font-size: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; }
.footer .foot-cols a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer .foot-cols a:hover { color: var(--gold); }
.foot-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--text-faint); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .market-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .prop-grid { grid-template-columns: 1fr; }
  .feature, .feature.reverse .feature-text { grid-template-columns: 1fr; order: 0; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .nav, .section { padding-left: 20px; padding-right: 20px; }
  .market-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #1a2029; border-radius: 4px; }
/* Account pill */
.acct { display: flex; align-items: center; gap: 8px; }
.acct-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #1a1400; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.acct-name { font-size: 14px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-out { background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--text-dim); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.acct-out:hover { color: var(--down); border-color: var(--down); }

/* App-store badges (hero) */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #05070b; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 16px 9px 13px; transition: border-color .18s, transform .18s, background .18s; }
.store-badge:hover { border-color: var(--gold); transform: translateY(-2px); background: #0a0d12; }
.store-badge .sb-ic { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-text small { font-size: 9px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-dim); }
.store-badge .sb-text b { font-size: 15px; font-weight: 700; color: #fff; }

/* SEC licence badge in hero */
.sec-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--gold) !important; font-weight: 700; border: 1px solid rgba(240,185,11,.4); background: rgba(240,185,11,.08); padding: 4px 12px; border-radius: 20px; }

/* Powered-by under the logo + footer */
.brand-wm { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: .3px; color: var(--text-faint); margin-top: 2px; }
.foot-powered { margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.foot-powered b { color: var(--gold); }
