/* =============================================
   PharmaRegAI — Core Design System
   Shared across ALL pages
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* --- Brand Gradient --- */
  --blue-start: #1a56db;
  --blue-end: #06b6d4;
  --gradient-primary: linear-gradient(135deg, var(--blue-start), var(--blue-end));

  /* --- Dark Section --- */
  --dark-bg: #050D1F;
  --dark-bg-alt: #0B1628;
  --dark-surface: rgba(255,255,255,0.04);
  --dark-border: rgba(255,255,255,0.08);
  --dark-border-hover: rgba(255,255,255,0.16);
  --text-dark-primary: #E8EDF8;
  --text-dark-muted: #8A9BBE;

  /* --- Light Section --- */
  --light-bg: #F4F7FF;
  --light-bg-alt: #FFFFFF;
  --light-surface: #FFFFFF;
  --light-border: rgba(10,47,255,0.08);
  --text-light-primary: #0D1B3E;
  --text-light-muted: #4A5E8A;

  /* --- States --- */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);

  /* --- Glass --- */
  --glass-dark: rgba(255, 255, 255, 0.05);
  --glass-dark-border: rgba(255, 255, 255, 0.1);
  --glass-dark-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  --glass-light: rgba(255, 255, 255, 0.7);
  --glass-light-border: rgba(255, 255, 255, 0.9);

  /* --- Cards --- */
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 32px rgba(10,47,255,0.08);
  --shadow-card-hover: 0 8px 48px rgba(10,47,255,0.14);

  /* --- Typography --- */
  --font-display: 'Syne', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-display: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  --fs-h1: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  --fs-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --fs-h4: clamp(1.1rem, 1vw + 0.5rem, 1.35rem);
  --fs-body: clamp(1rem, 0.5vw + 0.75rem, 1.125rem);
  --fs-small: clamp(0.85rem, 0.4vw + 0.65rem, 0.95rem);
  --fs-xs: clamp(0.75rem, 0.3vw + 0.55rem, 0.85rem);

  /* --- Spacing --- */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2rem, 4vw, 4rem);
  --space-2xl: clamp(3rem, 6vw, 6rem);
  --space-3xl: clamp(4rem, 8vw, 8rem);

  /* --- Transitions --- */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout --- */
  --max-width: 1280px;
  --header-height: 72px;
}

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-light-primary);
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.display { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -0.03em; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--fs-h4); }

p { max-width: 68ch; line-height: 1.7; }

.text-small { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); }
.font-mono { font-family: var(--font-mono); }

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================
   SECTION SYSTEM (Dark / Light alternation)
   ============================================= */
.section-dark {
  background: var(--dark-bg);
  color: var(--text-dark-primary);
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-dark-primary);
}

.section-dark p, .section-dark li {
  color: var(--text-dark-muted);
}

.section-light {
  background: var(--light-bg);
  color: var(--text-light-primary);
  padding-block: var(--space-3xl);
  position: relative;
}

.section-light.alt {
  background: var(--light-bg-alt);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4 {
  color: var(--text-light-primary);
}

.section-light p, .section-light li {
  color: var(--text-light-muted);
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 720px;
}

.section-header p {
  margin-top: var(--space-sm);
}

/* =============================================
   SECTION BADGE
   ============================================= */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-dark .section-badge {
  color: var(--blue-end);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-light .section-badge {
  color: var(--blue-start);
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.15);
}

.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}

.section-dark .section-badge::before { background: var(--blue-end); }
.section-light .section-badge::before { background: var(--blue-start); }

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

/* =============================================
   GRID SYSTEM
   ============================================= */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text-light-primary);
  background: transparent;
  border: 1.5px solid rgba(13, 27, 62, 0.2);
}

.btn-ghost:hover {
  border-color: var(--blue-start);
  color: var(--blue-start);
  background: rgba(26, 86, 219, 0.06);
}

.section-dark .btn-ghost {
  color: var(--text-dark-primary);
  border-color: rgba(255,255,255,0.2);
}

.section-dark .btn-ghost:hover {
  border-color: var(--blue-end);
  color: var(--blue-end);
  background: rgba(6, 182, 212, 0.08);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* =============================================
   GLASS CARD (Dark sections)
   ============================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

/* =============================================
   LIGHT CARD (Light sections)
   ============================================= */
.light-card {
  background: var(--light-surface);
  border: 1px solid rgba(10, 47, 255, 0.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.light-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* =============================================
   FEATURE CARD
   ============================================= */
.feature-card {
  padding: var(--space-lg);
  text-align: left;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.section-dark .feature-card-icon {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--blue-end);
}

.section-light .feature-card-icon {
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.15);
  color: var(--blue-start);
}

.section-dark .glass-card:hover .feature-card-icon,
.section-dark .feature-card:hover .feature-card-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.section-light .light-card:hover .feature-card-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.feature-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

/* =============================================
   STAT CARD
   ============================================= */
.stat-card {
  padding: var(--space-lg);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.section-dark .stat-value { color: var(--blue-end); }
.section-light .stat-value { color: var(--blue-start); }

.stat-label {
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 4px;
}

.section-dark .stat-label { color: var(--text-dark-primary); }
.section-light .stat-label { color: var(--text-light-primary); }

.stat-desc {
  font-size: var(--fs-xs);
}

/* =============================================
   COMPARISON TABLE
   ============================================= */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  min-width: 600px;
}

.comparison-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-dark .comparison-table thead {
  background: rgba(6, 182, 212, 0.08);
}
.section-dark .comparison-table thead th { color: var(--blue-end); }
.section-dark .comparison-table td { border-bottom: 1px solid var(--dark-border); color: var(--text-dark-muted); }

.section-light .comparison-table thead {
  background: rgba(26, 86, 219, 0.06);
}
.section-light .comparison-table thead th { color: var(--blue-start); }
.section-light .comparison-table td { border-bottom: 1px solid rgba(10,47,255,0.06); color: var(--text-light-muted); }

.comparison-table td {
  padding: 14px 20px;
}

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

.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--error); font-weight: 700; opacity: 0.7; }

/* Highlighted column (PharmaRegAI) */
.comparison-table th.highlight-col {
  background: var(--gradient-primary);
  color: #fff !important;
}

.comparison-table td.highlight-col {
  background: rgba(26, 86, 219, 0.03);
}

/* =============================================
   TIMELINE STEP
   ============================================= */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.timeline-step {
  flex: 1;
  text-align: center;
  padding: var(--space-md);
  position: relative;
}

.timeline-step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-body);
  margin: 0 auto var(--space-sm);
  position: relative;
  z-index: 1;
}

.section-dark .timeline-step-number {
  background: var(--gradient-primary);
  color: #fff;
}

.section-light .timeline-step-number {
  background: var(--gradient-primary);
  color: #fff;
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
}

.section-dark .timeline-step::after {
  background: linear-gradient(to right, var(--blue-end), rgba(6,182,212,0.2));
}

.section-light .timeline-step::after {
  background: linear-gradient(to right, var(--blue-start), rgba(26,86,219,0.15));
}

.timeline-step:last-child::after { display: none; }

.timeline-step h4 {
  font-size: var(--fs-body);
  margin-bottom: var(--space-xs);
}

.timeline-step p {
  font-size: var(--fs-small);
  margin-inline: auto;
  max-width: 220px;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: var(--space-md);
  align-items: start;
}

.faq-accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-dark .faq-accordion {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
}

.section-light .faq-accordion {
  background: var(--light-surface);
  border: 1px solid rgba(10,47,255,0.06);
  box-shadow: var(--shadow-card);
}

.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-body);
  list-style: none;
  transition: color var(--transition-fast);
}

.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.section-dark .faq-accordion summary { color: var(--text-dark-primary); }
.section-dark .faq-accordion summary::after { color: var(--blue-end); }
.section-light .faq-accordion summary { color: var(--text-light-primary); }
.section-light .faq-accordion summary::after { color: var(--blue-start); }

.faq-accordion[open] summary::after { transform: rotate(45deg); }

.faq-accordion summary:hover {
  color: var(--blue-start);
}
.section-dark .faq-accordion summary:hover { color: var(--blue-end); }

.faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: var(--fs-small);
  line-height: 1.7;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out), opacity 0.3s ease;
}

/* =============================================
   TAG CHIP
   ============================================= */
.tag-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.section-dark .tag-chip {
  background: rgba(6, 182, 212, 0.1);
  color: var(--blue-end);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-light .tag-chip {
  background: rgba(26, 86, 219, 0.08);
  color: var(--blue-start);
  border: 1px solid rgba(26, 86, 219, 0.15);
}

/* =============================================
   DIVIDER GRADIENT
   ============================================= */
.divider-gradient {
  height: 2px;
  border: none;
  background: var(--gradient-primary);
  opacity: 0.3;
  margin: var(--space-xl) 0;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 13, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger .dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: rgba(11, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast),
              visibility var(--transition-fast);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  white-space: nowrap;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-login {
  padding: 8px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.header-cta {
  padding: 8px 22px;
  font-size: var(--fs-xs);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: all var(--transition-fast);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle.active span:nth-child(1) {
  top: 21px; transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  top: 21px; transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 13, 31, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: var(--space-lg);
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile .nav-link {
  display: block;
  font-size: var(--fs-body);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-mobile .mobile-dropdown-items {
  padding-left: var(--space-md);
  display: none;
}

.nav-mobile .mobile-dropdown-items.open {
  display: block;
}

.nav-mobile .mobile-dropdown-items .nav-link {
  font-size: var(--fs-small);
  padding: 10px 20px;
  color: rgba(255,255,255,0.6);
}

.nav-mobile .btn {
  margin-top: var(--space-md);
  width: 100%;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-dark-primary);
  border-top: 1px solid var(--dark-border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  max-width: 340px;
  color: var(--text-dark-muted);
}

.footer-col h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark-muted);
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  font-size: var(--fs-small);
  color: rgba(232, 237, 248, 0.6);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--blue-end); }

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-dark-muted);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  color: var(--text-dark-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--blue-end); }

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-border);
  color: var(--text-dark-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--blue-end);
  color: var(--blue-end);
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-dark .form-label { color: var(--text-dark-primary); }
.section-light .form-label { color: var(--text-light-primary); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-small);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.section-light .form-input,
.section-light .form-select,
.section-light .form-textarea {
  color: var(--text-light-primary);
  background: #fff;
  border: 1.5px solid rgba(13, 27, 62, 0.15);
}

.section-light .form-input:focus,
.section-light .form-select:focus,
.section-light .form-textarea:focus {
  border-color: var(--blue-start);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.section-dark .form-input,
.section-dark .form-select,
.section-dark .form-textarea {
  color: var(--text-dark-primary);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--dark-border);
}

.section-dark .form-input:focus,
.section-dark .form-select:focus,
.section-dark .form-textarea:focus {
  border-color: var(--blue-end);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light-muted);
  opacity: 0.7;
}

.section-dark .form-input::placeholder,
.section-dark .form-textarea::placeholder {
  color: var(--text-dark-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A5E8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  .reveal-d1 { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 5% entry 35%; }
  .reveal-d2 { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 10% entry 40%; }
  .reveal-d3 { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 15% entry 45%; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fallback: IntersectionObserver adds .is-visible */
@supports not (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =============================================
   FOCUS STYLES
   ============================================= */
:focus-visible {
  outline: 2px solid var(--blue-end);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  font-size: var(--fs-small);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-sm); }

/* =============================================
   CTA STRIP (used between sections)
   ============================================= */
.cta-strip {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--dark-border);
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.15), transparent 60%);
}

.cta-strip h2 {
  color: #fff;
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.cta-strip p {
  color: rgba(255,255,255,0.8);
  margin-inline: auto;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-strip .btn-group {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-strip .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.cta-strip .btn-ghost:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--blue-end);
  color: var(--blue-end);
}

/* =============================================
   PULL QUOTE
   ============================================= */
.pull-quote {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  position: relative;
}

.section-dark .pull-quote {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pull-quote blockquote {
  font-size: var(--fs-h4);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.section-dark .pull-quote blockquote { color: var(--text-dark-primary); }

.pull-quote cite {
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: 600;
}

.section-dark .pull-quote cite { color: var(--blue-end); }

.pull-quote::before {
  content: "\201C";
  font-size: 5rem;
  font-family: Georgia, serif;
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  line-height: 1;
  opacity: 0.15;
}

.section-dark .pull-quote::before { color: var(--blue-end); }

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* ≤ 1024px: Tablet landscape */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-login { display: none; }
  .header-cta { display: none; }
  .timeline { flex-direction: column; }
  .timeline-step::after {
    top: auto;
    bottom: -1px;
    left: 38px;
    right: auto;
    width: 2px;
    height: 24px;
  }
}

/* ≤ 768px: Tablet */
@media (max-width: 768px) {
  .section-dark, .section-light {
    padding-block: var(--space-2xl);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  .footer-bottom-links { justify-content: center; }
}

/* ≤ 480px: Small mobile */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ≥ 1440px */
@media (min-width: 1440px) {
  :root { --max-width: 1360px; }
}
