/* ==========================================================================
   INNOVACLICK - DESIGN SYSTEM: KINETIC OBSIDIAN & CLEAN SLATE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  /* Brand Core Tokens */
  --accent-emerald: #10B981;
  --accent-emerald-light: #34D399;
  --accent-cyan: #06B6D4;
  --accent-cyan-light: #38BDF8;
  --accent-amber: #F59E0B;
  --accent-amber-light: #FBBF24;
  --accent-blue: #3B82F6;
  --grad-brand: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
  --grad-cta: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Theme Defaults (Dark / Kinetic Obsidian) */
  --bg-canvas: #07090E;
  --bg-canvas-subtle: #0B0F19;
  --bg-surface: #0F172A;
  --bg-surface-elevated: #1E293B;
  --bg-surface-highest: #28334E;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-glass: rgba(11, 15, 25, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(78, 222, 163, 0.4);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* Light Mode Overrides (Clean Slate) */
html.light, body.light {
  --bg-canvas: #F8FAFC;
  --bg-canvas-subtle: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #E2E8F0;
  --bg-surface-highest: #CBD5E1;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(248, 250, 252, 0.88);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-active: rgba(16, 185, 129, 0.6);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.18);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.18);
}

/* Base Resets & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

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

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10B981, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.display-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.display-lg {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.2;
}

.headline-lg {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.25;
}

.headline-md {
  font-size: 1.5rem;
  line-height: 1.35;
}

.headline-sm {
  font-size: 1.25rem;
  line-height: 1.4;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-md {
  font-size: 1rem;
  line-height: 1.6;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.label-sm {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Header & Navigation */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-svg {
  height: 40px;
  width: auto;
  display: block;
}

.brand-logo-svg .logo-icon-bg {
  fill: #0F172A;
  transition: fill 0.3s ease;
}

.brand-logo-svg .logo-text {
  fill: #F8FAFC;
  transition: fill 0.3s ease;
}

/* Light Mode Overrides for Logo */
html.light .brand-logo-svg .logo-icon-bg,
body.light .brand-logo-svg .logo-icon-bg {
  fill: #FFFFFF;
}

html.light .brand-logo-svg .logo-text,
body.light .brand-logo-svg .logo-text {
  fill: #0F172A;
}


.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown .nav-link {
  cursor: pointer;
  user-select: none;
}

.nav-dropdown .chevron-icon {
  font-size: 18px;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.nav-dropdown:hover .chevron-icon,
.nav-dropdown.is-open .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.light .dropdown-menu,
body.light .dropdown-menu {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* CRITICAL HOVER BRIDGE: Invisible pseudo-element to prevent losing hover when mouse moves from navbar down to dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: flex;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg-surface-elevated);
  transform: translateX(3px);
}

.dropdown-item .icon {
  font-size: 1.25rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0.5rem;
}

.dropdown-item-all {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.dropdown-item-all:hover {
  background: rgba(16, 185, 129, 0.14);
}

/* Actions Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
  transform: rotate(15deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--grad-cta);
  color: #07090E;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(6, 182, 212, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-highest);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* Secondary Sub-nav Rail (ARM developer inspired) */
.subnav-rail {
  width: 100%;
  background: var(--bg-canvas-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  margin-top: 80px;
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  gap: 1.5rem;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.subnav-link {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.subnav-link:hover, .subnav-link.active {
  color: var(--accent-emerald);
}

.subnav-status {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-glow-2 {
  position: absolute;
  top: 30%;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 1.5rem 0 2rem;
  max-width: 600px;
}

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

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

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

/* Interactive HUD Pipeline Visualizer */
.hud-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.hud-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.hud-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.hud-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.pipeline-node:hover {
  border-color: var(--accent-emerald);
  transform: translateX(4px);
}

.pipeline-node.active-core {
  background: var(--bg-surface-highest);
  border-color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.node-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--accent-emerald);
}

.node-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.node-right {
  text-align: right;
}

.node-metric {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.node-submetric {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pipeline-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.25rem;
  margin: -4px 0;
}

/* Sparkline / Bar simulation */
.hud-sparkline-box {
  margin-top: 1.25rem;
  background: var(--bg-surface-elevated);
  border-radius: 8px;
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
}

.sparkline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.sparkline-bars {
  display: flex;
  align-items: flex-end;
  height: 48px;
  gap: 4px;
}

.sparkline-bar {
  flex: 1;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease, background-color 0.2s ease;
}

.sparkline-bar:hover {
  background: var(--accent-cyan);
}

/* Section Common Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-canvas-subtle);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Solutions Industry Tabs Rail */
.tabs-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  background: var(--bg-surface-elevated);
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.4rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  min-width: 0;
}

.tab-btn .tab-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.tab-btn:hover .tab-icon {
  transform: scale(1.1);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.tab-btn.active .tab-icon {
  color: var(--accent-emerald);
  transform: scale(1.1);
}

html.light .tab-btn.active,
body.light .tab-btn.active {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

@media (max-width: 1120px) {
  .tabs-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .tab-btn {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 680px) {
  .tabs-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .tab-btn {
    font-size: 0.825rem;
    padding: 0.65rem 0.4rem;
  }
}

/* Solutions Grid (6 sectors) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cta);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--card-shadow);
}

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

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

.solution-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.75rem;
}

.solution-badge {
  font-family: var(--font-heading);
  font-size: 0.725rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  color: var(--accent-emerald);
  font-weight: 600;
}

.solution-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.solution-card-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.solution-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
}

.solution-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.solution-card-link:hover {
  gap: 0.75rem;
  color: var(--accent-cyan);
}

/* Architecture Section */
.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.arch-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.arch-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.arch-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.arch-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.arch-feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.arch-media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.arch-media-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.arch-media-caption {
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

/* Telemetry & Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.metric-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Final Diagnostic CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer */
.footer-main {
  background: var(--bg-canvas-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 320px;
}

.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-pill {
  font-family: var(--font-heading);
  font-size: 0.725rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.newsletter-box {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  background: var(--accent-emerald);
  color: #07090E;
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--accent-emerald-light);
}

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

/* Mobile Offcanvas Drawer */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 2100;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

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

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link.active {
  color: var(--accent-emerald);
}

.mobile-nav-accordion-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1rem;
  margin-top: 0.5rem;
  border-left: 2px solid var(--border-subtle);
}

.mobile-sublink {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease-out;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-emerald);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

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

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .arch-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .arch-media-img {
    height: 260px;
  }
  .nav-desktop, .header-cta-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .subnav-inner {
    padding-bottom: 0.5rem;
  }
}
