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

/* Reserve the scrollbar gutter so tall and short views (e.g. switching
   workbench tools or landing sections) don't shift the centered layout. */
html { scrollbar-gutter: stable; }

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Default: Dark Theme (Very Dark Grey) */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* HSL Color Palette (Very Dark Grey / Charcoal Default) */
  --bg-primary: hsl(0, 0%, 6%);
  --bg-secondary: hsl(0, 0%, 10%);
  --bg-card: hsla(0, 0%, 14%, 0.65);
  --bg-card-hover: hsla(0, 0%, 18%, 0.8);
  --border-color: hsla(0, 0%, 25%, 0.35);
  --border-color-glow: hsla(210, 100%, 60%, 0.5);
  
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(0, 0%, 75%);
  --text-muted: hsl(0, 0%, 55%);

  /* Accents */
  --accent-primary: hsl(210, 100%, 55%);
  --accent-primary-rgb: 0, 132, 255;
  --accent-gradient: var(--accent-primary);
  --accent-glow: hsla(210, 100%, 55%, 0.05);
  
  --accent-primary-alpha-10: hsla(210, 100%, 55%, 0.1);
  --accent-primary-alpha-15: hsla(210, 100%, 55%, 0.15);
  --accent-primary-alpha-25: hsla(210, 100%, 55%, 0.25);
  --accent-primary-alpha-30: hsla(210, 100%, 55%, 0.3);
  --accent-primary-alpha-35: hsla(210, 100%, 55%, 0.35);
  --accent-primary-alpha-50: hsla(210, 100%, 55%, 0.5);

  --accent-secondary: hsl(278, 100%, 65%);
  --accent-secondary-alpha-10: hsla(278, 100%, 65%, 0.1);
  --accent-secondary-alpha-15: hsla(278, 100%, 65%, 0.15);
  --accent-secondary-alpha-25: hsla(278, 100%, 65%, 0.25);
  --accent-secondary-alpha-30: hsla(278, 100%, 65%, 0.3);

  --white-alpha-02: hsla(0, 0%, 100%, 0.02);
  --white-alpha-03: hsla(0, 0%, 100%, 0.03);

  --color-success-alpha-25: hsla(145, 80%, 45%, 0.25);
  --color-success-alpha-30: hsla(145, 80%, 45%, 0.3);
  --color-success-alpha-35: hsla(145, 80%, 45%, 0.35);
  
  --color-info-alpha-30: hsla(195, 90%, 50%, 0.3);
  
  --color-warning-alpha-25: hsla(38, 100%, 55%, 0.25);
  --color-warning-alpha-30: hsla(38, 100%, 55%, 0.3);
  
  --color-danger-alpha-25: hsla(355, 85%, 55%, 0.25);
  --color-danger-alpha-30: hsla(355, 85%, 55%, 0.3);

  --color-black-raw: hsl(0, 0%, 0%);
  --color-black: hsl(0, 0%, 0%);
  --color-white: hsl(0, 0%, 100%);
  --bg-terminal: hsl(222, 47%, 5%);
  --bg-overlay: hsla(221, 67%, 5%, 0.75);

  --text-terminal: hsl(120, 100%, 75%);
  --text-terminal-timestamp: hsl(215, 16%, 45%);
  --color-crawler-log: hsl(200, 100%, 55%);
  --color-analyst-log: hsl(280, 100%, 65%);
  --color-system-log: hsl(35, 100%, 55%);
  --color-mitigation-light: hsl(145, 90%, 30%);

  --shadow-primary-button: 0 4px 14px 0 var(--accent-primary-alpha-35);
  --shadow-primary-button-hover: 0 6px 20px 0 var(--accent-primary-alpha-50);
  --shadow-active-tab: 0 4px 12px var(--accent-primary-alpha-30);
  --shadow-select-focus: 0 0 10px var(--accent-primary-alpha-15);

  /* Semantic Colors */
  --color-success: hsl(145, 80%, 45%);
  --color-success-bg: hsla(145, 80%, 45%, 0.15);
  --color-warning: hsl(38, 100%, 55%);
  --color-warning-bg: hsla(38, 100%, 55%, 0.15);
  --color-danger: hsl(355, 85%, 55%);
  --color-danger-bg: hsla(355, 85%, 55%, 0.15);
  --color-info: hsl(195, 90%, 50%);
  --color-info-bg: hsla(195, 90%, 50%, 0.15);

  /* Elevation and Blur */
  --glass-blur: blur(20px);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px hsla(210, 100%, 55%, 0.2);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: hsl(0, 0%, 96%);
  --bg-secondary: hsl(0, 0%, 100%);
  --bg-card: hsla(0, 0%, 100%, 0.75);
  --bg-card-hover: hsla(0, 0%, 100%, 0.95);
  --border-color: hsla(0, 0%, 80%, 0.45);
  --border-color-glow: hsla(210, 100%, 50%, 0.4);

  --text-primary: hsl(0, 0%, 10%);
  --text-secondary: hsl(0, 0%, 35%);
  --text-muted: hsl(0, 0%, 55%);

  --accent-primary: hsl(210, 100%, 45%);
  --accent-secondary: hsl(278, 90%, 55%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px hsla(210, 100%, 50%, 0.1);

  --accent-glow: hsla(210, 100%, 45%, 0.03);
  
  --accent-primary-alpha-10: hsla(210, 100%, 45%, 0.08);
  --accent-primary-alpha-15: hsla(210, 100%, 45%, 0.12);
  --accent-primary-alpha-25: hsla(210, 100%, 45%, 0.2);
  --accent-primary-alpha-30: hsla(210, 100%, 45%, 0.25);
  --accent-primary-alpha-35: hsla(210, 100%, 45%, 0.3);
  --accent-primary-alpha-50: hsla(210, 100%, 45%, 0.4);

  --accent-secondary-alpha-10: hsla(278, 90%, 55%, 0.08);
  --accent-secondary-alpha-15: hsla(278, 90%, 55%, 0.12);
  --accent-secondary-alpha-25: hsla(278, 90%, 55%, 0.2);
  --accent-secondary-alpha-30: hsla(278, 90%, 55%, 0.25);

  --white-alpha-02: hsla(220, 20%, 94%, 0.3);
  --white-alpha-03: hsla(220, 20%, 94%, 0.5);

  --color-success-alpha-25: hsla(145, 80%, 45%, 0.15);
  --color-success-alpha-30: hsla(145, 80%, 45%, 0.2);
  --color-success-alpha-35: hsla(145, 80%, 45%, 0.25);

  --color-info-alpha-30: hsla(195, 90%, 50%, 0.2);

  --color-warning-alpha-25: hsla(38, 100%, 55%, 0.15);
  --color-warning-alpha-30: hsla(38, 100%, 55%, 0.2);

  --color-danger-alpha-25: hsla(355, 85%, 55%, 0.15);
  --color-danger-alpha-30: hsla(355, 85%, 55%, 0.2);

  --color-black-raw: hsl(0, 0%, 100%);
  --color-black: hsl(0, 0%, 100%);
  --color-white: hsl(0, 0%, 0%);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, svg {
  max-width: 100%;
  display: block;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  color: var(--accent-primary);
}

.glass {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-interactive:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--accent-primary-alpha-15);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-alpha-30);
}

.badge-secondary {
  background: var(--accent-secondary-alpha-15);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary-alpha-30);
}

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

/* Section router: each primary menu item maps to its own "page".
   Only the active section is shown; the footer stays visible on every view.
   The hero (.hero) is display:flex, so it needs explicit overrides to be
   hidden when inactive and restored to flex when active. */
.route-section,
.hero.route-section { display: none; }
.route-section.is-active { display: block; }
.hero.route-section.is-active { display: flex; }

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

.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- Layout & Background Decorations --- */
.bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: var(--accent-glow);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-black-raw) 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-black-raw) 40%, transparent 100%);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
}

header.scrolled {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-card);
}

.theme-toggle .sun {
  display: none;
}

body.light-theme .theme-toggle .moon {
  display: none;
}

body.light-theme .theme-toggle .sun {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--color-white);
  box-shadow: var(--shadow-primary-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-button-hover);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer Popover style */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
}

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

.mobile-drawer .nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.mobile-drawer .nav-links-mobile a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  padding: 0.5rem 0;
}

.mobile-drawer .nav-links-mobile a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tagline-wrapper {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

/* Glassmorphic Mockup Frame */
.hero-mockup {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background-color: var(--color-danger); }
.mockup-dot:nth-child(2) { background-color: var(--color-warning); }
.mockup-dot:nth-child(3) { background-color: var(--color-success); }

.mockup-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1rem;
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-chart-bar {
  height: 35px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary-alpha-10);
  border: 1px dashed var(--accent-primary);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  justify-content: space-between;
}

.mockup-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--white-alpha-03);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.mockup-card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.mockup-text-row {
  height: 8px;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.mockup-text-row.half {
  width: 50%;
}

/* --- Information Section (Frameworks Accordion) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.info-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.feature-pill svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-pill h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-pill p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Dynamic Details Accordion */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

details[open] {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

summary {
  list-style: none;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

.summary-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

details[open] .summary-indicator {
  transform: rotate(180deg);
  background-color: var(--accent-primary);
  color: var(--color-white);
}

/* Standard animation helper for details */
details::details-content {
  transition: height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.details-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.details-inner h4 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin: 1.25rem 0 0.5rem 0;
  font-size: 1rem;
}

.details-inner ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.details-inner li {
  margin-bottom: 0.5rem;
}

/* --- Services Section --- */
.services-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Service size selection filter */
.tabs-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

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

.tab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px var(--accent-primary-alpha-30);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  opacity: 1;
}

/* Animated appearance when switching size views */
.service-card.hidden {
  display: none;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-alpha-10);
  border: 1px solid var(--accent-primary-alpha-25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.service-icon.secondary {
  background: var(--accent-secondary-alpha-10);
  border-color: var(--accent-secondary-alpha-25);
  color: var(--accent-secondary);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* --- Interactive Governance Suite (The Web App Demo) --- */
.suite-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.suite-tabs {
  display: flex;
}

.suite-tab-btn {
  background: none;
  border: none;
  padding: 1.5rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.suite-tab-btn:hover {
  color: var(--text-primary);
}

.suite-tab-btn.active {
  color: var(--accent-primary);
}

.suite-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.suite-tab-btn.active::after {
  transform: scaleX(1);
}

.suite-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: var(--accent-primary-alpha-10);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-primary-alpha-25);
  font-weight: 600;
  margin: 0.75rem 0;
}

.suite-content {
  padding: 2.5rem;
}

.suite-panel {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.suite-panel.active {
  display: block;
}

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

/* TAB 1: RISK CALCULATOR STYLE */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-select, .form-input, .form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-alpha-15);
}

/* Calculator Results Display */
.calculator-results {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.risk-level-badge {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-transform: uppercase;
}

.risk-minimal {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-alpha-30);
}

.risk-limited {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid var(--color-info-alpha-30);
}

.risk-high {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-alpha-30);
}

.risk-unacceptable {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-alpha-30);
}

.checklist-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checklist-item svg {
  flex-shrink: 0;
  color: var(--accent-primary);
  margin-top: 0.2rem;
}

/* TAB 2: MONITOR DASHBOARD STYLE */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Model Selector Row */
.model-selector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-select-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.monitor-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
}

.status-active {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-alpha-35);
}

.status-active span {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.metric-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
}

.metric-card.danger::before { background: var(--color-danger); }
.metric-card.warning::before { background: var(--color-warning); }
.metric-card.success::before { background: var(--color-success); }

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.metric-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

/* Model Chart Simulation block */
.chart-container {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Custom SVG-driven simulated line graph */
.simulated-graph {
  flex-grow: 1;
  margin-top: 1.5rem;
  position: relative;
}

.simulated-graph svg {
  width: 100%;
  height: 100%;
}

.graph-path {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.5s ease;
}

.graph-path-secondary {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  transition: d 0.5s ease;
}

/* Sidebar Alerts & Controls */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-panel {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sidebar-panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 250px;
  overflow-y: auto;
}

.alert-item {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.alert-item.danger {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--text-primary);
}

.alert-item.warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning);
  color: var(--text-primary);
}

.alert-item-header {
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.alert-time {
  color: var(--text-muted);
  font-weight: 400;
}

/* Control Switch Styling */
.control-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.switch-label-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.switch-title {
  font-size: 0.875rem;
  font-weight: 600;
}

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

/* Custom Checkbox as Switch */
.switch-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.switch-slider {
  display: block;            /* inline <span> ignores width/height — make it a block */
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.switch-input:checked + .switch-slider {
  background-color: var(--color-success);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-primary-alpha-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Consultation Form UI */
.consultation-form {
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dynamic field states: glow when complete and user has finished typing */
.form-input:user-valid, .form-select:user-valid, .form-textarea:user-valid {
  border-color: var(--color-success);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-column h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-compliance-badges {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-compliance-badges span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-compliance-badges svg {
  color: var(--accent-primary);
}

/* --- Native Dialog Overlay (Success popup) --- */
dialog.success-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 500px;
  width: 90%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  outline: none;
}

dialog.success-dialog::backdrop {
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
}

.success-dialog-content {
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-alpha-25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}

.success-dialog h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
}

.success-dialog p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Responsiveness & Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid, .info-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .calculator-grid, .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .dashboard-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .consultation-form {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Agentic Hub Styling
   ========================================================================== */
.agent-hub-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.agent-card {
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* 1. Terminal Styling */
.terminal-header {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.agent-status-badges {
  display: flex;
  gap: 0.75rem;
}

.agent-status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.agent-status-badge.running {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-alpha-25);
}

.agent-status-badge.running .status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.terminal-body {
  flex-grow: 1;
  background: var(--bg-terminal);
  color: var(--text-terminal); /* Neon Green */
  font-family: 'Courier New', Courier, monospace;
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.terminal-log-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.log-timestamp {
  color: var(--text-terminal-timestamp);
  flex-shrink: 0;
  user-select: none;
}

.log-tag {
  font-weight: 700;
  flex-shrink: 0;
}

.log-tag.crawler { color: var(--color-crawler-log); }
.log-tag.analyst { color: var(--color-analyst-log); }
.log-tag.system { color: var(--color-system-log); }

.log-msg {
  word-break: break-word;
}

/* 2. Chat Q&A Styling */
.chat-header {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary-alpha-15);
  border: 1px solid var(--accent-primary-alpha-25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.agent-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.agent-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.chat-message.agent { align-items: flex-start; }
.chat-message.user { align-items: flex-end; }

.chat-message .message-content {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.agent .message-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.chat-message.user .message-content {
  background: var(--accent-gradient);
  color: var(--color-white);
  border-top-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Chat Thinking Log bubble inside Q&A */
.chat-message .thinking-block {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  background: var(--white-alpha-02);
  border-left: 2px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 85%;
}

.chat-message .thinking-header {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-message .thinking-header svg {
  animation: rotateSpin 1.5s linear infinite;
}

@keyframes rotateSpin {
  100% { transform: rotate(360deg); }
}

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

.chat-input {
  flex-grow: 1;
}

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
}

/* 3. Incident Blog Timeline Styling */
.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 800px;
}

.blog-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  padding-left: 2.5rem;
}

.blog-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 7px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border-color);
  z-index: 1;
}

.timeline-item {
  position: relative;
  animation: slideInTimeline var(--transition-slow) forwards;
}

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

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  z-index: 2;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.timeline-marker.critical { border-color: var(--color-danger); }
.timeline-marker.major { border-color: var(--color-warning); }

.timeline-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
}

.timeline-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.timeline-tag.critical {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-alpha-25);
}

.timeline-tag.major {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-alpha-25);
}

.timeline-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.timeline-sec h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-sec p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.timeline-sec.mitigation p {
  color: var(--color-success);
}

body.light-theme .timeline-sec.mitigation p {
  color: var(--color-mitigation-light);
}

/* Responsiveness for Agent Hub */
@media (max-width: 1024px) {
  .agent-hub-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-card {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .timeline-sections {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .blog-timeline {
    padding-left: 1.75rem;
  }
  
  .blog-timeline::before {
    left: 5px;
  }
  
  .timeline-marker {
    left: -1.75rem;
    width: 12px;
    height: 12px;
    border-width: 3px;
    top: 12px;
  }
  
  .timeline-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Agent Roster Dashboard Styling
   ========================================================================== */
.agent-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.agent-roster-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.agent-roster-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.agent-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.agent-roster-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-roster-avatar.crawler {
  background: var(--accent-primary-alpha-15);
  border: 1px solid var(--accent-primary-alpha-30);
  color: var(--accent-primary);
}

.agent-roster-avatar.analyst {
  background: var(--accent-secondary-alpha-15);
  border: 1px solid var(--accent-secondary-alpha-30);
  color: var(--accent-secondary);
}

.agent-roster-avatar.advocate {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-alpha-30);
  color: var(--color-success);
}

.agent-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.agent-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.agent-id {
  font-size: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-muted);
}

.agent-pulse-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.agent-pulse-badge.active {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-alpha-25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.agent-role-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: auto;
}

.agent-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.agent-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
  max-width: 65%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.text-glow {
  color: var(--accent-primary);
}

.agent-stat-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white-alpha-02);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.counter-label {
  font-size: 0.775rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .agent-roster-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


