/* ============================================================
   Securyhub - Site Styles
   Dark violet security aesthetic, inspired-but-original.
   ============================================================ */

/* Ampersand fix: the Archivo display font's "&" glyph is a geometric closed loop
   that reads like an "8". This maps ONLY U+0026 (the ampersand) to the first
   available ubiquitous system sans, whose ampersand is a clean, unmistakable "&".
   unicode-range keeps every other character on Archivo, so nothing else changes.
   It loads no web font (system fonts only), so there is zero extra request. */
@font-face {
  font-family: 'AmpFix';
  font-style: normal;
  font-weight: 400 900;
  src: local('Segoe UI'), local('Helvetica Neue'), local('Helvetica'), local('Arial'),
       local('Roboto'), local('Liberation Sans'), local('Noto Sans'), local('Inter');
  unicode-range: U+0026;
}

:root {
  --bg: #060409;
  --bg-soft: #0d0a14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(139, 92, 246, 0.3);
  --text: #f4f2fa;
  --text-dim: #a49fb5;
  --text-faint: rgba(255, 255, 255, 0.45);
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-900: #4c1d95;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'AmpFix', 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 1.25rem;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* Native <select> dropdowns: the option list renders on the OS popup, and
   without an explicit dark background the near-white option text lands on a
   white surface and disappears (shows as blank rows). Force a dark, legible
   popup for every dropdown across the whole app. */
select { color-scheme: dark; }
select option,
select optgroup {
  background-color: #14101d;
  color: #f4f2fa;
}

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0d0a14; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.45);
  border-radius: 6px;
  border: 3px solid #0d0a14;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.75); }
* { scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.45) #0d0a14; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--violet-500); }

.accent-gradient {
  background: linear-gradient(92deg, #c4b5fd 0%, #8b5cf6 45%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Background layer ============ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(110px); animation: orb-drift 18s ease-in-out infinite alternate; }
.orb-1 { top: 12%; left: 18%; width: 560px; height: 560px; background: rgba(124, 58, 237, 0.14); }
.orb-2 { bottom: 18%; right: 14%; width: 480px; height: 480px; background: rgba(76, 29, 149, 0.16); animation-delay: -6s; }
.orb-3 { top: 62%; left: 55%; width: 380px; height: 380px; background: rgba(139, 92, 246, 0.09); animation-delay: -12s; }

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, -40px) scale(1.08); }
}

/* 3D shapes */
.shape { position: absolute; }
.shape-cube { top: 16%; right: 12%; width: 76px; height: 76px; perspective: 600px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cube-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(109, 40, 217, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(4px);
}

.shape-sphere {
  top: 62%; right: 22%;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(196, 181, 253, 0.45), rgba(109, 40, 217, 0.25) 60%, rgba(76, 29, 149, 0.15));
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.35);
}

.shape-ring {
  bottom: 16%; left: 8%;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.28);
  border-top-color: rgba(196, 181, 253, 0.6);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.12), inset 0 0 24px rgba(139, 92, 246, 0.1);
}

/* Drifting network coins */
.coin-field { position: absolute; inset: 0; }
.coin {
  position: absolute;
  top: 0; left: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 26%, #2c2a3a 0%, #1a1824 55%, #0e0c15 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.14),
    inset 0 -7px 14px rgba(0, 0, 0, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(139, 92, 246, 0.07);
  opacity: 0.5;
  will-change: transform;
}
.coin::before {
  content: "";
  position: absolute;
  top: 6%; left: 13%;
  width: 46%; height: 27%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent);
  filter: blur(2px);
  transform: rotate(-16deg);
}
.coin img {
  width: 58%; height: 58%;
  object-fit: contain;
  border-radius: 50%;
}
.coin-invert img { filter: invert(1); }
.coin-amb { opacity: 0.34; }
.coin-far { opacity: 0.24; filter: blur(1.6px); }
.coin-anchor {
  opacity: 0.6;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.16),
    inset 0 -7px 14px rgba(0, 0, 0, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(139, 92, 246, 0.13);
}
@media (max-width: 640px) { .coin { width: 46px; height: 46px; } }

.rotating { animation: rot3d 22s linear infinite; }
.rotating-slow { animation: rot2d 16s linear infinite; }
@keyframes rot3d { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes rot2d { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.floating { animation: float 6s ease-in-out infinite; }
.floating-slow { animation: float 9s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

/* everything above bg */
.site-header, section, .divider, .site-footer { position: relative; z-index: 2; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 4, 9, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { background: rgba(6, 4, 9, 0.82); border-bottom-color: var(--line); }

.nav-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease; }
.brand:hover { transform: scale(1.04); }
.brand-mark { width: 31px; height: 31px; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--violet-400); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--violet-500);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.chev { width: 14px; height: 14px; transition: transform 0.3s ease; }
.has-dropdown:hover .chev { transform: rotate(180deg); }

/* dropdown */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.dropdown:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown.mega {
  position: fixed;
  top: calc(var(--nav-h) - 6px);
  left: 50vw;
}
.mega {
  width: min(860px, calc(100vw - 32px));
  background: rgba(10, 7, 16, 0.97);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.08);
  padding: 26px;
}
.mega-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; gap: 26px; }
.mega-title { color: var(--violet-400); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }

.mega-link {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.mega-link:hover { background: rgba(124, 58, 237, 0.14); border-color: rgba(139, 92, 246, 0.3); }
.mega-link svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--violet-400); margin-top: 2px; }
.mega-link strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 2px; transition: color 0.2s ease; }
.mega-link:hover strong { color: var(--violet-300); }
.mega-link span { font-size: 0.74rem; color: var(--text-dim); line-height: 1.45; }

.mega-featured {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.35), rgba(124, 58, 237, 0.15));
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mega-featured h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 10px 0 8px; }
.mega-featured p { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; }
.mega-featured ul { margin-bottom: 16px; flex-grow: 1; }
.mega-featured li { font-size: 0.8rem; color: #d9d4e8; padding-left: 20px; position: relative; margin-bottom: 7px; }
.mega-featured li::before { content: "✓"; position: absolute; left: 0; color: var(--violet-400); font-weight: 700; }

.mega-info p { display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 13px; }
.mega-info p svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--violet-400); margin-top: 2px; }
.mega-info strong { color: #fff; }
.mega-cta { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(139, 92, 246, 0.2); text-align: center; }
.mega-cta a { color: var(--violet-400); font-weight: 700; font-size: 0.85rem; transition: color 0.2s; }
.mega-cta a:hover { color: var(--violet-300); }

.pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  color: var(--violet-300);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-solid {
  background: linear-gradient(120deg, var(--violet-600), var(--violet-700));
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-solid:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn-outline { border: 1px solid var(--line-accent); color: var(--violet-300); background: rgba(139, 92, 246, 0.06); }
.btn-outline:hover { background: rgba(124, 58, 237, 0.18); transform: translateY(-2px); border-color: var(--violet-500); }

.btn-ghost { border: 1px solid var(--violet-600); color: var(--violet-400); }
.btn-ghost:hover { background: rgba(109, 40, 217, 0.2); transform: scale(1.04); }

/* burger + mobile */
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(6, 4, 9, 0.97);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-menu a:hover { color: var(--violet-400); }
.mobile-menu .btn { margin-top: 14px; border-bottom: 0; color: #fff; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;        /* fallback */
  align-items: safe center;   /* never overflow above the fixed header */
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; }

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}

/* Hero text treatment ported from the experiment (Hero B) */
.hero-title-v2 {
  text-transform: none;
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-sub-v2 {
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 10px;
}

/* The SecuryHub anthem: indented under the paragraph like its closing quote */
.hero-anthem {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-left: 28px;
  margin-bottom: 30px;
}
.hero-anthem::before {
  content: "";
  width: 34px;
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--violet-500), rgba(139, 92, 246, 0));
}

/* Invisible underline with a one-time lens-flare sweep: out and back, then gone */
.anthem-text { position: relative; }
.anthem-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139, 92, 246, 0.55) 30%,
    rgba(196, 181, 253, 0.9) 45%,
    #f5f3ff 50%,
    rgba(196, 181, 253, 0.9) 55%,
    rgba(139, 92, 246, 0.55) 70%,
    transparent 100%);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  background-position: -90% 0;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
  animation: anthem-flare 3.6s ease-in-out 1.4s 1;
  pointer-events: none;
}
@keyframes anthem-flare {
  0%   { background-position: -90% 0; }
  46%  { background-position: 190% 0; }
  54%  { background-position: 190% 0; }
  100% { background-position: -90% 0; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta > div:not(.sep) { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.35rem; font-weight: 600; color: #fff; }
.hero-meta span { font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-meta .sep { width: 1px; height: 36px; background: linear-gradient(transparent, rgba(139,92,246,0.5), transparent); }

/* hero visual */
.hero-visual { display: flex; justify-content: center; }
.visual-stage { position: relative; width: min(460px, 90%); aspect-ratio: 1; }

.hex-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
  filter: blur(28px);
  animation: pulse-slow 5s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.25);
  animation: rot2d 26s linear infinite;
}
.orbit-b { inset: 9%; border-style: solid; border-color: rgba(139, 92, 246, 0.14); animation-duration: 18s; animation-direction: reverse; }
.orbit i {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.9);
}
.orbit-b i { width: 7px; height: 7px; background: var(--violet-300); }

.shield-wrap {
  position: absolute;
  inset: 21%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shield-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.35)); }

.scan-path {
  stroke-dasharray: 90 560;
  stroke-dashoffset: 0;
  animation: trace 5s linear infinite;
  opacity: 0.9;
}
@keyframes trace { to { stroke-dashoffset: -650; } }

.scanline {
  position: absolute;
  left: 14%; right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.8), transparent);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.9));
  animation: scan 4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 16%; opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { top: 82%; }
}

/* floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(13, 10, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ddd8ea;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.chip .mono { color: #86efac; }
.chip-ok { bottom: -2%; right: 6%; }

/* rotating finding chips: wrapper floats, inner chip pops */
.vchip-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vchip-wrap { position: absolute; }
.vchip-wrap .chip {
  position: static;
  opacity: 0;
}
/* rise to the rest position, then the wrapper's float (locked to the
   terminal's phase) carries the chip in the same rhythm */
.vchip-wrap .chip.vin { animation: chip-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes chip-rise {
  from { opacity: 0; transform: translateY(26px) scale(0.86); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.vchip-wrap .chip.vout { animation: chip-sink 0.5s ease-in both; }
@keyframes chip-sink {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(14px) scale(0.92); }
}

.sev { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 6px; }
.sev-c { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.sev-h { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.sev-ok { background: rgba(34, 197, 94, 0.14); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }

/* terminal card */
.term-card {
  position: absolute;
  top: 18%;
  left: -14%;
  width: 235px;
  background: rgba(10, 7, 16, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.08);
}
.term-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.term-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.term-head i:nth-child(1) { background: #ef4444aa; }
.term-head i:nth-child(2) { background: #f59e0baa; }
.term-head i:nth-child(3) { background: #22c55eaa; }
.term-head span { margin-left: auto; font-size: 0.62rem; color: var(--text-faint); font-family: var(--font-mono); }
.term-body {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.75;
  color: #cfc9e0;
  white-space: pre-wrap;
}
.t-dim { color: var(--text-faint); }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--violet-400); }
@keyframes blink { 50% { opacity: 0; } }
.t-bar { color: var(--violet-400); }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--violet-400);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Inner pages ============ */
.page-hero {
  padding: calc(var(--nav-h) + 84px) 0 40px;
  text-align: center;
}
.page-hero .section-sub { margin-bottom: 34px; }
.page-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

.nav-link.active { color: var(--violet-400); }
.nav-link.active::after { width: 100%; }

.services-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.timeline.timeline-3 { grid-template-columns: repeat(3, 1fr); }
.timeline-3::before { left: 12%; right: 12%; }

/* Short viewports: type sizes stay untouched; only leading and spacing
   tighten so the CTAs remain part of the opening frame. */
@media (max-height: 720px) and (min-width: 1101px) {
  .hero { padding-top: calc(var(--nav-h) + 12px); }
  .hero-title-v2 { margin-bottom: 12px; line-height: 1.02; }
  .hero-sub-v2 { margin-bottom: 6px; line-height: 1.62; }
  .hero-anthem { margin-bottom: 16px; }
  .hero-actions .btn-lg { padding: 12px 26px; }
  .hero-meta strong { font-size: 1.15rem; }
  .visual-stage { width: min(390px, 88%); }
}

/* ============ Shared section bits ============ */
.divider { display: flex; justify-content: center; padding: 34px 0; }
.divider span {
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45), transparent);
}

.kicker {
  text-align: center;
  color: var(--violet-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title.xl { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.section-title.grad {
  background: linear-gradient(92deg, #ede9fe, #a78bfa 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 54px;
  font-size: 1.02rem;
}

/* ============ Trusted marquee ============ */
.trusted { padding: 70px 0 30px; overflow: hidden; }
.trusted-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px; height: 560px;
  background: rgba(124, 58, 237, 0.09);
  border-radius: 50%;
  filter: blur(140px);
  animation: pulse-slow 6s ease-in-out infinite;
  pointer-events: none;
}
.trusted .section-title { margin-bottom: 46px; }

.marquee {
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track:hover .marquee-content { animation-play-state: paused; }

.marquee-content { display: flex; animation: m-left 26s linear infinite; }
.marquee-content.reverse { animation: m-right 26s linear infinite; }
@keyframes m-left { to { transform: translateX(-100%); } }
@keyframes m-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.logo-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 195px;
  margin: 0 14px;
  padding: 20px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-item::after {
  content: "";
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: linear-gradient(45deg, transparent 42%, rgba(255,255,255,0.045) 50%, transparent 58%);
  animation: shine 6s infinite;
}
@keyframes shine {
  0%, 100% { transform: translateX(-70%) rotate(0.001deg); }
  50% { transform: translateX(70%) rotate(0.001deg); }
}
.logo-item:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.08);
}
.logo-glyph {
  font-size: 1.6rem;
  line-height: 1;
  filter: saturate(0.6) brightness(0.85);
  transition: all 0.4s ease;
}
.logo-item:hover .logo-glyph { filter: none; transform: scale(1.15); }
.logo-item img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 9px;
  filter: saturate(0.75) brightness(0.9);
  transition: all 0.4s ease;
}
.logo-item:hover img { filter: none; transform: scale(1.08); }
.g1 { color: #a78bfa; } .g2 { color: #7dd3fc; } .g3 { color: #c4b5fd; }
.g4 { color: #f0abfc; } .g5 { color: #86efac; } .g6 { color: #fcd34d; }
.logo-item > span:last-child {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.4s ease;
}
.logo-item:hover > span:last-child { color: #fff; text-shadow: 0 0 18px rgba(139, 92, 246, 0.6); }

/* stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 70px 0 40px;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(0,0,0,0.25));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.16); }
.stat-card:hover .stat-glow { opacity: 1; }
.stat-number {
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.stat-number.highlight { color: var(--green); text-shadow: 0 0 28px rgba(34, 197, 94, 0.45); }
.stat-card:hover .stat-number { transform: scale(1.08); text-shadow: 0 0 28px rgba(139, 92, 246, 0.55); }
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* ============ Services ============ */
.services { padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-accent);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
}
.svc-card.featured {
  background: linear-gradient(150deg, rgba(76, 29, 149, 0.28), rgba(124, 58, 237, 0.08));
  border-color: var(--line-accent);
}
.svc-card .pill { position: absolute; top: 20px; right: 20px; }
.svc-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--violet-400);
  margin-bottom: 20px;
  transition: all 0.35s ease;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-icon {
  background: rgba(139, 92, 246, 0.22);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
}
.svc-card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 10px; }
.svc-card p { color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; margin-bottom: 18px; }
.svc-link { color: var(--violet-400); font-weight: 700; font-size: 0.88rem; transition: all 0.25s ease; }
.svc-link:hover { color: var(--violet-300); letter-spacing: 0.02em; }

.services-more {
  text-align: center;
  margin-top: 34px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.services-more a { color: var(--violet-400); font-weight: 700; transition: color 0.25s ease; }
.services-more a:hover { color: var(--violet-300); }

/* ============ Platform ============ */
.platform { padding: 80px 0; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.plat-card {
  padding: 40px 36px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
}
.plat-card:hover { border-color: var(--line-accent); box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 40px rgba(139,92,246,0.08); transform: translateY(-4px); }
.plat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.plat-head svg { width: 30px; height: 30px; color: var(--violet-400); }
.plat-head h3 { font-family: var(--font-display); font-size: 1.5rem; }
.plat-list { margin-bottom: 30px; }
.plat-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--text-dim);
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plat-list li:last-child { border-bottom: 0; }
.plat-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--violet-500);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}
.plat-list strong { color: #fff; }

/* ============ Process ============ */
.process { padding: 80px 0 90px; }
.process .section-title { margin-bottom: 64px; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px; left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45) 12%, rgba(139, 92, 246, 0.45) 88%, transparent);
}
.t-step { position: relative; text-align: center; padding: 0 8px; }
.t-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line-accent);
  color: var(--violet-300);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.05);
  transition: all 0.35s ease;
}
.t-step:hover .t-num {
  background: var(--violet-700);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.5);
}
.t-step h3 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 8px; }
.t-step p { color: var(--text-dim); font-size: 0.8rem; }

/* ============ Audit Reports ============ */
.reports { padding: 80px 0; }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}
.report-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.report-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-accent);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
}
.rep-head { display: flex; align-items: center; gap: 14px; }
.rep-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.22);
  font-size: 1.3rem;
  transition: all 0.35s ease;
}
.report-card:hover .rep-glyph { transform: scale(1.08); box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }
.rep-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.report-card:hover .rep-logo { transform: scale(1.08); }
.rep-head h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 3px; }
.rep-meta { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.04em; }
.report-card > p { color: var(--text-dim); font-size: 0.88rem; flex-grow: 1; }
.rep-sevs { display: flex; flex-wrap: wrap; gap: 8px; }
.sev-m { background: rgba(139, 92, 246, 0.14); color: var(--violet-300); border: 1px solid rgba(139, 92, 246, 0.4); }
.reports-cta { display: flex; justify-content: center; }
.reports-cta .btn svg { width: 20px; height: 20px; }
.reports-cta .btn:hover svg { transform: none; }

/* ============ CTA ============ */
.cta { padding: 30px 0 90px; }
.cta-card {
  position: relative;
  text-align: center;
  padding: 74px 40px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(76, 29, 149, 0.3), rgba(13, 10, 20, 0.6) 55%);
  border: 1px solid var(--line-accent);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 380px;
  background: rgba(139, 92, 246, 0.18);
  border-radius: 50%;
  filter: blur(110px);
  animation: pulse-slow 5.5s ease-in-out infinite;
}
.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-card p { position: relative; color: var(--text-dim); font-size: 1.05rem; margin-bottom: 34px; }
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 4, 9, 0.7);
  backdrop-filter: blur(8px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}
.foot-brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 16px; max-width: 300px; }
.foot-col h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 16px;
}
.foot-col a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 6px 0; transition: all 0.25s ease; }
.foot-col a:hover { color: #fff; transform: translateX(4px); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ============ Trusted By page ============ */
.clients-page { padding: 10px 0 60px; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.client-card {
  padding: 30px 30px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.client-card:hover {
  border-color: var(--line-accent);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35), 0 0 40px rgba(139, 92, 246, 0.08);
}
.client-card:target {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 16px 44px rgba(0, 0, 0, 0.35);
}
.client-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.client-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 13px;
  flex-shrink: 0;
}
.client-logo-pad { background: rgba(255, 255, 255, 0.05); padding: 8px; border: 1px solid var(--line); }
.client-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.client-site {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--violet-400);
  transition: color 0.25s ease;
}
.client-site:hover { color: var(--violet-300); }
.client-head .badge { margin-left: auto; }

.badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-public { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.badge-private { background: rgba(139, 92, 246, 0.12); color: var(--violet-300); border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-nda { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); border: 1px solid rgba(255, 255, 255, 0.14); }

.client-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.assets-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 10px;
}
.asset-list { margin-bottom: 18px; }
.asset-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.asset-list li:last-child { border-bottom: 0; }
.asset-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--violet-500);
  transform: rotate(45deg);
}
.asset-list a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #d9d4e8;
  word-break: break-all;
  transition: color 0.25s ease;
}
.asset-list a:hover { color: var(--violet-300); }
.asset-sub { display: block; font-size: 0.68rem; color: var(--text-faint); margin-top: 3px; word-break: break-all; }
.asset-private { font-size: 0.84rem; color: var(--text-faint); font-style: italic; }
.client-note { font-size: 0.8rem; color: var(--text-faint); }

.logos-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.74rem;
  color: var(--text-faint);
}

/* ============ Request Audit Modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 2, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 38px 36px 30px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(46, 28, 82, 0.55), rgba(10, 7, 16, 0.97) 45%);
  border: 1px solid var(--line-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.12);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { color: #fff; background: rgba(139, 92, 246, 0.14); border-color: var(--line-accent); }

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.modal-sub { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 26px; }

.modal-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.28);
  transition: all 0.25s ease;
}
.modal-contact:hover {
  background: rgba(139, 92, 246, 0.13);
  border-color: var(--violet-500);
  transform: translateY(-1px);
}
.modal-contact svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--violet-400);
}
.modal-contact-text { display: flex; flex-direction: column; gap: 2px; }
.modal-contact-text strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--violet-300);
}
.modal-contact:hover .modal-contact-text strong { color: #fff; }
.modal-contact-text small { font-size: 0.74rem; color: var(--text-dim); line-height: 1.45; }

.audit-form label { display: block; margin-bottom: 18px; }
.audit-form label > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.audit-form input,
.audit-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.audit-form input:focus,
.audit-form textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.audit-form ::placeholder { color: rgba(255, 255, 255, 0.32); }

.audit-form label.invalid input,
.audit-form label.invalid textarea { border-color: rgba(239, 68, 68, 0.55); }
.audit-form .err {
  display: none;
  font-style: normal;
  font-size: 0.74rem;
  color: #fca5a5;
  margin-top: 6px;
}
.audit-form label.invalid .err { display: block; }

.audit-form .btn { width: 100%; margin-top: 4px; }
.form-note { text-align: center; margin-top: 14px; font-size: 0.78rem; color: var(--text-faint); }
.form-note a { color: var(--violet-400); font-weight: 600; }
.form-note a:hover { color: var(--violet-300); }

.modal-success { text-align: center; padding: 26px 0 10px; }
.modal-success[hidden] { display: none; }
.success-icon {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}
.success-icon svg { width: 30px; height: 30px; }
.modal-success h3 { margin-bottom: 10px; }
.modal-success p { color: var(--text-dim); font-size: 0.92rem; max-width: 360px; margin: 0 auto 26px; }

@media (max-width: 640px) {
  .modal { padding: 30px 22px 24px; }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Floating "Questions?" launcher ============
   Sits bottom-right on the landing page, fades in a few seconds after arrival
   (site.js adds .sh-fab-in), and opens the general-question modal on click. */
.sh-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 950;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1;
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}
.sh-fab.sh-fab-in { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.sh-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109, 40, 217, 0.6), 0 3px 10px rgba(0, 0, 0, 0.4); }
.sh-fab:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
.sh-fab-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sh-fab-label { white-space: nowrap; }
.sh-fab-x { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: #17131f; border: 1px solid rgba(255, 255, 255, 0.22); color: #cbd5e1;
  font-size: 15px; line-height: 20px; text-align: center; cursor: pointer; z-index: 2; }
.sh-fab-x:hover { background: #241b34; color: #fff; }
.sh-fab-x:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
/* stay out of the way while a modal is open */
body.modal-open .sh-fab { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sh-fab { transform: none; transition: opacity 0.3s ease; }
  .sh-fab:hover { transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-anthem { justify-content: center; margin-left: 0; }
  .services-grid, .services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline, .timeline.timeline-3 { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .timeline::before { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .term-card { left: 0; }
}

@media (max-width: 640px) {
  .nav-actions .btn-ghost { display: none; }
  .services-grid, .services-grid.grid-4, .platform-grid, .timeline, .timeline.timeline-3, .reports-grid, .client-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; margin: 44px 0 30px; }
  .client-head { flex-wrap: wrap; }
  .client-head .badge { margin-left: 0; }
  .hero-meta .sep { display: none; }
  .visual-stage { width: min(340px, 92%); }
  .term-card { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-card { padding: 54px 24px; }
  .sh-fab { right: 16px; bottom: 16px; padding: 11px 16px 11px 13px; font-size: 0.84rem; }
  .sh-fab-icon { width: 18px; height: 18px; }
}
