@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
  --bg: #040810;
  --bg-elev: rgba(8, 14, 28, 0.7);
  --bg-card: rgba(255, 255, 255, 0.02);
  --surface-line: rgba(255, 255, 255, 0.06);
  --text: #f3f6fb;
  --text-muted: #a3b3cc;
  --text-dim: #64758f;
  --brand: #00F0FF;        /* Vibrant Neon Cyan */
  --brand-2: #7000FF;      /* Deep Violet */
  --brand-ink: #011417;
  --warn: #ffb800;
  --danger: #ff4d4d;
  --ok: #00F0FF;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  --font: "Inter", sans-serif;
  --font-display: "Outfit", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle Technical Grid Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

/* Drifting Ambient Background Glow Elements */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.11) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: drift 25s infinite alternate ease-in-out;
}
.ambient-glow-2 {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.09) 0%, transparent 70%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  animation: drift-reverse 30s infinite alternate ease-in-out;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(-80px, 160px) scale(0.9); }
}
@keyframes drift-reverse {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-150px, -90px) scale(0.85); }
  100% { transform: translate(100px, -120px) scale(1.05); }
}

a { color: var(--brand); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4 { 
  font-family: var(--font-display); 
  line-height: 1.15; 
  font-weight: 800; 
  letter-spacing: -0.03em; 
  margin-top: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }

/* ---------- Utilities ---------- */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.text-gradient-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 8, 16, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--surface-line);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(4, 8, 16, 0.85);
  border-bottom-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--surface-line);
  color: var(--text); border-radius: 9px; width: 42px; height: 38px; cursor: pointer;
}

/* ---------- Dropdown Nav ---------- */
.dropdown { position: relative; display: inline-block; }
.dropbtn { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: color 0.2s; }
.dropbtn:hover { color: var(--text); }
.dropdown-content {
  display: none; position: absolute; background: rgba(4, 8, 16, 0.95);
  backdrop-filter: blur(20px); min-width: 220px; box-shadow: var(--shadow);
  border: 1px solid var(--surface-line); border-radius: 14px; z-index: 100;
  padding: 8px; top: 100%; left: 0;
}
.dropdown-content a { color: var(--text-muted); padding: 10px 14px; display: block; border-radius: 8px; margin: 0; }
.dropdown-content a:hover { background: var(--bg-card); color: var(--text); }
.dropdown:hover .dropdown-content { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #fff; 
  box-shadow: 0 8px 30px -8px rgba(112, 0, 255, 0.6); 
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -6px rgba(0, 240, 255, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--surface-line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.btn-ghost:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 100px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.8rem); margin: 0 0 24px; max-width: 960px; line-height: 1.1; }
.hero p.lead { font-size: 1.25rem; color: var(--text-muted); max-width: 780px; line-height: 1.65; margin: 0 0 40px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-pill {
  margin-bottom: 24px;
}

/* ---------- Product Playground ---------- */
.product-playground {
  width: 100%; max-width: 1100px; margin: 70px auto 0;
  background: rgba(8, 14, 28, 0.4); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.product-playground:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 35px 70px -15px rgba(0, 240, 255, 0.05);
}
.ui-header {
  padding: 14px 18px; border-bottom: 1px solid var(--surface-line);
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.01);
}
.ui-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.ui-header .red { background: #ff5f56; }
.ui-header .yellow { background: #ffbd2e; }
.ui-header .green { background: #27c93f; }
.window-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  margin-left: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.playground-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 520px;
}
@media (max-width: 800px) {
  .playground-body {
    grid-template-columns: 1fr;
    height: auto;
  }
}
.playground-controls {
  border-right: 1px solid var(--surface-line);
  padding: 24px;
  background: rgba(255,255,255,0.005);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.radio-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.radio-pill-group input[type="radio"] {
  display: none;
}
.radio-pill-group label {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.radio-pill-group label:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.radio-pill-group input[type="radio"]:checked + label {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.form-select {
  background: rgba(4, 8, 16, 0.5);
  border: 1px solid var(--surface-line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
}
.form-select:focus {
  border-color: var(--brand);
}
.toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.toggle-control input[type="checkbox"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.toggle-control label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}
.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}
.btn-danger-glow {
  background: linear-gradient(135deg, #7000FF, #ff4d4d);
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
}
.btn-danger-glow:hover {
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}
.playground-console {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.console-tabs {
  display: flex;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--surface-line);
  overflow-x: auto;
}
.console-tab-btn {
  background: none; border: none;
  padding: 14px 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.console-tab-btn:hover {
  color: var(--text-muted);
}
.console-tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: rgba(255,255,255,0.01);
}
.console-panes {
  flex: 1;
  position: relative;
  background: rgba(4, 8, 16, 0.2);
}
.console-pane {
  display: none;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
}
.console-pane.active {
  display: block;
}
.inference-chat-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}
.chat-placeholder {
  margin: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  max-width: 320px;
}



.ui-chat {
  background: var(--bg-card); padding: 14px 18px; border-radius: 16px 16px 16px 0;
  display: inline-block; max-width: 85%; border: 1px solid var(--surface-line); font-size: 0.9rem;
  line-height: 1.5; color: var(--text);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  align-self: flex-start;
}
.ui-chat.bot {
  background: rgba(0, 240, 255, 0.02); border-color: rgba(0, 240, 255, 0.12);
  border-radius: 16px 16px 0 16px; align-self: flex-end;
}
.ui-badge {
  font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; margin-left: 8px;
  background: rgba(0, 240, 255, 0.1); color: var(--brand); border: 1px solid rgba(0, 240, 255, 0.2); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; vertical-align: middle;
}
.ui-badge.red-badge {
  background: rgba(255, 77, 77, 0.1); color: var(--danger); border-color: rgba(255, 77, 77, 0.2);
}
.ui-badge.warn-badge {
  background: rgba(255, 184, 0, 0.1); color: var(--warn); border-color: rgba(255, 184, 0, 0.2);
}

/* Tab 2: Logs Feed Area */
.logs-feed-area {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  height: 100%;
  overflow-y: auto;
}
.log-line {
  margin-bottom: 4px;
}
.log-line.system-msg { color: var(--text-dim); }
.log-line.info-msg { color: var(--text-muted); }
.log-line.success-msg { color: var(--brand); }
.log-line.warning-msg { color: var(--warn); }
.log-line.danger-msg { color: var(--danger); font-weight: 600; }

/* Tab 3: Explainability Vault */
.vault-reconciliation-area h3 {
  font-size: 1.15rem; color: var(--text); margin-bottom: 8px;
}
.vault-info-text {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.vault-state-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vault-status-indicator {
  color: var(--text-dim); font-size: 0.85rem; text-align: center; margin: 10px 0;
}
.vault-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vault-cipher-display {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  padding: 12px;
}
.cipher-title, .cleartext-title {
  font-size: 0.7rem; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase;
}
.cipher-data {
  font-family: var(--mono); font-size: 0.75rem; color: var(--warn); word-break: break-all;
}
.vault-cleartext-display {
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  animation: slideUp 0.3s ease forwards;
}
.cleartext-data {
  font-size: 0.85rem; color: var(--brand); font-weight: 500;
}

/* Tab 4: USSD Phone Simulator */
.ussd-simulation-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  height: 100%;
}
.phone-sim {
  width: 180px; height: 350px;
  background: #11141b; border: 4px solid #333d4f; border-radius: 30px;
  box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column; padding: 12px;
}
.phone-notch {
  width: 70px; height: 12px; background: #333d4f; border-radius: 0 0 10px 10px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 10;
}
.phone-screen {
  flex: 1; background: #000; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; padding: 12px 8px; border: 1px solid #222;
}
.carrier-header {
  font-size: 0.6rem; color: #666; text-align: center; margin-bottom: 20px; font-weight: 600;
}
.phone-content {
  flex: 1; display: flex; flex-direction: column;
}
.dialer-input {
  margin: auto; text-align: center; display: flex; flex-direction: column; gap: 12px;
}
.dialed-number {
  font-family: var(--mono); font-size: 1.2rem; color: #fff; font-weight: 700;
}
.btn-dial {
  background: var(--brand); color: var(--brand-ink); border: none;
  padding: 6px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.phone-home-button {
  width: 40px; height: 4px; background: #333d4f; border-radius: 2px;
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
}
.phone-menu-box {
  background: #222; border: 1px solid #444; border-radius: 10px;
  padding: 10px; font-size: 0.75rem; line-height: 1.4; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-menu-input-row {
  display: flex; gap: 6px;
}
.phone-menu-input {
  width: 40px; background: #000; border: 1px solid #555; color: #fff;
  border-radius: 4px; padding: 2px 4px; font-size: 0.75rem; text-align: center; outline: none;
}
.btn-send-ussd {
  flex: 1; background: #444; border: 1px solid #666; color: #fff;
  font-size: 0.7rem; font-weight: 700; border-radius: 4px; cursor: pointer;
}
.btn-send-ussd:hover { background: #555; }

.ussd-info h4 {
  font-size: 1rem; color: var(--text); margin-bottom: 8px;
}
.ussd-info p {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px;
}
.state-indicator {
  display: inline-block; padding: 6px 12px; border-radius: 6px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--surface-line);
  font-family: var(--mono); font-size: 0.75rem; color: var(--warn);
}

/* Typing Dots Animation */
.typing-dots span {
  animation: blink 1.4s infinite both;
  font-weight: 800;
  display: inline-block;
  margin: 0 1px;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

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

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--surface-line); background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 800px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 0 0 20px; }
.section-head p { color: var(--text-muted); font-size: 1.15rem; margin: 0; line-height: 1.65; }

.divider { border: 0; border-top: 1px solid var(--surface-line); margin: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 36px; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px -15px rgba(0,0,0,0.6);
}
.card:hover { 
  border-color: rgba(0, 240, 255, 0.25); 
  transform: translateY(-5px); 
  box-shadow: 0 20px 45px -10px rgba(0, 240, 255, 0.12);
}
.card h3 { font-size: 1.35rem; margin: 24px 0 12px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; line-height: 1.6; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(112,0,255,0.08)); 
  border: 1px solid rgba(0,240,255,0.15); color: var(--brand);
  transition: all 0.3s;
}
.card:hover .ico {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(112,0,255,0.15));
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.card .ico svg { width: 24px; height: 24px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { 
  text-align: center; padding: 36px 24px; 
  border: 1px solid var(--surface-line); border-radius: var(--radius); 
  background: var(--bg-card); backdrop-filter: blur(16px);
  transition: border-color 0.3s;
}
.stat:hover {
  border-color: rgba(0, 240, 255, 0.2);
}
.stat .num { font-size: 2.5rem; font-weight: 800; font-family: var(--font-display); background: linear-gradient(135deg, var(--brand), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.03em; }
.stat .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; font-weight: 500; line-height: 1.5; }

/* ---------- Planes list ---------- */
.plane-row { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--surface-line); transition: background-color 0.2s; border-radius: 8px; }
.plane-row:hover { background-color: rgba(255, 255, 255, 0.01); padding-left: 8px; padding-right: 8px; }
.plane-row:last-child { border-bottom: 0; }
.plane-tag { flex: none; width: 180px; font-weight: 700; color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.plane-row p { margin: 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--surface-line); border-radius: var(--radius); background: var(--bg-card); backdrop-filter: blur(10px); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--surface-line); vertical-align: top; }
th { background: rgba(255,255,255,0.015); color: var(--text); font-weight: 700; font-family: var(--font-display); border-bottom: 1.5px solid var(--surface-line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,0.015); }

.tier { font-weight: 700; padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; display: inline-block; }
.tier.low { background: rgba(0,240,255,0.08); color: var(--brand); border: 1px solid rgba(0,240,255,0.15); }
.tier.moderate { background: rgba(112,0,255,0.1); color: #c0abff; border: 1px solid rgba(112,0,255,0.2); }
.tier.high { background: rgba(255,184,0,0.08); color: var(--warn); border: 1px solid rgba(255,184,0,0.15); }
.tier.restricted { background: rgba(255,69,69,0.08); color: var(--danger); border: 1px solid rgba(255,69,69,0.15); }

/* ---------- Code ---------- */
pre {
  background: rgba(2, 4, 8, 0.6); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 22px 26px; overflow-x: auto; font-family: var(--mono); font-size: 0.9rem; line-height: 1.65;
  color: #d8e6ff; backdrop-filter: blur(10px);
}
code { font-family: var(--mono); font-size: 0.88em; color: var(--brand); background: rgba(0,240,255,0.06); padding: 3px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; color: inherit; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(0,240,255,0.06), rgba(112,0,255,0.06)), var(--bg-card);
  backdrop-filter: blur(24px); border: 1px solid var(--surface-line); 
  border-radius: var(--radius); padding: 60px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 16px; }
.cta-band p { color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--surface-line); padding: 80px 0 40px; margin-top: 60px; background: rgba(0,0,0,0.3); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin: 0 0 20px; font-family: var(--font-display); }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--surface-line); color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Docs layout ---------- */
.docs-shell { display: grid; grid-template-columns: 260px 1fr; gap: 60px; padding: 60px 0 100px; }
.docs-side { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 10px; }
.docs-side h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin: 24px 0 12px; font-family: var(--font-display); }
.docs-side a { display: block; color: var(--text-muted); padding: 8px 14px; border-radius: 10px; font-size: 0.95rem; transition: all 0.2s; }
.docs-side a:hover { color: var(--text); background: var(--bg-card); }
.docs-side a.active { color: var(--brand); background: rgba(0,240,255,0.06); font-weight: 600; box-shadow: inset 1px 0 0 var(--brand); }

.docs-content { min-width: 0; }
.docs-content h1 { font-size: 3rem; margin: 0 0 16px; }
.docs-content h2 { font-size: 1.9rem; margin: 60px 0 20px; padding-top: 24px; border-top: 1px solid var(--surface-line); }
.docs-content h3 { font-size: 1.35rem; margin: 36px 0 12px; }
.docs-content p, .docs-content li { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.docs-content ul { padding-left: 24px; }
.docs-content li { margin-bottom: 10px; }

.note {
  border-left: 4px solid var(--brand); background: rgba(0,240,255,0.03);
  padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 28px 0; color: var(--text-muted);
  border-top: 1px solid rgba(0, 240, 255, 0.05);
  border-right: 1px solid rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
  font-size: 0.98rem;
}
.note.warn { 
  border-left-color: var(--warn); 
  background: rgba(255,184,0,0.02); 
  border-top-color: rgba(255,184,0,0.05);
  border-right-color: rgba(255,184,0,0.05);
  border-bottom-color: rgba(255,184,0,0.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 40px; }
  .docs-side { position: static; max-height: none; border-bottom: 1px solid var(--surface-line); padding-bottom: 20px; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(4, 8, 16, 0.96); backdrop-filter: blur(24px); border-bottom: 1px solid var(--surface-line); padding: 10px 24px 20px; display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--surface-line); }
  .nav-links .dropdown-content { position: static; background: none; border: none; box-shadow: none; display: block; padding-left: 20px; }
  .nav-links .btn { margin-top: 20px; justify-content: center; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .plane-row { flex-direction: column; gap: 8px; }
  .plane-tag { width: auto; }
  .cta-band { padding: 45px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ambient-glow, .ambient-glow-2 { animation: none !important; }
}

/* ---------- PhD Enterprise Checklist Additions ---------- */
.math-block {
  display: block;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--brand);
  background: rgba(0, 240, 255, 0.02);
  border: 1px dashed rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
  text-align: center;
  overflow-x: auto;
  letter-spacing: 0.02em;
}
.math-inline {
  font-family: var(--mono);
  color: var(--brand);
  font-weight: 600;
  background: rgba(0, 240, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Sovereignty Calculator */
.calculator-widget {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(8, 14, 28, 0.6);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.calculator-header {
  text-align: center;
  margin-bottom: 24px;
}
.calculator-header h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #fff;
}
.calculator-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
.slider-group {
  margin-bottom: 20px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.slider-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 8px;
}
.slider-value {
  color: #fff;
  font-family: var(--mono);
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  transition: transform 0.1s;
}
.calc-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}
.calculator-results {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.score-box {
  display: flex;
  flex-direction: column;
}
.score-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.score-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1;
  margin-top: 4px;
  transition: color 0.3s;
}
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 240, 255, 0.08);
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.15); border-color: rgba(0, 240, 255, 0.6); }
  100% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); border-color: rgba(0, 240, 255, 1); }
}

/* Three-Tier Orchestration Visual Stack */
.orchestration-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 50px auto 0;
}
.stack-layer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
  .stack-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.stack-layer:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}
.layer-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.layer-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.layer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.layer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.stack-layer.top-layer { border-left: 3px solid var(--brand); }
.stack-layer.middle-layer { border-left: 3px solid var(--brand-2); }
.stack-layer.bottom-layer { border-left: 3px solid #ff4d4d; }

/* Attestation Terminal */
.terminal-box {
  background: #020408;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: var(--shadow);
  margin: 30px 0;
}
.terminal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--surface-line);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.terminal-buttons {
  display: flex;
  gap: 6px;
}
.terminal-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-btn.r { background: #ff5f56; }
.terminal-btn.y { background: #ffbd2e; }
.terminal-btn.g { background: #27c93f; }
.terminal-body {
  padding: 20px;
  overflow-x: auto;
}
.terminal-body pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #27c93f;
  line-height: 1.5;
}

/* transfer pricing compliance badge */
.badge-transfer-pricing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(39, 201, 63, 0.08);
  color: #27c93f;
  border: 1px solid rgba(39, 201, 63, 0.2);
  margin-top: 10px;
}
.anti-wrapper-banner {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 10px 40px -10px rgba(255, 77, 77, 0.05);
}
.anti-wrapper-banner h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.anti-wrapper-banner p {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
