/* ============================================================
   AEVIALAB.COM — SHARED DESIGN SYSTEM
   Editorial-minimal: Instrument Serif display + Inter Tight body
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --color-bg: #FBFBFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2F4F2;
  --color-text: #14201C;
  --color-text-secondary: #5A6661;
  --color-text-tertiary: #8B948F;
  --color-accent: #0E7A68;
  --color-accent-hover: #0F8C77;
  --color-accent-light: #E6F1EE;
  --color-accent-gradient: linear-gradient(135deg, #0A6655 0%, #14A088 100%);
  --color-dark: #1D1D1F;
  --color-dark-surface: #161617;
  --color-dark-surface-alt: #2C2C2E;
  --color-border: #DFE3E0;
  --color-border-light: #ECEFEC;
  --color-success: #30D158;
  --color-warm: #FF9F0A;
  --color-purple: #BF5AF2;
  --color-pink: #FF375F;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 28px;
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.06);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1400px;
  --max-width-narrow: 800px;
  --max-width-wide: 1600px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.container--wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ── TYPOGRAPHY ── */
.heading-hero {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8.5vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.heading-md {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-lg {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.text-base {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  letter-spacing: -0.003em;
}

.text-sm {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.heading-hero em,
.heading-xl em,
.heading-lg em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
}
.btn--dark:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--color-accent); }

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ── NAVIGATION (Floating Pill) ── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(210, 210, 215, 0.45);
  border-radius: 980px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.nav__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-right: 12px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__links > li {
  position: relative;
}

.nav__links a,
.nav__links .nav__dropdown-trigger {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 980px;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
}

.nav__links a:hover,
.nav__links a.active,
.nav__links .nav__dropdown-trigger:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

/* Dropdown arrow */
.nav__dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
}

/* Dropdown panel */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(210, 210, 215, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  list-style: none;
}

.nav__links > li:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav__dropdown a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  padding: 8px;
  color: var(--color-text);
}

/* Mobile nav overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

.nav__mobile-menu a:hover {
  color: var(--color-accent);
}

.nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    left: 16px;
    right: 16px;
    transform: none;
  }
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 0; }
  .stats-bar { padding: 100px 0 32px; }
  .btn--lg { padding: 14px 28px; font-size: 15px; }
  .btn { white-space: nowrap; font-size: 14px; }
  .placeholder-hero { padding: 140px 0 80px; }
  .gi-hero { padding: 120px 0 60px; }
  .legal { padding: 100px 0 60px; }
  .faq-page { padding: 100px 0 60px; }
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--dark {
  background: var(--color-dark);
  color: #fff;
}

.section--dark .heading-xl,
.section--dark .heading-lg,
.section--dark .heading-md,
.section--dark .heading-sm {
  color: #fff;
}

.section--dark .text-lg,
.section--dark .text-base {
  color: rgba(255,255,255,0.7);
}

.section--dark .label {
  color: rgba(255,255,255,0.55);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section__header .label {
  margin-bottom: 16px;
  display: block;
}

.section__header .heading-xl {
  margin-bottom: 16px;
}

/* ── HERO (Corporate) ── */
.hero {
  padding: 140px 0 0;
  text-align: center;
  background: var(--color-bg);
}

.hero__title {
  max-width: 960px;
  margin: 0 auto 20px;
}

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

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 0;
  font-weight: 400;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 64px auto 0;
  text-align: center;
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__feature-icon {
  color: var(--color-text);
  margin-bottom: 4px;
}

.hero__feature-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.015em;
  font-style: italic;
}

.hero__feature-desc {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
  max-width: 220px;
}

.hero__media {
  max-width: 100%;
  margin: 64px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: hidden;
  background: var(--color-surface-alt);
}

@media (max-width: 768px) {
  .hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    margin-top: 48px;
  }
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 120px 0 40px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-bar__number {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.stats-bar__label {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── STORY BLOCK (Text + Media side-by-side) ── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story--reverse {
  direction: rtl;
}

.story--reverse > * {
  direction: ltr;
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story__content .label {
  display: block;
}

.story__content .heading-lg {
  margin: 0;
}

.story__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.story__stat-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}

.story__stat-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.story__media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 4 / 3;
}

.story__media img,
.story__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  border: 2px dashed var(--color-border-light);
  border-radius: var(--radius-2xl);
  min-height: 300px;
}

@media (max-width: 768px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story--reverse {
    direction: ltr;
  }
}

/* ── QUOTE BLOCK ── */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-block__text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--color-text);
  font-style: italic;
}

.quote-block__source {
  margin-top: 24px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── SOLUTION BANNERS (Homepage) ── */
.solution-banners {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 clamp(16px, 3vw, 48px);
}

.solution-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  color: #fff;
  transition: border-radius 0.05s linear, transform var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: margin, border-radius;
}

.solution-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.solution-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-banner:hover .solution-banner__img {
  transform: scale(1.03);
}

.solution-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.solution-banner__content {
  position: relative;
  z-index: 2;
  padding: 64px 48px;
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-banner__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.solution-banner__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}

.solution-banner__desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 520px;
}

.solution-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 28px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 980px;
  transition: all var(--transition-fast);
}

.solution-banner:hover .solution-banner__cta {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .solution-banner {
    min-height: 400px;
  }
  .solution-banner__content {
    padding: 40px 28px;
  }
}

/* ── ROUTING GRID (Legacy) ── */
.routing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.routing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 44px 40px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.routing-card__label {
  display: block;
  margin-bottom: 20px;
}

.routing-card__problem {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.routing-card__solution {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 28px;
  font-weight: 500;
}

.routing-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.routing-card__cta:hover {
  gap: 10px;
}

.routing-card__cta::after {
  content: '\2192';
}

@media (max-width: 768px) {
  .routing-grid {
    grid-template-columns: 1fr;
  }
  .routing-card {
    padding: 32px 28px;
  }
}

/* ── PIPELINE (Dark CTA Section) ── */
.pipeline {
  padding: 120px 0;
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  border-bottom: 1px solid var(--color-dark-surface-alt);
}

.pipeline .heading-xl {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 20px;
}

.pipeline .text-lg {
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 62px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-bottom: 30px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.018em;
}

.footer__brand-desc {
  font-size: 15px;
  line-height: 1.66;
  color: rgba(255,255,255,0.58);
  max-width: 620px;
  text-wrap: pretty;
}

.footer__contact {
  margin-top: 18px;
}

.footer__contact a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition-fast);
}

.footer__contact a:hover {
  color: #fff;
}

.footer__secondary {
  justify-self: end;
  min-width: 220px;
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.86);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__secondary {
    justify-self: start;
    min-width: 0;
  }
  .footer__brand {
    font-size: 30px;
  }
  .footer__brand-desc {
    font-size: 15px;
    max-width: none;
  }
  .footer__links a {
    font-size: 16px;
  }
  .footer__bottom {
    padding-top: 14px;
  }
  .footer__copyright { font-size: 13px; }
}

@media (max-width: 600px) {
  .footer {
    padding: 54px 0 20px;
  }
  .footer__brand {
    font-size: 28px;
  }
  .footer__copyright { font-size: 12px; }
}

/* ── LEGAL PAGE STYLES ── */
.legal {
  padding: 120px 0 80px;
}

.legal h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal .subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 8px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
}

.legal p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 12px 0;
}

.legal ul, .legal ol {
  padding-left: 24px;
  margin: 12px 0;
}

.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.legal a {
  color: var(--color-accent);
}

.legal a:hover {
  text-decoration: underline;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.legal th, .legal td {
  border: 1px solid var(--color-border-light);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

.legal th {
  background: var(--color-surface-alt);
  font-weight: 600;
}

.legal .highlight {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 4px;
}

.legal strong {
  color: var(--color-text);
}

/* ── FAQ PAGE STYLES ── */
.faq-page {
  padding: 120px 0 80px;
}

.faq-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.faq-toc h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.faq-toc ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.faq-toc li { margin-bottom: 6px; }

.faq-toc a {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
}

.faq-toc a:hover { text-decoration: underline; }

.faq-section-heading {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child { border-bottom: none; }

.faq-item details { padding: 0; }

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
}

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

.faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item details[open] > summary::before {
  content: '\2212';
  background: var(--color-accent);
  color: #fff;
}

.faq-item details[open] > summary {
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 0 18px 32px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong { color: var(--color-text); }
.faq-answer a { color: var(--color-accent); }
.faq-answer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .faq-toc ul { columns: 1; }
}

/* ── SUPPORT PAGE STYLES ── */
.support-contact {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  margin-bottom: 40px;
  border-radius: 4px;
  font-size: 15px;
}

.support-contact a {
  color: var(--color-accent);
  font-weight: 600;
}

.support-contact a:hover { text-decoration: underline; }

/* ── PLACEHOLDER PAGE (Coming Soon) ── */
.placeholder-hero {
  padding: 180px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.placeholder-hero .label {
  display: block;
  margin-bottom: 16px;
}

.placeholder-hero .heading-xl {
  max-width: 720px;
  margin: 0 auto 20px;
}

.placeholder-hero .text-lg {
  max-width: 600px;
  margin: 0 auto 40px;
}

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

/* ── GLOBAL INTELLIGENCE PAGE ── */
.gi-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.gi-hero .label {
  display: block;
  margin-bottom: 16px;
}

.gi-category .label {
  display: block;
  margin-bottom: 12px;
}

.gi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gi-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.gi-card__preview {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
}

.gi-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gi-card:hover .gi-card__preview img {
  transform: scale(1.05);
}

.gi-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gi-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.gi-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.gi-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.gi-card__link::after {
  content: ' \2192';
}

.gi-card:hover .gi-card__link {
  color: var(--color-accent-hover);
}

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

@media (max-width: 600px) {
  .gi-grid {
    grid-template-columns: 1fr;
  }
  .gi-hero {
    padding: 120px 0 60px;
  }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ── LANGUAGE SWITCHER BADGE ── */
.lang-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.lang-switch:hover {
  background: var(--color-surface-alt);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .lang-switch {
    top: 72px;
    right: 16px;
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ── Cookie Consent Bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-bar--visible {
  transform: translateY(0);
}
.cookie-bar--hidden {
  transform: translateY(100%);
}
.cookie-bar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-bar__text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}
.cookie-bar__link {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-bar__link:hover {
  color: var(--color-accent-hover);
}
.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-bar__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-bar__btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.cookie-bar__btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 2px 8px rgba(14,159,138,0.25);
}
.cookie-bar__btn--secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cookie-bar__btn--secondary:hover {
  background: var(--color-border-light);
}
@media (max-width: 600px) {
  .cookie-bar__inner {
    padding: 14px 16px;
    gap: 14px;
  }
  .cookie-bar__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ────────────────────────────────────────────────────────────
   MEDIA PLACEHOLDER — clean blank panel for forthcoming images
   ──────────────────────────────────────────────────────────── */
.media-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #F2F4F2 0%, #E6EBE8 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text-tertiary);
}
.media-placeholder--wide  { aspect-ratio: 16 / 9; }
.media-placeholder--tall  { aspect-ratio: 3 / 4; }
.media-placeholder--square{ aspect-ratio: 1 / 1; }
.media-placeholder--dark {
  background: linear-gradient(135deg, #1B2A26 0%, #14201C 100%);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
}
.media-placeholder__icon {
  width: 28px; height: 28px;
  opacity: 0.55;
}
.media-placeholder__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.media-placeholder__sublabel {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.media-placeholder--dark .media-placeholder__sublabel {
  color: rgba(255,255,255,0.65);
}

/* Subtle grid texture for placeholders */
.media-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,32,28,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,32,28,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.media-placeholder--dark::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Section header refinements (smaller, more editorial) */
.section__header { max-width: 760px; }
.section__header .label { margin-bottom: 20px; display: inline-block; }

/* Soften card borders globally for the minimal look */
.pillar, .modality, .gi-card, .routing-card,
.policy-card, .term, .app-card {
  box-shadow: none;
  border-color: var(--color-border-light);
}

/* Editorial logo treatment */
.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nav__logo::after {
  content: '';
}
