/* ==============================================================================
   AMBIQA — MONOCHROME COSMIC INTELLIGENCE ARCHITECTURE
   Pure Black & White Minimalist Enterprise Engine (Zero Color Tints)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Pure Monochrome Black & White Palette */
  --bg-void: #000000;
  --bg-space: #050505;
  --bg-stellar: #0a0a0a;
  --bg-card: rgba(12, 12, 12, 0.78);
  --bg-card-hover: rgba(20, 20, 20, 0.92);
  --bg-glass: rgba(5, 5, 5, 0.88);

  /* Monochrome Radiance & Luminescence */
  --mono-white: #ffffff;
  --mono-light: #f4f4f5;
  --mono-silver: #d4d4d8;
  --mono-gray: #a1a1aa;
  --mono-dim: #71717a;
  --mono-dark: #18181b;
  --mono-darker: #09090b;

  /* Aliased design variables for backward compatibility without colors */
  --cyan-singularity: #ffffff;
  --cyan-glow: rgba(255, 255, 255, 0.25);
  --indigo-quantum: #e4e4e7;
  --violet-neural: #d4d4d8;
  --gold-telemetry: #ffffff;
  --emerald-live: #ffffff;
  --rose-pulsar: #ffffff;

  /* Boundaries & Technical Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.35);
  --border-glow: rgba(255, 255, 255, 0.6);
  --border-dim: rgba(255, 255, 255, 0.06);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --header-height: 80px;
  --max-width: 1320px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-void);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background-color: var(--bg-void);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-secondary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Monochrome Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* Global Ambient Canvas */
#cosmic-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Layout Utilities */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.mono-telemetry {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Top Telemetry Bar */
.top-telemetry-bar {
  background: #000000;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}

.telemetry-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.pulsing-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: telemetryPulse 2.2s infinite ease-in-out;
}

@keyframes telemetryPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Main Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  border-bottom-color: var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 210px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

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

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Monochrome Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary-cosmic {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-primary-cosmic:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline-cosmic {
  background: #000000;
  border: 1px solid var(--border-active);
  color: #ffffff;
}

.btn-outline-cosmic:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* Sections Global */
section {
  position: relative;
  padding: 110px 0;
}

.section-header {
  margin-bottom: 64px;
  position: relative;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #FFFFFF 40%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section (Wormhole Core) */
.hero-wormhole-section {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0 120px 0;
  text-align: center;
  cursor: crosshair;
}

.hero-wormhole-section a,
.hero-wormhole-section button {
  cursor: pointer;
}

.supernova-telemetry-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #a1a1aa;
  margin-top: 24px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  user-select: none;
  cursor: crosshair;
}

.supernova-telemetry-cue:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.supernova-telemetry-cue .telemetry-spark {
  color: #ffffff;
  animation: pulseNode 1.8s infinite ease-in-out;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#hero-wormhole-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  pointer-events: auto;
}

.hero-insignia-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-active);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.hero-insignia-badge span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.hero-headline {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, #FFFFFF 30%, #D4D4D8 70%, #71717A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-telemetry-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
}

.telemetry-stat-item {
  text-align: left;
  border-left: 2px solid var(--border-subtle);
  padding-left: 14px;
  transition: var(--transition-smooth);
}

.telemetry-stat-item:hover {
  border-left-color: #ffffff;
}

.telemetry-stat-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.telemetry-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cosmic Module Cards */
.cosmic-card {
  background: 
    linear-gradient(180deg, rgba(16, 16, 19, 0.82) 0%, rgba(9, 9, 11, 0.92) 100%);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 36px 32px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cosmic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.cosmic-card:hover {
  background: 
    linear-gradient(180deg, rgba(22, 22, 26, 0.92) 0%, rgba(12, 12, 15, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cosmic-card:hover::before {
  opacity: 1;
}

/* Crosshair Decorators */
.cosmic-card .crosshair {
  position: absolute;
  width: 8px;
  height: 8px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.cosmic-card:hover .crosshair {
  opacity: 0.85;
}
.cosmic-card .crosshair-tl { top: 8px; left: 8px; }
.cosmic-card .crosshair-tr { top: 8px; right: 8px; }
.cosmic-card .crosshair-bl { bottom: 8px; left: 8px; }
.cosmic-card .crosshair-br { bottom: 8px; right: 8px; }

/* =========================================================================
   COSMIC CTA NEXUS BOX (ELITE ARCHITECTURAL REDESIGN)
   ========================================================================= */
.cosmic-cta-box {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 48px 44px 48px;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(16, 16, 20, 0.94) 0%, rgba(6, 6, 8, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-normal);
}

.cosmic-cta-box:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.98),
    0 0 50px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 #ffffff;
  transform: translateY(-2px);
}

/* Glowing Top Accent Line */
.cosmic-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 3;
}

/* Background Engineering Grid */
.cta-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  z-index: 1;
}

/* Precision Corner Brackets */
.corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #ffffff;
  border-style: solid;
  pointer-events: none;
  z-index: 3;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.cosmic-cta-box:hover .corner-bracket {
  opacity: 1;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Header Telemetry Bar */
.cta-telemetry-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.cta-telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-pulse-indicator {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffffff;
  animation: pulseNode 1.8s infinite ease-in-out;
}

.cta-telemetry-code {
  color: var(--text-dim);
}

/* Inner Content */
.cta-inner-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.cta-description {
  color: #d4d4d8;
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 32px auto;
}

.cta-actions-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* Trust Telemetry Strip */
.cta-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.trust-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.trust-pill .trust-icon {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .cosmic-cta-box {
    padding: 36px 20px 28px 20px;
  }
  .cta-telemetry-bar {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .cta-actions-group {
    flex-direction: column;
    gap: 12px;
  }
  .cta-actions-group .btn {
    width: 100%;
  }
  .cta-trust-strip {
    flex-direction: column;
    gap: 8px;
  }
  .trust-pill {
    width: 100%;
    justify-content: center;
  }
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Service Cosmic Modules */
.service-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #000000;
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.cosmic-card:hover .service-module-icon {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.service-module-title {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.service-module-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.tech-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: #d4d4d8;
}

/* Origin Timeline (About Page) */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.timeline-milestone {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-milestone:nth-child(odd) {
  left: 0;
  padding-right: 48px;
  text-align: right;
}

.timeline-milestone:nth-child(even) {
  left: 50%;
  padding-left: 48px;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.timeline-milestone:nth-child(odd) .timeline-node {
  right: -7px;
}

.timeline-milestone:nth-child(even) .timeline-node {
  left: -7px;
}

.timeline-phase-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Portfolio Missions */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 18px;
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.case-study-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.case-study-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mission-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffffff;
}

.case-study-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.case-study-industry {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.case-dossier-section {
  margin-bottom: 14px;
}

.case-dossier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.case-dossier-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact Wormhole Portal */
.contact-portal-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.portal-glow-frame {
  background: #000000;
  border: 1px solid var(--border-active);
  border-radius: 4px;
  padding: 56px 48px;
  position: relative;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  background: #050505;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* Global Footer */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 2;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand-summary {
  max-width: 380px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .desktop-nav, .nav-actions .btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-milestone {
    width: 100%;
    left: 0 !important;
    padding-left: 56px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-milestone .timeline-node {
    left: 13px !important;
  }
  .portal-glow-frame {
    padding: 32px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #000000;
  border-left: 1px solid var(--border-active);
  z-index: 1000;
  padding: 40px 30px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-nav-list a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-nav-list a.active,
.drawer-nav-list a:hover {
  color: #ffffff;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================================================================
   macOS COMMAND LINE INTERFACE (CLI TERMINAL)
   ============================================================================== */
.mac-terminal-window {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.mac-terminal-window:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.06);
}

.mac-terminal-titlebar {
  background: #111113;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.mac-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
}

.mac-btn-close {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mac-btn-minimize {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mac-btn-zoom {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mac-terminal-window:hover .mac-btn-close {
  background: #ffffff;
  border-color: #ffffff;
}

.mac-terminal-window:hover .mac-btn-minimize {
  background: #a1a1aa;
  border-color: #a1a1aa;
}

.mac-terminal-window:hover .mac-btn-zoom {
  background: #52525b;
  border-color: #52525b;
}

.mac-terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.mac-terminal-status {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.mac-terminal-body {
  padding: 22px 24px 26px 24px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mac-term-line {
  margin-bottom: 6px;
  word-break: break-word;
}

.mac-term-prompt {
  color: #ffffff;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mac-term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #ffffff;
  vertical-align: middle;
  margin-left: 4px;
  animation: terminalBlink 1.1s infinite;
}

@keyframes terminalBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* =========================================================================
   FAQ ACCORDION (SEO & AP/TELANGANA SEARCH INTENT)
   ========================================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  margin-left: 16px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: #ffffff;
  border-color: #ffffff;
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

