/* ============================================================
   SIX ACTUAL STUDIOS — app.css
   Dark tactical-professional aesthetic
   Fonts: Rajdhani · IBM Plex Sans · DM Mono
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Palette */
  --navy-950:  #050912;
  --navy-900:  #0a0f1e;
  --navy-800:  #0f172a;
  --navy-700:  #1a2540;
  --navy-600:  #1e3a5f;
  --navy-500:  #243b55;

  --cyan:      #00d4ff;
  --cyan-dim:  #0099cc;
  --cyan-glow: rgba(0,212,255,0.15);
  --amber:     #f59e0b;
  --red:       #ef4444;
  --green:     #10b981;

  /* Text */
  --text:        #e2e8f0;
  --text-muted:  #8ba3bf;
  --text-dim:    #4b6280;

  /* Surfaces */
  --surface:   #0f172a;
  --surface-2: #141f35;
  --surface-3: #1a2540;

  /* Borders */
  --border:       rgba(0,212,255,0.12);
  --border-hover: rgba(0,212,255,0.35);

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 800px;
  --header-h:     72px;

  /* Transitions */
  --ease: 0.2s ease;
}

/* ── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle radial ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
          radial-gradient(ellipse 60% 40% at 15% 15%, rgba(0,212,255,0.04) 0%, transparent 60%),
          radial-gradient(ellipse 50% 40% at 85% 85%, rgba(0,153,204,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Everything sits above the body glow */
#main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

p  { color: var(--text-muted); line-height: 1.75; }

a  { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: #fff; }

code, pre { font-family: var(--font-mono); }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-950);
}
.btn-primary:hover {
  background: #fff;
  color: var(--navy-950);
  box-shadow: 0 0 24px rgba(0,212,255,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-glow);
  color: #fff;
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(245,158,11,0.15);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--cyan);
  margin: 1rem 0 1.5rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5,9,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}

.site-header.scrolled {
  background: rgba(10,15,30,0.97);
  border-color: var(--border-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: auto;
  height: 38px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-hex {
  width: 38px;
  height: 44px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}
.logo-sub {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 1px;
}
.logo:hover .logo-name { color: var(--cyan); }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-analyze {
  color: var(--amber);
}
.nav-analyze:hover { color: #fff; background: rgba(245,158,11,0.08); }

.nav-cta { margin-left: 0.75rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--navy-900);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 0.6rem 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 0.75rem; justify-content: center; }

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-label-line {
  width: 32px;
  height: 1px;
  background: var(--cyan);
}
.hero-label span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* Hero visual (right column) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-display {
  position: relative;
  width: 340px;
  height: 340px;
}

.hex-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.hex-ring-2 {
  inset: 20px;
  border-color: rgba(0,212,255,0.08);
  animation-direction: reverse;
  animation-duration: 30s;
}
.hex-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-center svg {
  width: 180px;
  height: 210px;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}
.hex-dots {
  position: absolute;
  inset: 0;
}
.hex-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}
.hex-dot:nth-child(1) { top: 10%;  left: 50%; transform: translateX(-50%); }
.hex-dot:nth-child(2) { top: 50%;  right: 5%; transform: translateY(-50%); }
.hex-dot:nth-child(3) { bottom: 10%; left: 50%; transform: translateX(-50%); }
.hex-dot:nth-child(4) { top: 50%;  left: 5%; transform: translateY(-50%); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   SECTION: SERVICES PREVIEW
   ============================================================ */
.section-services {
  padding: 6rem 0;
  background: var(--navy-900);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p   { max-width: 560px; margin: 0 auto; font-size: 1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   SECTION: PRICING PREVIEW
   ============================================================ */
.section-pricing {
  padding: 6rem 0;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color var(--ease), transform var(--ease);
}
.tier-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.tier-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,212,255,0.05), var(--surface));
}

.tier-featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 0 0 6px 6px;
}

.tier-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.tier-timeline {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.tier-price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.tier-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.tier-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
}
.tier-cta .btn { width: 100%; justify-content: center; font-size: 0.85rem; padding: 0.6rem; }

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 2rem;
  line-height: 1.8;
}

/* ============================================================
   SECTION: WHY US
   ============================================================ */
.section-why {
  padding: 6rem 0;
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-content h2 { margin-bottom: 1rem; }
.why-content > p { margin-bottom: 2rem; font-size: 1rem; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--cyan-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.why-item-text h4 {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}
.why-item-text p {
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Right column — numbers */
.why-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.why-number-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}
.why-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.why-number-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ============================================================
   SECTION: CTA BAND
   ============================================================ */
.section-cta {
  padding: 6rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,212,255,0.08), transparent);
  pointer-events: none;
}
.cta-card h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-card p  { max-width: 500px; margin: 0 auto 2.5rem; font-size: 1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem 3rem;
}

.footer-bottom-inner {
  padding: 0 2rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.footer-location {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-heading {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--cyan); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--ease);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--cyan); color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 2rem;
}
.footer-bottom p  { font-size: 0.8rem; color: var(--text-dim); }
.footer-legal     { display: flex; gap: 1.5rem; }
.footer-legal a   { font-size: 0.8rem; color: var(--text-dim); }
.footer-legal a:hover { color: var(--cyan); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-desc    { margin-left: auto; margin-right: auto; }
  .hero-visual  { display: none; }
  .why-grid     { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav        { display: none; }
  .nav-toggle { display: flex; }
  .tiers-grid { grid-template-columns: 1fr 1fr; }
  .why-numbers{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .tiers-grid         { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }
  .hero-stats         { flex-direction: column; gap: 1.5rem; }
  .cta-card           { padding: 2.5rem 1.5rem; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  width: 100%;
  background: var(--navy-800);
  border-top: 1px solid var(--border-hover);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-text a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  transition: bottom 0.3s ease;
}

/* Shift up when the cookie banner is visible so they don't collide.
   Fixed offset instead of a JS-measured variable — the banner's height
   stays within a narrow, predictable range (one line of text + buttons),
   so a flat lift is simpler and safer than dynamic measurement. */
.chat-widget.cookie-active {
  bottom: 6.5rem;
}

/* Toggle button */
.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4);
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,212,255,0.55);
}
.chat-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--navy-950);
}
.hidden { display: none !important; }

/* Unread badge */
.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--amber);
  color: var(--navy-950);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy-950);
}

/* Chat window */
.chat-window {
  width: 340px;
  max-height: 520px;
  background: var(--navy-800);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  overflow: hidden;
  /* Hidden state */
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--navy-900);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-glow);
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.chat-header-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.chat-header-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.chat-header-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--ease);
}
.chat-header-close:hover { color: var(--text); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-wrap: break-word;
}
.chat-msg.bot {
  background: var(--surface-3);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.visitor {
  background: var(--cyan);
  color: var(--navy-950);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg a { color: inherit; text-decoration: underline; }

/* Typing indicator */
.chat-typing-wrap {
  background: var(--surface-3);
  align-self: flex-start;
  padding: 0.75rem 1rem;
}
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chat-bounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* Quick action pills */
.chat-quick {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--navy-900);
}
.chat-pill {
  padding: 0.3rem 0.7rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.chat-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--navy-900);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
}
.chat-input:focus { border-color: var(--cyan); }
.chat-input::placeholder { color: var(--text-dim); }

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
}
.chat-send:hover { background: #fff; }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-send svg { width: 15px; height: 15px; color: var(--navy-950); }

/* Mobile */
@media (max-width: 400px) {
  .chat-window { width: calc(100vw - 2rem); }
  .chat-widget { right: 1rem; bottom: 1rem; }
  /* Cookie banner wraps to 2-3 lines on narrow screens, needs more clearance */
  .chat-widget.cookie-active { bottom: 8rem; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background: linear-gradient(to bottom, var(--navy-900), var(--navy-950));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,212,255,0.04), transparent);
  pointer-events: none;
}
.page-hero .section-label { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p  { max-width: 600px; font-size: 1.05rem; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { padding: 4rem 0 5rem; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.5rem 0 0.5rem;
}
.legal-content p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.legal-content a  { color: var(--cyan); }
.legal-content a:hover { color: #fff; }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.5rem; }
.sitemap-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sitemap-section ul { display: flex; flex-direction: column; gap: 0.5rem; }
.sitemap-section a { font-size: 0.9rem; color: var(--text-muted); }
.sitemap-section a:hover { color: var(--cyan); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { padding: 4rem 0 2rem; }
.lead-text { font-size: 1.15rem; color: var(--text-muted); line-height: 1.85; max-width: 820px; }
.about-mission { padding: 2rem 0 4rem; }
.about-mission h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.about-mission p  { font-size: 0.975rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; max-width: 820px; }
.about-values    { padding: 4rem 0; background: var(--navy-900); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-expertise { padding: 4rem 0; }
.about-expertise h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.value-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; transition: border-color var(--ease); }
.value-card:hover { border-color: var(--border-hover); }
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--cyan); }
.value-card p  { font-size: 0.875rem; color: var(--text-muted); }

.expertise-layout { display: grid; grid-template-columns: 1fr 260px; gap: 4rem; align-items: start; }
.expertise-text h3 { font-family: var(--font-display); font-size: 1rem; color: var(--cyan); margin: 1.75rem 0 0.75rem; letter-spacing: 0.05em; }
.expertise-text p  { font-size: 0.975rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.tech-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.expertise-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; }
.stat-box .stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.stat-box .stat-label  { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.3rem; line-height: 1.4; }

.veteran-section { padding: 0 0 4rem; }
.veteran-card { background: linear-gradient(135deg, rgba(0,212,255,0.05), var(--surface)); border: 1px solid rgba(0,212,255,0.2); border-radius: 14px; padding: 2rem 2.5rem; display: flex; gap: 2rem; align-items: center; }
.veteran-icon { font-size: 3rem; flex-shrink: 0; }
.veteran-text h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--cyan); margin-bottom: 0.5rem; }
.veteran-text p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.25rem; }
.contact-method { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.contact-method:last-child { border-bottom: none; }
.contact-method-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.2rem; }
.contact-method-value { font-size: 0.9rem; color: var(--text); }
.contact-method-value a { color: var(--cyan); }
.contact-form-wrap h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.25rem; }

.inquiry-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; max-width: 820px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group  { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label  { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.03em; }
.form-input,
.form-textarea,
.form-select {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--cyan); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select   { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238ba3bf' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; }

/* ============================================================
   WHY STRIP
   ============================================================ */
.why-strip { background: var(--navy-800); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.why-strip-inner { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.why-strip-inner span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   SERVICES PAGE EXTRAS
   ============================================================ */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.addon-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.addon-name  { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.25rem; }
.addon-desc  { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.addon-price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--cyan); }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; transition: border-color var(--ease), transform var(--ease); }
.platform-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.platform-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.platform-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.platform-card p  { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.platform-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--cyan); font-weight: 700; margin-bottom: 0.75rem; }

.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.capability-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
.cap-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: rgba(0,212,255,0.12); line-height: 1; margin-bottom: 0.5rem; }
.capability-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.capability-card p  { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.cap-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cap-tags span { padding: 0.15rem 0.5rem; background: rgba(255,255,255,0.05); border-radius: 4px; font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: 0.45rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; font-size: 0.825rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all var(--ease); text-decoration: none; display: inline-block; }
.filter-btn:hover, .filter-btn.active { color: var(--cyan); border-color: var(--cyan); background: rgba(0,212,255,0.06); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.portfolio-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
.portfolio-item:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.portfolio-item.portfolio-featured { border-color: rgba(0,212,255,0.3); }
.portfolio-image { height: 160px; background: var(--navy-900); position: relative; overflow: hidden; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: rgba(0,212,255,0.15); }
.portfolio-featured-badge { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.3); color: var(--cyan); font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.portfolio-content { padding: 1.25rem; }
.portfolio-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.4rem; }
.portfolio-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.portfolio-desc { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.875rem; }
.portfolio-tech { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
.tech-tag { padding: 0.15rem 0.45rem; background: rgba(255,255,255,0.05); border-radius: 4px; font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }
.portfolio-link { font-size: 0.825rem; color: var(--cyan); font-weight: 500; }

/* ============================================================
   ANALYZER PAGE
   ============================================================ */
.analyzer-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.analyzer-tab { padding: 0.65rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all var(--ease); }
.analyzer-tab.active, .analyzer-tab:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0,212,255,0.06); }
.analyzer-panel { display: none; }
.analyzer-panel.active { display: block; }
.analyzer-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; max-width: 680px; }
.analyzer-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.analyzer-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.65; }
.analyzer-form .form-group { margin-bottom: 1rem; }
.analyzer-results { background: var(--surface); border: 1px solid var(--border-hover); border-radius: 12px; padding: 2rem; margin-top: 2rem; }
.analyzer-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.analyzer-results-header h2 { font-size: 1.3rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.check-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; }
.check-icon { font-size: 1.6rem; margin-bottom: 0.625rem; }
.check-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.check-card p  { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   KB ARTICLES GRID
   ============================================================ */
.kb-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.kb-article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; transition: border-color var(--ease); }
.kb-article-card:hover { border-color: var(--border-hover); }
.kb-article-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.4rem; }
.kb-article-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.kb-article-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 0.875rem; }
.kb-article-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-dim); margin-top: auto; }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 900px) {
  .expertise-layout { grid-template-columns: 1fr; }
  .contact-layout   { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .veteran-card   { flex-direction: column; gap: 1rem; }
  .tech-grid      { grid-template-columns: 1fr; }
}