/*
Theme Name: Sovranta Intelligence
Theme URI: https://sovranta.africa
Author: Sovranta Intelligence
Author URI: https://sovranta.africa
Description: Official WordPress theme for Sovranta Intelligence — Africa's first anticipatory sovereign risk intelligence firm.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: sovranta
Tags: dark, intelligence, finance, africa, one-page
*/

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

:root {
  --bg:     #020408;
  --bg2:    #040A14;
  --surface:#0A1628;
  --card:   #0D1B2E;
  --border: rgba(255,255,255,.06);
  --border2:rgba(255,255,255,.1);
  --border3:rgba(255,255,255,.16);
  --ink:    #F1F5F9;
  --ink2:   #CBD5E1;
  --muted:  #7B8FA3;
  --faint:  #3A4D63;
  --green:  #22C55E;
  --green-bg:  rgba(34,197,94,.06);
  --green-glow:rgba(34,197,94,.2);
  --amber:  #FBBF24;
  --red:    #F87171;
  --blue:   #60A5FA;
  --radius: 16px;
  --radius2:24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1E3A5F; border-radius: 4px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2,4,8,.82);
  backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.06em;
  color: #fff;
  cursor: pointer;
}
.nav-logo em { font-style: normal; color: var(--green); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.nav-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .56rem 1.5rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-outline {
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-green {
  background: var(--green);
  color: #020408;
  box-shadow: 0 0 40px var(--green-glow);
  font-weight: 700;
}
.btn-green:hover {
  box-shadow: 0 0 60px rgba(34,197,94,.35);
  transform: translateY(-1px);
}
.btn-big { padding: .9rem 2.4rem; font-size: 1rem; font-weight: 700; }

/* ============================================================
   LAYOUT & SECTION HELPERS
   ============================================================ */
.site-content { padding-top: 72px; }
.s { padding: 100px 6%; }
.s-alt { background: var(--bg2); }
.container { max-width: 1260px; margin: 0 auto; }

/* Section label */
.sk {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.sk:before { content: ''; width: 28px; height: 1.5px; background: var(--green); }
.sk-c { justify-content: center; }

/* Headings */
.sh {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.06em;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 1rem;
}
.sh-mid {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .9rem;
}
.sl { font-size: 1.05rem; color: var(--muted); max-width: 640px; line-height: 1.9; }
.sl-lg { font-size: 1.12rem; }
.tc { text-align: center; }
.mx-a { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .3s, transform .25s;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: rgba(34,197,94,.2); transform: translateY(-3px); }

/* Risk badges */
.bx {
  padding: .14rem .6rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bx-h { background: rgba(248,113,113,.12); color: #FCA5A5; }
.bx-e { background: rgba(251,191,36,.1);   color: #FCD34D; }
.bx-m { background: rgba(96,165,250,.12);  color: #93C5FD; }
.bx-l { background: rgba(34,197,94,.12);   color: #86EFAC; }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.5rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2.5rem; }

/* ============================================================
   GBOX (Gradient Box)
   ============================================================ */
.gbox {
  background: linear-gradient(155deg, var(--surface), var(--bg2));
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.gt {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: .5rem;
}
.gm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: .6rem;
}
.gp { font-size: .84rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

/* ============================================================
   PAGE HERO (.ph)
   ============================================================ */
.ph {
  padding: 120px 6% 80px;
  border-bottom: 1px solid var(--border);
}
.ph-inner { max-width: 900px; }
.ph-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.ph-pill {
  font-size: .82rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--green-bg);
  border: 1px solid rgba(34,197,94,.2);
  color: #86EFAC;
  font-weight: 500;
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 6% 80px;
  overflow: hidden;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(34,197,94,.04) 0, transparent 70%),
    radial-gradient(ellipse 60% 80% at 5% 80%,  rgba(30,58,95,.5)  0, transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.07em;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.hero h1 strong { color: var(--green); display: block; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; line-height: 1.9; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2.4rem;
}
.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: .35rem;
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-val .stat-suffix { font-size: 1.4rem; color: var(--muted); }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

/* ============================================================
   ASRI TERMINAL
   ============================================================ */
.terminal {
  background: linear-gradient(155deg, var(--surface), var(--bg2));
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 50px 120px rgba(0,0,0,.9),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.terminal-bar {
  padding: .75rem 1.4rem;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.td-dots { display: flex; gap: .5rem; }
.td { width: 11px; height: 11px; border-radius: 50%; }
.td1 { background: #F87171; }
.td2 { background: #FBBF24; }
.td3 { background: #22C55E; }
.terminal-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.terminal-tag {
  font-size: .65rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,.3);
  color: #93C5FD;
  background: rgba(96,165,250,.06);
}
.terminal-body { padding: 1.6rem; }
.t-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.t-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: #E2E8F0; }
.t-sub { font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.t-fresh {
  font-size: .68rem;
  color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
  padding: .18rem .6rem;
  border-radius: 999px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.t-table { width: 100%; border-collapse: collapse; }
.t-table th {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: .55rem .4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.t-table td {
  padding: .6rem .4rem;
  font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.025);
  color: #CBD5E1;
}
.t-table tr:last-child td { border-bottom: none; }
.flag-name { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: #E2E8F0; }
.t-up   { color: #FCA5A5; font-size: .78rem; }
.t-flat { color: #FCD34D; font-size: .78rem; }
.t-down { color: #86EFAC; font-size: .78rem; }
.terminal-foot {
  padding: .9rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .7rem;
  color: var(--faint);
}
.t-foot-pill {
  font-size: .66rem;
  padding: .2rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--muted);
}

/* ============================================================
   REQUEST DEMO / FORM SECTIONS
   ============================================================ */
.request-demo-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 2rem;
}
.request-demo-copy,
.request-demo-form {
  background: linear-gradient(155deg, var(--surface), var(--bg2));
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.request-demo-copy p { font-size: .95rem; color: var(--muted); line-height: 1.85; }
.request-demo-form form { display: grid; gap: .9rem; margin-top: 1rem; }
.request-demo-form input,
.request-demo-form select,
.request-demo-form textarea,
.contact-form-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color .25s;
}
.request-demo-form input:focus,
.request-demo-form select:focus,
.request-demo-form textarea:focus,
.contact-form-field:focus {
  border-color: rgba(34,197,94,.4);
}
.request-demo-form select,
.contact-form-select { background: #0d1b2e; }
.request-demo-form textarea,
.contact-form-textarea { min-height: 120px; resize: vertical; }
.request-demo-note { font-size: .8rem; color: var(--faint); line-height: 1.7; }
.request-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  color: #86EFAC;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ============================================================
   ACCESS TIERS (PRICING)
   ============================================================ */
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.tier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.tier-card.featured {
  background: linear-gradient(155deg, var(--surface), var(--bg2));
  border: 1.5px solid rgba(34,197,94,.35);
  border-radius: var(--radius2);
  box-shadow: 0 0 60px rgba(34,197,94,.08), 0 30px 80px rgba(0,0,0,.7);
}
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #020408;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .3rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-label-pill {
  font-size: .68rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-weight: 600;
}
.tier-label-green {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  color: #86EFAC;
}
.tier-label-blue {
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.25);
  color: #93C5FD;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 60px 6% 36px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.fg {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: .6rem;
}
.footer-logo em { font-style: normal; color: var(--green); }
.fd { font-size: .84rem; color: var(--faint); max-width: 280px; line-height: 1.7; }
.fc h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 700; }
.fc ul { list-style: none; }
.fc li { margin-bottom: .55rem; }
.fc a { font-size: .84rem; color: var(--faint); transition: color .2s; cursor: pointer; }
.fc a:hover { color: var(--ink); }
.fb {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--faint);
}
.fb-t { color: #86EFAC; font-weight: 700; }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.revealed { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeUp .6s ease-out both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ============================================================
   NOTICE MESSAGES
   ============================================================ */
.form-notice {
  padding: 1rem 1.4rem;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  margin-top: .5rem;
  display: none;
}
.form-notice.success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86EFAC; }
.form-notice.error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #FCA5A5; }
.form-notice.visible { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner, .g2, .request-demo-wrap, .tiers-grid { grid-template-columns: 1fr; }
  .terminal { margin-top: 3rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .fg { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-status { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(2,4,8,.97);
    padding: 1.5rem 5%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .g3, .hero-stats { grid-template-columns: 1fr; }
  .fg { grid-template-columns: 1fr; }
  .s { padding: 70px 5%; }
  .ph { padding: 90px 5% 60px; }
  .hero { padding: 90px 5% 60px; }
}
