/* ================================================================
   AI MARVEL MARKETING — Compact Jarvis HUD
   ================================================================ */

:root {
  /* === Deep navy backdrop (like the logo's plaque) === */
  --bg-0: #04070F;
  --bg-1: #080D1A;
  --bg-2: #0E1626;

  /* === Brushed metallic surfaces (like the logo bezel) === */
  --metal-dark: #1A2030;
  --metal-mid: #2C3340;
  --metal-light: #5A6678;
  --metal-shine: #B8C5D5;

  /* === Surfaces with metallic gradients === */
  --surface: rgba(20, 30, 50, 0.55);
  --surface-2: rgba(28, 40, 64, 0.7);
  --surface-metallic: linear-gradient(135deg, rgba(40, 52, 76, 0.7) 0%, rgba(14, 22, 38, 0.85) 50%, rgba(28, 36, 56, 0.7) 100%);
  --bezel-gradient: linear-gradient(135deg, #4A5468 0%, #2C3340 25%, #1A2030 50%, #2C3340 75%, #4A5468 100%);
  --plaque-gradient: linear-gradient(180deg, #1A2030 0%, #04070F 100%);

  /* === Borders === */
  --border: rgba(120, 165, 220, 0.22);
  --border-strong: rgba(30, 144, 255, 0.5);
  --border-chrome: rgba(184, 197, 213, 0.35);

  /* === Electric blue (the logo's glowing core — true blue, not cyan) === */
  --cyan: #1E90FF;
  --cyan-bright: #66BFFF;
  --cyan-mid: #4DA8FF;
  --cyan-deep: #0066CC;
  --cyan-glow: #99D5FF;

  /* === Text === */
  --text: #EEF3FB;
  --text-dim: #7895B5;
  --text-faint: #45597A;

  /* === Type === */
  --f-display: 'Orbitron', sans-serif;
  --f-tech: 'Rajdhani', sans-serif;
  --f-mono: 'Share Tech Mono', monospace;

  /* === Layout === */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(48px, 7vw, 80px);

  /* === Shadows / Glows === */
  --glow-blue: 0 0 24px rgba(30, 144, 255, 0.55);
  --glow-blue-strong: 0 0 48px rgba(30, 144, 255, 0.8);
  --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.6);
  --inset-metal: inset 0 1px 0 rgba(184, 197, 213, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--cyan); color: var(--bg-0); }

/* ================================================================
   ATMOSPHERE
   ================================================================ */
.bg-base {
  position: fixed; inset: 0; z-index: -10;
  background:
    radial-gradient(ellipse at top, rgba(30, 144, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(0, 102, 204, 0.14), transparent 55%),
    radial-gradient(ellipse at center, rgba(74, 84, 104, 0.08), transparent 70%),
    var(--bg-0);
}

.bg-grid {
  position: fixed; inset: 0; z-index: -8;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 75%);
}

.bg-vignette {
  position: fixed; inset: 0; z-index: -7;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,3,8,0.85) 100%);
  pointer-events: none;
}

#particles { position: fixed; inset: 0; z-index: -6; pointer-events: none; opacity: 0.35; }

.scanline {
  position: fixed; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-mid), transparent);
  opacity: 0.4;
  z-index: -5;
  animation: scan 10s linear infinite;
  filter: blur(1px);
  pointer-events: none;
}

@keyframes scan {
  0% { top: -2%; }
  100% { top: 102%; }
}

/* ================================================================
   HUD FRAME
   ================================================================ */
.hud-frame {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
}

.hud-top {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.hud-cluster { display: inline-flex; align-items: center; gap: 8px; }
.hud-bracket { color: var(--cyan); opacity: 0.7; }
.hud-label { color: var(--text-faint); }
.hud-val { color: var(--cyan-mid); display: inline-flex; align-items: center; gap: 6px; }

.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  background: #00FF94;
  border-radius: 50%;
  box-shadow: 0 0 8px #00FF94;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-corner {
  position: absolute;
  width: 32px; height: 32px;
  border-color: var(--cyan);
  opacity: 0.4;
}
.c-tl { top: 36px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.c-tr { top: 36px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.c-bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.c-br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 1200px;
  width: calc(100% - 80px);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 10px 22px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.4) 0%, rgba(14, 22, 38, 0.92) 30%, rgba(8, 13, 26, 0.95) 70%, rgba(74, 84, 104, 0.4) 100%),
    rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-chrome);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(30, 144, 255, 0.15);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px; height: 36px;
  display: inline-flex;
  position: relative;
}

.brand-logo img, .brand-logo svg {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: filter 0.4s;
}

/* Glow only after the image has decoded — prevents WebKit from
   painting the drop-shadow as a rectangular box mid-load */
.brand-logo svg, .brand-logo img.img-ready {
  filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.5));
}

.brand-word { display: flex; flex-direction: column; line-height: 1; }

.brand-line-1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.brand-line-2 {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > a:not(.nav-cta) {
  font-family: var(--f-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}

.nav-links > a:not(.nav-cta):hover { color: var(--cyan); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(30, 144, 255, 0.1);
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: 1px solid var(--cyan);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg-0);
}

.nav-cta-arrow { font-size: 12px; }

/* ================================================================
   HERO — Single screen value prop
   ================================================================ */
.hero {
  position: relative;
  padding: 110px var(--gutter) 30px;
  display: flex;
  align-items: center;
}

/* === LOGO NOTE ===
   The white background around the logo will disappear once you replace
   assets/logo.png with a transparent-background version. Easiest options:
   • https://www.remove.bg/ (free, 30 seconds — drop your PNG, download transparent)
   • Windows 11 Photos app → open the image → "Edit image" → "Background" → "Remove"
   • Photoshop / GIMP / Paint.NET if you have them
*/

/* === Reduce gap between hero and first section === */
.hero + .section,
.hero + .section-tight {
  padding-top: 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.4fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo-col { display: flex; justify-content: center; }

/* ARC REACTOR */
.arc-reactor {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
}

.ar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0.4;
}
.ar-ring-1 { inset: 0; border-style: dashed; animation: ar-spin 50s linear infinite; opacity: 0.25; }
.ar-ring-2 { inset: 18px; animation: ar-spin 30s linear infinite reverse; opacity: 0.4; }
.ar-ring-3 { inset: -16px; border-style: dotted; opacity: 0.18; animation: ar-spin 80s linear infinite; }

@keyframes ar-spin { to { transform: rotate(360deg); } }

/* Metallic segmented bezel — echoes the logo's brushed chrome ring */
.ar-bezel {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    #5A6678 0deg, #2C3340 28deg, #161C28 60deg, #4A5468 95deg,
    #20262F 130deg, #5A6678 160deg, #2C3340 200deg, #141A24 240deg,
    #4A5468 275deg, #1A2030 310deg, #5A6678 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), black calc(100% - 6px));
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), black calc(100% - 6px));
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.25);
  animation: ar-spin 90s linear infinite reverse;
}

/* Cardinal node lights — like the glowing sockets on the logo */
.ar-node {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #B8E4FF 0%, #1E90FF 45%, #0A2A55 80%);
  border: 2px solid #2C3340;
  box-shadow:
    0 0 12px rgba(30, 144, 255, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  animation: node-glow 2.8s ease-in-out infinite;
  z-index: 2;
}

.ar-n-t { top: 2px;  left: 50%; margin-left: -6.5px; animation-delay: 0s; }
.ar-n-r { right: 2px; top: 50%; margin-top: -6.5px;  animation-delay: 0.7s; }
.ar-n-b { bottom: 2px; left: 50%; margin-left: -6.5px; animation-delay: 1.4s; }
.ar-n-l { left: 2px;  top: 50%; margin-top: -6.5px;  animation-delay: 2.1s; }

@keyframes node-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(30, 144, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 18px rgba(102, 191, 255, 1), 0 0 34px rgba(30, 144, 255, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
}

.ar-sweep {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(30, 144, 255, 0.32) 8%, transparent 30%);
  animation: ar-spin 4s linear infinite;
  pointer-events: none;
}

.ar-core {
  position: absolute;
  inset: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-logo, .ar-logo-svg {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: filter 0.4s;
}

.ar-logo-svg, .ar-logo.img-ready {
  filter: drop-shadow(0 0 24px rgba(30, 144, 255, 0.6));
}

/* HERO CONTENT */
.hero-content { position: relative; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 20px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.status-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: #00FF94;
  border-radius: 50%;
  box-shadow: 0 0 8px #00FF94;
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hl-row {
  display: block;
  opacity: 0;
  transform: translateX(-12px);
  animation: row-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hl-row:nth-child(1) { animation-delay: 0.1s; }
.hl-row:nth-child(2) { animation-delay: 0.22s; }
.hl-row:nth-child(3) { animation-delay: 0.34s; }

@keyframes row-in { to { opacity: 1; transform: translateX(0); } }

.hl-electric {
  background: linear-gradient(90deg, var(--cyan-bright), var(--cyan), var(--cyan-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite, row-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
  filter: drop-shadow(0 0 14px rgba(30, 144, 255, 0.5));
}

@keyframes shimmer { to { background-position: 200% 0; } }

.hl-glow {
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(30, 144, 255, 0.4));
}

.hero-lead {
  font-family: var(--f-tech);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-lead strong { color: var(--text); font-weight: 600; }

/* ================================================================
   CAPABILITY ROW (the "what we do" tiles)
   ================================================================ */
.capability-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.25) 0%, rgba(14, 22, 38, 0.7) 50%, rgba(8, 13, 26, 0.85) 100%);
  border: 1px solid var(--border-chrome);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.3s;
}

.cap:hover {
  border-color: var(--cyan);
  background: rgba(0, 25, 45, 0.7);
}

.cap-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.cap-icon svg { width: 22px; height: 22px; }

.cap-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
}

.cap-sub {
  font-family: var(--f-tech);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.1;
}

/* ================================================================
   ESTIMATOR
   ================================================================ */
.estimator {
  position: relative;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.3) 0%, rgba(14, 22, 38, 0.85) 30%, rgba(8, 13, 26, 0.92) 70%, rgba(74, 84, 104, 0.3) 100%),
    rgba(8, 13, 26, 0.85);
  border: 1px solid var(--border-chrome);
  backdrop-filter: blur(20px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 60px rgba(30, 144, 255, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.5);
}

.est-corner {
  position: absolute;
  width: 9px; height: 9px;
  border: 1.5px solid var(--cyan);
}
.est-corner.tl { top: 3px; left: 14px; border-right: none; border-bottom: none; }
.est-corner.tr { top: 3px; right: 3px; border-left: none; border-bottom: none; }
.est-corner.bl { bottom: 3px; left: 3px; border-right: none; border-top: none; }
.est-corner.br { bottom: 3px; right: 14px; border-left: none; border-top: none; }

.est-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.est-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.est-prompt {
  display: block;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.est-input-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(0, 8, 18, 0.85);
  border: 1px solid var(--border-strong);
  margin-bottom: 10px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.est-arrow {
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 16px;
}

.est-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 10px;
  color: var(--text);
  font-family: var(--f-tech);
  font-size: 15px;
  outline: none;
}

.est-input-wrap input::placeholder { color: var(--text-faint); }

.est-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  background: linear-gradient(180deg, #66BFFF 0%, #1E90FF 50%, #0066CC 100%);
  color: #04070F;
  border: 1px solid var(--cyan-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 20px rgba(30, 144, 255, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.est-submit:hover { background: var(--cyan-bright); }
.est-submit:disabled { opacity: 0.5; }

.est-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.est-chip {
  padding: 5px 10px;
  background: rgba(30, 144, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: all 0.3s;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.est-chip:hover {
  background: rgba(30, 144, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.est-result {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.6, 0, 0.3, 1);
}

.est-result.show {
  max-height: 1200px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.est-loading {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 30, 50, 0.4);
  border: 1px solid var(--border);
}

.est-loading.show { display: flex; }

.est-loading-bars {
  display: flex;
  gap: 4px;
  height: 16px;
  align-items: flex-end;
}

.est-loading-bars span {
  flex: 1;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: load-bar 0.9s ease-in-out infinite;
}

.est-loading-bars span:nth-child(1) { animation-delay: 0s; }
.est-loading-bars span:nth-child(2) { animation-delay: 0.1s; }
.est-loading-bars span:nth-child(3) { animation-delay: 0.2s; }
.est-loading-bars span:nth-child(4) { animation-delay: 0.3s; }
.est-loading-bars span:nth-child(5) { animation-delay: 0.4s; }
.est-loading-bars span:nth-child(6) { animation-delay: 0.5s; }

@keyframes load-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.est-loading-text {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.15em;
}

.est-response {
  display: none;
  padding: 16px 18px;
  background: rgba(0, 30, 50, 0.4);
  border: 1px solid var(--cyan);
  color: var(--text);
  font-family: var(--f-tech);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.est-response.show { display: block; animation: msg-in 0.4s; }

.est-response::before {
  content: '▸ MARVEL // RESPONSE';
  position: absolute;
  top: -6px; left: 16px;
  background: var(--bg-0);
  padding: 0 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.15em;
}

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

.est-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s;
}

.est-cta:hover { background: var(--cyan); color: var(--bg-0); }

/* ================================================================
   SECTIONS (tight)
   ================================================================ */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section-tight { padding-top: 60px; padding-bottom: 60px; }

.section-head { margin-bottom: 32px; }
.section-head-compact { margin-bottom: 24px; }

.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: rgba(30, 144, 255, 0.04);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.sm-bracket, .sm-num, .sm-dot { color: var(--cyan); }
.sm-dot { font-size: 7px; }
.sm-label { color: var(--text); }

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-title-sm {
  font-size: clamp(24px, 3vw, 38px);
}

.st-line { display: block; }

.st-electric {
  background: linear-gradient(90deg, var(--cyan-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(30, 144, 255, 0.4));
}

.section-lead {
  font-family: var(--f-tech);
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.section-lead em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 600;
}

/* ================================================================
   MODULES (services grid)
   ================================================================ */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.module {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.25) 0%, rgba(14, 22, 38, 0.7) 40%, rgba(8, 13, 26, 0.85) 100%),
    rgba(14, 22, 38, 0.6);
  border: 1px solid var(--border-chrome);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.6, 0, 0.3, 1);
  overflow: hidden;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.mod-corner {
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}
.mod-corner.tl { top: 3px; left: 12px; border-right: none; border-bottom: none; }
.mod-corner.tr { top: 3px; right: 3px; border-left: none; border-bottom: none; }
.mod-corner.bl { bottom: 3px; left: 3px; border-right: none; border-top: none; }
.mod-corner.br { bottom: 3px; right: 12px; border-left: none; border-top: none; }

.module:hover {
  border-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(102, 191, 255, 0.12) 0%, rgba(20, 30, 50, 0.85) 50%, rgba(8, 13, 26, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 32px rgba(30, 144, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.module:hover .mod-corner { opacity: 1; }

.mod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.mod-num {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--cyan);
}

.mod-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #00FF94;
}

.ms-dot {
  width: 4px; height: 4px;
  background: #00FF94;
  border-radius: 50%;
  box-shadow: 0 0 5px #00FF94;
  animation: pulse 1.5s ease-in-out infinite;
}

.mod-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.mod-desc {
  font-family: var(--f-tech);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.mod-cta {
  padding: 7px 12px;
  background: rgba(30, 144, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s;
  text-align: center;
  width: 100%;
}

.mod-cta:hover { background: var(--cyan); color: var(--bg-0); }

/* ================================================================
   HOW IT WORKS + TESTIMONIAL (side by side, compact)
   ================================================================ */
.how-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.2) 0%, rgba(14, 22, 38, 0.6) 50%, rgba(8, 13, 26, 0.8) 100%);
  border: 1px solid var(--border-chrome);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.3s;
}

.how-step:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
}

.hs-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--cyan);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1;
}

.hs-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hs-desc {
  font-family: var(--f-tech);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.how-right {
  position: sticky;
  top: 120px;
}

.trans-frame {
  position: relative;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.25) 0%, rgba(14, 22, 38, 0.75) 40%, rgba(8, 13, 26, 0.9) 100%),
    rgba(14, 22, 38, 0.7);
  border: 1px solid var(--border-chrome);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.5);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  margin-bottom: 16px;
}

.trans-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.trans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  flex-wrap: wrap;
  gap: 8px;
}

.trans-tag { color: var(--cyan); }

.trans-verify {
  color: #00FF94;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vfy-check {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1px solid #00FF94;
  border-radius: 50%;
  text-align: center;
  line-height: 10px;
  font-size: 8px;
}

.trans-text {
  font-family: var(--f-tech);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 14px;
}

.trans-em { color: var(--cyan); font-weight: 600; }

.trans-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.trans-source { color: var(--cyan); }
.trans-meta { color: var(--text-dim); }

.guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.2) 0%, rgba(14, 22, 38, 0.65) 50%, rgba(8, 13, 26, 0.85) 100%);
  border: 1px solid var(--border-chrome);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.grnt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-tech);
  font-size: 13px;
  color: var(--text-dim);
}

.grnt strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.grnt-check { color: var(--cyan); font-weight: 700; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-section { max-width: 720px; }

.contact-form {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.28) 0%, rgba(14, 22, 38, 0.85) 40%, rgba(8, 13, 26, 0.95) 100%),
    rgba(14, 22, 38, 0.75);
  border: 1px solid var(--border-chrome);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 40px rgba(30, 144, 255, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.5);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  margin-top: 20px;
}

.cf-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--cyan);
}
.cf-corner.tl { top: 4px; left: 16px; border-right: none; border-bottom: none; }
.cf-corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.cf-corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.cf-corner.br { bottom: 4px; right: 16px; border-left: none; border-top: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 8, 18, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--f-tech);
  font-size: 14px;
  transition: all 0.3s;
  resize: vertical;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 15, 30, 0.85);
}

/* Buttons */
.btn-tech {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(180deg, #66BFFF 0%, #1E90FF 50%, #0066CC 100%);
  color: #04070F;
  border: 1px solid var(--cyan-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 24px rgba(30, 144, 255, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #99D5FF 0%, #4DA8FF 50%, #1E90FF 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 48px rgba(30, 144, 255, 0.85),
    0 6px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn-corner {
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid currentColor;
  opacity: 0.6;
}
.btn-corner.tl { top: 2px; left: 12px; border-right: none; border-bottom: none; }
.btn-corner.tr { top: 2px; right: 2px; border-left: none; border-bottom: none; }
.btn-corner.bl { bottom: 2px; left: 2px; border-right: none; border-top: none; }
.btn-corner.br { bottom: 2px; right: 12px; border-left: none; border-top: none; }

.btn-arrow { font-size: 14px; }
.btn-full { width: 100%; }

.form-note {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ================================================================
   FOOTER (compact one-row)
   ================================================================ */
.footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border);
  background: rgba(0, 8, 18, 0.4);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-line-1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer-brand .brand-line-2 {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--f-tech);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cyan); }

.fl-sep { color: var(--text-faint); }

.footer-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* ================================================================
   CHATBOT
   ================================================================ */
.chat-widget {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 1000;
}

.chat-toggle {
  position: relative;
  width: 56px; height: 56px;
  background: var(--cyan);
  color: var(--bg-0);
  border: 2px solid var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(30, 144, 255, 0.6);
  transition: all 0.3s;
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
}

.chat-toggle:hover { transform: scale(1.07); box-shadow: 0 0 36px rgba(30, 144, 255, 0.85); }

.chat-toggle svg {
  width: 22px; height: 22px;
  position: absolute;
  transition: opacity 0.3s, transform 0.4s;
}

.chat-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.7); }
.chat-widget.open .chat-icon-open { opacity: 0; transform: rotate(90deg) scale(0.7); }
.chat-widget.open .chat-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.chat-pulse {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  opacity: 0.4;
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
  animation: chat-ping 2.4s ease-out infinite;
  z-index: -1;
}

.chat-pulse-2 { animation-delay: -1.2s; }

@keyframes chat-ping {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chat-widget.open .chat-pulse { display: none; }

.chat-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(180deg, #06121E 0%, #02060E 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px rgba(30, 144, 255, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cp-corner {
  position: absolute;
  width: 9px; height: 9px;
  border: 1.5px solid var(--cyan);
  z-index: 5;
}
.cp-corner.tl { top: 3px; left: 14px; border-right: none; border-bottom: none; }
.cp-corner.tr { top: 3px; right: 3px; border-left: none; border-bottom: none; }
.cp-corner.bl { bottom: 3px; left: 3px; border-right: none; border-top: none; }
.cp-corner.br { bottom: 3px; right: 14px; border-left: none; border-top: none; }

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 144, 255, 0.04);
}

.chat-header-info { display: flex; align-items: center; gap: 12px; }

.chat-avatar {
  position: relative;
  width: 36px; height: 36px;
  border: 1px solid var(--cyan);
  background: var(--bg-0);
  overflow: hidden;
}

.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.chat-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.chat-status {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.status-dot {
  width: 5px; height: 5px;
  background: #00FF94;
  border-radius: 50%;
  box-shadow: 0 0 6px #00FF94;
}

.chat-close {
  width: 28px; height: 28px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover { border-color: var(--cyan); color: var(--cyan); }
.chat-close svg { width: 13px; height: 13px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-strong); }

.msg { display: flex; animation: msg-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.msg-bot { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-family: var(--f-tech);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.msg-bot .msg-bubble {
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.msg-user .msg-bubble {
  background: var(--cyan);
  color: var(--bg-0);
  font-weight: 500;
}

.msg-typing .msg-bubble {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 14px 16px;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  padding: 0 20px 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.suggestion {
  padding: 6px 10px;
  background: rgba(30, 144, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: all 0.3s;
  white-space: nowrap;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.suggestion:hover {
  background: rgba(30, 144, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-input {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0, 8, 18, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--f-tech);
  font-size: 14px;
  transition: all 0.3s;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.chat-input input:focus { outline: none; border-color: var(--cyan); }
.chat-input input::placeholder { color: var(--text-faint); }

#chatSend {
  width: 36px; height: 36px;
  background: var(--cyan);
  color: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
}

#chatSend:hover { background: var(--cyan-bright); }
#chatSend:disabled { opacity: 0.4; }
#chatSend svg { width: 14px; height: 14px; }

.chat-footer {
  text-align: center;
  padding: 6px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

/* ================================================================
   BOOT SEQUENCE OVERLAY
   ================================================================ */
body.booting { overflow: hidden; }

.boot-overlay {
  position: fixed; inset: 0;
  z-index: 5000;
  background:
    radial-gradient(ellipse at center, rgba(30, 144, 255, 0.08), transparent 60%),
    var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.boot-overlay.boot-out { opacity: 0; pointer-events: none; }

.boot-inner {
  width: min(420px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.boot-ring {
  position: relative;
  width: 136px; height: 136px;
}

.boot-ring-spin {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: rgba(30, 144, 255, 0.3);
  animation: ar-spin 1s linear infinite;
  box-shadow: 0 0 24px rgba(30, 144, 255, 0.35);
}

.boot-ring-core {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-ring-core img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* If the logo fails to load, fall back to the original "Ai" badge */
.boot-core-fallback {
  inset: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--text);
  text-shadow: 0 0 18px rgba(30, 144, 255, 0.8);
  background: radial-gradient(circle at 50% 40%, rgba(30, 144, 255, 0.25), rgba(4, 7, 15, 0.9));
}

.boot-lines {
  width: 100%;
  min-height: 110px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan-mid);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.boot-line { animation: msg-in 0.25s ease; }
.boot-line:last-child { color: var(--text); }

.boot-bar {
  width: 100%;
  height: 3px;
  background: rgba(30, 144, 255, 0.12);
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.8);
}

.boot-skip {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
}

/* ================================================================
   CURSOR RETICLE
   ================================================================ */
.reticle {
  position: fixed;
  top: 0; left: 0;
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

.reticle.on { opacity: 1; }

.reticle-ring {
  position: absolute;
  top: -16px; left: -16px;
  width: 32px; height: 32px;
  border: 1px solid rgba(30, 144, 255, 0.45);
  border-radius: 50%;
  transition: transform 0.25s, border-color 0.25s;
}

.reticle-ring::before, .reticle-ring::after {
  content: '';
  position: absolute;
  background: rgba(30, 144, 255, 0.5);
}
.reticle-ring::before { left: 50%; top: -5px; width: 1px; height: 4px; }
.reticle-ring::after { top: 50%; left: -5px; height: 1px; width: 4px; }

.reticle-dot {
  position: absolute;
  top: -2px; left: -2px;
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.9);
}

.reticle.lock .reticle-ring {
  transform: scale(1.5) rotate(45deg);
  border-color: var(--cyan);
}

/* ================================================================
   HERO VIDEO BACKDROP
   ================================================================ */
.hero { overflow: hidden; }

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15);
}

.hero-video-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.85) 0%, rgba(4, 7, 15, 0.25) 35%, rgba(4, 7, 15, 0.55) 75%, var(--bg-0) 100%),
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(4, 7, 15, 0.8) 100%);
}

.type-caret {
  display: inline-block;
  width: 6px; height: 11px;
  margin-left: 4px;
  background: var(--cyan);
  animation: pulse 0.8s steps(1) infinite;
  vertical-align: middle;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   MISSION CONTROL DASHBOARD
   ================================================================ */
.dash {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.dash-panel {
  position: relative;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(74, 84, 104, 0.22) 0%, rgba(14, 22, 38, 0.78) 40%, rgba(8, 13, 26, 0.9) 100%),
    rgba(14, 22, 38, 0.6);
  border: 1px solid var(--border-chrome);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.4);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s ease-out;
  will-change: transform;
}

.dash-panel:hover {
  border-color: var(--cyan);
  box-shadow:
    inset 0 1px 0 rgba(184, 197, 213, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 28px rgba(30, 144, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.55);
}

.dash-map   { grid-column: span 7; }
.dash-intel { grid-column: span 5; }
.dash-chart { grid-column: span 7; }
.dash-auto  { grid-column: span 5; }
.dash-log   { grid-column: span 7; }
.dash-opt   { grid-column: span 5; }

/* Distribute content vertically so stretched panels never leave dead space */
.dash-intel, .dash-auto, .dash-opt { display: flex; flex-direction: column; }
.dash-intel .intel-grid { flex: 1; align-content: center; }
.dash-intel .channels,
.dash-auto .resources,
.dash-opt .opt-cta { margin-top: auto; }

.dp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}

.dp-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.dp-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.dp-subtitle {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* --- map --- */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(30, 144, 255, 0.08), transparent 70%),
    rgba(0, 8, 18, 0.6);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.map-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.map-node {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

.map-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(102, 191, 255, 0.7);
  border-radius: 50%;
  animation: node-ping 2.6s ease-out infinite;
  animation-delay: inherit;
}

@keyframes node-ping {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

.dp-statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dp-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(0, 8, 18, 0.55);
  border: 1px solid var(--border);
}

.dps-label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.dps-val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.dps-good { color: #00FF94; text-shadow: 0 0 10px rgba(0, 255, 148, 0.5); }

/* --- campaign intelligence --- */
.intel-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.donut-wrap { position: relative; width: 112px; height: 112px; }

.donut { width: 100%; height: 100%; transform: rotate(-90deg); }

/* fine HUD tick ring + inner ring — echoes the logo's concentric rings */
.donut-ticks {
  fill: none;
  stroke: rgba(102, 191, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 1.5 4.5;
}

.donut-inner-ring {
  fill: none;
  stroke: rgba(125, 236, 255, 0.25);
  stroke-width: 0.8;
  stroke-dasharray: 2 4;
}

.donut-track {
  fill: none;
  stroke: rgba(30, 144, 255, 0.12);
  stroke-width: 7;
}

.donut-fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(30, 144, 255, 0.7));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.donut-center {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-val {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-shadow: 0 0 14px rgba(30, 144, 255, 0.6);
}

.donut-label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.intel-stats { display: flex; flex-direction: column; gap: 9px; }

.is-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
}

.is-label {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.is-spark { font-size: 9px; color: #00E5C0; letter-spacing: 1px; }

.is-val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  min-width: 44px;
  text-align: right;
}

.ch-row, .rs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.ch-name, .rs-label {
  font-family: var(--f-tech);
  font-size: 12px;
  color: var(--text-dim);
  flex: 0 0 118px;
}

.rs-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; }

.ch-bar, .rs-bar {
  flex: 1;
  height: 5px;
  background: rgba(30, 144, 255, 0.1);
  overflow: hidden;
}

.ch-fill, .rs-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.6);
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ch-val, .rs-val {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan-mid);
  min-width: 34px;
  text-align: right;
}

/* --- performance chart --- */
.perf-chart {
  width: 100%;
  height: 190px;
  display: block;
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.lg-item { display: inline-flex; align-items: center; gap: 6px; }

.lg-dot { width: 8px; height: 3px; display: inline-block; }
.lg-rev  { background: #1E90FF; box-shadow: 0 0 6px rgba(30, 144, 255, 0.8); }
.lg-conv { background: #00E5C0; box-shadow: 0 0 6px rgba(0, 229, 192, 0.8); }
.lg-eng  { background: #B07CFF; box-shadow: 0 0 6px rgba(176, 124, 255, 0.8); }

/* --- automation engine --- */
.auto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.as-item {
  padding: 10px 8px;
  background: rgba(0, 8, 18, 0.55);
  border: 1px solid var(--border);
  text-align: center;
}

.as-val {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--cyan-bright);
  text-shadow: 0 0 12px rgba(30, 144, 255, 0.5);
}

.as-val small { font-size: 9px; color: var(--text-dim); }

.as-label {
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-top: 4px;
}

/* --- activity log --- */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 178px;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(0, 8, 18, 0.5);
  border: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 10px;
}

.log-new { animation: msg-in 0.4s ease; }

.log-time { color: var(--text-faint); letter-spacing: 0.05em; }

.log-text {
  flex: 1;
  color: var(--text-dim);
  font-family: var(--f-tech);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-status {
  color: #00FF94;
  font-size: 8px;
  letter-spacing: 0.15em;
}

/* --- optimization engine --- */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 8, 18, 0.5);
  border: 1px solid var(--border);
}

.opt-name {
  font-family: var(--f-tech);
  font-size: 12px;
  color: var(--text-dim);
}

.opt-tag {
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  padding: 3px 6px;
  white-space: nowrap;
}

.opt-high { color: var(--cyan-bright); border: 1px solid var(--border-strong); background: rgba(30, 144, 255, 0.08); }
.opt-med  { color: var(--text-dim); border: 1px solid var(--border); }

.opt-cta {
  display: block;
  text-align: center;
  padding: 9px 12px;
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: all 0.3s;
}

.opt-cta:hover { background: var(--cyan); color: var(--bg-0); }

/* ================================================================
   MODULES — extras (start badge, 3-col grid for 12 modules)
   ================================================================ */
.modules { grid-template-columns: repeat(3, 1fr); }

.module-start { border-color: var(--cyan); }

.mod-badge {
  position: absolute;
  top: 12px; right: 14px;
  padding: 3px 9px;
  background: linear-gradient(180deg, #66BFFF 0%, #1E90FF 60%, #0066CC 100%);
  color: var(--bg-0);
  font-family: var(--f-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  box-shadow: 0 0 16px rgba(30, 144, 255, 0.6);
  z-index: 2;
}

.module-start .mod-head { padding-right: 104px; }

/* ================================================================
   RESPONSIVE — dashboard
   ================================================================ */
@media (max-width: 1024px) {
  .dash-map, .dash-intel, .dash-chart, .dash-auto, .dash-log, .dash-opt {
    grid-column: span 6;
  }
  .modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dash { grid-template-columns: 1fr; }
  .dash-map, .dash-intel, .dash-chart, .dash-auto, .dash-log, .dash-opt {
    grid-column: span 1;
  }
  .dp-statrow { grid-template-columns: repeat(2, 1fr); }
  .intel-grid { grid-template-columns: 1fr; justify-items: center; }
  .intel-stats { width: 100%; }
  .ch-name { flex-basis: 96px; }
  .reticle { display: none; }
  .modules { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .nav { top: 26px; width: calc(100% - 40px); }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .arc-reactor { max-width: 220px; margin: 0 auto; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .how-wrap { grid-template-columns: 1fr; gap: 28px; }
  .how-right { position: static; }
}

@media (max-width: 768px) {
  .hud-top { font-size: 8px; flex-wrap: wrap; gap: 6px; }
  .hud-corner { display: none; }
  .nav { top: 50px; width: calc(100% - 24px); }
  .nav-shell { padding: 8px 12px; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .brand-line-1 { font-size: 12px; }
  .brand-line-2 { font-size: 8px; }
  .hero { padding: 100px 18px 40px; min-height: auto; }
  .section { padding: 50px 18px; }
  .capability-row { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .chat-panel { width: calc(100vw - 24px); right: -8px; height: calc(100vh - 100px); }
  .est-input-wrap { flex-direction: column; }
  .est-submit { padding: 12px 22px; justify-content: center; }
}
