/* style.css — LexiFlow Landing Page
   Art Direction: Authoritative legal-tech
   Palette: Deep navy/ink + teal accent
   Typography: Playfair Display (headings) + DM Sans (body)
*/

:root,
[data-theme='light'] {
  /* Surfaces — clean, professional */
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f7;
  --color-surface-offset: #eaeef4;
  --color-surface-dynamic: #dde3ec;
  --color-divider: #d1d7e0;
  --color-border: #c4cbd6;

  /* Text — slate tones */
  --color-text: #1a2332;
  --color-text-muted: #5a6577;
  --color-text-faint: #9aa3b2;
  --color-text-inverse: #f8f9fb;

  /* Primary Accent — Legal Teal */
  --color-primary: #0d7377;
  --color-primary-hover: #0a5a5e;
  --color-primary-active: #074447;
  --color-primary-highlight: #c8e0e1;

  /* Secondary — Navy Ink */
  --color-ink: #1a2332;
  --color-ink-hover: #0f1722;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool-toned for navy palette */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0f1722;
  --color-surface: #16202e;
  --color-surface-2: #1c2839;
  --color-surface-offset: #1e2b3d;
  --color-surface-dynamic: #2a3a4f;
  --color-divider: #243044;
  --color-border: #2e3d52;

  --color-text: #d8dee8;
  --color-text-muted: #8a94a6;
  --color-text-faint: #5a6478;
  --color-text-inverse: #0f1722;

  --color-primary: #4ab8bc;
  --color-primary-hover: #2da3a8;
  --color-primary-active: #1a8a8e;
  --color-primary-highlight: #1e3a3d;

  --color-ink: #0a1119;
  --color-ink-hover: #050a10;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* Type Scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
}

/* Spacing */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============ LAYOUT ============ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

/* ============ HEADER ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow var(--transition-interactive);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-block: var(--space-4);
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-outline {
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============ HERO ============ */

.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    oklch(from var(--color-primary) l c h / 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
  position: relative;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: var(--space-12);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-primary);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

/* Hero dashboard mockup */
.mockup-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.mockup-dot:nth-child(1) { background: #e85d5d; }
.mockup-dot:nth-child(2) { background: #e8c35d; }
.mockup-dot:nth-child(3) { background: #5dc88a; }

.mockup-title {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-left: var(--space-3);
  font-weight: 500;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.mockup-row:last-child {
  border-bottom: none;
}

.mockup-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.mockup-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.mockup-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.mockup-badge-success {
  background: oklch(from #437a22 l c h / 0.12);
  color: #437a22;
}

[data-theme='dark'] .mockup-badge-success {
  color: #6daa45;
}

.mockup-badge-critical {
  background: oklch(from #a12c7b l c h / 0.12);
  color: #a12c7b;
}

[data-theme='dark'] .mockup-badge-critical {
  color: #d163a7;
}

.mockup-merit-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  overflow: hidden;
  margin-top: var(--space-2);
}

.mockup-merit-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  width: 92%;
}

/* ============ TRUST BAR ============ */

.trust-bar {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  background: var(--color-surface);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding-block: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============ SECTION HEADINGS ============ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

/* ============ FEATURES ============ */

.features-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* Override for bento layout — first card spans 2 cols on large screens */
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.feature-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .feature-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .feature-card--wide {
    grid-column: span 3;
  }
}

.feature-card--wide .feature-card-inner {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .feature-card--wide .feature-card-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-card-wide-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-card-wide-content h3 {
  font-size: var(--text-xl);
}

/* Code/mockup block in wide card */
.feature-mockup {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-xs);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  line-height: 1.8;
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.feature-mockup-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.feature-mockup-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-mockup-tag--critical {
  background: oklch(from #a12c7b l c h / 0.15);
  color: #a12c7b;
}

[data-theme='dark'] .feature-mockup-tag--critical {
  color: #d163a7;
}

.feature-mockup-tag--sig {
  background: oklch(from #964219 l c h / 0.12);
  color: #964219;
}

[data-theme='dark'] .feature-mockup-tag--sig {
  color: #bb653b;
}

/* ============ OUTCOMES ============ */

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

.outcomes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.outcomes-table th,
.outcomes-table td {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.outcomes-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
}

.outcomes-table td {
  font-size: var(--text-sm);
  color: var(--color-text);
}

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

.outcomes-table .metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.outcomes-table .metric-old {
  color: var(--color-text-faint);
  text-decoration: line-through;
  font-size: var(--text-sm);
}

.outcomes-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border-left: none;
}

.outcomes-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.outcomes-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.outcomes-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  font-style: italic;
}

/* ============ HOW IT WORKS ============ */

.how-it-works {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .how-it-works {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.process-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.process-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
}

.process-step h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Merit score visualization */
.merit-viz {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
}

.merit-score-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.merit-score-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.merit-score-max {
  font-size: var(--text-base);
  color: var(--color-text-faint);
}

.merit-vectors {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.merit-vector {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.merit-vector-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.merit-vector-weight {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}

.merit-vector-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  overflow: hidden;
}

.merit-vector-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* ============ INTEGRATIONS ============ */

.integrations-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.integration-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.integration-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* ============ PROOF POINTS ============ */

.proof-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (min-width: 640px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.proof-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.proof-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.proof-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-8);
  font-style: italic;
  text-align: center;
}

/* ============ FAQ ============ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  min-height: 44px;
  list-style: none;
}

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

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============ FINAL CTA ============ */

.cta-section {
  background: var(--color-ink);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-24));
  text-align: center;
  margin-block: clamp(var(--space-12), 6vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 160%;
  background: radial-gradient(
    ellipse at center,
    oklch(from var(--color-primary) l c h / 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: #f8f9fb;
  position: relative;
}

.cta-section p {
  font-size: var(--text-lg);
  color: oklch(from #f8f9fb l c h / 0.7);
  margin-bottom: var(--space-8);
  max-width: 56ch;
  margin-inline: auto;
  position: relative;
}

.cta-section .btn-primary {
  background: var(--color-primary);
  position: relative;
}

.cta-section .btn-primary:hover {
  background: var(--color-primary-hover);
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-block: var(--space-8);
  padding-inline: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-text);
}

/* ============ MOBILE NAV ============ */

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

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

.mobile-menu a {
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.mobile-menu a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============ ANIMATIONS ============ */

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

.reveal {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}
