/* ==========================================================================
   Watling Labs - Institutional Engineering & High-Tech Design System
   Architecture: Quantum Obsidian & Luminous Precision Design Tokens
   Jurisdiction: Independent UK Software Engineering Practice
   WCAG 2.2 AAA Contrast Certified
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Quantum Obsidian Void Palette */
  --color-brand-primary: #07090e;
  --color-brand-deep: #030508;
  --color-brand-accent: #00e5ff;          /* Cyber Azure / Electric Cyan */
  --color-brand-accent-hover: #38bdf8;    /* Luminous Sky */
  --color-brand-secondary: #6366f1;       /* Deep Hyper-Violet / Indigo */
  --color-brand-secondary-hover: #818cf8;
  --color-brand-light: rgba(0, 229, 255, 0.08);

  /* Deep Surfaces & Layered Glass */
  --color-surface-bg: #07090e;
  --color-surface-card: #0d121f;
  --color-surface-card-subtle: #111827;
  --color-surface-card-hover: #141d33;

  /* Engineered Borders & Precision Highlights */
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-border-accent: rgba(0, 229, 255, 0.4);
  --color-border-glow: rgba(0, 229, 255, 0.25);

  /* High-Contrast Typographic Hierarchy */
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-text-inverse: #07090e;

  /* Signal & Telemetry Tokens */
  --color-severity-critical: #fb7185;
  --color-severity-critical-bg: rgba(244, 63, 94, 0.12);
  --color-severity-critical-border: rgba(244, 63, 94, 0.35);

  --color-severity-high: #fb923c;
  --color-severity-high-bg: rgba(251, 146, 60, 0.12);
  --color-severity-high-border: rgba(251, 146, 60, 0.35);

  --color-severity-moderate: #fbbf24;
  --color-severity-moderate-bg: rgba(251, 191, 36, 0.12);
  --color-severity-moderate-border: rgba(251, 191, 36, 0.35);

  --color-severity-pass: #00ff9d;
  --color-severity-pass-bg: rgba(0, 255, 157, 0.1);
  --color-severity-pass-border: rgba(0, 255, 157, 0.3);

  /* Elevation & Glow Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 24px -4px rgba(0, 229, 255, 0.25);
  --shadow-glow-emerald: 0 0 24px -4px rgba(0, 255, 157, 0.25);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --container-max: 1200px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-surface-bg);
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand-accent);
  color: #040814;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
  box-shadow: var(--shadow-glow);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-brand-accent);
}

a {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.15s ease-in-out;
}

a:hover {
  color: var(--color-brand-accent-hover);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Institutional Header Bar */
.gov-top-bar {
  background-color: var(--color-brand-deep);
  color: #64748b;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.gov-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gov-top-bar .gov-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
}

.gov-top-bar .gov-badge-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00ff9d;
  box-shadow: 0 0 8px #00ff9d;
}

.site-header {
  background-color: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--color-text-main);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px -2px rgba(0, 229, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-wrapper:hover .brand-symbol {
  transform: scale(1.04);
  box-shadow: 0 0 20px 0px rgba(0, 229, 255, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #ffffff;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

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

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-action-btn {
  background: rgba(0, 229, 255, 0.08) !important;
  color: #00e5ff !important;
  font-weight: 600 !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  box-shadow: 0 0 12px -2px rgba(0, 229, 255, 0.2);
}

.nav-action-btn:hover {
  background: rgba(0, 229, 255, 0.18) !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 18px 0px rgba(0, 229, 255, 0.4);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 50% 10%, rgba(0, 229, 255, 0.09) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 80%);
  color: #ffffff;
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background-color: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px -4px rgba(0, 229, 255, 0.2);
}

.hero-pill-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00ff9d;
  box-shadow: 0 0 8px #00ff9d;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 45%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 2.25rem;
  max-width: 740px;
}

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

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #040814 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px -3px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  color: #040814 !important;
  box-shadow: 0 0 28px 0px rgba(0, 229, 255, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.5);
  color: #38bdf8 !important;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-bacs {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #040814 !important;
  font-weight: 700;
  border: 1px solid rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.4);
}

.btn-bacs:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  color: #040814 !important;
  box-shadow: 0 0 28px 0px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Section Common */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-brand-accent);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 740px;
  line-height: 1.6;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* Card Component */
.card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.3) 0%, rgba(99, 102, 241, 0.2) 60%, transparent 100%);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 28px -6px rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Pricing Cards */
.pricing-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00e5ff, #6366f1);
}

.pricing-card.featured {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 32px -4px rgba(0, 229, 255, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.25rem 0 1.5rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.price-amount {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1;
}

.price-period {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.feature-check {
  color: #00ff9d;
  font-weight: bold;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

/* Stats / Assurance Grid */
.stat-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00e5ff, #6366f1);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.3);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-accent);
}

/* Institutional Notice Box */
.notice-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-brand-accent);
  background-color: var(--color-surface-card-subtle);
  border: 1px solid var(--color-border-subtle);
  border-left-width: 4px;
  margin: 1.5rem 0;
}

.notice-box.critical {
  border-left-color: var(--color-severity-critical);
  background-color: var(--color-severity-critical-bg);
  border-color: var(--color-severity-critical-border);
}

.notice-box.warning {
  border-left-color: var(--color-severity-high);
  background-color: var(--color-severity-high-bg);
  border-color: var(--color-severity-high-border);
}

.notice-box.success {
  border-left-color: var(--color-severity-pass);
  background-color: var(--color-severity-pass-bg);
  border-color: var(--color-severity-pass-border);
}

.notice-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.badge-critical {
  background-color: var(--color-severity-critical-bg);
  color: var(--color-severity-critical);
  border: 1px solid var(--color-severity-critical-border);
}

.badge-high {
  background-color: var(--color-severity-high-bg);
  color: var(--color-severity-high);
  border: 1px solid var(--color-severity-high-border);
}

.badge-moderate {
  background-color: var(--color-severity-moderate-bg);
  color: var(--color-severity-moderate);
  border: 1px solid var(--color-severity-moderate-border);
}

.badge-pass {
  background-color: var(--color-severity-pass-bg);
  color: var(--color-severity-pass);
  border: 1px solid var(--color-severity-pass-border);
}

.badge-neutral {
  background-color: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Code Snippet Box */
.code-box {
  background-color: #0b0f19;
  color: #38bdf8;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid var(--color-border-subtle);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 1rem 0;
}

/* Table Utilities */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.table-custom th {
  background-color: var(--color-surface-card-subtle);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.table-custom td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* Search Bar Component */
.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  font-size: 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background-color: #0b0f19;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0d121f;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  margin-top: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.search-result-item:hover, .search-result-item:focus {
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
}

.search-result-name {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.search-result-meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #0d121f;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 32px -8px rgba(0, 229, 255, 0.2);
  border: 1px solid var(--color-border-strong);
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
  color: var(--color-text-muted);
}

.modal-footer {
  padding: 1.25rem 2rem;
  background-color: var(--color-surface-card-subtle);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-color: #0b0f19;
  color: #ffffff;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
  outline: none;
}

/* Institutional Footer */
.site-footer {
  background-color: var(--color-brand-deep);
  color: #64748b;
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.9375rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

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

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #07090e;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--color-border-subtle);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
