/* AREYFlow - Enterprise Theme & Comprehensive UI Styles */
:root {
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --secondary: #14b8a6;
  --accent: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #24344d;
  --bg-input: rgba(255, 255, 255, 0.05);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --glow-primary: rgba(2, 132, 199, 0.25);
  --glow-emerald: rgba(16, 185, 129, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-active: rgba(2, 132, 199, 0.5);
  --glow-primary: rgba(2, 132, 199, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Ambient Background Lights */
.bg-ambient-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.ambient-blob-1 {
  top: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
}

.ambient-blob-2 {
  top: 40%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: var(--secondary);
}

.ambient-blob-3 {
  bottom: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: var(--accent);
}

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

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

section[id] {
  scroll-margin-top: 92px;
}

/* Typography & Badges */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--primary-light));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: arey-gradient-pan 6s ease infinite;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 17, 32, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  padding: 0.6rem 0;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: clamp(0.75rem, 1.8vw, 1.5rem);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.4px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.brand-dot {
  color: var(--primary-light);
}

.brand-logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: clamp(0.75rem, 1.8vw, 1.5rem);
}

/* ==========================================================================
   Language Switcher Component
   ========================================================================== */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.lang-switcher-btn:hover {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
}

.lang-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 145px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  list-style: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.lang-switcher.is-open .lang-menu {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.lang-option.is-active {
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-light);
  font-weight: 600;
}

.lang-option .lang-check {
  font-size: 0.8rem;
  opacity: 0;
}

.lang-option.is-active .lang-check {
  opacity: 1;
}

/* Light theme for Language Switcher */
[data-theme="light"] .lang-switcher-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .lang-switcher-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

[data-theme="light"] .lang-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .lang-option {
  color: #334155;
}

[data-theme="light"] .lang-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .lang-option.is-active {
  background: #f0f9ff;
  color: #0284c7;
}

.theme-toggle-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-light);
}

[data-theme="light"] .theme-toggle-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

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

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.lang-switcher-btn:hover,
.lang-switcher.is-open .lang-switcher-btn {
  border-color: var(--primary-light);
  background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(56,189,248,0.04));
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}

.lang-switcher-btn:active { transform: scale(0.97); }

.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-code { letter-spacing: 0.3px; }
.lang-caret { font-size: 0.65rem; opacity: 0.7; transition: transform 0.2s ease; margin-left: 0.1rem; }
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 184px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 120;
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-input);
  color: var(--text-main);
}

.lang-option .lang-check {
  margin-left: auto;
  opacity: 0;
  color: var(--primary-light);
  font-size: 0.75rem;
}

.lang-option.is-active {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.10);
}

.lang-option.is-active .lang-check { opacity: 1; }

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-active);
}

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

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem 0;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse-dot 1.5s infinite;
}

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

.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-text .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

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

.metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.floating-pill {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.floating-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.floating-pill .title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

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

/* Protocols Bar */
.protocols-bar {
  padding: 2rem 0;
  border-y: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.protocols-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.protocols-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.protocol-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.protocol-chip:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.problem-stat {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-rose);
  margin-bottom: 0.25rem;
}

.problem-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Solution 3 Pillars */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--glow-primary);
}

.solution-highlight {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.solution-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Process 3-Tier Flow */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.process-step-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.process-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.process-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.process-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-list .bullet {
  color: var(--primary-light);
  font-weight: bold;
}

/* 4-Step Secure Process Box */
.secure-process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.flow-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.flow-step-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.flow-step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.flow-step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Strategic Executive Insights Panel */
.insights-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.insight-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.insight-stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.insight-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.trend-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.trend-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.trend-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.trend-info { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }

.insight-stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.insight-stat-val small {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-left: 0.25rem;
}

.insight-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.chart-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Strategic Mini Widgets */
.insights-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.insight-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.insight-widget h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scada-item-row {
  margin-bottom: 1rem;
}

.scada-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.scada-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.scada-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* 14 Core Capabilities (Rae) */
.capabilities-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cap-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cap-filter-btn.active, .cap-filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.features-grid-comprehensive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comp-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--glow-primary);
}

.comp-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comp-card-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.comp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.comp-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.comp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.comp-card-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comp-card-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.comp-card-link:hover {
  color: var(--text-main);
  transform: translateX(4px);
}

/* 64+ MicroApps Gallery & Search */
.microapps-search-box {
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.microapps-search-box input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.microapps-search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 20px var(--glow-primary);
}

.microapps-filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto 2rem auto;
  max-width: 720px;
}

.microapp-filter {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.microapp-filter:hover {
  border-color: var(--secondary);
  color: var(--text-main);
}

.microapp-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

.microapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.microapp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.microapp-card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.microapp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.microapp-id {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-light);
  background: rgba(2, 132, 199, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.microapp-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.microapp-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.microapp-details {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* Demo Scenarios (Leak & Holiday Mode) */
.scenario-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.scenario-steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  position: relative;
}

.scenario-step-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.scenario-step-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.scenario-time-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-light);
  background: rgba(2, 132, 199, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.scenario-step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.scenario-step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.scenarios-grid-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 0;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

/* Integrations 4 Pillars */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.integration-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.integration-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.integration-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Project Rollout Timeline & Optional Features */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.timeline-phase {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.timeline-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.timeline-activities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-activities li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-outputs {
  font-size: 0.85rem;
  color: var(--primary-light);
}

.options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.option-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.option-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.option-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.option-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Notification Matrix Box */
.notification-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.notification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.notif-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.notif-badge.critical { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }
.notif-badge.warning { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.notif-badge.info { background: rgba(2, 132, 199, 0.2); color: var(--primary-light); }

/* Live SCADA Simulator */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slider-custom {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.sim-buttons-row {
  display: flex;
  gap: 0.75rem;
}

.sim-canvas-wrapper {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
}

.sim-status-banner {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Digital Twin Split */
.twin-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.twin-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.twin-feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.twin-visual-box img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Dynamic ROI Calculator */
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.roi-results-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(20, 184, 166, 0.1));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.roi-stat-box {
  margin-bottom: 1.5rem;
}

.roi-stat-box .title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.roi-stat-box .number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-light);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card), rgba(2, 132, 199, 0.15));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

/* Footer */
.site-footer {
  background: #060a12;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  color: var(--text-muted);
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.site-footer [data-i18n-html="f.addr"] {
  color: #9ab0bd !important;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Floating WhatsApp Button */
.floating-contact-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 90%;
  position: relative;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
}

/* Sector Tabs */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.tab-content.active {
  display: grid;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .twin-showcase, .roi-grid, .tab-content, .notification-grid, .sim-grid, .insight-charts-row {
    grid-template-columns: 1fr;
  }
  .hero-text h1 { font-size: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 0.5rem 0; width: 100%; }
  .mobile-toggle { display: block; }
  .brand-logo { margin-right: 0; }
  .nav-actions { gap: 0.5rem; margin-left: 0; }
}

@media (max-width: 640px) {
  .nav-actions .btn-secondary { display: none; }
  .lang-switcher-btn { padding: 0.45rem 0.55rem; }
  .lang-code { display: none; }
}

/* Accessibility: visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.form-control:focus-visible,
.mobile-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-text h1 { font-size: 2.1rem; }
}

/* ===================== New: Conversion & Polish ===================== */

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Hero note (was inline) */
.hero-note {
  background: rgba(2, 132, 199, 0.08);
  border-left: 3px solid var(--primary-light);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: var(--primary-light);
}

/* Ghost button (secondary, subdued hierarchy) */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-active);
}

/* Trust strip */
.trust-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}
.trust-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.trust-logo {
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  opacity: 0.85;
  transition: var(--transition);
}
.trust-logo:hover {
  opacity: 1;
  border-color: var(--primary-light);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.trust-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px var(--glow-primary);
}
.testimonial-quote {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--text-main); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-dim); }

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}
.compare-table thead th {
  background: rgba(2, 132, 199, 0.1);
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text-muted); font-weight: 600; }
.compare-win { color: var(--accent-emerald); font-weight: 600; }

/* Sticky CTA bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sticky-cta-text strong { display: block; color: var(--text-main); font-size: 0.95rem; }
.sticky-cta-text span { font-size: 0.82rem; color: var(--text-muted); }
.sticky-cta-actions { display: flex; gap: 0.6rem; }
body.has-sticky-cta .floating-contact-btn { bottom: 5.2rem; }

/* Bento: feature the first capability card */
.features-grid-comprehensive.bento { grid-auto-flow: dense; }
.features-grid-comprehensive.bento .comp-card:first-child {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(2, 132, 199, 0.08));
}
@media (max-width: 992px) {
  .features-grid-comprehensive.bento .comp-card:first-child {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Nav scroll-spy active link */
.nav-links a.active {
  color: var(--primary-light);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
}

/* ===================== Motion & Visual Quality ===================== */

/* Scroll-reveal (only when JS enabled, to avoid hiding content) */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Living ambient background */
.ambient-blob { animation: arey-float 20s ease-in-out infinite; }
.ambient-blob-2 { animation-delay: -7s; }
.ambient-blob-3 { animation-delay: -13s; }
@keyframes arey-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -28px) scale(1.06); }
}

/* Floating pill gentle bob */
.floating-pill { animation: arey-bob 5s ease-in-out infinite; }
@keyframes arey-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero card breathing glow */
.hero-visual-card { animation: arey-card-glow 7s ease-in-out infinite; }
@keyframes arey-card-glow {
  0%, 100% { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 25px 60px -10px rgba(56, 189, 248, 0.28); }
}

/* Gradient text shimmer */
@keyframes arey-gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Section header entrance polish */
.section-header .section-tag {
  display: inline-block;
  transition: transform 0.3s ease;
}
.section-header:hover .section-tag { transform: translateY(-2px); }

/* ===================== Extra UX & Polish ===================== */

/* Top scroll-progress bar (driven by --scroll set in JS) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 97;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Impact stats band (count-up) */
.stats-band {
  background: linear-gradient(180deg, transparent, rgba(2, 132, 199, 0.05));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-item { text-align: center; padding: 1.5rem 1rem; }
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: arey-gradient-pan 6s ease infinite;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* CTA banner gradient border */
.cta-banner { position: relative; }
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary), transparent 70%);
  background-size: 200% 200%;
  animation: arey-gradient-pan 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Cursor-follow spotlight on cards */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* =========================================================
   GEÇİCİ GİZLEMELER (şimdilik yayından kaldırıldı)
   Geri almak için bu blok silinir.
   ========================================================= */

/* Docs bağlantıları (areyflow.com/docs) geçici gizli */
a[href^="docs/"] { display: none !important; }

/* =========================================================
   Signature Hero - Water Infrastructure Intelligence
   ========================================================= */

.hero-section-signature {
  --hero-ink: #07111c;
  --hero-surface: #0d1c2a;
  --hero-surface-raised: #12283a;
  --hero-text: #eef7fb;
  --hero-muted: #9ab0bd;
  --hero-dim: #6c8594;
  --hero-line: rgba(170, 211, 227, 0.15);
  --hero-line-strong: rgba(107, 224, 244, 0.42);
  --hero-water: #1aa7d6;
  --hero-water-light: #6be0f4;
  --hero-healthy: #53d6a0;
  --hero-warning: #f4bc4b;
  position: relative;
  overflow: hidden;
  padding: 5.4rem 0 3.2rem;
  background:
    radial-gradient(circle at 76% 18%, rgba(26, 167, 214, 0.10), transparent 26rem),
    linear-gradient(180deg, #07111c 0%, #0a1723 72%, #0b1825 100%);
}

.hero-section-signature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(150, 204, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 204, 220, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 78%, transparent);
}

.hero-section-signature .container {
  z-index: 1;
}

.hero-grid-signature,
.hero-section-signature .hero-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 1.28fr);
  gap: 2.35rem;
  align-items: center;
}

.hero-copy-signature {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  color: var(--hero-water-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.hero-eyebrow-dot,
.hero-stage-status-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hero-healthy);
  box-shadow: 0 0 0 4px rgba(83, 214, 160, 0.10);
}

.hero-copy-signature h1 {
  max-width: 34rem;
  color: var(--hero-text);
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin-bottom: 1.45rem;
}

.hero-copy-signature h1 .gradient-text {
  background: linear-gradient(120deg, var(--hero-water-light), var(--hero-healthy));
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy-signature .lead {
  max-width: 32rem;
  color: var(--hero-muted);
  font-size: 1.06rem;
  line-height: 1.72;
  margin-bottom: 1.3rem;
}

.hero-positioning {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
  color: var(--hero-text);
  font-size: 0.98rem;
}

.hero-positioning-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--hero-line-strong);
  border-radius: 50%;
  color: var(--hero-water-light);
  font-size: 1rem;
}

.hero-section-signature .hero-cta {
  gap: 0.75rem;
  margin-bottom: 1.7rem;
}

.hero-section-signature .hero-cta .btn {
  min-height: 3rem;
  padding-inline: 1.15rem;
  border-radius: 0.7rem;
}

.hero-section-signature .hero-cta .btn-primary {
  background: var(--hero-water);
  box-shadow: 0 12px 28px rgba(26, 167, 214, 0.20);
}

.hero-section-signature .hero-cta .btn-primary:hover {
  background: #27b9e5;
  box-shadow: 0 14px 30px rgba(26, 167, 214, 0.28);
}

.hero-section-signature .hero-cta .btn-ghost {
  color: var(--hero-text);
  border-color: var(--hero-line);
  background: rgba(255, 255, 255, 0.025);
}

.hero-section-signature .hero-cta .btn-ghost:hover {
  border-color: var(--hero-line-strong);
  background: rgba(107, 224, 244, 0.06);
}

.hero-trustline {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 28rem;
  color: var(--hero-dim);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hero-trustline-icon {
  color: var(--hero-healthy);
  font-size: 1rem;
  line-height: 1.25;
}

.hero-intelligence-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0.95rem;
  color: var(--hero-text);
  background: rgba(13, 28, 42, 0.82);
  border: 1px solid var(--hero-line);
  border-radius: 1.1rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-intelligence-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(107, 224, 244, 0.06);
  border-radius: inherit;
}

.hero-stage-header,
.hero-stage-status,
.hero-stage-header > div:first-child,
.hero-insight-header,
.overview-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-stage-header {
  position: relative;
  z-index: 3;
  gap: 1rem;
  padding: 0.25rem 0.35rem 0.85rem;
}

.hero-stage-header > div:first-child {
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-stage-kicker,
.hero-stage-example,
.hero-insight-eyebrow,
.hero-insight-label,
.hero-node-metric-label,
.overview-panel-heading,
.network-summary-kpis small {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.64rem;
  font-weight: 800;
}

.hero-stage-kicker,
.hero-insight-eyebrow {
  color: var(--hero-water-light);
}

.hero-stage-example {
  color: var(--hero-dim);
}

.hero-stage-status {
  gap: 0.5rem;
  min-width: 0;
  color: var(--hero-muted);
  font-size: 0.68rem;
  text-align: right;
}

.hero-stage-label {
  min-width: 10rem;
}

.hero-stage-label span[hidden] {
  display: none;
}

.hero-stage-status-dot {
  width: 0.4rem;
  height: 0.4rem;
}

.hero-stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.41fr);
  gap: 0.8rem;
  align-items: stretch;
}

.hero-network-canvas {
  min-width: 0;
  overflow: hidden;
  background: rgba(5, 17, 28, 0.56);
  border: 1px solid rgba(170, 211, 227, 0.10);
  border-radius: 0.82rem;
}

#heroNetwork {
  display: block;
  width: 100%;
  height: auto;
  min-height: 25rem;
}

.hero-topology-grid {
  fill: url(#heroTopologyGrid);
}

.hero-network-path {
  fill: none;
  stroke: rgba(154, 196, 211, 0.28);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.hero-network-branch {
  stroke: rgba(244, 188, 75, 0.24);
  stroke-dasharray: 4 8;
}

.hero-network-flow {
  fill: none;
  stroke: url(#heroWaterFlow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 15;
  opacity: 0.82;
  vector-effect: non-scaling-stroke;
  animation: hero-telemetry-flow 2.8s linear infinite;
}

.hero-network-flow-warning {
  stroke: #f4bc4b;
  opacity: 0.12;
  animation-duration: 1.5s;
}

.hero-correlation-path {
  fill: none;
  stroke: var(--hero-water-light);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  opacity: 0.08;
  vector-effect: non-scaling-stroke;
}

.hero-recommendation-path {
  fill: none;
  stroke: var(--hero-warning);
  stroke-width: 2;
  stroke-dasharray: 4 8;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.45s ease;
}

.hero-intelligence-stage[data-hero-stage="correlate"] .hero-correlation-path,
.hero-intelligence-stage[data-hero-stage="anomaly"] .hero-correlation-path,
.hero-intelligence-stage[data-hero-stage="predict"] .hero-correlation-path,
.hero-intelligence-stage[data-hero-stage="recommend"] .hero-correlation-path,
.hero-intelligence-stage[data-hero-stage="live"] .hero-correlation-path {
  opacity: 0.76;
  animation: hero-correlation-pulse 1.8s ease-in-out infinite;
}

.hero-intelligence-stage[data-hero-stage="anomaly"] .hero-network-flow-warning,
.hero-intelligence-stage[data-hero-stage="predict"] .hero-network-flow-warning,
.hero-intelligence-stage[data-hero-stage="recommend"] .hero-network-flow-warning,
.hero-intelligence-stage[data-hero-stage="live"] .hero-network-flow-warning {
  opacity: 0.88;
}

.hero-intelligence-stage[data-hero-stage="recommend"] .hero-recommendation-path,
.hero-intelligence-stage[data-hero-stage="live"] .hero-recommendation-path {
  opacity: 0.9;
  animation: hero-recommendation-pulse 1.8s ease-in-out infinite;
}

.hero-ai-core circle:first-child {
  fill: rgba(26, 167, 214, 0.16);
  stroke: rgba(107, 224, 244, 0.72);
  stroke-width: 1.5;
}

.hero-ai-core-ring {
  fill: none;
  stroke: rgba(107, 224, 244, 0.24);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.hero-ai-core text {
  fill: var(--hero-text);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-ai-core-label {
  fill: var(--hero-muted) !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.04em !important;
}

.hero-intelligence-stage[data-hero-stage="correlate"] .hero-ai-core-ring,
.hero-intelligence-stage[data-hero-stage="anomaly"] .hero-ai-core-ring,
.hero-intelligence-stage[data-hero-stage="predict"] .hero-ai-core-ring,
.hero-intelligence-stage[data-hero-stage="recommend"] .hero-ai-core-ring,
.hero-intelligence-stage[data-hero-stage="live"] .hero-ai-core-ring {
  animation: hero-ai-think 1.6s ease-in-out infinite;
}

.hero-node {
  cursor: pointer;
  outline: none;
}

.hero-node-ring {
  fill: rgba(11, 29, 43, 0.92);
  stroke: rgba(154, 196, 211, 0.42);
  stroke-width: 1.5;
  transition: fill 0.35s ease, stroke 0.35s ease, transform 0.35s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-node-shape {
  fill: rgba(83, 214, 160, 0.24);
  stroke: var(--hero-healthy);
  stroke-width: 1.5;
}

.hero-node-glyph {
  fill: none;
  stroke: var(--hero-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-node-alert-ring {
  fill: none;
  stroke: var(--hero-warning);
  stroke-width: 1.3;
  stroke-dasharray: 3 7;
  opacity: 0;
}

.hero-node-label {
  fill: var(--hero-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-node-label-alert {
  fill: var(--hero-warning);
}

.hero-node-investigate .hero-node-shape {
  fill: rgba(244, 188, 75, 0.12);
  stroke: rgba(244, 188, 75, 0.56);
}

.hero-intelligence-stage[data-hero-stage="anomaly"] [data-hero-node="DMA-03"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="predict"] [data-hero-node="DMA-03"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="recommend"] [data-hero-node="DMA-03"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="live"] [data-hero-node="DMA-03"] .hero-node-ring {
  fill: rgba(244, 188, 75, 0.15);
  stroke: var(--hero-warning);
  transform: scale(1.07);
}

.hero-intelligence-stage[data-hero-stage="anomaly"] [data-hero-node="DMA-03"] .hero-node-alert-ring,
.hero-intelligence-stage[data-hero-stage="predict"] [data-hero-node="DMA-03"] .hero-node-alert-ring,
.hero-intelligence-stage[data-hero-stage="recommend"] [data-hero-node="DMA-03"] .hero-node-alert-ring,
.hero-intelligence-stage[data-hero-stage="live"] [data-hero-node="DMA-03"] .hero-node-alert-ring {
  opacity: 0.84;
  animation: hero-node-alert 2.6s ease-in-out infinite;
}

.hero-intelligence-stage[data-hero-stage="recommend"] [data-hero-node="V-14"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="recommend"] [data-hero-node="V-17"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="live"] [data-hero-node="V-14"] .hero-node-ring,
.hero-intelligence-stage[data-hero-stage="live"] [data-hero-node="V-17"] .hero-node-ring {
  stroke: var(--hero-warning);
  fill: rgba(244, 188, 75, 0.18);
}

.hero-node:focus-visible .hero-node-ring,
.hero-node.is-selected .hero-node-ring {
  stroke: var(--hero-water-light);
  stroke-width: 2.5;
  transform: scale(1.12);
}

.hero-telemetry-tag rect {
  fill: rgba(8, 25, 38, 0.90);
  stroke: rgba(107, 224, 244, 0.25);
  stroke-width: 1;
}

.hero-telemetry-tag text {
  fill: var(--hero-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
}

.hero-telemetry-key {
  fill: var(--hero-water-light);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-telemetry-value {
  fill: var(--hero-text);
}

.hero-prediction-trace {
  opacity: 0.24;
  transition: opacity 0.45s ease;
}

.hero-intelligence-stage[data-hero-stage="predict"] .hero-prediction-trace,
.hero-intelligence-stage[data-hero-stage="recommend"] .hero-prediction-trace,
.hero-intelligence-stage[data-hero-stage="live"] .hero-prediction-trace {
  opacity: 1;
}

.hero-prediction-axis {
  fill: none;
  stroke: rgba(154, 196, 211, 0.25);
  stroke-width: 1;
}

.hero-prediction-expected,
.hero-prediction-current,
.hero-prediction-predicted {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero-prediction-expected {
  stroke: rgba(154, 196, 211, 0.48);
  stroke-dasharray: 2 5;
}

.hero-prediction-current { stroke: var(--hero-water-light); }
.hero-prediction-predicted { stroke: var(--hero-warning); stroke-dasharray: 5 7; }

.hero-prediction-label {
  fill: var(--hero-dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
}

.hero-prediction-current-label { fill: var(--hero-water-light); }
.hero-prediction-predicted-label { fill: var(--hero-warning); }

.hero-insight-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  background: rgba(18, 40, 58, 0.88);
  border: 1px solid rgba(107, 224, 244, 0.16);
  border-radius: 0.8rem;
  opacity: 0;
  transform: translateX(0.7rem);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.35s ease;
}

.hero-intelligence-stage[data-hero-stage="recommend"] .hero-insight-panel,
.hero-intelligence-stage[data-hero-stage="live"] .hero-insight-panel {
  opacity: 1;
  transform: none;
  border-color: rgba(244, 188, 75, 0.38);
}

.hero-insight-header {
  gap: 0.55rem;
}

.hero-insight-severity {
  padding: 0.22rem 0.45rem;
  color: var(--hero-warning);
  background: rgba(244, 188, 75, 0.10);
  border: 1px solid rgba(244, 188, 75, 0.22);
  border-radius: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-insight-section {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(170, 211, 227, 0.10);
}

.hero-insight-label {
  color: var(--hero-dim);
}

.hero-insight-section h2 {
  color: var(--hero-text);
  font-size: 1rem;
  line-height: 1.25;
}

.hero-insight-section p,
.hero-insight-action p,
.hero-node-inspector p {
  color: var(--hero-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero-insight-confidence {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-insight-confidence strong {
  color: var(--hero-warning);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.hero-insight-action {
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem;
  background: rgba(244, 188, 75, 0.07);
  border-left: 2px solid var(--hero-warning);
  border-radius: 0.35rem;
}

.hero-insight-link {
  margin-top: auto;
  color: var(--hero-warning);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-storyline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 0.4rem 0.25rem;
  color: var(--hero-dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-storyline-step {
  transition: color 0.35s ease;
}

.hero-storyline-step.is-active { color: var(--hero-water-light); }

.hero-storyline-arrow { color: rgba(154, 196, 211, 0.36); }

.hero-node-inspector {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  background: rgba(7, 17, 28, 0.82);
  border: 1px solid rgba(107, 224, 244, 0.18);
  border-radius: 0.75rem;
}

.hero-node-inspector[hidden] { display: none; }

.hero-node-inspector-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-node-inspector-heading strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--hero-text);
  font-size: 0.95rem;
}

.hero-node-inspector-close {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--hero-muted);
  background: transparent;
  border: 1px solid var(--hero-line);
  border-radius: 0.45rem;
  cursor: pointer;
}

.hero-node-inspector-close:hover,
.hero-node-inspector-close:focus-visible {
  color: var(--hero-text);
  border-color: var(--hero-line-strong);
}

.hero-node-inspector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-node-metric {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(170, 211, 227, 0.09);
  border-radius: 0.45rem;
}

.hero-node-metric-label { color: var(--hero-dim); }
.hero-node-metric strong { color: var(--hero-text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.8rem; }

@keyframes hero-telemetry-flow {
  to { stroke-dashoffset: -68; }
}

@keyframes hero-correlation-pulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.40; }
  50% { stroke-dashoffset: -24; opacity: 0.88; }
}

@keyframes hero-recommendation-pulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.56; }
  50% { stroke-dashoffset: -22; opacity: 1; }
}

@keyframes hero-ai-think {
  0%, 100% { transform: scale(1); opacity: 0.55; transform-origin: 385px 82px; }
  50% { transform: scale(1.08); opacity: 1; transform-origin: 385px 82px; }
}

@keyframes hero-node-alert {
  0%, 100% { transform: scale(0.98); opacity: 0.45; transform-origin: 488px 160px; }
  50% { transform: scale(1.08); opacity: 0.95; transform-origin: 488px 160px; }
}

/* Network-health overview */
.network-overview-section {
  position: relative;
  background: #0a1723;
  border-top: 1px solid rgba(170, 211, 227, 0.08);
  border-bottom: 1px solid rgba(170, 211, 227, 0.08);
}

.network-overview-header {
  max-width: 48rem;
  margin-inline: auto;
}

.network-overview-header h2 { color: #ffffff; letter-spacing: -0.04em; }

.network-overview-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(320px, 1.28fr) minmax(220px, 0.82fr);
  gap: 1rem;
  align-items: stretch;
}

.network-health-panel,
.active-insights-panel,
.network-summary-panel {
  min-width: 0;
  padding: 1.35rem;
  color: #eef7fb;
  background: rgba(18, 40, 58, 0.72);
  border: 1px solid rgba(170, 211, 227, 0.12);
  border-radius: 0.9rem;
}

.network-health-panel {
  background: linear-gradient(155deg, rgba(26, 167, 214, 0.13), rgba(18, 40, 58, 0.76) 58%);
  border-color: rgba(107, 224, 244, 0.22);
}

.overview-panel-heading {
  gap: 0.75rem;
  color: #9ab0bd;
}

.overview-status,
.overview-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6c8594;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.overview-status-investigate { color: #f4bc4b; }
.overview-status-investigate span:first-child { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #f4bc4b; }

.network-health-value {
  margin: 1.2rem 0 0.45rem;
  color: #eef7fb;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 700;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.network-health-value span { color: #6be0f4; font-size: 0.48em; }

.network-health-panel p {
  min-height: 3.5rem;
  color: #9ab0bd;
  font-size: 0.8rem;
  line-height: 1.55;
}

.network-health-bar {
  height: 0.38rem;
  margin: 1.1rem 0 0.85rem;
  overflow: hidden;
  background: rgba(170, 211, 227, 0.12);
  border-radius: 99px;
}

.network-health-bar span { display: block; width: 94%; height: 100%; background: linear-gradient(90deg, #31c4aa, #6be0f4); border-radius: inherit; }

.network-health-meta { display: flex; justify-content: space-between; gap: 0.75rem; color: #6c8594; font-size: 0.68rem; }
.network-health-meta strong { color: #eef7fb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85rem; }

.active-insights-panel { display: grid; gap: 0.8rem; }

.overview-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(170, 211, 227, 0.09);
}

.overview-insight-marker { width: 0.42rem; height: 0.42rem; margin-top: 0.32rem; border-radius: 50%; background: #f4bc4b; }
.overview-insight-warning .overview-insight-marker { background: #ff9a54; }
.overview-insight-forecast .overview-insight-marker { background: #6be0f4; }
.overview-insight strong { display: block; color: #eef7fb; font-size: 0.8rem; line-height: 1.3; }
.overview-insight p { margin-top: 0.22rem; color: #6c8594; font-size: 0.72rem; line-height: 1.45; }
.overview-insight-confidence { color: #f4bc4b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.7rem; font-variant-numeric: tabular-nums; }

.mini-network { display: flex; align-items: center; margin: 2rem 0 1.4rem; }
.mini-network-node { width: 0.7rem; height: 0.7rem; flex: 0 0 auto; border: 2px solid #53d6a0; border-radius: 50%; background: rgba(83, 214, 160, 0.18); }
.mini-network-node-warning { border-color: #f4bc4b; background: rgba(244, 188, 75, 0.18); }
.mini-network-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(107, 224, 244, 0.65), rgba(107, 224, 244, 0.16)); }

.network-summary-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.network-summary-kpis span { display: grid; gap: 0.2rem; }
.network-summary-kpis strong { color: #eef7fb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.network-summary-kpis small { color: #6c8594; font-size: 0.55rem; letter-spacing: 0.02em; text-transform: none; }
.overview-panel-link { display: inline-block; margin-top: 1.35rem; color: #6be0f4; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.overview-panel-link:hover { color: #eef7fb; }

@media (max-width: 1240px) {
  .hero-section-signature .hero-grid { grid-template-columns: minmax(260px, 0.62fr) minmax(560px, 1.38fr); gap: 1.4rem; }
  .hero-copy-signature h1 { font-size: clamp(2.8rem, 4.8vw, 4.6rem); }
  .hero-stage-body { grid-template-columns: minmax(0, 1fr) minmax(205px, 0.44fr); }
  .network-overview-grid { grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.2fr); }
  .network-summary-panel { grid-column: span 2; }
}

@media (max-width: 992px) {
  .hero-section-signature { padding-top: 4.2rem; }
  .hero-section-signature .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-signature { max-width: 42rem; }
  .hero-copy-signature h1 { max-width: 40rem; }
  .hero-stage-body { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.43fr); }
}

@media (max-width: 760px) {
  .hero-section-signature { padding: 3.4rem 0 2.3rem; }
  .hero-copy-signature h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-stage-header { align-items: flex-start; flex-direction: column; }
  .hero-stage-status { text-align: left; }
  .hero-stage-body { grid-template-columns: 1fr; }
  #heroNetwork { min-height: 20rem; }
  .hero-insight-panel { min-height: auto; }
  .hero-node-inspector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-overview-grid { grid-template-columns: 1fr; }
  .network-summary-panel { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero-copy-signature .hero-cta { align-items: stretch; flex-direction: column; }
  .hero-copy-signature .hero-cta .btn { width: 100%; }
  .hero-storyline { gap: 0.35rem; font-size: 0.52rem; letter-spacing: 0.04em; }
  .hero-stage-example { display: none; }
  #heroNetwork { min-height: 17rem; }
  .hero-network-canvas { overflow: hidden; }
  #heroNetwork { min-width: 0; }
  .site-header .nav-actions { gap: 0.3rem; }
  .site-header .theme-toggle-btn { padding: 0.38rem 0.45rem; font-size: 0.95rem; }
  .site-header .btn-primary.btn-sm { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .network-health-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-network-flow,
  .hero-correlation-path,
  .hero-recommendation-path,
  .hero-ai-core-ring,
  .hero-node-alert-ring { animation: none !important; }
  .hero-intelligence-stage[data-hero-stage="observe"] .hero-prediction-trace,
  .hero-intelligence-stage[data-hero-stage="correlate"] .hero-prediction-trace,
  .hero-intelligence-stage[data-hero-stage="anomaly"] .hero-prediction-trace { opacity: 1; }
  .hero-intelligence-stage .hero-insight-panel { transition: none; }
}

.hero-intelligence-stage.is-offscreen .hero-network-flow,
.hero-intelligence-stage.is-offscreen .hero-correlation-path,
.hero-intelligence-stage.is-offscreen .hero-recommendation-path,
.hero-intelligence-stage.is-offscreen .hero-ai-core-ring,
.hero-intelligence-stage.is-offscreen .hero-node-alert-ring {
  animation-play-state: paused;
}

/* Production command view: a restrained mission-control surface between process and insights. */
.command-view-section {
  position: relative;
  background: #07111c;
  border-top: 1px solid rgba(170, 211, 227, 0.08);
  border-bottom: 1px solid rgba(170, 211, 227, 0.08);
}

.command-view-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13, 31, 47, 0.98), rgba(7, 17, 28, 0.98));
  border: 1px solid rgba(170, 211, 227, 0.16);
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.command-view-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  background-image: radial-gradient(circle at 72% 24%, rgba(26, 167, 214, 0.12), transparent 28rem), linear-gradient(rgba(107, 224, 244, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(107, 224, 244, 0.025) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.command-view-topbar,
.command-view-statusline,
.command-view-brandline,
.command-view-surface-header,
.command-view-insight-header,
.command-view-network-legend,
.command-view-storyline {
  display: flex;
  align-items: center;
}

.command-view-topbar {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(170, 211, 227, 0.1);
  color: #6c8594;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.command-view-brandline { gap: 0.55rem; color: #6be0f4; }
.command-view-live-dot,
.command-view-surface-state span:first-child { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #53d6a0; box-shadow: 0 0 0 0 rgba(83, 214, 160, 0.4); animation: command-view-live-pulse 2.4s infinite; }
.command-view-statusline { gap: 0.7rem; white-space: nowrap; }
.command-view-statusline span:last-child { color: #53d6a0; }
.command-view-status-divider { width: 1px; height: 0.75rem; background: rgba(170, 211, 227, 0.2); }

.command-view-layout {
  display: grid;
  grid-template-columns: minmax(235px, 0.62fr) minmax(0, 1.38fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.5rem;
}

.command-view-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.4rem 1rem 0.2rem;
}

.command-view-copy .section-tag { align-self: flex-start; color: #6be0f4; }
.command-view-copy h2 { max-width: 22rem; margin: 0.9rem 0 1rem; color: #eef7fb; font-size: clamp(2rem, 3.1vw, 3.4rem); letter-spacing: -0.055em; line-height: 1.02; }
.command-view-lead { max-width: 28rem; color: #9ab0bd; font-size: 0.92rem; line-height: 1.65; }

.command-view-storyline {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(170, 211, 227, 0.12);
  color: #9ab0bd;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.command-view-story-step { display: grid; gap: 0.28rem; min-width: 0; }
.command-view-story-index { color: #6c8594; font-size: 0.55rem; }
.command-view-story-step strong { color: #eef7fb; font-size: 0.61rem; line-height: 1.3; }
.command-view-story-step.is-ai strong { color: #6be0f4; }
.command-view-story-step.is-action strong { color: #53d6a0; }
.command-view-story-arrow { color: #6c8594; }

.command-view-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
}

.command-view-metrics > div { display: grid; gap: 0.35rem; min-width: 0; }
.command-view-metrics strong { color: #6be0f4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1; }
.command-view-metrics span { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.53rem; letter-spacing: 0.04em; line-height: 1.4; }

.command-view-surface {
  min-width: 0;
  padding: 0.85rem;
  background: rgba(7, 17, 28, 0.74);
  border: 1px solid rgba(170, 211, 227, 0.13);
  border-radius: 0.75rem;
}

.command-view-surface-header { justify-content: space-between; gap: 0.8rem; padding: 0.15rem 0.35rem 0.7rem; }
.command-view-surface-header > div { display: grid; gap: 0.22rem; min-width: 0; }
.command-view-surface-kicker { color: #eef7fb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; }
.command-view-surface-time { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.59rem; }
.command-view-surface-state { display: inline-flex; align-items: center; gap: 0.38rem; color: #53d6a0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }

.command-view-network {
  position: relative;
  overflow: hidden;
  min-height: 23rem;
  background: rgba(10, 23, 35, 0.82);
  border: 1px solid rgba(170, 211, 227, 0.09);
  border-radius: 0.6rem;
}

.command-view-network svg { display: block; width: 100%; height: auto; min-height: 23rem; }
.command-view-pipe-base { fill: none; stroke: rgba(170, 211, 227, 0.16); stroke-linecap: round; stroke-linejoin: round; stroke-width: 8; }
.command-view-pipe-flow { fill: none; stroke: url(#commandViewFlowGradient); stroke-dasharray: 8 17; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; animation: command-view-telemetry-flow 2.8s linear infinite; }
.command-view-pipe-flow-warning { stroke: #f4bc4b; animation-duration: 1.9s; }
.command-view-pipe-flow-critical { stroke: #ff6172; animation-duration: 1.25s; }
.command-view-correlation-path { fill: none; stroke: #6be0f4; stroke-dasharray: 3 9; stroke-linecap: round; stroke-width: 1.4; opacity: 0.38; animation: command-view-correlation 2.2s ease-in-out infinite; }
.command-view-recommendation-path { fill: none; stroke: #f4bc4b; stroke-dasharray: 4 8; stroke-linecap: round; stroke-width: 1.8; opacity: 0.72; animation: command-view-recommendation 1.8s ease-in-out infinite; }

.command-view-ai-ring { fill: none; stroke: #6be0f4; stroke-dasharray: 3 6; stroke-width: 1.2; opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: command-view-ai-think 2.6s ease-in-out infinite; }
.command-view-ai-core { fill: rgba(26, 167, 214, 0.25); stroke: #6be0f4; stroke-width: 1.2; }
.command-view-ai-node text:not(.command-view-node-caption) { fill: #07111c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.55rem; font-weight: 800; }
.command-view-node-caption { fill: #6be0f4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em; }

.command-view-network-node > circle:first-child { fill: rgba(20, 41, 58, 0.94); stroke: #53d6a0; stroke-width: 1.4; }
.command-view-network-node-investigate > circle:first-of-type { stroke: #f4bc4b; }
.command-view-node-dot { fill: #53d6a0; stroke: none; }
.command-view-network-node-investigate .command-view-node-dot { fill: #f4bc4b; }
.command-view-alert-ring { fill: none; stroke: #f4bc4b; stroke-dasharray: 3 6; stroke-width: 1.2; opacity: 0.82; animation: command-view-alert-ring 1.8s ease-in-out infinite; }
.command-view-node-label { fill: #eef7fb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.02em; }
.command-view-node-label-investigate { fill: #f4bc4b; }
.command-view-node-status { fill: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; }
.command-view-node-status-investigate { fill: #f4bc4b; }
.command-view-branch-node circle { fill: rgba(20, 41, 58, 0.95); stroke-width: 1.5; }
.command-view-branch-node text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; font-weight: 700; }
.command-view-branch-node-investigate circle { stroke: #f4bc4b; }
.command-view-branch-node-investigate text { fill: #f4bc4b; }
.command-view-branch-node-critical circle { stroke: #ff6172; }
.command-view-branch-node-critical text { fill: #ff6172; }

.command-view-telemetry rect { fill: rgba(20, 41, 58, 0.94); stroke: rgba(170, 211, 227, 0.16); stroke-width: 1; }
.command-view-telemetry text { fill: #9ab0bd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; }
.command-view-telemetry-alert rect { fill: rgba(244, 188, 75, 0.13); stroke: rgba(244, 188, 75, 0.42); }
.command-view-telemetry-alert text { fill: #f4bc4b; }

.command-view-interpretation-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: -1.1rem 0.6rem 0.7rem;
  padding: 0.58rem 0.7rem;
  position: relative;
  z-index: 1;
  background: rgba(7, 17, 28, 0.9);
  border: 1px solid rgba(170, 211, 227, 0.12);
  border-radius: 0.5rem;
  color: #6c8594;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.command-view-interpretation-rail .is-normal { color: #6be0f4; }
.command-view-interpretation-rail .is-warning { color: #f4bc4b; }
.command-view-interpretation-rail .is-action { color: #53d6a0; }
.command-view-network-legend { justify-content: flex-end; flex-wrap: wrap; gap: 0.8rem; padding: 0.65rem 0.2rem 0.1rem; color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.53rem; }
.command-view-network-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.command-view-network-legend i { width: 0.38rem; height: 0.38rem; display: inline-block; border-radius: 50%; }
.command-view-network-legend i.is-healthy { background: #53d6a0; }
.command-view-network-legend i.is-investigate { background: #f4bc4b; }
.command-view-network-legend i.is-critical { background: #ff6172; }

.command-view-insight {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(244, 188, 75, 0.11), rgba(20, 41, 58, 0.64));
  border: 1px solid rgba(244, 188, 75, 0.34);
  border-radius: 0.62rem;
}

.command-view-insight-header { justify-content: space-between; gap: 0.8rem; }
.command-view-insight-eyebrow { color: #f4bc4b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; }
.command-view-confidence { color: #9ab0bd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; }
.command-view-confidence strong { color: #f4bc4b; }
.command-view-insight h3 { margin: 0.55rem 0 0.75rem; color: #eef7fb; font-size: 0.95rem; line-height: 1.35; }
.command-view-insight-row { display: grid; grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr); gap: 0.8rem; padding: 0.56rem 0; border-top: 1px solid rgba(170, 211, 227, 0.1); }
.command-view-insight-row > span,
.command-view-insight-action > span { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.02em; }
.command-view-insight-row p { color: #eef7fb; font-size: 0.72rem; line-height: 1.45; }
.command-view-insight-action { display: grid; gap: 0.28rem; margin-top: 0.35rem; padding: 0.7rem; background: rgba(49, 196, 170, 0.1); border: 1px solid rgba(49, 196, 170, 0.22); border-radius: 0.45rem; }
.command-view-insight-action strong { color: #53d6a0; font-size: 0.76rem; line-height: 1.35; }
.command-view-insight-action small { display: inline-flex; align-items: center; gap: 0.35rem; color: #6c8594; font-size: 0.58rem; }
.command-view-link-dot { width: 0.35rem; height: 0.35rem; flex: 0 0 auto; border-radius: 50%; background: #53d6a0; }

.microapps-load-more { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin: 2rem auto 0; }
.microapps-count { display: inline-flex; align-items: baseline; gap: 0.35rem; color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.75rem; }
.microapps-count strong { color: var(--text-main); font-size: 0.9rem; }
.microapps-load-more-btn { min-width: 12rem; }
.microapp-card.is-load-more-hidden { display: none !important; }

@keyframes command-view-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(83, 214, 160, 0.35); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(83, 214, 160, 0); opacity: 0.68; }
}

@keyframes command-view-telemetry-flow { to { stroke-dashoffset: -50; } }
@keyframes command-view-correlation { 0%, 100% { opacity: 0.24; } 50% { opacity: 0.76; } }
@keyframes command-view-recommendation { 0%, 100% { opacity: 0.42; } 50% { opacity: 0.95; } }
@keyframes command-view-ai-think { 0%, 100% { transform: scale(0.92); opacity: 0.46; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes command-view-alert-ring { 0%, 100% { transform: scale(0.92); opacity: 0.42; } 50% { transform: scale(1.12); opacity: 0.94; } }

@media (max-width: 1120px) {
  .command-view-layout { grid-template-columns: minmax(215px, 0.56fr) minmax(0, 1.44fr); gap: 1rem; padding: 1.1rem; }
  .command-view-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
  .command-view-storyline { gap: 0.3rem; }
  .command-view-story-step strong { font-size: 0.55rem; }
}

@media (max-width: 900px) {
  .command-view-layout { grid-template-columns: 1fr; }
  .command-view-copy { padding: 0.3rem 0.2rem 0.4rem; }
  .command-view-copy h2 { max-width: 34rem; }
  .command-view-lead { max-width: 40rem; }
  .command-view-metrics { max-width: 34rem; margin-top: 1.35rem; }
}

@media (max-width: 620px) {
  .command-view-topbar { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .command-view-statusline { flex-wrap: wrap; white-space: normal; }
  .command-view-layout { padding: 0.8rem; }
  .command-view-copy h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .command-view-storyline { align-items: flex-start; }
  .command-view-story-arrow { display: none; }
  .command-view-story-step { flex: 1 1 30%; }
  .command-view-network { min-height: 18rem; }
  .command-view-network svg { min-height: 18rem; }
  .command-view-interpretation-rail { margin-inline: 0.35rem; font-size: 0.47rem; line-height: 1.6; }
  .command-view-network-legend { justify-content: flex-start; }
  .command-view-insight-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .microapps-count { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .command-view-live-dot,
  .command-view-surface-state span:first-child,
  .command-view-pipe-flow,
  .command-view-correlation-path,
  .command-view-recommendation-path,
  .command-view-ai-ring,
  .command-view-alert-ring { animation: none !important; }
}

/* Index1-style executive snapshot. This is intentionally a separate presentation layer from the detailed live Command View. */
.executive-snapshot-section {
  position: relative;
  overflow: hidden;
  background: #07111c;
  border-bottom: 1px solid rgba(170, 211, 227, 0.08);
}

.executive-snapshot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 71% 60%, rgba(49, 196, 170, 0.12), transparent 24rem), radial-gradient(circle at 28% 67%, rgba(26, 167, 214, 0.1), transparent 23rem), #07111c;
  border: 1px solid rgba(170, 211, 227, 0.12);
  border-radius: 1rem;
}

.executive-snapshot::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(circle at 1px 1px, rgba(170, 211, 227, 0.22) 0.7px, transparent 0.9px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.executive-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(470px, 1.1fr);
  gap: 1.4rem;
  align-items: center;
  min-height: 34rem;
  padding: 3.25rem 2.5rem 2.8rem;
}

.snapshot-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0.5rem 0.2rem;
}

.snapshot-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.72rem;
  color: #6be0f4;
  background: rgba(26, 167, 214, 0.1);
  border: 1px solid rgba(107, 224, 244, 0.2);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.snapshot-active-pill > span:first-child {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #31c4aa;
  box-shadow: 0 0 0 0 rgba(49, 196, 170, 0.4);
  animation: snapshot-status-pulse 2.4s infinite;
}

.snapshot-copy h2 {
  max-width: 34rem;
  margin: 1.35rem 0 1.15rem;
  color: #eef7fb;
  font-size: clamp(2.55rem, 4.2vw, 3.95rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.snapshot-copy > p {
  max-width: 34rem;
  color: #9ab0bd;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 1.65;
}

.snapshot-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.snapshot-cta-row .btn { min-height: 3.1rem; padding-inline: 1.6rem; }

.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8rem;
  max-width: 34rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(170, 211, 227, 0.14);
}

.snapshot-metrics > div { display: grid; gap: 0.35rem; }
.snapshot-metrics strong { color: #6be0f4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.9; }
.snapshot-metrics span { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.56rem; letter-spacing: 0.05em; }

.snapshot-visual {
  position: relative;
  min-width: 0;
  min-height: 30rem;
}

.snapshot-visual svg { display: block; width: 100%; min-height: 30rem; overflow: visible; }
.snapshot-network-pipe { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.snapshot-network-pipe-base { stroke: rgba(170, 211, 227, 0.18); stroke-dasharray: 3 13; }
.snapshot-network-pipe-flow { stroke: url(#snapshotTelemetryGradient); stroke-dasharray: 9 16; animation: snapshot-flow 2.8s linear infinite; }
.snapshot-network-pipe-alert { stroke: #ff6172; stroke-dasharray: 8 13; animation: snapshot-alert-flow 1.5s linear infinite; }

.snapshot-network-node > circle:first-child { fill: #1aa7d6; stroke: #6be0f4; stroke-width: 1; filter: drop-shadow(0 0 8px rgba(26, 167, 214, 0.55)); }
.snapshot-node-pulse { fill: none; stroke: rgba(107, 224, 244, 0.35); stroke-dasharray: 2 6; stroke-width: 1; animation: snapshot-node-pulse 2.5s ease-in-out infinite; }
.snapshot-node-dma > circle:first-child { fill: #ff6172; stroke: #ff9ba5; filter: drop-shadow(0 0 10px rgba(255, 97, 114, 0.55)); }
.snapshot-node-alert { fill: none; stroke: #ff6172; stroke-dasharray: 3 7; stroke-width: 1.2; animation: snapshot-node-alert 1.7s ease-in-out infinite; }
.snapshot-node-label { fill: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.52rem; letter-spacing: 0.06em; }
.snapshot-node-label-alert { fill: #ff6172; font-weight: 700; }
.snapshot-network-caption { fill: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; letter-spacing: 0.07em; }
.snapshot-network-caption-alert { fill: #ff6172; }

.snapshot-telemetry-chip rect { fill: rgba(20, 41, 58, 0.88); stroke: rgba(107, 224, 244, 0.22); stroke-width: 1; }
.snapshot-telemetry-chip text { fill: #9ab0bd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; }
.snapshot-telemetry-chip-alert rect { fill: rgba(255, 97, 114, 0.1); stroke: rgba(255, 97, 114, 0.38); }
.snapshot-telemetry-chip-alert text { fill: #ff9ba5; }

.snapshot-insight {
  position: absolute;
  top: 1.15rem;
  right: 0.1rem;
  z-index: 2;
  width: min(19.5rem, 46%);
  padding: 1rem;
  color: #eef7fb;
  background: rgba(25, 54, 74, 0.96);
  border: 1px solid rgba(255, 97, 114, 0.46);
  border-radius: 0.72rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.snapshot-insight::before {
  position: absolute;
  top: 50%;
  left: -4.8rem;
  width: 4.8rem;
  content: '';
  border-top: 1px dashed rgba(255, 97, 114, 0.68);
}

.snapshot-insight-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.snapshot-insight-header span { padding: 0.25rem 0.45rem; color: #ff9ba5; background: rgba(255, 97, 114, 0.17); border-radius: 0.18rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.06em; }
.snapshot-insight-header small { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.48rem; letter-spacing: 0.05em; }
.snapshot-insight h3 { margin: 1rem 0 0.55rem; color: #eef7fb; font-size: 0.86rem; }
.snapshot-insight > p { color: #9ab0bd; font-size: 0.68rem; line-height: 1.55; }
.snapshot-insight-item { display: flex; align-items: flex-start; gap: 0.62rem; margin-top: 0.8rem; padding: 0.65rem; background: rgba(7, 17, 28, 0.48); border: 1px solid rgba(170, 211, 227, 0.09); border-radius: 0.38rem; }
.snapshot-insight-item.snapshot-recommendation { background: rgba(49, 196, 170, 0.1); border-color: rgba(49, 196, 170, 0.24); }
.snapshot-insight-icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; flex: 0 0 auto; border: 1px solid #f4bc4b; border-radius: 50%; color: #f4bc4b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.65rem; }
.snapshot-recommendation .snapshot-insight-icon { border-color: #31c4aa; color: #31c4aa; }
.snapshot-insight-item div { display: grid; gap: 0.24rem; min-width: 0; }
.snapshot-insight-item small { color: #6c8594; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.48rem; letter-spacing: 0.06em; }
.snapshot-insight-item strong { color: #eef7fb; font-size: 0.64rem; line-height: 1.35; }
.snapshot-recommendation .snapshot-insight-item strong,
.snapshot-insight-item.snapshot-recommendation strong { color: #53d6a0; }

.snapshot-telemetry-footer {
  position: absolute;
  right: 5.5rem;
  bottom: 0.5rem;
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  color: #6c8594;
  text-align: center;
}

.snapshot-telemetry-footer > div { display: grid; gap: 0.28rem; }
.snapshot-telemetry-footer span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; letter-spacing: 0.07em; }
.snapshot-telemetry-footer strong { color: #9ab0bd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.7rem; font-weight: 500; }

@keyframes snapshot-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(49, 196, 170, 0.35); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(49, 196, 170, 0); opacity: 0.65; }
}

@keyframes snapshot-flow { to { stroke-dashoffset: -50; } }
@keyframes snapshot-alert-flow { to { stroke-dashoffset: -42; } }
@keyframes snapshot-node-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.9); transform-origin: center; } 50% { opacity: 0.8; transform: scale(1.08); transform-origin: center; } }
@keyframes snapshot-node-alert { 0%, 100% { opacity: 0.35; transform: scale(0.88); transform-origin: center; } 50% { opacity: 0.95; transform: scale(1.1); transform-origin: center; } }

@media (max-width: 1120px) {
  .executive-snapshot-grid { grid-template-columns: minmax(245px, 0.7fr) minmax(420px, 1.3fr); padding-inline: 1.6rem; }
  .snapshot-copy h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
  .snapshot-insight { width: min(18rem, 48%); }
}

@media (max-width: 900px) {
  .executive-snapshot-grid { grid-template-columns: 1fr; gap: 0.8rem; padding: 2.5rem 1.4rem 2rem; }
  .snapshot-copy { max-width: 42rem; }
  .snapshot-copy h2 { max-width: 40rem; }
  .snapshot-visual { min-height: 28rem; }
  .snapshot-visual svg { min-height: 28rem; }
}

@media (max-width: 620px) {
  .executive-snapshot-grid { padding: 2rem 1rem 1.4rem; }
  .snapshot-active-pill { font-size: 0.5rem; }
  .snapshot-copy h2 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .snapshot-cta-row { flex-direction: column; align-items: stretch; }
  .snapshot-cta-row .btn { width: 100%; }
  .snapshot-metrics { gap: 1.2rem; }
  .snapshot-visual { min-height: 35rem; }
  .snapshot-visual svg { min-height: 21rem; }
  .snapshot-insight { top: 18rem; right: 0; width: 100%; }
  .snapshot-insight::before { display: none; }
  .snapshot-telemetry-footer { right: auto; bottom: 0.5rem; left: 50%; width: max-content; transform: translateX(-50%); gap: 1.1rem; }
  .snapshot-network-caption { font-size: 0.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .snapshot-active-pill > span:first-child,
  .snapshot-network-pipe-flow,
  .snapshot-network-pipe-alert,
  .snapshot-node-pulse,
  .snapshot-node-alert { animation: none !important; }
}

/* ==========================================================================
   Hero & Live HUD 3D Tilt & Telemetry Jitter Enhancements
   ========================================================================== */
.hero-intelligence-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.hero-intelligence-stage.is-tilting {
  transition: transform 0.08s ease-out;
}

.hero-stage-body {
  transform-style: preserve-3d;
}

/* Ambient Lights Theme Reactions */
.bg-ambient-lights {
  transition: opacity 0.5s ease;
}

[data-theme="light"] .ambient-blob {
  opacity: 0.14;
  filter: blur(140px);
}

[data-theme="dark"] .ambient-blob {
  opacity: 0.24;
  filter: blur(120px);
}

@keyframes ambientPulseSlow {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(15px, -15px); }
}

.ambient-blob-1 { animation: ambientPulseSlow 18s ease-in-out infinite; }
.ambient-blob-2 { animation: ambientPulseSlow 22s ease-in-out infinite reverse; }
.ambient-blob-3 { animation: ambientPulseSlow 26s ease-in-out infinite 2s; }

/* Telemetry Jitter & Live Status */
.telemetry-jitter-active {
  transition: color 0.3s ease;
}

.telemetry-jitter-pulse {
  animation: telemetryFlicker 0.4s ease;
}

@keyframes telemetryFlicker {
  0% { opacity: 0.6; color: var(--accent-emerald); text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  50% { opacity: 1; color: var(--primary-light); }
  100% { opacity: 1; }
}

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

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

.live-blink {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-emerald);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: pulseBeacon 2s infinite;
}

/* ==========================================================================
   Operasyon Akışı: Decision Rail (5 Aşamalı Yönetişim)
   ========================================================================== */
.decision-rail-container {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.decision-rail-container:hover {
  border-color: var(--border-active);
  box-shadow: 0 24px 60px rgba(2, 132, 199, 0.15);
}

.decision-rail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.decision-rail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.decision-rail-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.decision-rail-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.decision-rail-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.decision-rail-step:hover,
.decision-rail-step:focus-visible {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-main);
  outline: none;
}

.decision-rail-step.is-active {
  background: rgba(2, 132, 199, 0.15);
  border-color: var(--primary-light);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
}

.rail-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.decision-rail-step.is-active .rail-step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.rail-step-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.rail-step-body small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.decision-rail-step.is-active .rail-step-body small {
  color: var(--primary-light);
}

.rail-step-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.decision-rail-step.is-active .rail-step-indicator {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.decision-rail-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  margin: 1.2rem 0 1.8rem 0;
  overflow: hidden;
  position: relative;
}

.decision-rail-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--primary-light);
}

.decision-rail-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: all 0.3s ease;
}

.rail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.rail-card-phase-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.rail-card-title-group h3 {
  font-size: 1.35rem;
  color: var(--text-main);
}

.rail-card-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: center;
}

.rail-card-main-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.rail-card-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rail-telemetry-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rail-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.rail-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.rail-metric-row span {
  color: var(--text-muted);
}

.rail-metric-row strong {
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 900px) {
  .decision-rail-nav { grid-template-columns: repeat(2, 1fr) 1fr; }
  .rail-card-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .decision-rail-nav { grid-template-columns: 1fr; }
  .decision-rail-container { padding: 1.4rem; }
}

/* ==========================================================================
   İnteraktif Senaryo Sandbox'ı
   ========================================================================== */
.scenario-sandbox {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.scenario-sandbox-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.scenario-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scenario-tab:hover,
.scenario-tab:focus-visible {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-main);
  outline: none;
}

.scenario-tab.is-active {
  background: rgba(2, 132, 199, 0.14);
  border-color: var(--primary-light);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
}

.scenario-tab-icon {
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.scenario-tab-text strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
}

.scenario-tab-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.scenario-sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.4rem;
}

.scenario-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.scenario-metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition);
}

.scenario-metric-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.sc-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.sc-metric-val {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

.scenario-ai-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  transition: var(--transition);
}

.scenario-ai-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(56, 189, 248, 0.25);
}

.sc-ai-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sc-ai-icon {
  font-size: 1.1rem;
}

.scenario-ai-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .scenario-sandbox-nav { grid-template-columns: 1fr; }
  .scenario-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .scenario-ai-matrix { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .scenario-metrics-strip { grid-template-columns: 1fr; }
  .scenario-sandbox { padding: 1.4rem; }
}

/* ==========================================================================
   MicroApps Empty State
   ========================================================================== */
.microapps-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.microapps-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.microapps-empty-state h4 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.microapps-empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* ==========================================================================
   Accessible FAQ Accordion
   ========================================================================== */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover,
.faq-question:focus-visible {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  outline: none;
}

.faq-question .arrow {
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  border-color: var(--border-active);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Header Brand Logo & Emblem
   ========================================================================== */
.brand-logo-img-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  background: transparent;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  min-width: 36px;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
}

/* ==========================================================================
   Hero Autonomy Badge
   ========================================================================== */
.hero-autonomy-badge-row {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-autonomy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.hero-autonomy-badge strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-autonomy-badge:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--primary-light);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   1. Comparison Matrix: Geleneksel SCADA vs. AREYFlow AI
   ========================================================================== */
.matrix-comparison-wrap {
  margin-top: 4.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.matrix-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

.matrix-header h3 {
  font-size: 1.8rem;
  margin: 0.75rem 0 0.5rem 0;
  color: var(--text-main);
}

.matrix-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.matrix-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.matrix-table th,
.matrix-table td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.matrix-table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.matrix-table thead .th-legacy {
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.matrix-table thead .th-areyflow {
  color: var(--primary-light);
  background: rgba(2, 132, 199, 0.08);
}

.matrix-table tbody th {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
}

.matrix-table .td-legacy {
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.matrix-table .td-legacy strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.matrix-table .td-legacy p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.matrix-table .td-areyflow {
  background: rgba(2, 132, 199, 0.04);
  position: relative;
}

.matrix-table .td-areyflow strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-emerald);
  margin-bottom: 0.3rem;
}

.matrix-table .td-areyflow p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.matrix-table tr:last-child th,
.matrix-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   2. Scenario Sandbox Simulation Action Bar & Live Audit Box
   ========================================================================== */
.scenario-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.8rem 0 1.2rem 0;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.scenario-action-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.scenario-governance-state {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.scenario-audit-box {
  margin-top: 1rem;
  padding: 1.4rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
  animation: slideFadeDown 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.audit-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.audit-box-header .audit-id {
  color: var(--accent-emerald);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.audit-box-header .audit-hash code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.audit-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.4rem;
  font-size: 0.85rem;
}

.audit-box-grid span {
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.15rem;
}

.audit-box-grid strong {
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 768px) {
  .audit-box-grid { grid-template-columns: 1fr; }
  .scenario-action-bar { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   3. Real-Time Telemetry Sparkline Trend Chart
   ========================================================================== */
.sim-sparkline-card {
  margin-top: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sparkline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.sparkline-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.sparkline-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.cyan { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.legend-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }

.sparkline-canvas-wrap {
  width: 100%;
  height: 105px;
  position: relative;
}

.sparkline-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   4. Glassmorphism Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 3000;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 2rem));
}

.glass-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.glass-toast.is-hiding {
  transform: translateY(15px) scale(0.92);
  opacity: 0;
}

.glass-toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.glass-toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.2);
}

.glass-toast-critical {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 63, 94, 0.25);
}

.toast-icon {
  font-size: 1.4rem;
  flex: 0 0 auto;
  line-height: 1;
}

.toast-content {
  flex: 1 1 auto;
  min-width: 0;
}

.toast-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text-main);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 600px) {
  .toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ==========================================================================
   1. Live NOC Telemetry Stream Ticker
   ========================================================================== */
.telemetry-ticker-bar,
.live-telemetry-ticker-bar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 46px;
  position: relative;
  z-index: 20;
}

.ticker-label,
.ticker-lead-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  background: rgba(2, 6, 23, 0.95);
  height: 100%;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 2;
}

.ticker-label span,
.ticker-lead-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-light);
}

.ticker-viewport,
.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 2.5rem;
  animation: tickerFlow 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.84rem;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ticker-item strong,
.ticker-loc {
  color: #ffffff !important;
  font-weight: 700;
}

.ticker-time {
  color: var(--primary-light, #38bdf8);
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.4);
}

.ticker-item .val {
  color: var(--primary-light);
  font-weight: 700;
}

.ticker-item.alert .val {
  color: var(--accent-rose);
}

.ticker-item.success .val {
  color: var(--accent-emerald);
}

/* ==========================================================================
   2. 2.5D Mini Şehir Su Ağı & Topoloji Akış Paneli
   ========================================================================== */
.network-topology-card {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.7);
}

.network-topology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-emerald));
}

.topology-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.topology-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pulse-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.topology-kpis {
  display: flex;
  gap: 1rem;
}

.topology-kpi-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 8px);
  padding: 0.6rem 1rem;
  text-align: right;
  min-width: 120px;
}

.topology-kpi-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.topology-kpi-item strong {
  font-size: 1.15rem;
  font-family: var(--font-mono, monospace);
}

.topology-canvas-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md, 12px);
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

#topologyCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 980 / 340;
}

.topology-node-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.topo-node-label {
  position: absolute;
  transform: translate(-50%, 28px);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.95);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  z-index: 10;
}

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

.topology-actions-left {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.topology-status-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. AI Co-Pilot Simulator & Shift Handover Briefing
   ========================================================================== */
.copilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 960px) {
  .copilot-grid {
    grid-template-columns: 1fr;
  }
}

.copilot-chat-card,
.shift-briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px -10px rgba(2, 6, 23, 0.6);
}

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

.copilot-bot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.copilot-avatar {
  font-size: 1.75rem;
  background: var(--bg-surface);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.copilot-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.copilot-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
}

.copilot-quick-prompts {
  margin-bottom: 1rem;
}

.quick-prompt-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.quick-prompts-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-prompt-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-prompt-btn:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
}

.quick-prompt-btn.is-active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
  font-weight: 600;
}

.copilot-messages {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 250px;
  margin-bottom: 1rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
}

.user-msg {
  align-items: flex-end;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, var(--primary-dark, #0284c7), var(--primary, #0ea5e9));
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 14px 14px 2px 14px;
  font-size: 0.86rem;
  max-width: 85%;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.ai-msg {
  align-items: flex-start;
}

.ai-msg .msg-bubble {
  background: var(--bg-surface-elevated, var(--bg-card));
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 1.15rem;
  border-radius: 14px 14px 14px 2px;
  font-size: 0.86rem;
  width: 100%;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.08);
}

.ai-msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-ref-tag {
  color: var(--text-dim);
}

.ai-ref-tag strong {
  color: var(--primary);
}

.ai-msg-body p {
  margin-bottom: 0.55rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ai-msg-body strong {
  color: var(--text-main);
}

.ai-action-box {
  margin-top: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  font-size: 0.83rem;
  color: var(--text-main);
  line-height: 1.45;
}

.copilot-input-form {
  display: flex;
  gap: 0.5rem;
}

.copilot-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 8px);
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.copilot-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Shift Handover Card */
.shift-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shift-title-group h3 {
  font-size: 1.25rem;
  margin-top: 0.35rem;
}

.shift-stamp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.shift-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.shift-kpi-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.shift-kpi-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.shift-kpi-item strong {
  font-size: 1.05rem;
  font-family: var(--font-mono, monospace);
}

.shift-summary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.shift-narrative-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .shift-narrative-item strong {
  color: var(--primary-light);
}

.shift-narrative-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.shift-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.shift-audit-signature {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.shift-audit-signature strong {
  color: var(--text-main);
}

.shift-audit-signature code {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--secondary);
}

/* Autonomous Control & Operator Safety Architecture */
.autonomous-architecture-card {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  position: relative;
  box-shadow: 0 15px 35px -10px rgba(2, 6, 23, 0.6);
}

.autonomous-architecture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent-emerald));
}

.auto-arch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.auto-arch-kpis {
  display: flex;
  gap: 1rem;
}

.auto-kpi-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 8px);
  padding: 0.6rem 1rem;
  text-align: right;
  min-width: 130px;
}

.auto-kpi-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.auto-kpi-item strong {
  font-size: 1.15rem;
  font-family: var(--font-mono, monospace);
}

.auto-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .auto-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .auto-levels-grid {
    grid-template-columns: 1fr;
  }
}

.auto-level-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.auto-level-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.auto-level-card.is-active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 10px 25px -5px rgba(14, 165, 233, 0.2);
}

.auto-lvl-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 0.35rem;
}

.auto-level-card h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.auto-level-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex: 1;
}

.auto-lvl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding: 0;
}

.auto-lvl-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem;
}

.safety-guardrail-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md, 12px);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guardrail-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.guardrail-content {
  flex: 1;
  min-width: 260px;
}

.guardrail-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  margin-bottom: 0.2rem;
}

.guardrail-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.guardrail-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   4. Acoustic Leak Analyzer & Mobile Dispatch Mockup
   ========================================================================== */
.acoustic-dispatch-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 960px) {
  .acoustic-dispatch-grid {
    grid-template-columns: 1fr;
  }
}

.acoustic-analyzer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.acoustic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.acoustic-header h3 {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.acoustic-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 480px;
}

.acoustic-live-chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.acoustic-canvas-wrap {
  border-radius: var(--radius-md, 12px);
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 1rem;
}

#acousticCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 170;
}

.acoustic-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.acoustic-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.acoustic-stat-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.acoustic-stat-box strong {
  font-size: 0.95rem;
  font-family: var(--font-mono, monospace);
}

.acoustic-action-row {
  display: flex;
  gap: 0.6rem;
}

/* Mobile Dispatch Card */
.mobile-dispatch-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-device-frame {
  width: 100%;
  max-width: 360px;
  background: #0f172a !important;
  border: 2px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.9);
  display: flex;
  flex-direction: column;
  color: #f8fafc !important;
}

.mobile-top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8 !important;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
  font-family: var(--font-mono, monospace);
}

.mobile-app-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.75rem;
}

.mobile-app-icon {
  font-size: 1.4rem;
  background: rgba(30, 41, 59, 0.8) !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.mobile-app-header strong {
  color: #ffffff !important;
  font-size: 0.9rem;
}

.mobile-app-header small {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8 !important;
}

.mobile-wo-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1 !important;
}

.mobile-wo-badge strong {
  color: #ffffff !important;
}

.wo-priority-high {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.25) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.5) !important;
}

.mobile-wo-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.wo-detail-item {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.wo-detail-item span {
  color: #94a3b8 !important;
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
}

.wo-detail-item strong {
  color: #ffffff !important;
  font-size: 0.84rem;
}

.mobile-dispatch-btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
}

.dispatch-confirmed-chip {
  margin-top: 0.6rem;
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   5. Donanım & SCADA Uyumluluk Denetleyicisi
   ========================================================================== */
.vendor-compatibility-card {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  position: relative;
  box-shadow: 0 15px 35px -10px rgba(2, 6, 23, 0.6);
}

.vendor-compat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.compat-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}

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

@media (max-width: 768px) {
  .compat-control-grid {
    grid-template-columns: 1fr;
  }
}

.compat-select-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.compat-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm, 8px);
  width: 100%;
  font-size: 0.85rem;
}

.compat-results-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.5rem;
}

.compat-metrics-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.compat-metric span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.compat-metric strong {
  font-size: 1.1rem;
  font-family: var(--font-mono, monospace);
}

.compat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.compat-desc strong {
  color: var(--text-main);
}

/* ==========================================================================
   6. Su İdaresi Olgunluk Testi (Maturity Assessment Wizard)
   ========================================================================== */
.maturity-wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
  box-shadow: 0 20px 45px -15px rgba(2, 6, 23, 0.7);
}

.maturity-wizard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 960px) {
  .maturity-wizard-grid {
    grid-template-columns: 1fr;
  }
}

.maturity-questions-pane {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.mat-q-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-light);
}

.mat-q-group h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.mat-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mat-opt-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.mat-opt-btn:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
}

.mat-opt-btn.is-selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary);
  color: var(--text-main);
  font-weight: 600;
}

.mat-opt-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mat-opt-btn.is-selected .mat-opt-radio {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.maturity-result-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem;
}

.maturity-score-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.score-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.maturity-level-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.maturity-score-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.maturity-score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-emerald));
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.maturity-score-num {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.maturity-score-num strong {
  color: var(--accent-emerald);
}

.maturity-roadmap-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.mat-roadmap-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mat-step-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.mat-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary-light);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.mat-step-item strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.mat-step-item p {
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   7. Proven Case Studies & Success Stories
   ========================================================================== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 960px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px -10px rgba(2, 6, 23, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.case-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.case-scale-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.case-pop-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-dim);
}

.case-study-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.case-study-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.case-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.case-metric-item strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-mono, monospace);
  margin-bottom: 0.15rem;
}

.case-metric-item span {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.case-card-footer {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   8. Executive ROI Feasibility Report Modal & Print Styles
   ========================================================================== */
.roi-report-dialog {
  max-width: 760px;
  padding: 2.5rem;
}

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

.report-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-brand strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: block;
}

.report-brand small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.report-stamp {
  text-align: right;
}

.report-stamp span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.report-stamp small {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.report-param-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.report-param-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.report-param-item strong {
  font-size: 0.95rem;
  font-family: var(--font-mono, monospace);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.report-table th {
  background: var(--bg-surface);
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.report-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.report-total-row {
  background: rgba(16, 185, 129, 0.08);
  border-top: 2px solid var(--accent-emerald);
}

.report-esg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-esg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.report-esg-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.report-esg-card strong {
  font-size: 1.05rem;
  color: var(--text-main);
}

.report-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Print Stylesheet for Feasibility Report */
@media print {
  body * {
    visibility: hidden;
  }
  #roiReportModal,
  #roiReportModal .roi-report-dialog,
  #roiReportModal .roi-report-dialog * {
    visibility: visible;
  }
  #roiReportModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    display: block !important;
    opacity: 1 !important;
  }
  .roi-report-dialog {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .report-print-header,
  .report-table th,
  .report-table td,
  .report-param-strip,
  .report-esg-card {
    border-color: #ddd !important;
    color: #000 !important;
    background: #f9f9f9 !important;
  }
  .report-actions,
  .modal-close,
  .floating-contact-btn {
    display: none !important;
  }
}

/* Hero Autonomy Highlight Badge */
.hero-autonomy-badge-row {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-autonomy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px -3px rgba(14, 165, 233, 0.25);
}

.hero-autonomy-badge:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.hero-autonomy-badge strong {
  color: var(--primary-light);
}

/* Elevated Modern CTA Section & Trust Chips */
.cta-banner-elevated {
  background: radial-gradient(circle at center top, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.95) 75%), var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl, 24px);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.85);
}

.cta-banner-elevated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.cta-badge-wrap {
  margin-bottom: 1.25rem;
}

.cta-badge-glow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.cta-banner-elevated h2 {
  font-size: 2.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-banner-elevated p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-trust-chips {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.cta-trust-chip {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-trust-chip strong {
  color: var(--text-main);
}

.cta-chip-icon {
  font-size: 0.95rem;
}

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

.cta-actions-row .btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
}

/* Modern Sticky CTA Bar Enhancement */
.sticky-cta {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.sticky-cta-text strong {
  color: #ffffff;
  font-size: 0.92rem;
  display: block;
}

.sticky-cta-text span {
  color: var(--primary-light);
  font-size: 0.78rem;
}

/* ==========================================================================
   Light Theme Comprehensive Polish for All Interactive Modules
   ========================================================================== */
[data-theme="light"] .autonomous-architecture-card {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .auto-kpi-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .auto-level-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .auto-level-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12) !important;
}

[data-theme="light"] .auto-level-card.is-active {
  background: #f0f9ff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary), 0 8px 20px -4px rgba(14, 165, 233, 0.18) !important;
}

[data-theme="light"] .auto-lvl-num {
  color: #0284c7 !important;
}

[data-theme="light"] .auto-level-card h4 {
  color: #0f172a !important;
}

[data-theme="light"] .auto-level-card p {
  color: #475569 !important;
}

[data-theme="light"] .auto-lvl-bullets li {
  color: #64748b !important;
}

[data-theme="light"] .safety-guardrail-box {
  background: #f0fdf4 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.06) !important;
}

[data-theme="light"] .guardrail-content strong {
  color: #047857 !important;
}

[data-theme="light"] .guardrail-content p {
  color: #334155 !important;
}

[data-theme="light"] .guardrail-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
}

[data-theme="light"] .topology-flow-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .topo-kpi-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .topo-ctrl-panel {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .topo-ctrl-panel label {
  color: #0f172a !important;
}

[data-theme="light"] .topo-status-note {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .acoustic-analyzer-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .acoustic-metric-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .vendor-compatibility-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .compat-results-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .compat-metric {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .compat-desc {
  color: #334155 !important;
}

[data-theme="light"] .maturity-wizard-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .mat-opt-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .mat-opt-btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--primary) !important;
  color: #0f172a !important;
}

[data-theme="light"] .mat-opt-btn.is-selected {
  background: #f0f9ff !important;
  border-color: var(--primary) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .maturity-result-pane {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .maturity-score-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
}

[data-theme="light"] .score-badge {
  color: #0284c7 !important;
}

[data-theme="light"] .maturity-level-title {
  color: #0f172a !important;
}

[data-theme="light"] .maturity-score-bar-wrap {
  background: #e2e8f0 !important;
}

[data-theme="light"] .maturity-score-num {
  color: #64748b !important;
}

[data-theme="light"] .maturity-score-num span strong {
  color: #0f172a !important;
}

[data-theme="light"] #matScoreSpeed strong {
  color: #059669 !important;
}

[data-theme="light"] .maturity-roadmap-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
}

[data-theme="light"] .maturity-roadmap-box h4 {
  color: #0f172a !important;
}

[data-theme="light"] .mat-step-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
}

[data-theme="light"] .mat-step-dot {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] .mat-step-item strong {
  color: #0f172a !important;
}

[data-theme="light"] .mat-step-item p {
  color: #475569 !important;
}

[data-theme="light"] .sticky-cta {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top-color: rgba(14, 165, 233, 0.3) !important;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .sticky-cta-text strong {
  color: #0f172a !important;
}

[data-theme="light"] .sticky-cta-text span {
  color: #0284c7 !important;
}

[data-theme="light"] .site-header .brand-text {
  color: #0f172a !important;
}

[data-theme="light"] .site-header .brand-dot {
  color: #0284c7 !important;
}

.site-footer .brand-text,
[data-theme="light"] .site-footer .brand-text {
  color: #ffffff !important;
}

.site-footer .brand-dot,
[data-theme="light"] .site-footer .brand-dot {
  color: #38bdf8 !important;
}

[data-theme="light"] .hero-autonomy-badge {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .hero-autonomy-badge strong {
  color: #0f172a !important;
}

[data-theme="light"] .hero-autonomy-badge:hover {
  background: #f8fafc !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18) !important;
}

/* ==========================================================================
   MicroApps Ecosystem Index / Category Directory
   ========================================================================== */
.microapps-ecosystem-index {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.ecosystem-index-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.ecosystem-index-header h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.6rem 0 0.4rem;
  color: var(--text-main);
}

.ecosystem-index-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ecosystem-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ecosystem-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.ecosystem-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.ecosystem-cat-card.is-active {
  border-color: var(--primary-light) !important;
  background: rgba(14, 165, 233, 0.14) !important;
  box-shadow: 0 0 0 2px var(--primary-light) !important;
}

/* Hidden load more rule */
.microapps-load-more[hidden],
#microAppsLoadMore[hidden] {
  display: none !important;
}

.eco-cat-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  flex-shrink: 0;
}

.eco-cat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eco-cat-content strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.eco-cat-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ecosystem-index-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Light theme for MicroApps Ecosystem Index */
[data-theme="light"] .microapps-ecosystem-index {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .ecosystem-index-header h4 {
  color: #0f172a !important;
}

[data-theme="light"] .ecosystem-index-header p {
  color: #475569 !important;
}

[data-theme="light"] .ecosystem-cat-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .ecosystem-cat-card:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .ecosystem-cat-card.is-active {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px #0284c7, 0 8px 24px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .eco-cat-content strong {
  color: #0f172a !important;
}

[data-theme="light"] .eco-cat-content span {
  color: #475569 !important;
}

[data-theme="light"] .ecosystem-index-footer {
  border-top-color: #e2e8f0 !important;
}

