/* ============================================================
   VIGILENT TECHNOLOGIES — Main Stylesheet
   Dark-first: Obsidian/Navy palette, Electric cyan accent
   Fonts: Space Grotesk (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:          #0B0E17;
  --navy:        #0F1929;
  --steel:       #1E2D45;
  --steel-light: #243450;
  --border:      #1A2A3F;
  --electric:    #00C2FF;
  --electric-dim:#0099CC;
  --pulse:       #0066CC;
  --silver:      #C8D6E5;
  --smoke:       #6B7F96;
  --white:       #FFFFFF;
  --success:     #22C55E;
  --warning:     #F59E0B;
  --error:       #EF4444;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  --r-sm: 0.375rem; --r-md: 0.5rem; --r-lg: 0.75rem; --r-xl: 1rem;
  --r-full: 9999px;
  --trans: 180ms cubic-bezier(0.16,1,0.3,1);
  --shadow: 0 4px 24px rgba(0,194,255,0.08);
  --shadow-lg: 0 12px 48px rgba(0,194,255,0.12);
  --content: 1200px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--silver);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.65;
}
img, video { display: block; max-width: 100%; height: auto; }
ul[role=list], ol[role=list] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; color: var(--white); }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: var(--electric); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--white); }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: rgba(0,194,255,0.2); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Layout Helpers ────────────────────────────────────── */
.container { max-width: var(--content); margin: 0 auto; padding: 0 var(--sp-6); }
.section    { padding: clamp(var(--sp-12), 8vw, var(--sp-24)) 0; }
.section-sm { padding: clamp(var(--sp-8),  5vw, var(--sp-16)) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }

/* ── Color Utility ─────────────────────────────────────── */
.text-electric { color: var(--electric); }
.text-smoke    { color: var(--smoke); }
.text-white    { color: var(--white); }
.bg-navy       { background: var(--navy); }
.bg-steel      { background: var(--steel); }

/* ── Divider ───────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Eyebrow Label ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--electric); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--electric); border-radius: 2px;
}

/* ── Section Title ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 700; color: var(--white); line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.section-title span { color: var(--electric); }
.section-subtitle {
  font-size: var(--text-base); color: var(--smoke);
  max-width: 56ch; margin: 0 auto var(--sp-12);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: 600; letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem; border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: all var(--trans); white-space: nowrap;
}
.btn-primary {
  background: var(--electric); color: var(--bg);
  border-color: var(--electric);
}
.btn-primary:hover { background: #33CFFF; color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,194,255,0.3); }
.btn-outline {
  background: transparent; color: var(--electric);
  border-color: var(--electric);
}
.btn-outline:hover { background: rgba(0,194,255,0.1); color: var(--white); border-color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: var(--steel); color: var(--silver);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--steel-light); color: var(--white); }
.btn-sm { padding: .45rem 1rem; font-size: .78rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.card:hover {
  border-color: rgba(0,194,255,0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5); flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; color: var(--electric); }
.card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--sp-3); color: var(--white); }
.card p  { font-size: var(--text-sm); color: var(--smoke); line-height: 1.7; max-width: none; }

/* ── Badge / Chip ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-xs); font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: var(--r-full);
  background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.3);
  color: var(--electric);
}

/* ── Form Controls ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group label { font-size: var(--text-sm); font-weight: 500; color: var(--silver); }
.form-control {
  background: var(--steel); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.75rem 1rem;
  color: var(--white); font-size: var(--text-base);
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
}
.form-control::placeholder { color: var(--smoke); }
.form-control:focus {
  outline: none; border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}
.form-grid { display: grid; gap: var(--sp-5); }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--steel); }

/* ── Alert Box ──────────────────────────────────────────── */
.alert {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  font-size: var(--text-sm); display: none; margin-top: var(--sp-4);
}
.alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert.error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert.show    { display: block; }

/* ── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  height: 3px; background: var(--border); border-radius: var(--r-full);
  overflow: hidden; margin-bottom: var(--sp-6);
}
.progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--electric), var(--pulse));
  transition: width 0.4s ease;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,23,0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--trans);
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: var(--sp-4);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; padding: 0; }
.nav-logo img { height: 144px; width: auto; object-fit: contain; margin: 0; }
.nav-links {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; flex: 1; justify-content: center;
}
.nav-links a {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 500; color: var(--silver); padding: .4rem .65rem;
  border-radius: var(--r-sm); transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--steel); }
.nav-links a.active { color: var(--electric); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: var(--sp-2); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--silver);
  border-radius: 2px; transition: all 0.3s;
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(11,14,23,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-6); gap: var(--sp-2);
    z-index: 99;
  }
}

/* ── SITE HEADER BANNER (logo, full width) ──────────────── */
.site-header {
  position: relative;
  width: 100%;
  height: clamp(480px, 58vw, 720px);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.site-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.92;
  filter: brightness(1.1) saturate(1.12);
}
/* Fade edges over the image */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 0%, transparent 85%, var(--bg) 100%);
  pointer-events: none;
}
.site-header-shimmer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,194,255,0.015) 3px,
    rgba(0,194,255,0.015) 4px
  );
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--electric) 25%, var(--pulse) 50%, var(--electric) 75%, transparent 100%);
  opacity: 0.55;
}
/* Legacy class kept for any inline refs */
.logo-banner { display: none; }

/* ── TOP ACCENT BAR ─────────────────────────────────────── */
.top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--pulse), var(--electric), var(--pulse));
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 40vh; display: flex; align-items: center; padding-top: 2rem; padding-bottom: 2rem;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,102,204,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 10% 80%, rgba(0,194,255,0.08) 0%, transparent 60%),
              var(--bg);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--electric);
  background: rgba(0,194,255,0.08); border: 1px solid rgba(0,194,255,0.25);
  padding: 0.375rem 1rem; border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero h1 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 700; color: var(--white); line-height: 1.08;
  margin-bottom: var(--sp-6);
}
.hero h1 .accent { color: var(--electric); }
.hero-sub {
  font-size: var(--text-lg); color: var(--smoke); line-height: 1.65;
  margin-bottom: var(--sp-10); max-width: 58ch;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-12); }
.hero-stats {
  display: flex; gap: var(--sp-8); flex-wrap: wrap;
  padding-top: var(--sp-8); border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 700; color: var(--electric); line-height: 1;
}
.hero-stat-label { font-size: var(--text-xs); color: var(--smoke); margin-top: var(--sp-1); }

/* ── HERO VISUAL (right) ──────────────────────────────── */
.hero-visual {
  position: relative; z-index: 2; flex-shrink: 0;
}
.hero-shield-wrap {
  position: relative; width: 420px;
}
.hero-logo-display {
  width: 100%; border-radius: var(--r-xl);
  filter: drop-shadow(0 0 40px rgba(0,194,255,0.3));
}
.hero-inner {
  display: flex; align-items: center; gap: var(--sp-16);
}
@media (max-width: 1100px) {
  .hero-inner { flex-direction: column; }
  .hero-shield-wrap { width: 300px; }
}
@media (max-width: 640px) {
  .hero-shield-wrap { display: none; }
}

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  background: var(--navy); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6) 0;
}
.trust-bar-inner {
  display: flex; align-items: center; gap: var(--sp-10);
  flex-wrap: wrap; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: 600; color: var(--smoke);
  transition: color var(--trans);
}
.trust-item:hover { color: var(--silver); }
.trust-item svg { color: var(--electric); width: 20px; height: 20px; flex-shrink: 0; }

/* ── TICKER BAR ──────────────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, var(--navy), var(--steel), var(--navy));
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2) 0; overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-8); white-space: nowrap;
  font-size: var(--text-xs); color: var(--smoke);
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--electric); }

/* ── SERVICES SECTION ────────────────────────────────────── */
.service-card { position: relative; overflow: hidden; }
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
  opacity: 0; transition: opacity var(--trans);
}
.service-card:hover::after { opacity: 1; }
.service-num {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 700; color: rgba(0,194,255,0.12); line-height: 1;
  margin-bottom: var(--sp-4); display: block;
}

/* ── PROCESS SECTION ─────────────────────────────────────── */
.process-step {
  display: flex; gap: var(--sp-6); align-items: flex-start;
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  color: var(--electric); flex-shrink: 0;
}
.step-body h4 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--white); margin-bottom: var(--sp-2); }
.step-body p  { font-size: var(--text-sm); color: var(--smoke); max-width: none; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 50%, var(--navy) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,194,255,0.06), transparent);
}
.cta-band-inner { position: relative; z-index: 1; text-align: center; padding: clamp(var(--sp-12),6vw,var(--sp-20)) 0; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--white); margin-bottom: var(--sp-4); }
.cta-band p  { color: var(--smoke); max-width: 52ch; margin: 0 auto var(--sp-8); }
.cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── NEWS CARD ───────────────────────────────────────────── */
.news-card { display: flex; flex-direction: column; }
.news-card-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.news-card-source { font-size: var(--text-xs); color: var(--electric); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.news-card-date   { font-size: var(--text-xs); color: var(--smoke); }
.news-card h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--white); margin-bottom: var(--sp-3); line-height: 1.4; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--electric); }
.news-card p { font-size: var(--text-sm); color: var(--smoke); line-height: 1.6; max-width: none; flex: 1; }
.news-card-footer { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.news-card-link { font-size: var(--text-xs); font-weight: 600; color: var(--electric); display: inline-flex; align-items: center; gap: var(--sp-1); }
.news-card-link:hover { color: var(--white); }

/* ── CHATBOT ─────────────────────────────────────────────── */
.chat-window {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column; height: 600px;
  max-width: 780px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.chat-header {
  background: var(--steel); padding: var(--sp-4) var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: rgba(0,194,255,0.15); border: 2px solid var(--electric);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 20px; height: 20px; color: var(--electric); }
.chat-header-info h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--white); }
.chat-header-info p  { font-size: var(--text-xs); color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-header-info p::before { content:''; width:6px;height:6px;border-radius:50%;background:var(--success); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  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: 4px; }
.msg { max-width: 80%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; }
.msg-bubble {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg);
  font-size: var(--text-sm); line-height: 1.6; max-width: none;
}
.msg-bot .msg-bubble  { background: var(--steel); color: var(--silver); border-bottom-left-radius: var(--r-sm); }
.msg-user .msg-bubble { background: rgba(0,194,255,0.15); color: var(--white); border: 1px solid rgba(0,194,255,0.25); border-bottom-right-radius: var(--r-sm); }
.msg-time { font-size: 0.7rem; color: var(--smoke); margin-top: var(--sp-1); }
.msg-bot .msg-time  { text-align: left; }
.msg-user .msg-time { text-align: right; }
.chat-suggestions {
  padding: 0 var(--sp-6) var(--sp-3);
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}
.chat-suggestion {
  font-size: var(--text-xs); padding: 0.35rem 0.85rem;
  background: var(--steel); border: 1px solid var(--border);
  border-radius: var(--r-full); color: var(--silver); cursor: pointer;
  transition: all var(--trans);
}
.chat-suggestion:hover { border-color: var(--electric); color: var(--electric); }
.chat-input-row {
  display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border); background: var(--steel);
}
#chat-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 0.625rem 1.25rem;
  color: var(--white); font-size: var(--text-sm);
  transition: border-color var(--trans);
}
#chat-input:focus { outline: none; border-color: var(--electric); }
#chat-send {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--electric); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans); flex-shrink: 0;
}
#chat-send:hover { background: #33CFFF; transform: scale(1.05); }
#chat-send svg { width: 18px; height: 18px; }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: var(--sp-3) var(--sp-4); }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--smoke); animation: typing 1.4s infinite; }
.typing-dot:nth-child(2){animation-delay:.2s}
.typing-dot:nth-child(3){animation-delay:.4s}
@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}

/* ── PAYMENT SECTION ─────────────────────────────────────── */
.payment-option {
  cursor: pointer; transition: all var(--trans);
  border: 2px solid var(--border);
}
.payment-option:hover  { border-color: rgba(0,194,255,0.4); }
.payment-option.active { border-color: var(--electric); background: rgba(0,194,255,0.05); }
.payment-option .check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--smoke); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.payment-option.active .check { background: var(--electric); border-color: var(--electric); }
.payment-option.active .check::after { content:'✓'; font-size:11px; color:var(--bg); font-weight:700; }

/* ── SUPPORT TICKET ──────────────────────────────────────── */
.ticket-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #86efac; border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
}
.priority-badge {
  padding: 0.25rem 0.6rem; border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.priority-critical { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.priority-high     { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.priority-medium   { background: rgba(0,194,255,0.1);   color: var(--electric); border: 1px solid rgba(0,194,255,0.25); }
.priority-low      { background: rgba(34,197,94,0.1);   color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,102,204,0.15), transparent),
              var(--navy);
  border-bottom: 1px solid var(--border);
  padding: clamp(var(--sp-12), 8vw, var(--sp-20)) 0;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--sp-4); }
.page-hero p  { color: var(--smoke); max-width: 52ch; margin: 0 auto; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--navy); border-top: 1px solid var(--border);
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0 var(--sp-8);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10); margin-bottom: var(--sp-12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 48px; margin-bottom: var(--sp-4); }
.footer-brand p   { font-size: var(--text-sm); color: var(--smoke); max-width: 32ch; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: 600; color: var(--white); margin-bottom: var(--sp-5);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col ul a { font-size: var(--text-sm); color: var(--smoke); transition: color var(--trans); }
.footer-col ul a:hover { color: var(--electric); }
.footer-bottom {
  padding-top: var(--sp-6); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--text-xs); color: var(--smoke); max-width: none; }
.footer-socials { display: flex; gap: var(--sp-3); }
.footer-socials a {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--steel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--smoke); transition: all var(--trans);
}
.footer-socials a:hover { background: rgba(0,194,255,0.1); border-color: var(--electric); color: var(--electric); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-delay='100'] { transition-delay: 0.1s; }
[data-reveal][data-delay='200'] { transition-delay: 0.2s; }
[data-reveal][data-delay='300'] { transition-delay: 0.3s; }
[data-reveal][data-delay='400'] { transition-delay: 0.4s; }

/* ── SCHEDULE EMBED ──────────────────────────────────────── */
.calendly-wrap {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; min-height: 700px;
}
.schedule-tabs { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.schedule-tab {
  flex: 1; min-width: 180px; padding: var(--sp-5) var(--sp-6);
  background: var(--navy); border: 2px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer; text-align: left;
  transition: all var(--trans);
}
.schedule-tab:hover { border-color: rgba(0,194,255,0.3); }
.schedule-tab.active { border-color: var(--electric); background: rgba(0,194,255,0.05); }
.schedule-tab-icon { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.schedule-tab h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--white); margin-bottom: var(--sp-1); }
.schedule-tab p  { font-size: var(--text-xs); color: var(--smoke); max-width: none; }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--electric);
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MINI MAP ─────────────────────────────────────────────── */
.map-placeholder {
  background: var(--steel); border: 1px solid var(--border);
  border-radius: var(--r-lg); height: 260px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--sp-3); color: var(--smoke);
  font-size: var(--text-sm);
}

/* ── Stat Strip ──────────────────────────────────────────────────────────── */
.stat-strip {
  background: var(--navy);
  border-top: 1px solid rgba(0,194,255,.15);
  border-bottom: 1px solid rgba(0,194,255,.15);
  padding: var(--sp-12) 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  text-align: center;
}
.stat-item { padding: var(--sp-4); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--smoke);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ── Welcome Band ─────────────────────────────────────────────────────────── */
.welcome-band {
  background: var(--obsidian);
  border-bottom: 1px solid rgba(0,194,255,.12);
  padding: var(--sp-10) 0 var(--sp-8);
  text-align: center;
}
.welcome-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.welcome-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--sp-2);
  line-height: 1.08;
  text-align: center;
  width: 100%;
}
.welcome-sub {
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
  color: var(--cyan);
  margin: 0;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: center;
  width: 100%;
}

/* ── Minimal hero (no text content) ─────────────────────────────────────── */
.hero-minimal { min-height: 0; height: 0; padding: 0; overflow: hidden; }

/* ── Technical Approach ──────────────────────────────────────────────────── */
.tech-approach { background: var(--obsidian); padding: var(--sp-16) 0; margin-top: var(--sp-10); }
.tech-approach-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
  text-align: center;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.process-card {
  background: var(--surface);
  border: 1px solid rgba(0,194,255,.12);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: border-color .25s, transform .25s;
}
.process-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.phase-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: var(--sp-3);
}
.phase-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--sp-3);
}
.phase-desc {
  font-size: var(--text-sm);
  color: var(--smoke);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; }
  .tech-approach-head { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — comprehensive fixes for small screens
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Container padding on small screens */
  .container { padding: 0 var(--sp-4); }

  /* Site header banner — shrink on mobile */
  .site-header { height: clamp(220px, 52vw, 380px); }

  /* Nav logo — smaller on mobile */
  .nav-logo img { height: 72px; }

  /* Welcome band text — scale down */
  .welcome-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .welcome-sub   { font-size: clamp(0.9rem, 3.5vw, 1.1rem); }

  /* Section headings */
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Four engagements cards — stack on mobile */
  .process-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

  /* Portal/service cards — single column */
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }

  /* Footer — single column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Services hero */
  .services-hero .container { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }

  /* Contact layout — stack form and sidebar */
  .contact-layout { grid-template-columns: 1fr !important; }

  /* Process section two-column to one column */
  #process .container > div > div[style*="grid"] { grid-template-columns: 1fr !important; gap: var(--sp-8) !important; }

  /* Buttons — full width on very small screens */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  /* Ticker — ensure it doesn't overflow */
  .ticker-bar { overflow: hidden; }

  /* Card grid items */
  .card { padding: var(--sp-5); }

  /* Tech approach heading */
  .tech-approach-head { text-align: center; }
}

@media (max-width: 480px) {

  /* Stack phase cards to single column on phones */
  .process-grid { grid-template-columns: 1fr; }

  /* Phase cards more compact */
  .process-card { padding: var(--sp-4); }

  /* Contact form chips */
  .time-grid { flex-direction: column; align-items: center; }
  .interest-grid { grid-template-columns: 1fr; }

  /* Services sections — stack image/text */
  .service-row { flex-direction: column !important; }
  .service-row.reverse { flex-direction: column !important; }

  /* Reduce section padding on phones */
  .section { padding: var(--sp-10) 0; }

  /* How We Work section */
  #process .container > div > div { display: block !important; }

  /* Welcome band */
  .welcome-band { padding: var(--sp-6) 0; }

  /* Nav inner height */
  .nav-inner { height: 56px; }
}
