/* ==========================================================================
   Apex Trailer Solutions — Design System
   Steel & hazard-amber industrial palette, grounded in dump-trailer hardware.
   ========================================================================== */

:root {
  /* Color tokens */
  --steel-900: #171b21;      /* ink / darkest */
  --steel-800: #1b2027;      /* primary dark surface (hero, footer) */
  --steel-700: #2c333d;      /* panel gray — dark surface elevation */
  --steel-600: #3d4552;      /* borders / lines on dark */
  --steel-400: #6b7684;      /* muted text on dark */
  --paper-100: #f2f4f6;      /* primary light surface */
  --paper-white: #ffffff;
  --line-200: #dde1e6;       /* borders on light */
  --ink: #171b21;            /* primary text on light */
  --ink-muted: #4a5361;      /* secondary text on light */
  --amber-500: #e8a73c;      /* primary accent — CTAs, hazard highlight */
  --amber-600: #c98a24;      /* amber hover/active */
  --amber-100: #fbead0;      /* amber tint for light backgrounds */
  --rust-600: #a8461f;       /* secondary accent — sparing use */
  --success-600: #2f7a4f;
  --error-600: #b0342a;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale (4/8pt) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --focus-ring: 0 0 0 3px rgba(232, 167, 60, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
svg { display: block; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.text-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--rust-600);
}
h1 { font-size: clamp(2.75rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }
h3 { font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem); }
p.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
}
.prose p { max-width: 65ch; color: var(--ink-muted); }
.prose p + p { margin-top: var(--sp-4); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--sp-8); }
}
.section {
  position: relative;
  padding-block: var(--sp-16);
  background-color: var(--paper-100);
  background-image:
    radial-gradient(circle at 6px 6px, rgba(23,27,33,0.045) 1.3px, transparent 1.3px),
    radial-gradient(circle at 88% 8%, rgba(232,167,60,0.07) 0%, transparent 42%);
  background-size: 22px 22px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
@media (max-width: 767px) {
  .section { padding-block: var(--sp-12); }
}
.section-dark { background: var(--steel-800); color: var(--paper-100); }
.section-dark h1, .section-dark h2, .section-dark h3,
.hero h1, .hero h2, .hero h3,
.page-header h1, .page-header h2, .page-header h3 { color: var(--paper-white); }
.section-dark p, .hero p, .page-header p { color: #c3c9d1; }

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Diamond-plate texture, used sparingly as a section accent */
.texture-plate {
  background-color: var(--steel-800);
  background-image:
    radial-gradient(circle at 8px 8px, rgba(255,255,255,0.045) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

/* Hazard stripe divider — signature device, used at section seams only */
.hazard-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber-500) 0 18px,
    var(--steel-800) 18px 36px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber-500);
  color: var(--steel-900);
}
.btn-primary:hover { background: var(--amber-600); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.section:not(.section-dark) .btn-outline:hover { background: rgba(23,27,33,0.06); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--steel-800);
  border-bottom: 1px solid var(--steel-600);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--paper-white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .brand-text {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.brand .brand-main {
  display: flex;
  align-items: center;
  font-size: clamp(1.1875rem, 3.9vw, 1.5rem);
  color: var(--paper-white);
  line-height: 1;
}
.brand .brand-sub {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.59375rem, 1.95vw, 0.75rem);
  line-height: 1;
  color: var(--paper-white);
  letter-spacing: 0.06em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: #d7dbe1;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--paper-white);
  border-color: var(--amber-500);
}
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-phone {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  color: var(--paper-white);
  font-weight: 600;
}
@media (min-width: 640px) { .nav-phone { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--steel-600);
  border-radius: var(--radius-sm);
  color: var(--paper-white);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--sp-4);
  gap: var(--sp-1);
  background: var(--steel-700);
  border-top: 1px solid var(--steel-600);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: var(--paper-white);
  padding: var(--sp-3) var(--sp-2);
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover { background: var(--steel-600); }
.mobile-menu .btn { margin-top: var(--sp-2); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--steel-800);
  color: var(--paper-white);
  padding-block: var(--sp-24) var(--sp-16);
}
@media (max-width: 767px) { .hero { padding-block: var(--sp-12) var(--sp-8); } }
.hero-grid {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-spec {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  background: rgba(232,167,60,0.12);
  border: 1px solid rgba(232,167,60,0.4);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
}
.hero-spec strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber-500);
}
.hero-spec span { color: #c3c9d1; font-size: 0.875rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-12); }
.hero-trust-item { display: flex; align-items: center; gap: var(--sp-2); color: #c3c9d1; font-size: 0.9375rem; }
.hero-trust-item svg { color: var(--amber-500); flex-shrink: 0; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--paper-white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.panel-dark {
  background: var(--steel-700);
  border: 1px solid var(--steel-600);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--rust-600);
  margin-bottom: var(--sp-4);
}
.section-dark .icon-badge { background: rgba(232,167,60,0.14); color: var(--amber-500); }

/* ---------- Spec sheet table ---------- */
.spec-sheet {
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-white);
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line-200);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--paper-100); }
.spec-label { color: var(--ink-muted); font-weight: 500; }
.spec-value { font-weight: 700; font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.01em; }

/* ---------- Pricing table ---------- */
.price-card {
  background: var(--steel-800);
  color: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  position: relative;
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--amber-500);
  line-height: 1;
}
.price-card .amount sup { font-size: 1.25rem; margin-right: 4px; }
.price-card .per { color: #c3c9d1; font-size: 1rem; }
.price-list { margin-top: var(--sp-8); display: flex; flex-direction: column; gap: 0; }
.price-list-row {
  display: flex;
  justify-content: space-between;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--steel-600);
  font-size: 0.9375rem;
}
.price-list-row:last-child { border-bottom: none; }
.price-list-row span:first-child { color: #c3c9d1; }
.price-list-row span:last-child { font-weight: 700; font-family: var(--font-display); font-size: 1.0625rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
}
.step + .step { margin-top: var(--sp-8); }
.step-num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--steel-800);
  color: var(--amber-500);
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step, decimal-leading-zero); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line-200);
}
.faq-item:first-child { border-top: 1px solid var(--line-200); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  min-height: 44px;
}
.faq-q svg { flex-shrink: 0; transition: transform 160ms ease; color: var(--rust-600); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.faq-a-inner { padding-bottom: var(--sp-6); color: var(--ink-muted); max-width: 65ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.field .hint { font-size: 0.8125rem; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  background: var(--paper-white);
  color: var(--ink);
  transition: border-color 120ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber-500);
  outline: none;
  box-shadow: var(--focus-ring);
}
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }
.field-error { color: var(--error-600); font-size: 0.8125rem; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--error-600); }
.field.has-error .field-error { display: block; }
.form-note { font-size: 0.875rem; color: var(--ink-muted); margin-top: var(--sp-3); }
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--sp-3);
  background: #eaf4ee;
  border: 1px solid #bfe0cb;
  color: #1e5b38;
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-6);
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--amber-100);
  color: var(--rust-600);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel-900);
  color: #b7bec8;
  padding-block: var(--sp-16) var(--sp-8);
}
.footer-grid {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-heading {
  color: var(--paper-white);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a:hover { color: var(--paper-white); }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--steel-700);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.max-w-content { max-width: 640px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -48px;
  background: var(--amber-500);
  color: var(--steel-900);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
  transition: top 120ms ease;
}
.skip-link:focus { top: var(--sp-4); }

.page-header {
  background: var(--steel-800);
  color: var(--paper-white);
  padding-block: var(--sp-16) var(--sp-12);
}
@media (max-width: 767px) { .page-header { padding-block: var(--sp-8); } }
.breadcrumb { color: var(--amber-500); font-weight: 600; font-size: 0.875rem; }

/* ==========================================================================
   Cinematic Footer — scroll-reveal curtain footer
   Ported from a shadcn/Tailwind/GSAP React component to vanilla HTML/CSS/JS
   using this site's own steel + amber tokens instead of shadcn's theme vars.
   ========================================================================== */
.cinematic-footer-space {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.cinematic-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--steel-800);
  color: var(--paper-white);
}
.cf-aurora {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  height: 60vh;
  width: 80vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(232, 167, 60, 0.16) 0%, rgba(168, 70, 31, 0.14) 40%, transparent 70%);
  animation: cf-breathe 8s ease-in-out infinite alternate;
}
@keyframes cf-breathe {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.cf-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.cf-giant-text {
  position: absolute;
  bottom: -5vh;
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-size: 26vw;
  line-height: 0.75;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* Top marquee ribbon — sits right below the site header, flat (no rotation) */
.top-marquee-track {
  width: 100%;
  overflow: hidden;
  background: var(--steel-800);
  border-bottom: 1px solid var(--steel-600);
  padding-block: 10px;
}
.top-marquee {
  display: flex;
  width: max-content;
  animation: cf-scroll 32s linear infinite;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9aa2ad;
}
@media (min-width: 768px) { .top-marquee { font-size: 0.75rem; } }
@keyframes cf-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cf-marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-inline: 1.5rem;
  flex-shrink: 0;
}
.cf-marquee-item .dot { color: var(--amber-500); }
@media (prefers-reduced-motion: reduce) { .top-marquee { animation: none; } }

.cf-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.cf-heading {
  margin-bottom: var(--sp-6);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(2.25rem, 3vw + 1.5rem, 5rem);
  background: linear-gradient(180deg, var(--paper-white) 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
}
.cf-actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); width: 100%; }
.cf-actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); width: 100%; }
.cf-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); width: 100%; margin-top: var(--sp-1); }

.cf-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--paper-white);
  font-weight: 700;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, color 0.2s ease;
  text-decoration: none;
}
.cf-pill:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.cf-pill-primary { padding: 16px 32px; font-size: 0.9375rem; }
.cf-pill-secondary {
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b7bec8;
}
.cf-pill-secondary:hover { color: var(--paper-white); }
.cf-pill svg { flex-shrink: 0; }

.cf-bottom {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: 0 var(--sp-6) var(--sp-6);
}
.cf-copyright {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8593;
}
.cf-totop {
  flex-shrink: 0;
  display: flex;
  height: 40px;
  width: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  color: #b7bec8;
}
.cf-totop:hover { color: var(--paper-white); }
.cf-totop svg { transition: transform 0.25s ease; }
.cf-totop:hover svg { transform: translateY(-3px); }

@media (min-width: 768px) {
  .cf-heading { margin-bottom: var(--sp-8); }
  .cf-pill-primary { padding: 18px 36px; font-size: 1rem; }
  .cf-bottom { flex-wrap: nowrap; padding-inline: var(--sp-12); padding-bottom: var(--sp-8); }
  .cf-totop { height: 48px; width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-aurora { animation: none; }
}

/* ==========================================================================
   Ghost type — the footer's giant watermark treatment, reused sparingly on
   a few light sections so the whole site reads as one designed system
   instead of "bold dark sections + generic light ones."
   ========================================================================== */
.section-ghost { overflow: hidden; }
.section-ghost > .container { position: relative; z-index: 1; }
.ghost-text {
  position: absolute;
  z-index: 0;
  bottom: -0.14em;
  right: -0.03em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.8;
  font-size: 15vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 27, 33, 0.05);
  background: linear-gradient(180deg, rgba(23, 27, 33, 0.07) 0%, transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
}
.section-dark .ghost-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==========================================================================
   Mobile sticky reserve bar — a real mobile-specific decision (not a
   shrunk desktop layout): a persistent call/reserve bar on small screens.
   ========================================================================== */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(23, 27, 33, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--steel-600);
  transform: translateY(0);
  transition: transform 240ms ease;
}
.mobile-cta-bar.is-hidden { transform: translateY(110%); }
.mobile-cta-call {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--steel-600);
  color: var(--paper-white);
}
.mobile-cta-reserve {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--amber-500);
  color: var(--steel-900);
  font-weight: 700;
  font-size: 0.9375rem;
}
@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}
@media (max-width: 767px) {
  body { padding-bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta-bar { transition: none; }
}
