/*
 * Design Brief: Aivortex ← inspired by https://viktor.com/
 *
 * Structure: hero-statement → platform-trifold → comparison-table →
 *   testimonial-strip → how-it-works-steps → use-case-tabs → cta-gradient-band → footer
 * Layout types: typography-hero, trifold-cards, comparison-table, quote-carousel,
 *   numbered-steps, tabbed-use-cases, gradient-cta-band, footer-multi-column
 *
 * Hero: centered typography-led; warm radial gradient blur; dual CTAs; trust badges
 * Tokens derived from Viktor palette (peach/lilac/violet/navy) adapted for Aivortex
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

:root {
  /* Backgrounds — warm light bands like Viktor */
  --color-bg: #FAF8F5;
  --color-bg-alt: #F3EFFF;
  --color-surface: #FFFFFF;
  --color-surface-dark: #1B182A;

  /* Text */
  --color-text: #1B182A;
  --color-text-muted: #5C5868;
  --color-text-on-dark: #FAF8F5;
  --color-text-muted-on-dark: #B8B4C4;

  /* Accent — Viktor-derived violet/lilac/peach/navy */
  --color-accent: #6748FD;
  --color-accent-hover: #5538E0;
  --color-accent-secondary: #947FFF;
  --color-accent-warm: #FFBD9E;
  --color-navy: #150079;
  --color-border: #E8E4DF;

  /* Gradients */
  --gradient-radial: radial-gradient(ellipse 80% 60% at 50% -10%, #FFBD9E 0%, #947FFF 35%, #6748FD 65%, #150079 100%);
  --gradient-cta: linear-gradient(135deg, #150079 0%, #6748FD 45%, #947FFF 100%);
  --gradient-soft: linear-gradient(180deg, rgba(255, 189, 158, 0.15) 0%, rgba(148, 127, 255, 0.08) 50%, transparent 100%);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --text-display: clamp(2.75rem, 6vw, 4.75rem);
  --text-h2: clamp(2rem, 4vw, 3rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --leading-tight: 1.08;
  --leading-body: 1.65;

  /* Spacing & layout */
  --space-section: clamp(4rem, 8vw, 7rem);
  --space-grid: clamp(1.5rem, 3vw, 2.5rem);
  --container-max: 72rem;
  --container-narrow: 56rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 24, 42, 0.06);
  --shadow-md: 0 8px 32px rgba(27, 24, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(103, 72, 253, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--container-narrow));
  margin-inline: auto;
}

/* ── Header / Navigation ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1rem;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-logo img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  gap: 1.75rem;
}

.site-nav__links a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background var(--transition-base);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-small);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.btn--accent {
  background: var(--color-accent);
  color: white;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--light {
  background: white;
  color: var(--color-navy);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Hero: typography-statement ── */
.hero {
  position: relative;
  padding-top: calc(var(--space-section) + 3rem);
  padding-bottom: var(--space-section);
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: var(--gradient-radial);
  opacity: 0.35;
  filter: blur(80px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.hero__stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-inline: auto 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero__badges svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.hero__visual {
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__visual-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  min-height: 320px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__sidebar {
  padding: 1.25rem;
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.hero__sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted-on-dark);
  margin-bottom: 1rem;
}

.hero__channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  opacity: 0.7;
}

.hero__channel.is-active {
  background: rgba(103, 72, 253, 0.25);
  opacity: 1;
}

.hero__channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-secondary);
}

.hero__chat {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.hero__message--user {
  align-self: flex-end;
  background: var(--color-accent);
  color: white;
}

.hero__message--ai {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero__message-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

/* ── Trust logos ── */
.trust-bar {
  padding-block: 2.5rem;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.trust-bar__label {
  text-align: center;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-bar__logos span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
  opacity: 0.55;
  letter-spacing: -0.01em;
}

/* ── Platform trifold ── */
.platform {
  padding-block: var(--space-section);
  background: var(--gradient-soft);
}

.section-eyebrow {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin-bottom: 3rem;
}

.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid);
}

.platform__card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.platform__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.platform__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 189, 158, 0.3), rgba(148, 127, 255, 0.2));
  color: var(--color-navy);
}

.platform__card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.platform__card p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: 1.25rem;
}

.platform__card .btn {
  padding: 0.5rem 0;
  font-size: var(--text-small);
  color: var(--color-accent);
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.platform__card .btn:hover {
  border-bottom-color: var(--color-accent);
  transform: none;
  box-shadow: none;
}

/* ── Comparison table ── */
.comparison {
  padding-block: var(--space-section);
  background: var(--color-surface);
}

.comparison__header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto 3rem;
}

.comparison__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison__table th,
.comparison__table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
}

.comparison__table th {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-bg-alt);
}

.comparison__table th:first-child { width: 22%; }
.comparison__table tr:last-child td { border-bottom: none; }

.comparison__table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.comparison__table td:nth-child(2) {
  color: var(--color-text-muted);
}

.comparison__table td:last-child {
  color: var(--color-navy);
  font-weight: 500;
  background: rgba(103, 72, 253, 0.04);
}

.comparison__brand {
  color: var(--color-accent);
}

/* ── Testimonials ── */
.testimonials {
  padding-block: var(--space-section);
  background: var(--color-bg-alt);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid);
}

.testimonial {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.testimonial__quote {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.testimonial__quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0;
  color: var(--color-accent-secondary);
  display: block;
  margin-bottom: 0.75rem;
}

.testimonial__author {
  font-weight: 600;
  font-size: var(--text-small);
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.testimonial__metric {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-navy);
  background: rgba(255, 189, 158, 0.35);
  border-radius: var(--radius-pill);
}

/* ── How it works ── */
.how-it-works {
  padding-block: var(--space-section);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid);
  counter-reset: step;
}

.how-step {
  position: relative;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-secondary);
  opacity: 0.5;
  margin-bottom: 1rem;
  line-height: 1;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.how-step p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* ── Use cases tabs ── */
.solutions {
  padding-block: var(--space-section);
  background: var(--color-surface);
}

.solutions__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.solutions__tab {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  transition: background var(--transition-base), color var(--transition-base);
}

.solutions__tab:hover {
  color: var(--color-text);
}

.solutions__tab.is-active {
  background: var(--color-text);
  color: var(--color-bg);
}

.solutions__panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid);
  align-items: start;
}

.solutions__panel.is-active {
  display: grid;
}

.solutions__panel-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.solutions__panel-copy > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.solutions__features li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
}

.solutions__features li:last-child { border-bottom: none; }

.solutions__features strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.solutions__features span {
  color: var(--color-text-muted);
}

.solutions__feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.solutions__panel-visual {
  padding: 2rem;
  background: linear-gradient(145deg, var(--color-bg-alt), rgba(255, 189, 158, 0.2));
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-row__label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.metric-row__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
}

/* ── Technology ── */
.technology {
  padding-block: var(--space-section);
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.technology .section-eyebrow { color: var(--color-accent-warm); }
.technology .section-lead { color: var(--color-text-muted-on-dark); }

.technology__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid);
  align-items: center;
}

.technology__modules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-module {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.tech-module:hover {
  background: rgba(103, 72, 253, 0.15);
}

.tech-module__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: white;
}

.tech-module h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tech-module p {
  font-size: var(--text-small);
  color: var(--color-text-muted-on-dark);
}

.technology__diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}

.tech-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(148, 127, 255, 0.3);
  border-radius: 50%;
  animation: orbit-spin 40s linear infinite;
}

.tech-orbit:nth-child(2) { inset: 15%; animation-direction: reverse; animation-duration: 30s; }
.tech-orbit:nth-child(3) { inset: 30%; }

.tech-core {
  position: absolute;
  inset: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(103, 72, 253, 0.4);
}

.tech-node {
  position: absolute;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.625rem;
  font-weight: 600;
  text-align: center;
}

.tech-node:nth-child(5) { top: 0; left: 50%; transform: translateX(-50%); }
.tech-node:nth-child(6) { bottom: 0; left: 50%; transform: translateX(-50%); }
.tech-node:nth-child(7) { left: 0; top: 50%; transform: translateY(-50%); }
.tech-node:nth-child(8) { right: 0; top: 50%; transform: translateY(-50%); }

/* ── CTA band ── */
.cta-band {
  padding-block: var(--space-section);
  background: var(--gradient-cta);
  color: white;
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.cta-band__lead {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 36rem;
  margin-inline: auto 2rem;
}

.cta-band__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-block: 2rem;
  font-size: var(--text-small);
  opacity: 0.85;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  padding-block: 4rem 2rem;
  background: var(--color-text);
  color: var(--color-text-muted-on-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.site-footer__brand p {
  font-size: var(--text-small);
  margin-top: 1rem;
  max-width: 20rem;
}

.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__col a {
  font-size: var(--text-small);
  transition: color var(--transition-base);
}

.site-footer__col a:hover {
  color: var(--color-accent-warm);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

.site-footer__email a {
  color: var(--color-accent-warm);
  font-weight: 500;
}

.site-footer__email a:hover {
  text-decoration: underline;
}

/* ── Modals ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal__panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.modal__panel p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: 1rem;
}

.modal__panel ul {
  margin-bottom: 1.5rem;
}

.modal__panel li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.modal__panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.modal__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* ── Policy pages ── */
.policy-page {
  padding-top: 6rem;
  padding-bottom: var(--space-section);
}

.policy-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  margin-bottom: 0.5rem;
}

.policy-page .policy-date {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: 2.5rem;
}

.policy-page h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-block: 2rem 0.75rem;
}

.policy-page p,
.policy-page li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.policy-page ul {
  padding-left: 1.25rem;
  list-style: disc;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}
