/* =========================================================
   REÂM — Global Styles (Dark Mode)
   ========================================================= */

/* ========== 01) FONTS & VARIABLES ========== */
@font-face {
  font-family: 'Gotham';
  src: url('/static/fonts/Gotham-Book.woff2') format('woff2'),
       url('/static/fonts/Gotham-Book.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('/static/fonts/Gotham-Bold.woff2') format('woff2'),
       url('/static/fonts/Gotham-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ----- Dark Mode Variables (Default) ----- */
:root {
  /* Dark Mode Colors */
  --color-black: #000;
  --color-elev-1: #0a0a0a;
  --color-elev-2: #111215;
  --color-white: #fff;
  --color-ink: #f5f6f8;
  --color-ink-dim: #cdd3da;
  --color-orange: #FF6600;
  --color-orange-2: #FF914D;
  
  /* Light Mode Colors */
  --color-bg-light: #ffffff;
  --color-bg-light-2: #f8f9fa;
  --color-text-light: #1a1a1a;
  --color-text-light-dim: #666666;
  --color-border-light: #e5e7eb;
  
  /* Common */
  --font-body: 'Gotham', Arial, sans-serif;
  --fs-base: 1rem;
  --fs-heading: clamp(1.8rem, 4vw, 2.5rem);
  --fs-subheading: clamp(1.4rem, 3vw, 1.8rem);
  --lh-heading: 1.2;
  --lh-body: 1.5;
  
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-3xl: 50px;
  --space-4xl: 80px;
  
  --nav-h: 80px;
  --container-width: 1200px;
  --container: min(var(--container-width), 92vw);
  
  --radius-sm: 12px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.45);
  
  --duration-fast: .18s;
  --ease: cubic-bezier(.4,0,.2,1);
  
  --badge: clamp(40px, 6vw, 56px);
  --col-gap: clamp(20px, 3vw, 28px);
  --grid-size: 40px;
  --grid-line: rgba(255,255,255,.04);
  
  /* Component Colors - Dark */
  --backdrop: rgba(0,0,0,.5);
  --glow: 0 12px 60px rgba(255, 110, 10, .18);
  --chip-bg: rgba(255,255,255,.06);
  --chip-border: rgba(255,255,255,.12);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  --card-border: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  --metric-bg: rgba(255,255,255,.02);
  --metric-border: rgba(255,255,255,.06);
  --tag-bg: rgba(255,255,255,.04);
  --tag-border: rgba(255,255,255,.08);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --color-black: #ffffff;
  --color-elev-1: #f8f9fa;
  --color-elev-2: #ffffff;
  --color-white: #1a1a1a;
  --color-ink: #1a1a1a;
  --color-ink-dim: #666666;
  --grid-line: rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.12);
  
  /* Component Colors - Light */
  --backdrop: rgba(0,0,0,.3);
  --glow: 0 12px 60px rgba(255, 110, 10, .12);
  --chip-bg: rgba(0,0,0,.06);
  --chip-border: rgba(0,0,0,.12);
  --card-bg: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  --card-border: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.06));
  --metric-bg: rgba(0,0,0,.02);
  --metric-border: rgba(0,0,0,.06);
  --tag-bg: rgba(0,0,0,.04);
  --tag-border: rgba(0,0,0,.08);
}

/* ========== 02) BASE / RESET / TYPOGRAPHY ========== */
*, *::before, *::after { 
  box-sizing: border-box; 
  transition: background-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}

[data-theme="light"] body {
  background: var(--color-bg-light-2);
  color: var(--color-text-light);
}

main { 
  background-color: var(--color-black);
  transition: background-color var(--duration-fast) var(--ease);
}

[data-theme="light"] main {
  background: var(--color-bg-light-2);
}

/* Consistent heading styles */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  line-height: var(--lh-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--fs-heading);
  transition: color var(--duration-fast) var(--ease);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--color-text-light);
}

/* Consistent paragraph styles */
p { 
  margin: 0 0 var(--space-md); 
  font-size: var(--fs-base); 
  color: var(--color-ink); 
  line-height: var(--lh-body);
  transition: color var(--duration-fast) var(--ease);
}

[data-theme="light"] p {
  color: var(--color-text-light);
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: color var(--duration-fast); 
}

:focus-visible { 
  outline: 2px solid var(--color-orange); 
  outline-offset: 3px; 
  border-radius: var(--radius-sm); 
}

.wrap { 
  width: var(--container); 
  margin-inline: auto; 
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== 03) COMPONENTS ========== */

/* ----- Scroll to Top Button ----- */
.scroll-to-top {
  --size: clamp(48px, 5.2vw, 56px);
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  border: none;
  box-shadow: 0 10px 30px rgba(255, 128, 0, .35);
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  pointer-events: none;
}

.scroll-to-top::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-orange-2) var(--pct, 0%),
    rgba(255,255,255,.20) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  pointer-events: none;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--color-orange-2), var(--color-orange));
  box-shadow: 0 14px 36px rgba(255, 128, 0, .45);
}

.scroll-to-top:focus { 
  outline: 2px solid var(--color-white); 
  outline-offset: 2px; 
}

.scroll-to-top:active { 
  transform: translateY(1px) scale(.98); 
}

.scroll-to-top svg { 
  width: 26px; 
  height: 26px; 
}

[data-theme="light"] .scroll-to-top {
  color: var(--color-white);
}

/* ----- Buttons ----- */
.btn {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast), 
              box-shadow var(--duration-fast),
              filter var(--duration-fast), 
              background-color var(--duration-fast), 
              color var(--duration-fast),
              border-color var(--duration-fast);
}

.btn--primary {
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(255,102,0,.45);
  transform: translateY(-1px);
}

.btn--talk {
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(255,102,0,.25);
  transition: box-shadow .3s ease, filter .3s ease;
}

.btn--talk:hover { 
  box-shadow: 0 0 35px rgba(255,102,0,.6); 
  filter: brightness(1.1); 
}

.btn--outline { 
  background: transparent; 
  border-color: var(--color-orange); 
  color: var(--color-orange); 
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--full { width: 100%; }

/* ----- Theme Switch ----- */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--color-elev-2) 90%, transparent);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

[data-theme="light"] .theme-switch {
  background: color-mix(in oklab, var(--color-bg-light-2) 90%, transparent);
  border: 1px solid var(--color-border-light);
}

.theme-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}

[data-theme="light"] .theme-switch:hover {
  border-color: var(--color-text-light-dim);
}

.theme-switch__track {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  transition: all var(--duration-fast) var(--ease);
}

[data-theme="light"] .theme-switch__track {
  background: var(--color-border-light);
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  transition: all var(--duration-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

[data-theme="light"] .theme-switch__thumb {
  transform: translateX(24px);
  background: var(--color-orange);
  color: var(--color-white);
}

.theme-switch__thumb::before {
  content: "☀️";
}

[data-theme="light"] .theme-switch__thumb::before {
  content: "🌙";
}

.theme-switch__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

[data-theme="light"] .theme-switch__label {
  color: var(--color-text-light);
}

/* ----- Navigation ----- */
#mainNav { 
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all var(--duration-fast) var(--ease);
}

[data-theme="light"] #mainNav {
  background-color: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav--capsule .nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: clamp(16px, 4vw, 32px);
}

.nav__brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
}

.nav__logo {
  width: 150px;
  height: 80px;
  background-image: url('/static/images/logo-light.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

[data-theme="light"] .nav__logo {
  background-image: url('/static/images/logo-dark.png');
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav__logo {
    width: 60px; /* Smaller on mobile */
    height: 80px;
    background-image: url('/static/images/logo-light-mobile.png');
  }
  
  [data-theme="light"] .nav__logo {
    background-image: url('/static/images/logo-dark-mobile.png');
  }
}

.nav__actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.nav__toggle {
  position: relative;
  z-index: 99;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: color-mix(in oklab, var(--color-elev-2) 90%, transparent);
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}

[data-theme="light"] .nav__toggle {
  background: color-mix(in oklab, var(--color-bg-light-2) 90%, transparent);
  border: 1px solid var(--color-border-light);
}

.nav__toggle:hover { 
  transform: translateY(-1px); 
  border-color: rgba(255,255,255,.22); 
}

[data-theme="light"] .nav__toggle:hover {
  border-color: var(--color-text-light-dim);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}

[data-theme="light"] .nav__toggle span {
  background: var(--color-text-light);
}

.nav__toggle span + span { margin-top: 5px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) { 
  opacity: 0; 
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.nav__drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.drawer__panel {
  width: min(92vw, 720px);
  padding: clamp(24px, 5vw, 48px);
  border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, 
              color-mix(in oklab, var(--color-orange) 10%, transparent) 0%, 
              transparent 60%),
              color-mix(in oklab, var(--color-elev-2) 96%, var(--color-black) 4%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--glow);
  transform: translateY(10px);
  transition: transform .24s ease;
}

[data-theme="light"] .drawer__panel {
  background: radial-gradient(120% 140% at 0% 0%, 
              color-mix(in oklab, var(--color-orange) 8%, transparent) 0%, 
              transparent 60%),
              var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.nav__drawer[aria-hidden="false"] .drawer__panel { 
  transform: translateY(0); 
}

.drawer__menu {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
  text-align: center;
}

.drawer__menu a {
  display: inline-block;
  padding: 12px 18px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}

[data-theme="light"] .drawer__menu a {
  color: var(--color-text-light);
}

.drawer__menu a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .drawer__menu a:hover {
  color: var(--color-orange);
  -webkit-text-fill-color: initial;
  background: none;
}

.body--menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .is-hidden--tablet { display: none !important; }
}

@media (max-width: 640px) { 
  :root { --nav-h: 72px; } 
}

/* ----- Page Header ----- */
.page-header {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0;
  background: linear-gradient(180deg, var(--color-elev-2), var(--color-elev-1));
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
  scroll-margin-top: var(--nav-h);
}

[data-theme="light"] .page-header {
  background: linear-gradient(180deg, var(--color-bg-light), var(--color-bg-light-2));
  border-bottom: 1px solid var(--color-border-light);
}

.page-header__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: clamp(10px, 2.4vw, 18px);
}

.page-header__eyebrow {
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-ink-dim);
}

.page-header__title {
  font-size: var(--fs-heading);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--lh-heading);
}

[data-theme="light"] .page-header__title {
  color: var(--color-text-light);
}

.page-header__subtitle {
  font-size: var(--fs-base);
  color: var(--color-ink);
  max-width: 65ch;
}

[data-theme="light"] .page-header__subtitle {
  color: var(--color-text-light);
}

.page-header--sleek {
  padding: clamp(22px, 4.5vw, 40px) 0;
  background: color-mix(in oklab, var(--color-elev-1) 78%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

[data-theme="light"] .page-header--sleek {
  background: color-mix(in oklab, var(--color-bg-light-2) 78%, transparent);
  border-bottom: 1px solid var(--color-border-light);
}

.page-header--sleek .page-header__eyebrow { 
  font-size: .8rem; 
  opacity: .9; 
}

.page-header--sleek .page-header__title { 
  font-size: var(--fs-heading); 
}

.page-header--sleek .page-header__subtitle { 
  font-size: var(--fs-base); 
}

.breadcrumbs { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  font-size: .96rem; 
  color: var(--color-ink-dim); 
}

.breadcrumbs a { 
  color: inherit; 
  opacity: .9; 
}

.breadcrumbs a:hover { 
  opacity: 1; 
  text-decoration: underline; 
}

.breadcrumbs__sep { opacity: .6; }

/* ========== 04) SECTIONS ========== */

/* ----- Hero Section ----- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4xl) 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% 90%, 
              var(--color-elev-2) 0%, 
              var(--color-black) 70%);
}

[data-theme="light"] .hero-section {
  background: radial-gradient(120% 90% at 50% 90%, 
              var(--color-bg-light-2) 0%, 
              var(--color-bg-light) 70%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg.is-interactive { pointer-events: auto; }
.hero__bg.is-interactive .hero__spline iframe { pointer-events: auto; }

.hero__content { 
  padding-top: 20px;
  position: relative; 
  z-index: 2; 
  pointer-events: none; 
}

.hero__content :is(a, button, [role="button"], input, select, textarea, .btn) { 
  pointer-events: auto; 
}

.hero__spline {
  position: absolute;
  inset: -6% -4% -8% -4%;
  transform: translateZ(0);
  filter: saturate(118%) contrast(110%) brightness(1.1);
}

.hero__spline iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, 
              rgba(0,0,0,.28) 0%, 
              rgba(0,0,0,.08) 35%, 
              rgba(0,0,0,.24) 100%),
              radial-gradient(120% 90% at 50% 92%, 
              transparent 0%, 
              rgba(0,0,0,.18) 80%);
}

[data-theme="light"] .hero__bg::after {
  background: linear-gradient(180deg, 
              rgba(0,0,0,.15) 0%, 
              rgba(0,0,0,.04) 35%, 
              rgba(0,0,0,.12) 100%),
              radial-gradient(120% 90% at 50% 92%, 
              transparent 0%, 
              rgba(0,0,0,.08) 80%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-md);
  width: var(--container);
  margin-inline: auto;
  justify-items: center;
  animation: fadeUp .7s ease both .05s;
}

.hero__title { 
  font-size: var(--fs-heading); 
  line-height: var(--lh-heading); 
  letter-spacing: -.01em; 
  color: var(--color-white);
}

[data-theme="light"] .hero__title {
  color: var(--color-text-light);
}

.hero__sub { 
  max-width: 60ch; 
  color: color-mix(in oklab, var(--color-ink,#f5f6f8) 76%, transparent); 
  font-size: var(--fs-base);
}

[data-theme="light"] .hero__sub {
  color: color-mix(in oklab, var(--color-text-light) 76%, transparent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  box-shadow: inset 0 -12px 24px rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  animation: floatY 6s ease-in-out infinite;
  color: var(--color-ink);
}

[data-theme="light"] .chip {
  box-shadow: inset 0 -12px 24px rgba(0,0,0,.03);
  color: var(--color-text-light);
}

@keyframes floatY { 
  0%, 100% { transform: translateY(0) } 
  50% { transform: translateY(-3px) } 
}

.hero__content > * { animation: fadeUp .7s ease both; }
.hero__content > .chip { animation-delay: .05s; }
.hero__content > .hero__title { animation-delay: .15s; }
.hero__content > .hero__sub { animation-delay: .25s; }
.hero__content > .btn { animation-delay: .35s; }

@keyframes fadeUp {
  from { 
    opacity: 0; 
    transform: translateY(14px) scale(.98); 
  }
  to { 
    opacity: 1; 
    transform: none; 
  }
}

.hero__content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
    color: var(--color-white);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.25);
}

.hero__content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}

.hero__content .btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero__content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 180px;
    }
}
/* ----- Certifications & Memberships ----- */
.hero__certs { margin-top: 6rem; }

#certs-title { 
  color: var(--color-ink-dim);
  opacity: 0.8;
  font-size: var(--fs-heading);
}

[data-theme="light"] #certs-title {
  color: var(--color-text-light-dim);
}

.certs__head {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 2rem;
  color: var(--color-ink-dim);
}

[data-theme="light"] .certs__head {
  color: var(--color-text-light-dim);
}

.certs__head h2 {
  font-size: var(--fs-heading);
  font-weight: 700;
  color: var(--color-ink-dim);
}

[data-theme="light"] .certs__head h2 {
  color: var(--color-text-light-dim);
}

.certs__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cBadge {
  text-align: center;
  max-width: 140px;
  flex: 1 1 auto;
  color: var(--color-ink-dim);
  opacity: 0.8;
}

[data-theme="light"] .cBadge {
  color: var(--color-text-light-dim);
}

.cBadge__logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: block;
  color: var(--color-ink-dim);
}

[data-theme="light"] .cBadge__logo {
  color: var(--color-text-light-dim);
}

.cBadge__title {
  display: block;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: 2px;
  color: var(--color-ink-dim);
}

[data-theme="light"] .cBadge__title {
  color: var(--color-text-light-dim);
}

.cBadge__desc {
  display: block;
  font-size: .85rem;
  opacity: 0.7;
  color: var(--color-ink-dim);
}

[data-theme="light"] .cBadge__desc {
  color: var(--color-text-light-dim);
}

/* Mobile - Smaller logos and text only */
@media (max-width: 768px) {
  .cBadge__logo {
    width: 36px; /* Smaller logo */
    height: 36px;
    margin-bottom: 6px;
  }
  
  .cBadge__title {
    font-size: 0.8rem; /* Smaller title */
  }
  
  .cBadge__desc {
    font-size: 0.75rem; /* Smaller description */
  }
}

/* Small Mobile - Even smaller */
@media (max-width: 480px) {
  .cBadge__logo {
    width: 32px; /* Even smaller logo */
    height: 32px;
    margin-bottom: 4px;
  }
  
  .cBadge__title {
    font-size: 0.75rem; /* Even smaller title */
  }
  
  .cBadge__desc {
    font-size: 0.7rem; /* Even smaller description */
  }
}

/* ----- Proof / Trust Section ----- */
.proof.section {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
  background: var(--color-black);
}

[data-theme="light"] .proof.section {
  background: var(--color-bg-light-2);
}

.proof__head h1 {
  font-size: var(--fs-heading);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-white);
}

[data-theme="light"] .proof__head h1 {
  color: var(--color-text-light);
}

.proof__head .sub {
  font-size: var(--fs-base);
  opacity: 0.8;
  color: var(--color-ink);
}

[data-theme="light"] .proof__head .sub {
  color: var(--color-text-light);
}

.proof__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(30px, 4vw, 60px);
  margin-top: clamp(40px, 6vw, 70px);
  padding: 0;
  list-style: none;
}

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

.stat {
  padding: 0;
  text-align: center;
  transition: transform .3s ease;
}

.stat:hover { transform: translateY(-6px); }

.stat__num {
  display: block;
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  margin-top: 0;
}

[data-theme="light"] .stat__label {
  color: var(--color-text-light);
}

.stat__meta {
  display: block;
  font-size: .9rem;
  opacity: .7;
  margin-top: 0;
  color: var(--color-ink);
}

[data-theme="light"] .stat__meta {
  color: var(--color-text-light);
}

.stat__num {
  --reveal: 1;
  background-size: 200% 100%;
  animation: statGlow 1.2s ease both;
}

@keyframes statGlow {
  from { 
    filter: brightness(0.8); 
    opacity: 0; 
    transform: translateY(6px); 
  }
  to { 
    filter: brightness(1); 
    opacity: 1; 
    transform: translateY(0); 
  }
}
/* ----- Process / Timeline Section ----- */
.process.section {
  min-height: calc(100svh - var(--nav-h, 0px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(24px, 4vh, 40px);
  text-align: center;
  padding: clamp(24px, 4vh, 48px) max(16px, 4vw);
  background: var(--color-black);
}

[data-theme="light"] .process.section {
  background: var(--color-bg-light-2);
}

.process {
  --badge: clamp(72px, 10vw, 110px);
  --rail-h: 3px;
  --rail-dur: 900ms;
  --stagger: 180ms;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.process .section-header {
  width: 100%;
  max-width: min(800px, 90vw);
  margin: 0 auto;
}

.process .section-header h2 {
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  margin-bottom: .35em;
  color: var(--color-white);
}

[data-theme="light"] .process .section-header h2 {
  color: var(--color-text-light);
}

.process .section-header .sub {
  font-size: var(--fs-base);
  opacity: .85;
  color: var(--color-ink);
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="light"] .process .section-header .sub {
  color: var(--color-text-light);
}

.process__timeline {
  position: relative;
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.pstep {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  position: relative;
  padding-left: 2px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.pstep::before {
  content: "";
  position: absolute;
  left: calc(var(--badge)/2 - 1px);
  top: calc(var(--badge) + 6px);
  bottom: -10px;
  width: 2px;
  background: rgba(255,255,255,.14);
  transform-origin: top;
  transform: scaleY(0);
}

[data-theme="light"] .pstep::before {
  background: rgba(0,0,0,.14);
}

.process.in-view .pstep::before { 
  animation: growY var(--rail-dur) ease-out forwards; 
}

.pstep:nth-child(2)::before { animation-delay: calc(var(--stagger) * .8); }
.pstep:nth-child(3)::before { animation-delay: calc(var(--stagger) * 1.6); }
.pstep:nth-child(4)::before { animation-delay: calc(var(--stagger) * 2.4); }
.pstep:last-child::before { display: none; }

.pstep__num {
  width: var(--badge);
  height: var(--badge);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 800;
  background: radial-gradient(60% 60% at 30% 30%, var(--color-orange-2), var(--color-orange));
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.10);
  transform: translateY(4px) scale(.96);
  opacity: .9;
}

.pstep__num::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(255,132,38,.45), transparent 60%);
  filter: blur(2px);
  opacity: 0;
  transform: scale(.7);
}

.pstep__content {
  text-align: left;
  max-width: 400px;
}

.pstep__title {
  font-weight: 800;
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: var(--fs-subheading);
  transform: translateY(10px);
  opacity: 0;
  color: var(--color-white);
}

[data-theme="light"] .pstep__title {
  color: var(--color-text-light);
}

.pstep__desc {
  font-size: var(--fs-base);
  opacity: .75;
  transform: translateY(10px);
  opacity: 0;
  color: var(--color-ink);
  line-height: 1.5;
}

[data-theme="light"] .pstep__desc {
  color: var(--color-text-light);
}

.process.in-view .pstep .pstep__num { 
  animation: pop .55s cubic-bezier(.2,.8,.2,1) forwards; 
}

.process.in-view .pstep .pstep__num::after { 
  animation: halo .8s ease-out forwards; 
}

.process.in-view .pstep .pstep__title { 
  animation: rise .6s ease-out forwards; 
}

.process.in-view .pstep .pstep__desc { 
  animation: rise .7s ease-out .05s forwards; 
}

.pstep:nth-child(1) .pstep__num,
.pstep:nth-child(1) .pstep__num::after,
.pstep:nth-child(1) .pstep__title,
.pstep:nth-child(1) .pstep__desc { animation-delay: calc(var(--stagger) * 0); }

.pstep:nth-child(2) .pstep__num,
.pstep:nth-child(2) .pstep__num::after,
.pstep:nth-child(2) .pstep__title,
.pstep:nth-child(2) .pstep__desc { animation-delay: calc(var(--stagger) * 1); }

.pstep:nth-child(3) .pstep__num,
.pstep:nth-child(3) .pstep__num::after,
.pstep:nth-child(3) .pstep__title,
.pstep:nth-child(3) .pstep__desc { animation-delay: calc(var(--stagger) * 2); }

.pstep:nth-child(4) .pstep__num,
.pstep:nth-child(4) .pstep__num::after,
.pstep:nth-child(4) .pstep__title,
.pstep:nth-child(4) .pstep__desc { animation-delay: calc(var(--stagger) * 3); }

@media (min-width: 900px) {
  .process__timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    position: relative;
  }
  
  .pstep {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(6px, 1vw, 12px) 8px;
    max-width: 300px;
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
  }
  
  .pstep::before { display: none; }
  .pstep__num { margin: 0 auto 14px; }
  
  .pstep__content {
    text-align: center;
    max-width: none;
  }
  
  .process__timeline::before,
  .process__timeline::after {
    content: "";
    position: absolute;
    left: 51.6%;
    transform: translateX(-50%);
    width: calc(100% - var(--badge) - 80px);
    height: var(--rail-h);
    top: calc(var(--badge) / 2);
    border-radius: 2px;
  }
  
  .process__timeline::before {
    background: rgba(255,255,255,.16);
    z-index: 1;
  }
  
  [data-theme="light"] .process__timeline::before {
    background: rgba(0,0,0,.16);
  }
  
  .process__timeline::after {
    background: 
      linear-gradient(90deg, var(--color-orange), var(--color-orange-2)) 0 0 / 100% 100% no-repeat,
      linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%) 0 0 / 24% 100% no-repeat;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: .98;
    z-index: 1;
  }
  
  .process.in-view .process__timeline::after {
    animation: 
      railDraw var(--rail-dur) cubic-bezier(.2,.8,.2,1) forwards,
      spark 2.4s linear calc(var(--rail-dur)) infinite;
  }
}

@keyframes railDraw { 
  to { transform: translateX(-50%) scaleX(1); } 
}

@keyframes spark {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 100% 0; }
}

@keyframes pop {
  0% { transform: translateY(6px) scale(.9); opacity: .7; }
  60% { transform: translateY(0) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes halo {
  0% { opacity: 0; transform: scale(.7); }
  35% { opacity: .9; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes rise {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes growY { to { transform: scaleY(1); } }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .process__timeline {
    width: min(500px, 90vw);
  }
  
  .pstep {
    max-width: 100%;
    justify-content: flex-start;
  }
  
  .pstep__content {
    text-align: left;
    max-width: calc(100% - var(--badge) - 20px);
  }
}

@media (max-width: 480px) {
  .process__timeline {
    width: 90vw;
  }
  
  .pstep {
    gap: 12px;
  }
  
  .pstep__content {
    max-width: calc(100% - var(--badge) - 15px);
  }
}
/* ----- Services Section ----- */
.services-section {
  background: var(--color-black);
  padding: var(--space-4xl) 0;
}

[data-theme="light"] .services-section {
  background: var(--color-bg-light-2);
}

.services-section .service-wrap { width: min(1200px, 92vw); }

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 860px) {
  .svc-hero-grid { grid-template-columns: 1fr 1fr; }
}

.svc3 {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 30px);
  background: var(--card-bg) padding-box,
              var(--card-border) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.35),
              inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

[data-theme="light"] .svc3 {
  box-shadow: 0 8px 24px rgba(0,0,0,.15),
              inset 0 1px 0 rgba(0,0,0,.06);
}

.svc3__bg,
.svc3__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.svc3__bg {
  background: radial-gradient(1200px 600px at 80% -20%, rgba(255,255,255,.06), transparent 55%),
              radial-gradient(800px 420px at -10% 110%, rgba(255,255,255,.05), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.02));
}

[data-theme="light"] .svc3__bg {
  background: radial-gradient(1200px 600px at 80% -20%, rgba(0,0,0,.06), transparent 55%),
              radial-gradient(800px 420px at -10% 110%, rgba(0,0,0,.05), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.02), rgba(255,255,255,.02));
}

.svc3__glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  filter: blur(36px);
  opacity: .35;
  background: radial-gradient(40% 40% at 20% 20%, color-mix(in oklab, var(--color-orange) 38%, transparent) 0%, transparent 60%),
              radial-gradient(35% 35% at 90% 80%, color-mix(in oklab, var(--color-orange-2) 28%, transparent) 0%, transparent 65%);
}

.svc3--sales .svc3__glow::before {
  background: radial-gradient(42% 42% at 18% 22%, color-mix(in oklab, var(--color-orange) 46%, transparent) 0%, transparent 60%),
              radial-gradient(32% 32% at 88% 78%, color-mix(in oklab, var(--color-orange-2) 36%, transparent) 0%, transparent 65%);
}

.svc3--brand .svc3__glow::before {
  background: radial-gradient(38% 38% at 22% 18%, color-mix(in oklab, #7aa2ff 42%, transparent) 0%, transparent 60%),
              radial-gradient(30% 30% at 80% 84%, color-mix(in oklab, #9f7aff 32%, transparent) 0%, transparent 65%);
}

.svc3:where(:hover, :focus-within) {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45),
              inset 0 1px 0 rgba(255,255,255,.08);
}

[data-theme="light"] .svc3:where(:hover, :focus-within) {
  box-shadow: 0 16px 40px rgba(0,0,0,.2),
              inset 0 1px 0 rgba(0,0,0,.08);
}

.svc3__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.svc3__head h3 {
  font-size: var(--fs-subheading);
  letter-spacing: .2px;
  color: var(--color-white);
}

[data-theme="light"] .svc3__head h3 {
  color: var(--color-text-light);
}

.svc3__tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1;
  color: var(--color-ink);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  opacity: .9;
}

[data-theme="light"] .svc3__tag {
  color: var(--color-text-light);
  border: 1px solid rgba(0,0,0,.14);
  background: linear-gradient(180deg, rgba(0,0,0,.09), rgba(0,0,0,.03));
  box-shadow: inset 0 1px 0 rgba(0,0,0,.12);
}

.svc3__tag--hot {
  border-color: color-mix(in oklab, var(--color-orange) 40%, rgba(255,255,255,.22));
  background: linear-gradient(180deg,
              color-mix(in oklab, var(--color-orange) 18%, rgba(255,255,255,.10)),
              rgba(255,255,255,.03));
}

[data-theme="light"] .svc3__tag--hot {
  border-color: color-mix(in oklab, var(--color-orange) 40%, rgba(0,0,0,.22));
  background: linear-gradient(180deg,
              color-mix(in oklab, var(--color-orange) 18%, rgba(0,0,0,.10)),
              rgba(0,0,0,.03));
}

.svc3__hook {
  margin: 4px 0 14px;
  font-size: var(--fs-base);
  color: var(--color-ink);
  opacity: .9;
}

[data-theme="light"] .svc3__hook {
  color: var(--color-text-light);
}

.svc3__keys {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.svc3__keys li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-ink-dim);
  font-size: var(--fs-base);
}

[data-theme="light"] .svc3__keys li {
  color: var(--color-text-light-dim);
}

.svc3__keys svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  opacity: .9;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.svc3__proof {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.svc3__num {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svc3__label { 
  color: var(--color-ink-dim); 
  font-size: var(--fs-base); 
}

[data-theme="light"] .svc3__label {
  color: var(--color-text-light-dim);
}

.svc3__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  text-align: center;
}

.svc3--sales .svc3__cta.btn--primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  border: 1px solid color-mix(in oklab, var(--color-orange-2) 55%, #ffffff 0%);
  color: var(--color-white);
}

.svc3--brand .svc3__cta.btn--outline {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.16);
  color: var(--color-ink);
}

[data-theme="light"] .svc3--brand .svc3__cta.btn--outline {
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.02));
  border: 1px solid rgba(0,0,0,.16);
  color: var(--color-text-light);
}

.svc3__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.svc3:focus-within {
  outline: none;
  box-shadow: 0 16px 40px rgba(0,0,0,.45),
              0 0 0 2px rgba(255,255,255,.12),
              0 0 0 6px color-mix(in oklab, var(--color-orange) 35%, transparent);
}

[data-theme="light"] .svc3:focus-within {
  box-shadow: 0 16px 40px rgba(0,0,0,.2),
              0 0 0 2px rgba(0,0,0,.12),
              0 0 0 6px color-mix(in oklab, var(--color-orange) 35%, transparent);
}

.svc3__note {
  margin-top: clamp(8px, 1.6vw, 12px);
  font-size: .85rem;
  color: color-mix(in oklab, var(--color-ink) 70%, #000 30%);
  opacity: .75;
  text-align: center;
}

[data-theme="light"] .svc3__note {
  color: color-mix(in oklab, var(--color-text-light) 70%, #fff 30%);
}

.services-section .section-header {
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

.services-section .section-header h2 {
  margin-bottom: 0px;
  font-size: var(--fs-heading);
  color: var(--color-white);
}

[data-theme="light"] .services-section .section-header h2 {
  color: var(--color-text-light);
}

.services-section .section-header .sub {
  color: var(--color-ink-dim);
  font-size: var(--fs-base);
}

[data-theme="light"] .services-section .section-header .sub {
  color: var(--color-text-light-dim);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header Section */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-top: var(--space-4xl);
}

.section-header h1 {
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: var(--lh-heading);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

[data-theme="light"] .section-header h1 {
  color: var(--color-text-light);
}

.subtitle {
  font-size: var(--fs-base);
  color: var(--color-ink-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-body);
}

[data-theme="light"] .subtitle {
  color: var(--color-text-light-dim);
}



/* AI Chooser Section */
.ai-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  background: var(--color-elev-1);
}

[data-theme="light"] .ai-section {
  background: var(--color-bg-light-2);
}

.hero-spline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.spline-container {
  width: 100%;
  height: 100%;
}

.ai-chooser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--col-gap);
  align-items: stretch;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .ai-chooser-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ai-finder {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ai-finder {
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

.ai-finder-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ai-avatar {
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.2);
}

.ai-title {
  font-size: var(--fs-subheading);
  font-weight: 700;
  color: var(--color-white);
}

[data-theme="light"] .ai-title {
  color: var(--color-text-light);
}

.ai-subtitle {
  color: var(--color-ink-dim);
  font-size: var(--fs-base);
}

[data-theme="light"] .ai-subtitle {
  color: var(--color-text-light-dim);
}

.ai-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin: var(--space-lg) 0;
  overflow: hidden;
}

[data-theme="light"] .ai-progress {
  background: rgba(0, 0, 0, 0.06);
}

.ai-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  width: 0%;
  border-radius: 999px;
  transition: width var(--duration-fast) var(--ease);
}

.ai-question-container h4 {
  font-size: var(--fs-subheading);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  line-height: var(--lh-heading);
}

[data-theme="light"] .ai-question-container h4 {
  color: var(--color-text-light);
}

.ai-options {
  display: grid;
  gap: var(--space-sm);
}

.ai-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration-fast) var(--ease);
  color: var(--color-ink);
}

[data-theme="light"] .ai-option {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-light);
}

.ai-option:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .ai-option:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ai-option input {
  accent-color: var(--color-orange);
}

.ai-option-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
}

/* Visualization Column */
.visualization {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: 100%;
}

.viz-card {
  background: #74624d2e;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration-fast) var(--ease);
}

[data-theme="light"] .viz-card {
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-light);
}

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

.viz-card i {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.viz-card h3 {
  font-size: var(--fs-subheading);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

[data-theme="light"] .viz-card h3 {
  color: var(--color-text-light);
}

.viz-card p {
  color: var(--color-ink-dim);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

[data-theme="light"] .viz-card p {
  color: var(--color-text-light-dim);
}

/* Compare Section */
.ai-compare-section {
  background: var(--color-elev-1);
  min-height: 100vh;
  padding: var(--space-4xl) 0;
}

[data-theme="light"] .ai-compare-section {
  background: var(--color-bg-light-2);
}

.compare-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.compare-header h2 {
  font-size: var(--fs-heading);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  line-height: var(--lh-heading);
}

[data-theme="light"] .compare-header h2 {
  color: var(--color-text-light);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--col-gap);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-card {
  background: var(--color-elev-2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--duration-fast) var(--ease);
}

[data-theme="light"] .plan-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
}

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

.plan-badge {
  position: absolute;
  top: -12px;
  right: var(--space-xl);
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.plan-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
}

.plan-header h3 {
  font-size: var(--fs-subheading);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

[data-theme="light"] .plan-header h3 {
  color: var(--color-text-light);
}

.plan-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-ink-dim);
  padding: var(--space-sm) var(--space-md);
  border-radius: 20px;
  font-size: 0.8rem;
}

[data-theme="light"] .plan-tag {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-light-dim);
}

.plan-intro {
  color: var(--color-ink-dim);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

[data-theme="light"] .plan-intro {
  color: var(--color-text-light-dim);
}

.plan-features {
  margin-bottom: var(--space-xl);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature i {
  color: var(--color-orange-2);
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.feature h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

[data-theme="light"] .feature h4 {
  color: var(--color-text-light);
}

.feature p {
  color: var(--color-ink-dim);
  font-size: 0.9rem;
  line-height: var(--lh-body);
}

[data-theme="light"] .feature p {
  color: var(--color-text-light-dim);
}

.plan-outcomes {
  margin-bottom: var(--space-xl);
}

.plan-outcomes h4 {
  margin-bottom: var(--space-lg);
  font-size: var(--fs-base);
  color: var(--color-white);
}

[data-theme="light"] .plan-outcomes h4 {
  color: var(--color-text-light);
}

.plan-outcomes ul {
  list-style: none;
}

.plan-outcomes li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-ink-dim);
  line-height: var(--lh-body);
}

[data-theme="light"] .plan-outcomes li {
  color: var(--color-text-light-dim);
}

.plan-outcomes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-orange-2);
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: var(--space-lg) var(--space-xl);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all var(--duration-fast) var(--ease);
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: var(--fs-base);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-light);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.12);
}

.btn-restart {
  background: transparent;
  color: var(--color-ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: auto;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
}

[data-theme="light"] .btn-restart {
  color: var(--color-text-light-dim);
  border: 1px solid var(--color-border-light);
}

.btn-restart:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

[data-theme="light"] .btn-restart:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-light);
}

.compare-footer {
  text-align: center;
}

.disclaimer {
  margin-top: var(--space-lg);
  color: var(--color-ink-dim);
  font-size: 0.9rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-body);
}

[data-theme="light"] .disclaimer {
  color: var(--color-text-light-dim);
}

/* Animation for recommended plan */
.recommended {
  border: 2px solid var(--color-orange);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-orange) 18%, transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .ai-finder {
    padding: var(--space-lg);
  }
  
  .plan-card {
    padding: var(--space-lg);
  }
  
  .ai-finder-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .plan-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* ===== CASE STUDIES - COMPACT & REFINED ===== */
.case-studies {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--color-black);
}

[data-theme="light"] .case-studies {
  background: var(--color-bg-light-2);
}

.case-studies .wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.case-studies .cs-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.case-studies .cs-header h2 {
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-ink-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .case-studies .cs-header h2 {
  background: linear-gradient(135deg, var(--color-text-light) 30%, var(--color-text-light-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-studies .cs-header .sub {
  font-size: var(--fs-base);
  color: var(--color-ink-dim);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

[data-theme="light"] .case-studies .cs-header .sub {
  color: var(--color-text-light-dim);
}

/* Grid */
.cs-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* Cards */
.cs-card {
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--color-elev-2) 95%, transparent),
    color-mix(in oklab, var(--color-elev-1) 70%, transparent));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .cs-card {
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--color-bg-light) 95%, transparent),
    color-mix(in oklab, var(--color-bg-light-2) 70%, transparent));
  border: 1px solid var(--color-border-light);
}

.cs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,102,0,0.3);
  box-shadow: 
    0 12px 30px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,102,0,0.15);
}

[data-theme="light"] .cs-card:hover {
  box-shadow: 
    0 12px 30px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,102,0,0.2);
}

.cs-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Media */
.cs-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cs-card:hover .cs-media img {
  transform: scale(1.05);
}

.cs-titlebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}

.cs-title {
  font-size: var(--fs-subheading);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-white);
}

[data-theme="light"] .cs-title {
  color: var(--color-black);
}

.cs-duration {
  font-size: 0.85rem;
  color: var(--color-white);
  font-weight: 500;
}

[data-theme="light"] .cs-duration {
  color: var(--color-black);
}

/* Content */
.cs-body {
  padding: 24px;
}

.cs-summary {
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: var(--fs-base);
  opacity: 0.9;
}

[data-theme="light"] .cs-summary {
  color: var(--color-text-light);
}

/* Metrics - COMPACT DESIGN */
.cs-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--metric-bg);
  border: 1px solid var(--metric-border);
  border-radius: 12px;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.cs-metrics li {
  text-align: center;
  flex: 1;
  list-style: none;
}

.m-key {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  line-height: 1;
}

.m-val {
  display: block;
  font-size: 0.75rem;
  color: var(--color-ink-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

[data-theme="light"] .m-val {
  color: var(--color-text-light-dim);
}

/* Tags */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.cs-tag {
  padding: 6px 12px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--color-ink-dim);
  font-weight: 500;
}

[data-theme="light"] .cs-tag {
  color: var(--color-text-light-dim);
}

/* Actions */
.cs-actions {
  text-align: center;
}

.cs-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  font-size: 0.9rem;
}

.cs-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255,102,0,0.3);
}

/* Footer CTA */
.cs-footer {
  text-align: center;
  padding: 40px 0 20px;
}

.cs-footer-content {
  max-width: 500px;
  margin: 0 auto;
}

.cs-footer-title {
  font-size: var(--fs-subheading);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-white);
  line-height: 1.3;
}

[data-theme="light"] .cs-footer-title {
  color: var(--color-text-light);
}

.cs-footer-text {
  font-size: var(--fs-base);
  color: var(--color-ink-dim);
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.9;
}

[data-theme="light"] .cs-footer-text {
  color: var(--color-text-light-dim);
}

.cs-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 90px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255,102,0,0.25);
  cursor: pointer;
}

.cs-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,102,0,0.35);
}

/* Animation */
@media (prefers-reduced-motion: no-preference) {
  .cs-card {
    animation: fadeUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .cs-card:nth-child(1) { animation-delay: 0.1s; }
  .cs-card:nth-child(2) { animation-delay: 0.2s; }
  .cs-card:nth-child(3) { animation-delay: 0.3s; }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cs-body {
    padding: 20px;
  }
  
  .cs-metrics {
    padding: 12px;
    flex-direction: column;
    gap: 12px;
  }
  
  .cs-metrics li {
    width: 100%;
  }
  
  .cs-titlebar {
    padding: 16px;
  }
  
  .cs-title {
    font-size: 1.2rem;
  }
}

/* ----- Footer ----- */
.site-footer {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  color: var(--color-white);
  padding-block: clamp(40px, 6vw, 70px);
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* Footer Logo Theme Switching */
.footer-logo {
  display: inline-block;
  position: relative;
  height: 62px;
  width: 150px; /* Adjust based on your logo aspect ratio */
}

.footer-logo .logo-light,
.footer-logo .logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  height: 62px;
  width: auto;
  transition: opacity var(--duration-fast) var(--ease);
}

/* Dark mode - show light logo, hide dark */
.footer-logo .logo-light {
  opacity: 1;
}

.footer-logo .logo-dark {
  opacity: 0;
}

/* Light mode - show dark logo, hide light */
[data-theme="light"] .footer-logo .logo-light {
  opacity: 0;
}

[data-theme="light"] .footer-logo .logo-dark {
  opacity: 1;
}

.footer-wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .footer-wrap {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
  }
}

.footer-brand .footer-logo {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-white);
  text-decoration: none;
}

.footer-brand .footer-tagline {
  margin-top: 10px;
  opacity: .9;
  max-width: 38ch;
  font-size: var(--fs-base);
  color: var(--color-white);
}

.footer-nav h4,
.footer-contact h4 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: var(--fs-subheading);
  color: var(--color-white);
}

.footer-nav ul { list-style: none; padding: 0; }

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: all .25s ease;
  padding: 4px 0;
  display: inline-block;
  font-size: var(--fs-base);
}

.footer-nav a:hover {
  color: #000;
  background: rgba(255,255,255,0.8);
  border-radius: 6px;
  padding-inline: 6px;
}

.footer-contact p { 
  margin-bottom: 6px; 
  font-size: var(--fs-base);
  color: var(--color-white);
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-social a {
  font-size: 1.3rem;
  color: var(--color-white);
  transition: transform .25s ease, opacity .25s ease;
}

.footer-social a:hover {
  opacity: .8;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: .85rem;
  opacity: .9;
  color: var(--color-white);
}

/* Layout offsets */
.is-home .hero-section { 
  margin-top: calc(-1 * var(--nav-h)); 
  padding-top: var(--nav-h); 
}

body.has-page-header main,
body.has-page-header .page-header,
body.has-page-header .page-content { 
  scroll-margin-top: var(--nav-h); 
}

