/* ============================================
   TRINITY RECOVERY CO. — Design System
   Navy + Gold palette, Fort Worth local business
   ============================================ */

/* --- 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);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* --- SPACING (4px system) --- */
  --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;

  /* --- 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);

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

  /* --- FONTS --- */
  --font-display: 'Cabinet Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
}

/* ============================================
   LIGHT MODE — Navy & Gold
   ============================================ */
:root,
[data-theme='light'] {
  --color-bg: #f8f7f4;
  --color-surface: #f2f1ed;
  --color-surface-2: #fafaf7;
  --color-surface-offset: #eceae5;
  --color-surface-offset-2: #e6e3de;
  --color-surface-dynamic: #dddad3;
  --color-divider: #dcd9d5;
  --color-border: #ddd9d2;

  --color-text: #1a1d29;
  --color-text-muted: #6b6e7a;
  --color-text-faint: #a8abb5;
  --color-text-inverse: #f8f7f4;

  --color-primary: #16365c;
  --color-primary-hover: #0f2845;
  --color-primary-active: #0a1b30;
  --color-primary-highlight: #d0d8e4;

  --color-accent: #b8860b;
  --color-accent-hover: #967009;
  --color-accent-active: #7a5a07;
  --color-accent-highlight: #f0e4c8;

  --color-success: #2d7a4f;
  --color-success-highlight: #d4e8da;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  --shadow-xl: 0 24px 64px oklch(0.2 0.01 80 / 0.16);
}

/* ============================================
   DARK MODE — Navy & Gold
   ============================================ */
[data-theme='dark'] {
  --color-bg: #0f1219;
  --color-surface: #161a23;
  --color-surface-2: #1c2029;
  --color-surface-offset: #181c25;
  --color-surface-offset-2: #222630;
  --color-surface-dynamic: #2a2e3a;
  --color-divider: #1f232c;
  --color-border: #2a2e3a;

  --color-text: #d8d9dd;
  --color-text-muted: #7a7d89;
  --color-text-faint: #525562;
  --color-text-inverse: #1a1d29;

  --color-primary: #4a8fca;
  --color-primary-hover: #2b6f9f;
  --color-primary-active: #1a5278;
  --color-primary-highlight: #1a2535;

  --color-accent: #d4a12f;
  --color-accent-hover: #e8b54a;
  --color-accent-active: #c08a20;
  --color-accent-highlight: #3a3220;

  --color-success: #5cb874;
  --color-success-highlight: #1a2e22;

  --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);
  --shadow-xl: 0 24px 64px oklch(0 0 0 / 0.5);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1219;
    --color-surface: #161a23;
    --color-surface-2: #1c2029;
    --color-surface-offset: #181c25;
    --color-surface-offset-2: #222630;
    --color-surface-dynamic: #2a2e3a;
    --color-divider: #1f232c;
    --color-border: #2a2e3a;
    --color-text: #d8d9dd;
    --color-text-muted: #7a7d89;
    --color-text-faint: #525562;
    --color-text-inverse: #1a1d29;
    --color-primary: #4a8fca;
    --color-primary-hover: #2b6f9f;
    --color-primary-active: #1a5278;
    --color-primary-highlight: #1a2535;
    --color-accent: #d4a12f;
    --color-accent-hover: #e8b54a;
    --color-accent-active: #c08a20;
    --color-accent-highlight: #3a3220;
    --color-success: #5cb874;
    --color-success-highlight: #1a2e22;
    --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);
    --shadow-xl: 0 24px 64px oklch(0 0 0 / 0.5);
  }
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: var(--space-4);
}

/* --- 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), 8vw, var(--space-24));
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo svg {
  flex-shrink: 0;
}
.logo-mark {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-interactive);
}
.nav-links a:hover::after {
  width: 100%;
}

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

/* --- 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-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all var(--transition-interactive);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-accent:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* --- Mobile Menu --- */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-weight: 500;
}
.mobile-nav a:hover {
  background: var(--color-surface-offset);
}
.mobile-nav .btn {
  margin-top: var(--space-2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(var(--space-12), 6vw, var(--space-16));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-16));
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    in oklab,
    var(--color-bg) 0%,
    oklch(from var(--color-bg) l c h / 0.7) 50%,
    var(--color-bg) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
  }
}
.hero-text {
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  color: var(--color-accent-hover);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
[data-theme='dark'] .hero-badge {
  color: var(--color-accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.hero h1 .accent {
  color: var(--color-accent);
}
.hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--color-primary);
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}
[data-theme='dark'] .stats-bar {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
[data-theme='dark'] .stat-number {
  color: var(--color-accent);
}
.stat-label {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.7);
  font-weight: 500;
}
[data-theme='dark'] .stat-label {
  color: var(--color-text-muted);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  max-width: 24ch;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 60ch;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: var(--color-surface);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.problem-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  order: -1;
}
@media (min-width: 768px) {
  .problem-image {
    order: 1;
  }
}
.problem-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.problem-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.problem-point {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.problem-point-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}
[data-theme='dark'] .problem-point-icon {
  color: var(--color-accent);
}
.problem-point h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.problem-point p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
  background: var(--color-bg);
}
.solution-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .solution-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
}
.solution-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.solution-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.solution-content .section-eyebrow {
  color: var(--color-accent);
}
.solution-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: #fff;
}
[data-theme='dark'] .solution-card h2 {
  color: var(--color-text);
}
.solution-card p {
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.85);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}
[data-theme='dark'] .solution-card p {
  color: var(--color-text-muted);
}
.solution-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (min-width: 640px) {
  .solution-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
.solution-feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.solution-feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}
.solution-feature p {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.8);
  margin: 0;
  line-height: 1.4;
}
[data-theme='dark'] .solution-feature p {
  color: var(--color-text-muted);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--color-surface);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.step-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.how-it-works-image {
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
}
.how-it-works-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   WHO WE SERVE
   ============================================ */
.serve {
  background: var(--color-bg);
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}
@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.industry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-interactive);
}
.industry-card:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-2);
}
.industry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}
.industry-card:hover .industry-icon {
  color: var(--color-accent);
}
.industry-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

/* ============================================
   OUR PROMISE / HOW WE CARE
   ============================================ */
.promise {
  background: var(--color-surface);
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .promise-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.promise-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.promise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promise-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.promise-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.promise-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-success-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}
.promise-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.promise-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Compliance Badge --- */
.compliance {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.compliance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  color: var(--color-success);
  margin-bottom: var(--space-4);
}
.compliance h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.compliance p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 60ch;
  margin-inline: auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-bg);
}
.cta-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .cta-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, oklch(from var(--color-accent) l c h / 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: #fff;
}
[data-theme='dark'] .cta-content h2 {
  color: var(--color-text);
}
.cta-content p {
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.85);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}
[data-theme='dark'] .cta-content p {
  color: var(--color-text-muted);
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}
.cta-info {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.6);
}
[data-theme='dark'] .cta-info {
  color: var(--color-text-faint);
}
.cta-info a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: oklch(1 0 0 / 0.8);
}
[data-theme='dark'] .cta-info a {
  color: var(--color-text-muted);
}
.cta-info a:hover {
  color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand .logo {
  font-size: var(--text-lg);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 40ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- Scroll reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
