/* Web fonts are loaded in document heads so discovery is not blocked by CSS import. */

:root {
  --cream: #EBEAE5;
  --blue: #D3E2F2;
  --ink: #141414;
  --white: #FFFFFF;
  --bg: var(--cream);
  --bg-elev: var(--blue);
  --bg-card: var(--white);
  --surface-line: rgba(20, 20, 20, 0.28);
  --text: var(--ink);
  --text-muted: #44443F;
  --text-dim: #666660;
  --brand: #6B94BC;
  --brand-2: #D3E2F2;
  --brand-ink: var(--ink);
  --brand-soft: rgba(211, 226, 242, 0.65);
  --warn: #ffb800;
  --danger: #ff4d4d;
  --ok: #00F0FF;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --hairline: rgba(20, 20, 20, 0.18);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-brand: 6px 6px 0 var(--ink);
  --ring: 0 0 0 4px rgba(107, 148, 188, 0.36);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-color: var(--text-muted) var(--bg);
  scrollbar-width: thin;
}
html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  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;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 240, 255, 0.22);
  color: #fff;
}

/* 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; 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; }
}

/* Contextual-control and contact enhancements. These extend the established
   cream/blue, black-outline design language without replacing its base rules. */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.control-tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.control-tier-grid .tier-card { min-width: 0; padding: 26px 22px; }
.control-tier-grid .tier-card h3 { margin: 0 0 10px; font-size: 1.22rem; }
.control-tier-grid .tier-card p { font-size: .92rem; }
.control-tier-grid .tier-flag {
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}
.control-tier-grid .tier-rapid { background: #eef4e9; }
.control-tier-grid .tier-standard { background: var(--white); }
.control-tier-grid .tier-protected { background: #f4ebc9; }
.control-tier-grid .tier-governed { background: #e9e1f2; }
.control-tier-grid .tier-critical { background: #f4dcd8; }
.control-tier-grid.compact .tier-card { min-height: 255px; }

.business-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.fit-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.fit-card:nth-child(2n) { background: var(--blue); }
.fit-card strong { font: 800 1.2rem/1.15 var(--font-display); }
.fit-card span { color: var(--text-muted); }

.contact-container { max-width: 760px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--text-muted); font-size: .85rem; font-weight: 750; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid #385f85; outline-offset: 3px; }
.contact-submit { width: 100%; justify-content: center; }
.form-disclosure { margin: -4px 0 0 !important; color: var(--text-muted); font-size: .8rem; }
.form-status { min-height: 1.5em; margin: 0 !important; color: var(--ink) !important; font-weight: 700; }

.console-tabs[role="tablist"] { scrollbar-width: thin; }
.console-tab-btn[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: var(--blue);
}
.console-pane[role="tabpanel"]:focus-visible { outline-offset: -4px; }

@media (max-width: 1050px) {
  .control-tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .business-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .control-tier-grid,
  .business-fit-grid,
  .contact-form-grid { grid-template-columns: 1fr; }
  .control-tier-grid .tier-card,
  .control-tier-grid.compact .tier-card,
  .fit-card { min-height: auto; }
}

/* Evidence-led product communication ------------------------------------- */
.truth-strip {
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
}
.truth-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: .84rem;
}
.truth-strip strong { font-weight: 800; }
.truth-strip a { color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 800 .68rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.designed { background: #f1ead8; color: #563e0d; }
.status-badge.local { background: var(--blue); }
.status-badge.absent { background: #f8dedb; color: #6e1d19; }

.evidence-note {
  margin: 28px 0;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.evidence-note p { margin: 6px 0 0; color: var(--text-muted); }

.maturity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.maturity-card {
  min-height: 180px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.maturity-card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.maturity-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

.composition-example {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: stretch;
}
.profile-panel,
.vertical-panel {
  padding: clamp(28px, 4vw, 44px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.profile-panel { background: var(--blue); }
.vertical-panel { background: var(--white); }
.profile-panel h3,
.vertical-panel h3 { margin: 18px 0 10px; }
.vertical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.vertical-list span {
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 750;
}

.availability-table td:first-child { width: 29%; font-weight: 750; color: var(--ink); }
.availability-table td:last-child { color: var(--text-muted); }

@media (max-width: 900px) {
  .truth-strip .container { align-items: flex-start; flex-direction: column; padding-top: 14px; padding-bottom: 14px; }
  .maturity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composition-example { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .maturity-grid,
  .vertical-list { grid-template-columns: 1fr; }
}

/* ---------- 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;
}

/* ---------- Breadcrumb (sub-pages) ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text-dim); }

/* ---------- Deployment tier cards ---------- */
.tier-card { display: flex; flex-direction: column; height: 100%; }
.tier-card .tier-flag { align-self: flex-start; margin-bottom: 16px; }
.tier-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tier-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; line-height: 1.5; }
.tier-card li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.card.featured { border-color: rgba(0,240,255,0.4); box-shadow: 0 0 30px rgba(0,240,255,0.07); }
.tier-flag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tier-flag.bank { background: rgba(255,69,69,0.1); color: var(--danger); border: 1px solid rgba(255,69,69,0.2); }
.tier-flag.telco { background: rgba(112,0,255,0.12); color: #c0abff; border: 1px solid rgba(112,0,255,0.25); }
.tier-flag.startup { background: rgba(0,240,255,0.1); color: var(--brand); border: 1px solid rgba(0,240,255,0.2); }

/* ---------- Numbered step cards ---------- */
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--brand);
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(112,0,255,0.1));
  border: 1px solid rgba(0,240,255,0.2); margin-bottom: 18px;
}

/* ============================================================
   Aesthetic polish pass — layered refinements over the base.
   Later rules; equal specificity wins, so these tune the craft
   (typography rhythm, depth, focus, micro-interactions) without
   touching the brand hue or markup.
   ============================================================ */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Tighter, more even headline line-breaks; softer paragraph rag. */
h1, h2, h3, h4, .stat .num { text-wrap: balance; }
p, li, .lead, .lbl { text-wrap: pretty; }

/* Crisper, less-grey display gradient for headings. */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #dce5f3 52%, #a9b8ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Anchored sections no longer hide under the sticky header. */
[id] { scroll-margin-top: 100px; }

/* Calmer accent glow on eyebrows — trust over neon. */
.eyebrow { text-shadow: 0 0 22px rgba(0, 240, 255, 0.16); }

/* Softer, slower ambient field so it reads as atmosphere, not UI. */
.ambient-glow {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  filter: blur(110px);
}
.ambient-glow-2 {
  background: radial-gradient(circle, rgba(112, 0, 255, 0.07) 0%, transparent 70%);
  filter: blur(130px);
}

/* Cards gain a hairline top-highlight for depth; hover adds a crisp
   cyan edge instead of only a diffuse glow. */
.card {
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card:hover {
  box-shadow: 0 22px 48px -14px rgba(0, 240, 255, 0.14), inset 0 0 0 1px rgba(0, 240, 255, 0.22);
}

/* Stat tiles: subtle vertical sheen + tabular figures for aligned numbers. */
.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat:hover {
  border-color: rgba(0, 240, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px -20px rgba(0, 240, 255, 0.15);
}
.stat .num {
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

/* Primary button: glassy top sheen + tighter, richer shadow. */
.btn-primary {
  box-shadow: 0 10px 26px -10px rgba(112, 0, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px -10px rgba(0, 240, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Desktop nav: animated underline that anchors the active/hover state. */
@media (min-width: 901px) {
  .nav-links > a:not(.btn), .nav-links .dropbtn {
    position: relative;
  }
  .nav-links > a:not(.btn)::after, .nav-links .dropbtn::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .nav-links > a:not(.btn):hover::after,
  .nav-links > a:not(.btn).active::after,
  .nav-links .dropdown:hover .dropbtn::after {
    transform: scaleX(1);
  }
}

/* Faded-edge dividers read cleaner than a hard rule. */
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-line) 18%, var(--surface-line) 82%, transparent);
}

/* Form fields: clear, on-brand focus affordance. */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

/* Pills lift subtly on hover. */
.pill { transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.pill:hover { border-color: rgba(0, 240, 255, 0.25); color: var(--text); }

/* Refined focus ring for keyboard users. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Quieter scrollbar track. */
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.55); }

/* ============================================================
   Synaporia professional empowerment identity
   Shared with the operational console: cream canvas, blue
   guidance surfaces, charcoal structure and white modules.
   ============================================================ */
body {
  background: var(--cream);
  color: var(--ink);
}

body::before {
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 42rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 42rem);
}

.ambient-glow,
.ambient-glow-2 { display: none; }

::selection { background: var(--blue); color: var(--ink); }
a { color: #385f85; }
a:hover { color: var(--ink); }

.text-gradient,
.text-gradient-brand {
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}

.site-header,
.site-header.scrolled {
  background: rgba(235, 234, 229, 0.96);
  border-bottom: 2px solid var(--ink);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav { height: 84px; }
.brand { color: var(--ink); font-weight: 800; }
.brand .mark {
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 10px 10px 10px 3px;
  background: var(--blue) url("../img/favicon.svg") center / calc(100% - 4px) no-repeat;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand svg.mark > * { display: none; }
.nav-links a,
.dropbtn { color: var(--text-muted); font-weight: 650; }
.nav-links a:hover,
.nav-links a.active,
.dropbtn:hover { color: var(--ink); }
.dropdown-content {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
.dropdown-content a:hover { background: var(--blue); color: var(--ink); }
.nav-toggle { border: 2px solid var(--ink); color: var(--ink); background: var(--white); }

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary,
.btn-primary:hover {
  color: var(--ink);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-ghost,
.btn-ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
  backdrop-filter: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.hero {
  padding: clamp(88px, 11vw, 150px) 0 clamp(72px, 9vw, 120px);
  text-align: left;
}
.hero .container { align-items: flex-start; }
.hero h1,
.hero h1[style] {
  max-width: 12ch !important;
  margin: 0 0 28px !important;
  font-size: clamp(3.25rem, 8vw, 7.6rem) !important;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.065em;
}
.hero p.lead,
.hero p.lead[style] {
  max-width: 64ch !important;
  margin: 0 0 36px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}
.hero .cta-row,
.hero .cta-row[style] { justify-content: flex-start !important; }
.hero > .container > .eyebrow { max-width: 68ch; }

.eyebrow {
  color: var(--ink);
  text-shadow: none;
  letter-spacing: .16em;
  font-weight: 800;
}
.tag,
.pill {
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--ink);
  backdrop-filter: none;
}
.pill .dot { background: var(--ink); box-shadow: none; }

section { padding: clamp(72px, 9vw, 120px) 0; }
section:nth-of-type(even) { background: var(--blue); }
.section-head { max-width: 920px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: 0; margin-right: 0; text-align: left; }
.section-head h2,
.docs-content h1 {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.055em;
}
.section-head p { color: var(--text-muted); }
.divider { height: 2px; background: var(--ink); }

.grid { gap: 28px; }
.card,
.card.featured,
.stat,
.table-wrap,
.cta-band,
.product-playground,
.anti-wrapper-banner {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card,
.stat { border-radius: var(--radius); }
.card:hover,
.card.featured:hover,
.stat:hover,
.product-playground:hover {
  border-color: var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.card h3,
.card p,
.stat .lbl { color: var(--ink); }
.card p,
.stat .lbl { color: var(--text-muted); }
.card .ico,
.card:hover .ico,
.step-num {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--blue);
  box-shadow: 3px 3px 0 var(--ink);
}
.stat { text-align: left; }
.stat .num {
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  font-weight: 800;
  line-height: 1;
}

.product-playground { overflow: hidden; }
.ui-header,
.playground-controls,
.console-toolbar,
.console-tab-bar { background: var(--blue); border-color: var(--ink); }
.playground-controls { border-right: 2px solid var(--ink); }
.window-title,
.control-label { color: var(--ink); }
.radio-pill-group label,
.form-select,
input,
select,
textarea {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}
.radio-pill-group input[type="radio"]:checked + label {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--blue);
  box-shadow: 2px 2px 0 var(--ink);
}

th { background: var(--blue); color: var(--ink); border-color: var(--ink); }
th, td { border-bottom-color: var(--surface-line); }
tbody tr:hover { background: rgba(211, 226, 242, .45); }
pre { border: 2px solid var(--ink); color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
code { color: #294f73; background: rgba(211, 226, 242, .7); }

.cta-band { padding: clamp(40px, 7vw, 72px); text-align: left; }
.cta-band p { margin-left: 0; }
.site-footer { border-top: 2px solid var(--ink); background: var(--blue); }
.footer-grid a,
.footer-bottom,
.footer-grid h4 { color: var(--text-muted); }
.footer-grid a:hover { color: var(--ink); }
.docs-side a:hover,
.docs-side a.active { color: var(--ink); background: var(--blue); box-shadow: inset 3px 0 0 var(--ink); }
.docs-content h2 { border-top: 2px solid var(--ink); }
.docs-content p,
.docs-content li { color: var(--text-muted); }
.note { border-color: var(--ink); background: var(--white); color: var(--text-muted); }

/* Research-led marketing narrative */
.challenge-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; margin-top:34px; }
.challenge-card { grid-column:span 4; min-height:230px; padding:28px; border:2px solid var(--ink); border-radius:24px; background:var(--white); box-shadow:6px 6px 0 var(--ink); display:flex; flex-direction:column; }
.challenge-card.wide { grid-column:span 6; }
.challenge-card.blue { background:var(--blue); }
.challenge-card.dark { background:var(--ink); color:var(--white); }
.challenge-card.dark h3 { color:var(--white); }
.challenge-card.dark p, .challenge-card.dark .challenge-kicker { color:rgba(255,255,255,.72); }
.challenge-kicker { color:var(--text-muted); font-size:.76rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.challenge-card h3 { font-size:1.45rem; margin:18px 0 10px; }
.challenge-card p { margin:0; }
.challenge-answer { border-top:1px solid currentColor; margin-top:auto; padding-top:18px; font-weight:750; }
.value-bridge { margin-top:32px; padding:34px; border:2px solid var(--ink); border-radius:28px; background:var(--bg); color:var(--ink); display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr); gap:32px; align-items:center; }
.value-bridge h3 { font-size:clamp(1.7rem,3vw,2.45rem); margin:0; }
.value-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.value-step { padding:18px; background:var(--white); border:1.5px solid var(--ink); border-radius:18px; }
.value-step strong { display:block; margin-bottom:7px; }
.research-note { margin-top:28px; color:var(--text-muted); font-size:.88rem; line-height:1.65; }
.research-note a { text-decoration:underline; text-underline-offset:3px; }

@media (max-width: 900px) {
  .nav-links {
    border: 2px solid var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .hero h1,
  .hero h1[style] { font-size: clamp(3rem, 15vw, 5rem) !important; }
  .challenge-card, .challenge-card.wide { grid-column:span 6; }
  .value-bridge { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  .challenge-card, .challenge-card.wide { grid-column:1 / -1; }
  .value-steps { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
