/**
 * globals.css
 * Zen Thruster Global Design System
 * Built strictly according to anti-ai-slop.md, css-80-20-rule.md, and MISTAKE_PROOFING.md
 */

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette - Deep Navy Space Theme with Terracotta and AI-Blue Accents */
  --bg-primary: #07090c;
  --bg-secondary: #0c0e12;
  --bg-tertiary: #12151a;
  
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  /* Accents */
  --accent: #d35400;           /* Terracotta Copper */
  --accent-hover: #e67e22;
  --accent-blue: #1b9ef5;      /* AI Sky Blue */
  --accent-blue-hover: #35aeff;
  --accent-purple: #7c3aed;
  --accent-green: #22c55e;
  
  /* Subtle borders and glowing accents */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(211, 84, 0, 0.5);
  --glow-blue: rgba(27, 158, 245, 0.25);
  
  /* Typography Scale */
  --font-display: "Georgia", "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Transitions - Snap Physics */
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out-smooth);
  --transition-normal: 300ms var(--ease-out-smooth);
  --transition-slow: 500ms var(--ease-out-smooth);

  /* Precise Z-Index Layers (MISTAKE_PROOFING.md validation) */
  --z-base: 1;
  --z-nav: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-overlay: 400;
  --z-toast: 500;

  /* Spacing Scale (8px Grid) */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.5rem;
  --spacing-6: 2rem;
  --spacing-8: 3rem;
  
  /* Layout limits */
  --nav-height: 64px;
  --container-max-width: 1200px;
}

/* ==========================================================================
   1. CSS RESET & VIEWPORT DEFENSES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessible focus outline */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

/* Screenreader skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  z-index: var(--z-toast);
  transition: top var(--transition-fast) ease;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   2. TYPOGRAPHY & LAYOUT SYSTEMS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(1rem, 5vw, 3rem);
  padding-left: clamp(1rem, 5vw, 3rem);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.85rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

p {
  font-size: clamp(0.95rem, 1vw + 0.4rem, 1.1rem);
  color: var(--text-muted);
}

section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

#services, #founder, #work, #philosophy, #contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 3rem) !important;
  padding-bottom: 4rem !important;
  box-sizing: border-box;
}

section.dense {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  background-color: var(--bg-secondary);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   3. BRAND NAVIGATION FRAMEWORK
   ========================================================================== */
#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 50);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
  transition: background var(--transition-normal), border var(--transition-normal);
  border-bottom: 1px solid transparent;
}

#topnav.solid {
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

.navigation-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .navigation-wrapper {
    position: static;
    transform: none;
    display: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
}

.logo-hex {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-text em {
  color: var(--accent-blue);
  font-style: normal;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 12px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(7, 9, 12, 0.75) 0%, rgba(27, 158, 245, 0.15) 50%, rgba(124, 58, 237, 0.2) 100%);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 8px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(27, 158, 245, 0.5);
  box-shadow: 
    0 8px 24px rgba(7, 9, 12, 0.6),
    0 0 15px rgba(27, 158, 245, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25), 
    inset 0 6px 10px rgba(255, 255, 255, 0.05),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(12, 14, 18, 0.8) 0%, rgba(27, 158, 245, 0.25) 50%, rgba(124, 58, 237, 0.3) 100%);
  border-color: rgba(27, 158, 245, 0.7);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 28px rgba(27, 158, 245, 0.25),
    0 0 20px rgba(27, 158, 245, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35), 
    inset 0 6px 12px rgba(255, 255, 255, 0.1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6);
}

.nav-cta:active {
  transform: translateY(1px);
  box-shadow: 
    0 4px 12px rgba(27, 158, 245, 0.2),
    inset 0 1px 0px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.7);
}

/* Hamburger mobile nav toggle */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: calc(var(--z-nav) + 10); /* Position above mob-overlay drawer */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.ham span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

/* Mobile Nav Drawer Overlay */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  background: rgba(7, 9, 12, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mob-overlay.open {
  display: flex;
}

.mob-overlay a {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 12px;
  transition: background var(--transition-fast);
}

.mob-overlay a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   4. HERO IMMERSION
   ========================================================================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(7,9,12,1) 0%, rgba(7,9,12,0.95) 25%, rgba(7,9,12,0.7) 45%, rgba(7,9,12,0.2) 65%, transparent 80%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,9,12,0.5) 0%, transparent 15%, transparent 75%, rgba(7,9,12,0.8) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
  animation: heroIn 0.8s var(--ease-out-smooth) both;
}

.hero-media {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: heroIn 0.8s var(--ease-out-smooth) both 0.25s;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 1.25rem;
}

.hero-h1 span.blue {
  color: var(--accent-blue);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-glow {
  background: linear-gradient(135deg, rgba(7, 9, 12, 0.75) 0%, rgba(27, 158, 245, 0.15) 50%, rgba(124, 58, 237, 0.2) 100%);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 28px;
  border-radius: 9999px;
  border: 1px solid rgba(27, 158, 245, 0.5);
  box-shadow: 
    0 8px 24px rgba(7, 9, 12, 0.6),
    0 0 15px rgba(27, 158, 245, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25), 
    inset 0 6px 10px rgba(255, 255, 255, 0.05),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, rgba(12, 14, 18, 0.8) 0%, rgba(27, 158, 245, 0.25) 50%, rgba(124, 58, 237, 0.3) 100%);
  border-color: rgba(27, 158, 245, 0.7);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 28px rgba(27, 158, 245, 0.25),
    0 0 20px rgba(27, 158, 245, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35), 
    inset 0 6px 12px rgba(255, 255, 255, 0.1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6);
}

.btn-primary-glow:active {
  transform: translateY(1px);
  box-shadow: 
    0 4px 12px rgba(27, 158, 245, 0.2),
    inset 0 1px 0px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.7);
}

.btn-outline-glow {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 28px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-outline-glow:hover {
  border-color: var(--accent-blue);
  background: rgba(27, 158, 245, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 158, 245, 0.2);
}

.btn-outline-glow:active {
  transform: translateY(1px);
}

/* Social Proof logo strip */
.partner-strip {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: var(--bg-secondary);
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.partner-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0.4;
  transition: opacity var(--transition-normal);
}

.partner-logos:hover {
  opacity: 0.7;
}

.partner-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* ==========================================================================
   5. SERVICES & TABS
   ========================================================================== */
#services {
  background: var(--bg-secondary);
}

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  overflow: visible;
}
.svc-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

.svc-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 0 0 15px 0 rgba(255, 255, 255, 0.04);
}

.svc-card:hover .svc-card-img-wrapper img {
  transform: scale(1.05);
}

/* Card edge hover bars */
.svc-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-smooth), box-shadow 0.3s ease;
}

.svc-card:hover .svc-bar {
  transform: scaleX(1);
}

.bar-blue { background: var(--accent-blue); }
.bar-orange { background: var(--accent); }
.bar-purple { background: var(--accent-purple); }
.bar-green { background: var(--accent-green); }

.svc-card:hover .bar-blue { box-shadow: 0 0 12px var(--accent-blue), 0 0 4px var(--accent-blue); }
.svc-card:hover .bar-orange { box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent); }
.svc-card:hover .bar-purple { box-shadow: 0 0 12px var(--accent-purple), 0 0 4px var(--accent-purple); }
.svc-card:hover .bar-green { box-shadow: 0 0 12px var(--accent-green), 0 0 4px var(--accent-green); }

.svc-card:hover .svc-ico {
  transform: scale(1.05);
  box-shadow: 0 0 12px currentColor;
}

.svc-n {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.svc-ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.ico-blue {
  background: rgba(27, 158, 245, 0.08);
  border-color: rgba(27, 158, 245, 0.2);
  color: var(--accent-blue);
}

.ico-orange {
  background: rgba(211, 84, 0, 0.08);
  border-color: rgba(211, 84, 0, 0.2);
  color: var(--accent);
}

.ico-purple {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--accent-purple);
}

.ico-green {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
}

.svc-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.svc-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 2px 10px;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: gap 0.2s ease;
}

.svc-card:hover .svc-link {
  gap: 12px;
}

/* ==========================================================================
   6. SERVICE DETAILS SECTION
   ========================================================================== */
.svc-detail, .proj-detail {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: var(--bg-primary) !important;
  z-index: 9995 !important;
  overflow-y: auto !important;
  display: none;
  padding: 4rem 1.5rem !important;
  animation: detailIn 400ms var(--ease-out-smooth) both;
}

@keyframes detailIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2.5rem;
  transition: all var(--transition-fast) ease;
}

.back-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.back-btn svg {
  transition: transform 0.2s ease;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

.details-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.details-content .lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-item-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item-text p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Custom interactive blueprint panel */
.svc-illus {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 100%;
}

.svc-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.svc-illus:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.svc-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(7, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 158, 245, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-blue);
}

.svc-badge strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 800;
  margin-bottom: 2px;
}

.svc-badge.orange { border-color: rgba(211, 84, 0, 0.25); color: var(--accent); }
.svc-badge.purple { border-color: rgba(124, 58, 237, 0.25); color: var(--accent-purple); }
.svc-badge.green { border-color: rgba(34, 197, 94, 0.25); color: var(--accent-green); }

/* ==========================================================================
   7. PROCESS TIMELINE
   ========================================================================== */
#process {
  background: var(--bg-primary);
}

.proc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.proc-sticky {
  position: sticky;
  top: 100px;
}



/* ==========================================================================
   8. FOUNDER PROFILE
   ========================================================================== */
#founder {
  background:
    radial-gradient(ellipse 70% 60% at 12% 40%, rgba(27, 158, 245, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 70%, rgba(211, 84, 0, 0.06), transparent 50%),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.founder-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.founder-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.founder-frame {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(27, 158, 245, 0.12) inset,
    0 0 40px rgba(27, 158, 245, 0.18);
  padding: 10px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.founder-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%, transparent 62%, rgba(27, 158, 245, 0.12));
  z-index: 1;
}

.founder-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(27, 158, 245, 0.2) inset,
    0 0 55px rgba(27, 158, 245, 0.28);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
  filter: contrast(1.04) saturate(1.05);
}

.founder-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.founder-creds h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.founder-bio {
  max-width: 36rem;
}

.founder-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.founder-bio p {
  font-size: 0.98rem;
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--text-muted);
}

.founder-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.founder-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.founder-contact-link:hover {
  color: var(--accent-blue) !important;
  border-color: rgba(27, 158, 245, 0.4);
  background: rgba(27, 158, 245, 0.08);
  transform: translateY(-1px);
}

.founder-contact-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.founder-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(27, 158, 245, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-top: 0.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: transform 300ms var(--ease-out-smooth), border-color 300ms var(--ease-out-smooth), box-shadow 300ms var(--ease-out-smooth);
  cursor: pointer;
}

.founder-cta-card .cta-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.founder-cta-card .cta-card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.3rem;
}

.founder-cta-card .cta-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 158, 245, 0.12);
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out-smooth), background 300ms var(--ease-out-smooth), color 300ms var(--ease-out-smooth);
}

.founder-cta-card .cta-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.founder-cta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 158, 245, 0.4);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(27, 158, 245, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.founder-cta-card:hover .cta-card-arrow {
  transform: translateX(5px);
  background: var(--accent-blue);
  color: #061018;
}
/* ==========================================================================
   8b. CLIENT CASE STUDIES GRID
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.product-card:visited,
a.product-card:hover,
a.product-card:focus {
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.product-card img {
  transition: transform var(--transition-normal);
}

.product-card:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   9. INQUIRY FORM (RFQ)
   ========================================================================== */
#contact {
  background: var(--bg-primary);
}

.contact-layout {
  max-width: 850px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact-header h2 {
  margin-bottom: 0.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  background: linear-gradient(145deg, rgba(12, 16, 25, 0.85) 0%, rgba(7, 9, 12, 0.98) 100%);
  border: 1.5px solid rgba(27, 158, 245, 0.35);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(27, 158, 245, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast) ease;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(27, 158, 245, 0.15);
}

/* Form select overrides */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: #0c0e12 !important;
  color: #ffffff !important;
}

.form-select option {
  background-color: #0c0e12 !important;
  color: #ffffff !important;
}

.btn-form-submit {
  grid-column: span 2;
  justify-self: center;
  width: auto;
  min-width: 180px;
  padding: 0.875rem 2rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.btn-form-submit .btn-submit-check {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #34d399;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.btn-form-submit .btn-submit-check path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: btnTickDraw 420ms var(--ease-out-smooth) forwards 40ms;
}

.btn-form-submit.is-submitted {
  pointer-events: none;
  color: #ecfdf5;
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(
    135deg,
    rgba(7, 9, 12, 0.55) 0%,
    rgba(16, 185, 129, 0.22) 55%,
    rgba(52, 211, 153, 0.18) 100%
  );
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(52, 211, 153, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: btnSubmittedIn 380ms var(--ease-out-smooth) both;
}

@keyframes btnTickDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes btnSubmittedIn {
  0% { transform: scale(0.97); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   10. FOOTER & POLICIES
   ========================================================================== */
footer {
  padding: 3.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-logo em {
  color: var(--accent-blue);
  font-style: normal;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
}

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

/* Modal Overlay Framework for ITAR/Legal overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 12, 0.8);
  backdrop-filter: blur(8px);
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: detailIn 300ms var(--ease-out-smooth) both;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1.15rem;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   11. AI CHATBOT WIDGET (Zen Assistant)
   ========================================================================== */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--glow-blue);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.chat-fab:hover {
  background: var(--accent-blue-hover);
  transform: scale(1.05);
}

.chat-fab:active {
  transform: scale(0.95);
}

.fab-ai {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* Pulsing notification ring */
.chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  animation: chatPulse 2s infinite ease-out;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes chatPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.chat-panel {
  position: fixed;
  bottom: 5.75rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  z-index: var(--z-nav);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: chatOpen 300ms var(--ease-out-smooth) both;
}

@keyframes chatOpen {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(27, 158, 245, 0.08);
  border: 1px solid rgba(27, 158, 245, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.chat-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.chat-title {
  font-size: 0.8125rem;
  font-weight: 700;
}

.chat-sub {
  font-size: 0.6875rem;
  color: var(--accent-green);
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

.chat-close:hover {
  color: var(--text-primary);
}

.chat-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
}

.chat-tab {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.chat-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-primary);
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 75%;
}

.chat-msg-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.bot .chat-msg-icon {
  background: rgba(27, 158, 245, 0.08);
  border: 1px solid rgba(27, 158, 245, 0.2);
  color: var(--accent-blue);
}

.chat-msg.user .chat-msg-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.chat-msg-icon svg {
  width: 12px;
  height: 12px;
}

.chat-msg-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.chat-msg.user .chat-msg-bubble {
  background: var(--accent-blue);
  color: var(--text-primary);
  border-color: transparent;
}

/* Typing indicator */
.chat-typing span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1s infinite;
  margin: 0 1px;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-suggestions {
  padding: 8px 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.chat-chip {
  font-size: 0.6875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.chat-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.chat-input-wrap {
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8125rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.chat-send {
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chat-send:hover {
  background: var(--accent-blue-hover);
}

.chat-send svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ==========================================================================
   11b. AGENT TELEMETRY STORYTELLER
   ========================================================================== */
.story-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.story-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.story-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.story-step-card.active {
  background: var(--bg-tertiary) !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 4px 12px rgba(27, 158, 245, 0.08);
}
.story-step-card.active span {
  color: var(--accent-blue) !important;
}
.story-step-card.active h3 {
  color: var(--text-primary) !important;
}
.story-step-card:hover {
  background: var(--bg-tertiary) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}


/* Simulation visual representations */
.story-agent-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* SVG Telemetry Animation Classes */
.vibrate {
  animation: svgJitter 0.3s infinite ease-in-out;
  transform-origin: center;
}

@keyframes svgJitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1px, -1.5px); }
}

@keyframes streamPath {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

.confused-group {
  animation: groupChaos 4s infinite ease-in-out;
}

@keyframes groupChaos {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

.lead-popups text {
  animation: textBlink 1.2s infinite ease-in-out alternate;
}

@keyframes textBlink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}



/* ==========================================================================
   11c. GLASSMORPHIC PROCESS STAIRCASE
   ========================================================================== */
.staircase-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  perspective: 1000px;
  width: 100%;
}

.stair-step {
  background: rgba(34, 197, 94, 0.01);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  width: 82%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(34, 197, 94, 0.05);
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
  cursor: pointer;
}

.stair-step:nth-child(1) { transform: translateX(0) translateZ(0); }
.stair-step:nth-child(2) { transform: translateX(4%) translateZ(10px); }
.stair-step:nth-child(3) { transform: translateX(8%) translateZ(20px); }
.stair-step:nth-child(4) { transform: translateX(12%) translateZ(30px); }

.stair-step.active, .stair-step:hover {
  background: rgba(34, 197, 94, 0.05) !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.15), inset 0 0 20px rgba(34, 197, 94, 0.08) !important;
}

.stair-step:hover {
  transform: translateX(10%) translateZ(40px) scale(1.02) !important;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (No-leakage layout shields)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-body {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .detail-layout, .founder-layout, .proc-layout {
    grid-template-columns: 1fr;
  }
  .story-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }
  .founder-frame {
    max-width: 320px;
    margin: 0 auto;
  }
  .founder-info {
    text-align: center;
    align-items: center;
  }
  .founder-bio {
    margin-inline: auto;
  }
  .founder-contacts {
    justify-content: center;
  }
  .founder-cta-card {
    text-align: left;
    width: 100%;
  }
  .staircase-container {
    perspective: none;
    gap: 1rem;
  }
  .stair-step {
    width: 100% !important;
    transform: none !important;
  }
  .stair-step:hover {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .ham {
    display: flex;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .svc-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 0 0 1.5rem 0 !important;
    gap: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .svc-grid::-webkit-scrollbar {
    display: none;
  }
  .svc-grid .svc-card {
    flex: 0 0 100% !important;
    scroll-snap-align: center !important;
  }
  .product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 0 0 1.5rem 0 !important;
    gap: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .product-grid::-webkit-scrollbar {
    display: none;
  }
  .product-grid .product-card {
    flex: 0 0 100% !important;
    scroll-snap-align: center !important;
  }
  .chat-panel {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 0;
    z-index: 9999 !important;
  }
  .contact-form {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
  }
  .form-group.full-width, .btn-form-submit {
    grid-column: span 1 !important;
  }
}

/* Splash title screen entry & dissolve keyframes */
@keyframes splashAnimation {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
    filter: blur(8px);
  }
  12% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
  75% {
    opacity: 1;
    transform: scale(1.03) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.06) translateY(-8px);
    filter: blur(12px);
  }
}


/* Service detailed drawer horizontal sliding transitions */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.svc-detail.slide-right {
  animation: slideInRight 400ms var(--ease-out-smooth) both !important;
}

.svc-detail.slide-left {
  animation: slideInLeft 400ms var(--ease-out-smooth) both !important;
}

/* Cinematic Hero Text Sequence */
.hero-sequence-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-seq-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 3.85rem);
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 1.5rem;
  opacity: 0;
  width: 100%;
  max-width: 900px;
}

/* Frame 1 Story Overlay (0s to 2.5s) */
.hero-seq-text.seq-1 {
  animation: seqFadeInOut 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Frame 2 Story Overlay (5.5s to 8s - 3s gap) */
.hero-seq-text.seq-2 {
  animation: seqFadeInOut 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 5.5s;
}

/* Frame 3 Story Overlay (11s to 13.5s - 3s gap) */
.hero-seq-text.seq-3 {
  animation: seqFadeInOut 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 11s;
}

/* Frame 4 Story Overlay (16.5s to 19s - 3s gap) */
.hero-seq-text.seq-4 {
  animation: seqFadeInOut 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 16.5s;
}

/* Frame 5 Story Overlay (22s to 24.5s - 3s gap) */
.hero-seq-text.seq-5 {
  animation: seqFadeInOut 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 22s;
}

/* Frame 6 Final Slogan (27.5s to 31s - 3s gap) */
.hero-seq-text.seq-6 {
  animation: seqFadeInOut 3.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 27.5s;
}

@keyframes seqFadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    filter: blur(8px);
  }
  15%, 80% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.05) translateY(-10px);
    filter: blur(8px);
  }
}

/* html overflow-x hidden defense */
html {
  overflow-x: hidden !important;
}

/* Philosophy Section Layout & Styling */
#philosophy {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #07090c;
  z-index: 1;
}

#philosophy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(27, 158, 245, 0.14) 0%, rgba(124, 58, 237, 0.08) 55%, transparent 100%);
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
}

.philosophy-layout {
  text-align: center;
  max-width: 800px;
  padding: 4rem 1.5rem;
}

.philo-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 2.2rem;
  color: #ffffff;
}

.philo-divider {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  margin: 0 auto 2.2rem auto;
  position: relative;
}

.philo-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.philo-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.85;
}

/* Service Mobile Scroll Controls & Indicators */
.svc-scroll-controls {
  display: none;
}

@media (max-width: 768px) {
  .svc-scroll-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  .svc-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .svc-scroll-btn:active {
    background: rgba(27, 158, 245, 0.1);
    border-color: var(--accent-blue);
    color: var(--text-primary);
  }

  .svc-scroll-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
  }

  .svc-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .svc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
  }

  .svc-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(27, 158, 245, 0.5);
  }
}

/* Chatbot Circle Close Button Upgrade */
.chat-close {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 50% !important;
  color: var(--text-dim) !important;
  cursor: pointer !important;
  font-size: 0.75rem !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all var(--transition-fast) !important;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
  border-color: var(--accent-blue) !important;
}

/* Glassmorphic Sub-Service Cards (Products) Styling */
.subservice-header {
  margin-bottom: 2rem;
}

.subservice-header h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subservice-header .lead-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
}

.subservice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.subservice-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  padding: 1.75rem;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: transform 300ms var(--ease-out-smooth), 
              border-color 300ms var(--ease-out-smooth), 
              box-shadow 300ms var(--ease-out-smooth) !important;
}

.subservice-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.50rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subservice-card h5::before {
  content: '';
  width: 4px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 2px;
  display: inline-block;
}

.subservice-card p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Hover Glowing & Scale Effects */
.subservice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 158, 245, 0.35) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 0 15px rgba(27, 158, 245, 0.1),
              inset 0 1px 0 rgba(27, 158, 245, 0.1) !important;
}

@media (max-width: 768px) {
  .subservice-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* Glassmorphic Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: -180px; /* Hidden offscreen initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(7, 9, 12, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  z-index: 99999 !important; /* Above everything, including chatbot */
  transition: bottom 500ms var(--ease-out-smooth) !important;
}

.cookie-banner.show {
  bottom: 2rem;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-text strong {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

.cookie-text a {
  color: var(--accent-blue);
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background: var(--accent-blue);
  color: #07090c;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.btn-cookie-decline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-dim);
}

@media (max-width: 576px) {
  .cookie-banner {
    width: 95%;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}
