@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== DESIGN TOKENS — DARK MODE (default) ===== */
:root {
  --bg: #0a0a0b;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717a;
  --accent: #DC2626;
  --accent-dark: #991B1B;
  --accent-light: #EF4444;
  --accent-glow: rgba(220,38,38,0.25);
  --accent-bg: rgba(220,38,38,0.08);
  --green: #22C55E;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1100px;
  --nav-bg: rgba(10,10,11,0.85);
  --nav-bg-scrolled: rgba(10,10,11,0.95);
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --featured-card-bg: rgba(255,255,255,0.025);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-card: rgba(0,0,0,0.03);
  --bg-card-hover: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.09);
  --border-hover: rgba(0,0,0,0.2);
  --text-primary: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --accent: #dc2626;
  --accent-dark: #991B1B;
  --accent-light: #ef4444;
  --accent-glow: rgba(220,38,38,0.15);
  --accent-bg: rgba(220,38,38,0.06);
  --green: #16a34a;
  --nav-bg: rgba(250,250,250,0.88);
  --nav-bg-scrolled: rgba(250,250,250,0.97);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --featured-card-bg: rgba(0,0,0,0.02);
}

/* Logo image theme swap */
[data-theme="light"] .nav-logo img,
[data-theme="light"] .footer-brand img {
  content: url('assets/logo-light.svg');
}
[data-theme="light"] .resources-page .nav-logo img,
[data-theme="light"] .resources-page .footer-brand img,
[data-theme="light"] .nav-logo img[src*="../assets/logo.svg"] {
  content: url('../assets/logo-light.svg');
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
  position: relative;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION GLOW ===== */
.section-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
  will-change: transform;
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.navbar.scrolled {
  border-bottom-color: var(--border-hover);
  background: var(--nav-bg-scrolled);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo img { height: 36px; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 24px; list-style: none;
}
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Nav right group */
.nav-right {
  display: flex; align-items: center; gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-card-hover); border-color: var(--border-hover); color: var(--accent); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); transition: 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; width: 100%;
    background: var(--nav-bg-scrolled); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    padding: 24px 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { width: 100%; text-align: center; display: block; }
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(220,38,38,0.18);
  margin-bottom: 20px;
}

/* ===== HEADINGS ===== */
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.section-heading {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700; color: var(--text-primary);
  line-height: 1.13; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-subheading {
  font-size: 17px; color: var(--text-secondary);
  max-width: 660px; line-height: 1.75;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 15px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-primary svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding-top: 68px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 820px; margin: 0 auto;
  position: relative; z-index: 2;
  padding: 60px 24px 40px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 900; color: var(--text-primary);
  line-height: 1.09; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-sub strong { color: var(--text-primary); }
.hero-ctas {
  margin-bottom: 24px;
}
.hero-trust {
  font-size: 13px; color: var(--text-muted);
  margin-top: 0;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--featured-card-bg);
}
.featured-header {
  text-align: center;
  margin-bottom: 28px;
}
.featured-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.featured-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}
.featured-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.featured-badge-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
[data-theme="light"] .featured-badge-icon {
  background: rgba(0,0,0,0.04);
}
.featured-badge-icon.accent-icon {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: rgba(220,38,38,0.2);
}
.featured-card:hover .featured-badge-icon {
  background: var(--accent-bg);
  color: var(--accent);
}
.featured-info {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.featured-name {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.featured-desc {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.featured-arrow {
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.featured-card:hover .featured-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ===== WHAT WE DO ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid rgba(220,38,38,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover .pillar-icon {
  transform: scale(1.06);
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.35);
}
.pillar-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pillar-card p {
  font-size: 14px; line-height: 1.7;
  color: var(--text-secondary);
}

.mechanism-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.mechanism-block p {
  font-size: 16px; line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  flex: 1;
}
@media (max-width: 768px) {
  .mechanism-block {
    flex-direction: column;
    padding: 28px 24px;
    gap: 24px;
    text-align: center;
  }
}

/* ===== CASE STUDIES ===== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 768px) {
  .cs-grid { grid-template-columns: 1fr; }
}

.cs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.cs-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.cs-card-wide {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .cs-card-wide { grid-column: span 1; }
}

.cs-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.cs-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3; margin-bottom: 14px;
}
.cs-body {
  font-size: 14px; line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 24px;
}
.cs-result {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cs-metric {
  font-size: 15px; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.cs-channel {
  font-size: 13px; color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 52px;
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; background: none; border: none;
  color: var(--text-primary);
  font-size: 16px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: left; padding: 22px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px; line-height: 1.75;
  color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-card);
}
.cta-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .cta-block { grid-template-columns: 1fr; gap: 32px; }
}

.cta-points {
  display: flex; flex-direction: column; gap: 20px;
}
.cta-point {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.65;
}
.cta-point strong { color: var(--text-primary); }
.cta-point-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid rgba(220,38,38,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-action {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
  min-width: 280px;
}
.cta-note {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 14px; color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  list-style: none;
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 480px) {
  section { padding: 72px 0; }
  .hero-content { padding: 50px 0; }
  .hero h1 { font-size: 34px; letter-spacing: -0.02em; }
  .pillar-card { padding: 24px; }
  .cs-card { padding: 24px; }
  .mechanism-block { padding: 24px; }
}

/* ===== CURSOR GLOW TRAIL ===== */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none; z-index: 0; will-change: transform; opacity: 0.55;
}
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(220,38,38,0.07) 0%, transparent 65%);
}

/* ===== HERO LINE ANIMATIONS ===== */
.hero-line {
  display: block; opacity: 0; transform: translateY(30px);
  animation: lineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--line-delay, 0s);
}
@keyframes lineReveal { to { opacity: 1; transform: translateY(0); } }

/* ===== ENHANCED REVEAL TRANSITIONS ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger grid children */
.pillars-grid .pillar-card:nth-child(1) { transition-delay: 0s; }
.pillars-grid .pillar-card:nth-child(2) { transition-delay: 0.1s; }
.pillars-grid .pillar-card:nth-child(3) { transition-delay: 0.2s; }
.cs-grid .cs-card:nth-child(1) { transition-delay: 0s; }
.cs-grid .cs-card:nth-child(2) { transition-delay: 0.08s; }
.cs-grid .cs-card:nth-child(3) { transition-delay: 0.16s; }
.cs-grid .cs-card:nth-child(4) { transition-delay: 0.24s; }
.cs-grid .cs-card:nth-child(5) { transition-delay: 0.32s; }
.featured-grid .featured-card:nth-child(1) { transition-delay: 0s; }
.featured-grid .featured-card:nth-child(2) { transition-delay: 0.07s; }
.featured-grid .featured-card:nth-child(3) { transition-delay: 0.14s; }
.featured-grid .featured-card:nth-child(4) { transition-delay: 0.21s; }

/* ===== SCROLL-DRIVEN HORIZONTAL CAROUSEL (Windmill Growth Style) ===== */
.scroll-carousel { position: relative; }
.scroll-carousel__track { position: relative; }
.scroll-carousel__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 32px 0 48px;
}
.scroll-carousel__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.scroll-carousel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 32px;
}
.scroll-carousel__head-left { max-width: 620px; }
.scroll-carousel__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 10px 0 10px;
}
.scroll-carousel__heading em {
  font-style: italic;
  color: var(--accent);
}
.scroll-carousel__sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.scroll-carousel__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-bottom: 6px;
}
.scroll-carousel__counter {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.scroll-carousel__counter-now { color: var(--accent); font-size: 16px; }
.scroll-carousel__counter-rule { display: inline-block; width: 28px; height: 1px; background: var(--border-hover); }
.scroll-carousel__hint {
  font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px;
}
.scroll-carousel__hint svg { opacity: 0.8; color: var(--accent); animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.scroll-carousel__viewport { overflow: hidden; padding: 12px 0 20px; }
.scroll-carousel__rail { display: flex; gap: 24px; padding-bottom: 4px; will-change: transform; list-style: none; margin: 0; }
.scroll-carousel__progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255, 255, 255, 0.05); overflow: hidden;
}
.scroll-carousel__progress span {
  display: block; height: 100%; background: var(--accent);
  width: 0%; transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--accent);
}

/* Carousel Cards */
.carousel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-width: 360px;
  max-width: 390px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.carousel-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.carousel-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(224, 43, 32, 0.08), transparent 45%);
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.carousel-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}
.carousel-card:hover::before,
.carousel-card:hover::after { opacity: 1; }
.carousel-card .cs-metric { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }

@media (max-width: 900px) {
  .scroll-carousel__stage { position: relative; top: auto; height: auto; min-height: auto; padding: 60px 0; }
  .scroll-carousel__track { height: auto !important; }
  .scroll-carousel__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .scroll-carousel__head-right { align-items: flex-start; }
  .scroll-carousel__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .scroll-carousel__viewport::-webkit-scrollbar { display: none; }
  .scroll-carousel__rail { transform: none !important; }
}

/* ===== CHAPTER / STICKY PANEL SYSTEM ===== */
[data-chapter] { position: relative; }
.chapter-layout {
  display: grid; grid-template-columns: 290px 1fr;
  gap: 80px; align-items: start;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
@media (max-width: 900px) {
  .chapter-layout { grid-template-columns: 1fr; gap: 40px; }
  .chapter-aside { position: static !important; }
  .chapter-steps { display: none; }
}
.chapter-aside { position: sticky; top: 120px; }
.chapter-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.chapter-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--text-primary); line-height: 1.15; margin-bottom: 16px; }
.chapter-heading em { font-style: italic; color: var(--accent); }
.chapter-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.chapter-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.chapter-step {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-muted);
}
.chapter-step:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.chapter-step.is-active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(224, 43, 32, 0.06);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.chapter-step.is-done { color: var(--accent); }
.chapter-step-num { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; flex-shrink: 0; transition: color 0.25s; }
.chapter-step.is-active .chapter-step-num { color: var(--accent); }
.chapter-step-name { font-size: 13px; font-weight: 500; }
.chapter-panels { display: flex; flex-direction: column; gap: 28px; padding: 20px 0 80px; }
.chapter-panel {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--panel-i, 0) * 0.08s),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--panel-i, 0) * 0.08s),
              border-color 0.25s, box-shadow 0.25s;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.chapter-panel.is-in { opacity: 1; transform: translateY(0); }
.chapter-panel:hover { border-color: var(--border-hover); box-shadow: 0 12px 36px rgba(0,0,0,0.35); }
.chapter-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.chapter-panel::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(224, 43, 32, 0.08), transparent 45%);
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.chapter-panel:hover::before,
.chapter-panel:hover::after { opacity: 1; }
.chapter-panel-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.chapter-panel h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.25; margin-bottom: 14px; }
.chapter-panel p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.chapter-panel-rule { display: block; width: 40px; height: 1px; background: var(--accent); margin: 16px 0; opacity: 0.5; }
@media (max-width: 480px) { .chapter-panel { padding: 24px 20px; } }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 56px;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }
.stat-cell { background: var(--bg-card); padding: 32px 28px; text-align: center; transition: background 0.25s; }
.stat-cell:hover { background: var(--bg-card-hover); }
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 58px); font-weight: 700;
  color: var(--text-primary); line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== ENHANCED CARD EFFECTS ===== */
.cs-card { position: relative; overflow: hidden; }
.cs-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.cs-card:hover::before { opacity: 1; }
.pillar-card { position: relative; overflow: hidden; }
.pillar-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transform: scaleX(0);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-card:hover::after { opacity: 1; transform: scaleX(1); }
.featured-card { position: relative; overflow: hidden; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9999; width: 0%;
  transition: width 0.1s linear; box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== FAQ ENHANCED ===== */
.faq-item { border-radius: 8px; padding: 0 4px; transition: background 0.2s; }
.faq-item.active { background: var(--accent-bg); }

/* ===== SIDE QUESTS DROPDOWN NAV (restored) ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex !important; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-toggle::after { content: '▾'; font-size: 9px; opacity: 0.6; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: rgba(8,8,8,0.97); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 190px;
  list-style: none; opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block; padding: 9px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary) !important; border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--text-primary) !important; background: rgba(255,255,255,0.05); }
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; backdrop-filter: none; padding: 0 0 0 16px;
  }
  .nav-dropdown:hover .nav-dropdown-toggle::after { transform: none; }
}

/* ===== OUR PROCESS SECTION (Animated Roadmap) ===== */
.process-section {
  position: relative;
  overflow: hidden;
  padding: 128px 0;
  background: var(--bg);
}

.process-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.process-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  opacity: 0.85;
}

[data-theme="light"] .process-grid-lines {
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.04) 1px, transparent 1px);
  opacity: 0.6;
}

.process-orb-1 {
  position: absolute;
  top: 18%;
  right: 8%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
  filter: blur(140px);
}

.process-orb-2 {
  position: absolute;
  bottom: 12%;
  left: 6%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.09) 0%, transparent 70%);
  filter: blur(130px);
}

.process-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 80px;
}

.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: #ff6b6b;
  background: rgba(220, 38, 38, 0.09);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 9999px;
  padding: 6px 18px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px -4px rgba(220, 38, 38, 0.3);
}

[data-theme="light"] .process-badge {
  color: var(--accent);
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: none;
}

.process-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 14px;
}

.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Center Guide & Fill Line (Desktop) */
.process-center-line {
  display: none;
}

@media (min-width: 769px) {
  .process-center-line {
    display: block;
    position: absolute;
    left: 50%;
    top: 36px;
    bottom: 36px;
    width: 1px;
    transform: translateX(-50%);
    z-index: 1;
  }
}

.process-track-bg {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.09);
}

[data-theme="light"] .process-track-bg {
  background: rgba(0, 0, 0, 0.09);
}

.process-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), rgba(220, 38, 38, 0.15));
  will-change: height;
  transition: height 0.08s linear;
}

/* SVG Rail & Traveler */
.process-svg-wrapper {
  display: none;
}

@media (min-width: 769px) {
  .process-svg-wrapper {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
  }
}

.process-rail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.process-rail-path {
  transition: stroke 0.3s ease;
}

.process-traveler {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 44px -2px rgba(220, 38, 38, 0.95), 0 0 20px rgba(220, 38, 38, 0.7);
  pointer-events: none;
  z-index: 12;
  will-change: transform;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.process-traveler.is-active {
  opacity: 1;
}

.process-traveler-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.process-traveler-icon svg {
  width: 18px;
  height: 18px;
}

/* Steps List & Rows */
.process-steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) {
  .process-steps-list {
    gap: 56px;
  }
}

.process-step-row {
  position: relative;
  will-change: transform;
}

@media (min-width: 769px) {
  .process-step-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 20px;
  }
}

/* Columns */
.process-col-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.process-col-empty {
  display: none;
}

@media (min-width: 769px) {
  .process-col-empty {
    display: block;
  }
}

/* Center / Timeline Node */
.process-node {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #141416;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  will-change: transform;
}

[data-theme="light"] .process-node {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.55);
}

.process-node.is-active {
  border-color: rgba(220, 38, 38, 0.8);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 50px -4px rgba(220, 38, 38, 0.9), 0 0 22px rgba(220, 38, 38, 0.55);
  transform: scale(1.22) rotate(6deg);
}

.process-node-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

/* Process Card */
.process-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -32px rgba(0, 0, 0, 0.85);
  cursor: default;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.7s ease, box-shadow 0.7s ease;
  will-change: transform;
}

[data-theme="light"] .process-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 18px 40px -20px rgba(0, 0, 0, 0.08);
}

.process-card-glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translate(-50%, -50%);
}

.process-card-inner {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.process-card-tag {
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
}

.process-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

[data-theme="light"] .process-card-title {
  color: rgba(0, 0, 0, 0.85);
}

.process-card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Active State on Card */
.process-card.is-active {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 30px 80px -40px rgba(220, 38, 38, 0.55), 0 0 24px rgba(220, 38, 38, 0.15);
  transform: scale(1.035) translateY(-6px);
}

.process-card.is-active .process-card-title {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 15px rgba(220, 38, 38, 0.35);
}

[data-theme="light"] .process-card.is-active .process-card-title {
  color: #000000;
  text-shadow: none;
}

/* Hover state */
.process-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

/* Mobile Layout */
@media (max-width: 768px) {
  .process-section {
    padding: 80px 0;
  }

  .process-header {
    margin-bottom: 48px;
  }

  .process-step-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
  }

  .process-col-node {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }

  .process-col-card {
    order: 2;
    flex: 1;
    margin-bottom: 8px;
  }

  .process-col-empty {
    display: none !important;
  }

  .process-node {
    width: 44px;
    height: 44px;
  }

  .process-node-icon {
    width: 20px;
    height: 20px;
  }

  .process-step-row:not(:last-child) .process-col-node::after {
    content: '';
    width: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    margin-top: 12px;
    margin-bottom: -16px;
    min-height: 48px;
  }

  [data-theme="light"] .process-step-row:not(:last-child) .process-col-node::after {
    background: rgba(0, 0, 0, 0.12);
  }

  .process-card-inner {
    padding: 24px;
  }

  .process-card-title {
    font-size: 1.25rem;
  }

  .process-card-desc {
    font-size: 0.9rem;
  }
}

