/* ==========================================================================
   SUBSYS (SUBOPTIMAL SYSTEMS) - CORE DESIGN SYSTEM
   Modern Dark Obsidian, Electric Cyan & Cyber Amber Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #121927;
  --bg-card: rgba(16, 23, 37, 0.7);
  --bg-card-hover: rgba(22, 32, 51, 0.85);
  --bg-glass: rgba(13, 18, 29, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-active: #00f2fe;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-dark: #07090e;

  /* Accent Tones */
  --cyan-primary: #00f2fe;
  --cyan-secondary: #4facfe;
  --cyan-glow: rgba(0, 242, 254, 0.25);
  --cyan-deep: #0284c7;

  --amber-primary: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --rose-primary: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 35px rgba(0, 242, 254, 0.15);
  --shadow-glow-amber: 0 0 35px rgba(245, 158, 11, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scanline / CRT mode */
body.crt-mode::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
  z-index: 999;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.18;
}

.ambient-glow-1 {
  top: -100px;
  left: -100px;
  background: var(--cyan-primary);
}

.ambient-glow-2 {
  top: 40%;
  right: -150px;
  background: #3b82f6;
  opacity: 0.12;
}

.ambient-glow-3 {
  bottom: 5%;
  left: 10%;
  background: var(--amber-primary);
  opacity: 0.08;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffffff 20%, var(--amber-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan-primary); }
.text-amber { color: var(--amber-primary); }
.text-emerald { color: var(--emerald-primary); }
.text-rose { color: var(--rose-primary); }
.text-muted { color: var(--text-muted); }

/* Glass Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.glass-panel-glow {
  position: relative;
  overflow: hidden;
}

.glass-panel-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transition: 0.7s;
  pointer-events: none;
}

.glass-panel-glow:hover::before {
  left: 100%;
}

/* ==========================================================================
   NAVBAR & LIVE STATUS HEADER
   ========================================================================== */

.top-bar {
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 0.4rem 0;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
  display: inline-block;
  animation: pulse-emerald 2s infinite ease-in-out;
}

@keyframes pulse-emerald {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--cyan-primary);
  border-color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.05);
}

/* Main Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: all var(--transition-base);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-badge {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--border-glow);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--cyan-deep) 100%);
  color: #030816;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline {
  background: rgba(18, 25, 39, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #080c14;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

/* Stat Counters */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cyan-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Interactive Live Terminal */
.hero-terminal-wrapper {
  position: relative;
}

.hero-terminal {
  background: rgba(11, 16, 26, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-status-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-body {
  padding: 1rem 1.1rem;
  min-height: 330px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.55;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.term-log {
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.55;
}

.term-time {
  color: var(--text-subtle);
  user-select: none;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.term-text {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  font-family: var(--font-mono);
}

.term-cmd {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.term-prompt {
  color: var(--cyan-primary);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.term-cmd-text {
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-mono);
  word-break: break-all;
}

.term-output {
  margin-bottom: 0.75rem;
  padding-left: 0.2rem;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.term-success { color: var(--emerald-primary); }
.term-warning { color: var(--amber-primary); }
.term-cyan { color: var(--cyan-primary); }
.term-dim { color: var(--text-muted); }

.term-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.term-prompt {
  color: var(--cyan-primary);
  font-weight: 700;
  user-select: none;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
}

.term-hints {
  padding: 0.5rem 1rem;
  background: rgba(8, 12, 20, 0.8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.term-chips {
  display: flex;
  gap: 0.4rem;
}

.term-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-primary);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.term-chip-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
}

/* ==========================================================================
   HARDWARE VISUAL BANNER
   ========================================================================== */

.hardware-banner-section {
  padding: 2rem 0 4rem;
}

.hardware-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: var(--shadow-md), 0 0 50px rgba(0, 242, 254, 0.1);
}

.hardware-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.08);
}

.hardware-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.7) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hardware-overlay-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.hardware-overlay-text p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.95rem;
}

.hardware-tags {
  display: flex;
  gap: 0.6rem;
}

.hardware-tag {
  background: rgba(18, 25, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan-primary);
}

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.75rem;
  background: rgba(0, 242, 254, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   THE SUBOPTIMAL TRUTH (MANIFESTO / COMPARISON)
   ========================================================================== */

.philosophy-section {
  padding: 5rem 0;
  position: relative;
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.compare-card {
  padding: 2.2rem;
  border-radius: var(--radius-md);
  position: relative;
}

.compare-card-hype {
  background: rgba(26, 17, 23, 0.5);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.compare-card-subsys {
  background: rgba(13, 27, 36, 0.5);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.08);
}

.compare-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-hype {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-primary);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-subsys {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.compare-header h3 {
  font-size: 1.35rem;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.compare-icon {
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-mono);
}

.compare-item-title {
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

.compare-item-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   SERVICES MATRIX
   ========================================================================== */

.services-section {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.12);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cyan-primary);
}

.service-card-amber .service-icon-box {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--amber-primary);
}

.service-card-emerald .service-icon-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--emerald-primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-reality-quote {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--cyan-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.service-card-amber .service-reality-quote {
  border-left-color: var(--amber-primary);
}

.service-card-emerald .service-reality-quote {
  border-left-color: var(--emerald-primary);
}

.service-specs {
  list-style: none;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.service-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-specs li::before {
  content: '>';
  color: var(--cyan-primary);
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
  cursor: pointer;
}

.service-link:hover {
  gap: 0.65rem;
}

/* ==========================================================================
   INTERACTIVE ESTIMATOR / SANITY CALCULATOR
   ========================================================================== */

.estimator-section {
  padding: 5rem 0;
  position: relative;
}

.estimator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md), 0 0 50px rgba(0, 242, 254, 0.08);
}

.estimator-form-col h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.estimator-form-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.estimator-group {
  margin-bottom: 1.8rem;
}

.estimator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.estimator-val-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

/* Custom Range Input */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-primary);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ffffff;
}

/* Radio Chip Group */
.radio-chip-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.radio-chip {
  position: relative;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-chip label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-chip input:checked + label {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.radio-chip label span.chip-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.radio-chip label span.chip-sub {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

/* Estimator Results Card */
.estimator-result-card {
  background: rgba(7, 10, 16, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(0, 242, 254, 0.05);
  position: relative;
}

.result-card-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.result-card-header h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.result-card-header span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.score-display-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-primary);
}

.score-box-amber .score-number {
  color: var(--amber-primary);
}

.score-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.recommended-tier-box {
  background: rgba(0, 242, 254, 0.05);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.tier-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.tier-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   LIVE SYSTEMS TELEMETRY MATRIX & STRESS TEST
   ========================================================================== */

.telemetry-section {
  padding: 5rem 0;
}

.telemetry-dashboard {
  background: rgba(12, 17, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.telemetry-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-title-group h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.telemetry-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.node-card {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.node-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.node-card.node-stressed {
  border-color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.05);
}

.node-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.node-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

.node-stressed .node-status-dot {
  background: var(--amber-primary);
  box-shadow: 0 0 8px var(--amber-primary);
}

.node-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.node-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.node-progress-bar {
  height: 100%;
  background: var(--cyan-primary);
  transition: width 0.4s ease, background-color 0.4s ease;
}

.node-stressed .node-progress-bar {
  background: var(--amber-primary);
}

.telemetry-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   CASE STUDIES & POSTMORTEMS
   ========================================================================== */

.cases-section {
  padding: 5rem 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem;
  border-radius: var(--radius-md);
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.case-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.case-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-impact-metric {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.impact-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.impact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  text-transform: uppercase;
}

.case-quote {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-style: italic;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.case-author {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  margin-top: 0.4rem;
  font-style: normal;
}

/* ==========================================================================
   CALL TO ACTION & FOOTER
   ========================================================================== */

.cta-section {
  padding: 6rem 0;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(16, 25, 41, 0.95), rgba(7, 10, 16, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 60px rgba(0, 242, 254, 0.1);
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #05070b;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-meta {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MODAL / TRIAGE DISPATCH FORM
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 1.5rem;
}

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

.modal-dialog {
  background: rgba(14, 21, 34, 0.96);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.8rem;
  background: rgba(20, 29, 46, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: #fff;
}

.modal-form {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(7, 10, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

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

.severity-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.severity-option {
  position: relative;
}

.severity-option input {
  position: absolute;
  opacity: 0;
}

.severity-option label {
  display: block;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.severity-option input:checked + label {
  border-color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
}

.severity-option.sev-p1 input:checked + label {
  border-color: var(--rose-primary);
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-primary);
}

.form-success-state {
  display: none;
  padding: 2.5rem 1.8rem;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.ticket-id-badge {
  display: inline-block;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .node-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-container,
  .estimator-container {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .node-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .radio-chip-group {
    grid-template-columns: 1fr;
  }
}
