:root {
  /* Core palette pulled from app dark mode (cool indigo, no pale ends) */
  --bg-primary: #0b0c12;
  --bg-secondary: #161726;
  --bg-tertiary: #1f2032;
  --bg-card: var(--bg-secondary);
  --bg-card-hover: #24263a;

  /* Text hierarchy */
  --text-primary: #f5f7ff;
  --text-secondary: #a5acc8;
  --text-muted: #7b82a3;

  /* Accent (deep indigo gradient that stays dark) */
  --accent-primary: #6b7cff;
  --accent-secondary: #4f5bd5;
  --accent-glow: rgba(107, 124, 255, 0.35);
  --accent-glow-intense: rgba(107, 124, 255, 0.5);
  --accent-subtle: rgba(79, 91, 213, 0.15);

  /* Supporting colors */
  --success: #10b981;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%
  );
  --gradient-card: linear-gradient(
    180deg,
    var(--bg-card) 0%,
    var(--bg-secondary) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );

  /* Typography */
  --font-display: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 160px);
  --container-max: 1280px;
  --container-narrow: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--hero {
  max-width: min(96vw, 1440px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--text-primary);
}

.nav__checkbox {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.nav__cta {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.nav__cta--mobile {
  display: none;
}

@media (max-width: 960px) {
  .nav {
    padding: 16px 0;
  }

  .nav__logo-text {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .nav__checkbox:checked ~ .nav__links {
    display: flex;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta--desktop {
    display: none;
  }

  .nav__cta--mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245, 158, 11, 0.05), transparent);
  pointer-events: none;
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-subtle);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero__tag-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero__headline {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero__headline-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero__subheadline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 60px var(--accent-glow-intense);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn__icon {
  width: 20px;
  height: 20px;
}

/* Hero Visual */
.hero__visual {
  margin: 80px auto 0;
  position: relative;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
  width: min(1200px, 100%);
}

.hero__visual-frame {
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 60px rgba(0, 0, 0, 0.4),
    0 0 120px var(--accent-glow);
}

.hero__visual-mockup {
  background: var(--bg-secondary);
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero__video {
  background: #000;
  border-radius: 0;
}

.hero__video .vjs-big-play-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 999px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero__video .vjs-big-play-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero__video .vjs-control-bar {
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Problems Section */
.problems {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
}

.problems::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__overline {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 0 60px var(--accent-glow);
}

.section__description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .problems__grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  --angle: 0deg;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg 200deg,
    var(--accent-primary) 220deg 260deg,
    var(--accent-secondary) 280deg 320deg,
    transparent 330deg 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card:hover::after {
  opacity: 1;
  animation: border-flow 4s linear infinite;
}

.problem-card__number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.problem-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card__description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Two Paths Section */
.paths {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.section.paths--overlap {
  margin-top: -180px;
  padding-top: 0;
  padding-bottom: 80px;
  background: transparent;
  z-index: 10;
  position: relative;
}

.paths--overlap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: -1;
}

.paths-container {
  background: transparent;
  border-radius: 24px;
  padding: 32px;
}

.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .paths__grid {
    grid-template-columns: 1fr;
  }
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  transition: all 0.3s ease;
  position: relative;
}

.path-card--featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 80px var(--accent-glow), 0 0 120px var(--accent-glow);
}

.path-card__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.path-card__overline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.path-card__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.path-card__description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.path-card__features {
  list-style: none;
  margin-bottom: 32px;
}

.path-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.path-card__feature:last-child {
  border-bottom: none;
}

.path-card__feature-icon {
  width: 20px;
  height: 20px;
  color: #ff9400;
  flex-shrink: 0;
  margin-top: 2px;
}

.path-card__feature-icon--primary {
  color: var(--accent-primary);
}

.path-card__feature-text {
  color: var(--text-secondary);
  font-size: 15px;
}

.path-card__cta {
  width: 100%;
  justify-content: center;
}

/* Social Proof */
.proof {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
}

.proof::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.proof .container {
  position: relative;
  z-index: 1;
}

.proof__stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.proof__stat {
  text-align: center;
}

.proof__stat-value {
  font-size: 56px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.proof__stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof__quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}

.proof__quote-mark {
  position: absolute;
  top: 24px;
  left: 32px;
  font-size: 80px;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.proof__quote-text {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.proof__quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.proof__quote-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--bg-tertiary);
  background-image: url('images/team/steve-turner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.proof__quote-name {
  font-weight: 600;
}

.proof__quote-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer CTA */
.footer-cta {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.footer-cta__content {
  position: relative;
  z-index: 1;
}

.footer-cta__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 0 50px var(--accent-glow);
}

.footer-cta__description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Footer */
.footer {
  padding: 64px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect at top of footer */
.footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

/* Footer Brand Section */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__logo-img {
  height: 40px;
  width: auto;
}

.footer__tagline {
  font-weight: 600;
  font-size: 15px;
  color: #ff9400;
  margin: 0;
}

.footer__mission {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Social Icons */
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Footer Links Grid */
.footer__links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__links-group {
  display: flex;
  flex-direction: column;
}

.footer__group-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__link--static {
  cursor: default;
}

.footer__link--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__link--icon svg {
  flex-shrink: 0;
  color: var(--accent-primary);
}

/* Footer Bottom Bar */
.footer__bottom {
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

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

.footer__legal-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* Tablet Responsive */
@media (max-width: 960px) {
  .container {
    padding: 0 16px;
  }

  .footer {
    padding: 48px 0 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__mission {
    max-width: 400px;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer__links-group {
    align-items: flex-start;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .footer {
    padding: 40px 0 0;
  }

  .footer__glow {
    width: 300px;
    height: 100px;
  }

  .footer__inner {
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__logo-img {
    height: 36px;
  }

  .footer__mission {
    max-width: 100%;
  }

  .footer__links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__links-group--connect {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .footer__links-group--connect .footer__links {
    align-items: center;
  }

  .footer__bottom {
    padding: 20px 0;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer__legal-links {
    justify-content: center;
  }

  /* Larger tap targets for mobile */
  .footer__social-link {
    width: 44px;
    height: 44px;
  }

  .footer__link {
    padding: 4px 0;
  }
}

/* Page Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Wireframe Annotation Styles */
.wireframe-note {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 300px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wireframe-note__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.wireframe-note__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-flow {
  to {
    --angle: 360deg;
  }
}

/* Generic sections for interior pages */
.section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.section--alt {
  background: var(--bg-secondary);
}

.section--muted {
  background: var(--bg-tertiary);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.stack {
  display: grid;
  gap: 16px;
}

.list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
}

.list--check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.list--check svg {
  color: #ff9400;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 13px;
}

.muted {
  color: var(--text-secondary);
}

.text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero--compact {
  min-height: auto;
  padding: calc(var(--section-padding) + 60px) 0 var(--section-padding);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.agent-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
}

.agent-card h3 {
  margin: 0 0 8px;
}

.agent-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.interaction-bonus {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.interaction-bonus__icon {
  color: var(--accent-primary);
  display: block;
  height: 3lh;
  width: auto;
  aspect-ratio: 1;
}

.interaction-bonus__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interaction-bonus__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.interaction-bonus__text {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .interaction-bonus {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .interaction-bonus__icon {
    width: 64px;
    height: 64px;
  }
}

.hero--overlap-ready {
  padding-bottom: calc(var(--section-padding) + 80px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: left;
}

.stat__value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat__label {
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Beliefs Section Styles */
.beliefs-section {
  position: relative;
  overflow: hidden;
}

.beliefs-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.beliefs-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.belief-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.belief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.belief-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.belief-card:hover {
  transform: translateX(8px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.belief-card:hover::before {
  opacity: 1;
}

.belief-card:hover::after {
  opacity: 0.05;
}

.belief-card__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.belief-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.7) saturate(0.8);
}

.belief-card:hover .belief-card__image img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

.belief-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.belief-card__number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.belief-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.belief-card__description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Alternating card styles for visual interest */
.belief-card:nth-child(even) {
  grid-template-columns: 1fr 200px;
}

.belief-card:nth-child(even) .belief-card__image {
  order: 2;
}

.beliefs-stack--tight .belief-card {
  grid-template-columns: 170px 1fr;
  gap: 24px;
}

.beliefs-stack--tight .belief-card:nth-child(even) {
  grid-template-columns: 1fr 170px;
}

.beliefs-stack--tight .belief-card__image img {
  width: 100%;
}

.belief-card:nth-child(even) .belief-card__content {
  order: 1;
}

.belief-card:nth-child(even):hover {
  transform: translateX(-8px);
}

.belief-card:nth-child(even)::before {
  left: auto;
  right: 0;
}

/* Tablet Responsive */
@media (max-width: 800px) {
  .beliefs-stack {
    gap: 20px;
  }

  .belief-card,
  .belief-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .belief-card__image,
  .belief-card:nth-child(even) .belief-card__image {
    order: 0;
    max-width: 160px;
    margin: 0 auto;
  }

  .belief-card__content,
  .belief-card:nth-child(even) .belief-card__content {
    order: 1;
    text-align: center;
  }

  .belief-card__number {
    margin: 0 auto 12px;
  }

  .belief-card:hover,
  .belief-card:nth-child(even):hover {
    transform: translateY(-4px);
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .beliefs-stack {
    gap: 16px;
  }

  .belief-card {
    padding: 20px;
    border-radius: 16px;
  }

  .belief-card__image {
    max-width: 120px;
  }

  .belief-card__title {
    font-size: 18px;
  }

  .belief-card__description {
    font-size: 14px;
  }
}

/* Categories Section Styles (Resources Page) */
.categories-section {
  position: relative;
  overflow: visible;
}

.categories-section--overlap {
  margin-top: -180px;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  z-index: 10;
}

.categories-section--overlap::before {
  display: none;
}

.categories-container {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 80px var(--accent-glow);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.7) saturate(0.8);
}

.category-card:hover .category-card__image img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

.category-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.category-card__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Tablet Responsive */
@media (max-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card__content {
    padding: 20px;
  }

  .category-card__title {
    font-size: 18px;
  }
}

/* Legal pages layout */
.legal-page {
  background: var(--bg-primary);
  min-height: 100vh;
  padding-top: 80px; /* Space for fixed nav */
}

/* Legal Hero - Static, scrolls with page */
.legal-hero {
  padding: 40px 0 32px;
  background: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 70%);
}

.legal-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

.legal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.legal-header__info {
  flex: 1;
  min-width: 280px;
}

.legal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-weight: 600;
  background: var(--accent-subtle);
  padding: 6px 14px;
  border-radius: 6px;
}

.legal-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-meta svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Icon Action Buttons */
.legal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.legal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.legal-action svg {
  width: 20px;
  height: 20px;
}

.legal-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  border: 1px solid var(--border);
}

.legal-action:hover[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.legal-action--success {
  border-color: var(--success);
  color: var(--success);
}

/* Legal Body Layout */
.legal-body {
  padding: 40px 0 80px;
  background: var(--bg-primary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Table of Contents - Sticky within its column */
.legal-toc-wrapper {
  align-self: start;
}

.legal-toc {
  position: sticky;
  top: 100px; /* Below fixed nav (80px) + some padding */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.legal-toc__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-toc__header svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.legal-toc__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc li {
  position: relative;
}

.legal-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.legal-toc a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.legal-toc a.active {
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border-left-color: var(--accent-primary);
}

.legal-toc__number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 24px;
}

/* Content Area */
.legal-content-wrapper {
  min-width: 0;
}

.legal-intro {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.legal-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
}

.legal-intro p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Section Cards */
.legal-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.legal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.legal-section:hover {
  transform: translateX(8px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.legal-section:hover::before {
  opacity: 1;
}

.legal-section:hover::after {
  opacity: 0.05;
}

.legal-section:target {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.legal-section:target::before {
  opacity: 1;
}

.legal-section__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-section__number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

.legal-section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.legal-section__body {
  display: grid;
  gap: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-section__body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 8px 0 0;
}

.legal-section__body p {
  margin: 0;
}

.legal-section__body ul {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.legal-section__body li {
  position: relative;
}

.legal-section__body li::marker {
  color: var(--accent-primary);
}

.legal-section__body a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-section__body a:hover {
  border-bottom-color: var(--accent-primary);
}

.legal-section__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Preamble text in first section */
.legal-preamble {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-left: 3px solid var(--accent-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Legacy support for non-sectioned content */
.legal-surface {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.legal-content {
  display: grid;
  gap: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 16px;
  color: var(--text-primary);
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.legal-content li::marker {
  color: var(--accent-primary);
}

.legal-content a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-content a:hover {
  border-bottom-color: var(--accent-primary);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.legal-content th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content .muted {
  color: var(--text-secondary);
}

.no-print {
  position: relative;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .legal-body {
    padding: 32px 0 80px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: relative;
    top: 0;
    width: 100%;
  }

  .legal-toc ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 800px) {
  .legal-hero {
    padding: 24px 0 20px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .legal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-section {
    padding: 24px;
  }

  .legal-section__header {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 20px 0 16px;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-body {
    padding: 32px 0 80px;
  }

  .legal-toc ul {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 20px;
    border-radius: 12px;
  }

  .legal-section__title {
    font-size: 18px;
  }

  .legal-intro {
    padding: 20px 24px;
  }
}

/* Contact Page Styles */
.contact-section {
  position: relative;
  overflow: visible;
}

.contact-section--overlap {
  margin-top: -180px;
  padding-top: 0;
  padding-bottom: 80px;
  background: transparent;
  z-index: 10;
}

.contact-section--overlap::before {
  display: none;
}

.contact-container {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 48px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 80px var(--accent-glow);
}

.contact-container--narrow {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form-header {
  margin-bottom: 32px;
  transition: opacity 0.3s ease;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.contact-form-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-required {
  color: var(--accent-primary);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-hover);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237b82a3' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 13px;
  color: #ff9400;
  display: none;
  margin-top: -4px;
}

.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: #ff9400 !important;
  box-shadow: 0 0 0 3px rgba(255, 148, 0, 0.18) !important;
}

.form-input--error + .form-error,
.form-select--error + .form-error,
.form-textarea--error + .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Form Success State */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
}

.form-success__icon {
  width: 80px;
  height: 80px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--success);
}

.form-success__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.form-success__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 300px;
}

/* Form Success Visibility */
.form-success--visible {
  display: flex;
  animation: fadeInUp 0.4s ease-out;
}

/* Form Hidden State */
.form--hidden {
  display: none !important;
}

/* Form Loading State */
.form-submit--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.form-submit--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-submit--loading .btn__icon {
  opacity: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Form Error Message (API errors) */
.form-error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #f87171;
  font-size: 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.form-error-message--visible {
  opacity: 1;
  max-height: 80px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.form-error-message svg {
  flex-shrink: 0;
}

.form-error-message__text {
  flex: 1;
}

/* Contact Page Responsive */
@media (max-width: 960px) {
  .contact-container {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .contact-section--overlap {
    margin-top: -120px;
  }

  .contact-container {
    padding: 24px;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-title {
    font-size: 20px;
  }
}

@media print {
  body,
  .legal-page,
  .legal-hero,
  .legal-body,
  .legal-surface,
  .legal-content,
  .legal-section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .legal-page {
    padding-top: 0 !important;
  }

  .nav,
  .footer,
  .hero__grid,
  .nav__cta,
  .legal-actions,
  .legal-toc,
  .no-print {
    display: none !important;
  }

  .legal-layout {
    display: block;
  }

  .container {
    max-width: none;
    padding: 0 12mm;
  }

  .legal-section {
    page-break-inside: avoid;
    padding: 16px 0;
    margin-bottom: 16px;
  }

  .legal-section__number {
    background: none !important;
    padding: 0;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }

  a[href^="#"]::after {
    content: none;
  }
}

/* Use Cases Video Grid Styles */
.use-cases-section {
  position: relative;
  overflow: visible;
}

.use-cases-section--overlap {
  margin-top: -180px;
  padding-top: 0;
  padding-bottom: 80px;
  background: transparent;
  z-index: 10;
}

.use-cases-section--overlap::before {
  display: none;
}

.use-cases-container {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 80px var(--accent-glow);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.video-card:hover::before {
  opacity: 1;
}

.video-card__player {
  position: relative;
  width: 100%;
  background: #000;
}

.video-card__player .video-js {
  border-radius: 0;
}

.video-card__player .vjs-big-play-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 999px;
  width: 56px;
  height: 56px;
  line-height: 56px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.video-card__player .vjs-big-play-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.video-card__player .vjs-control-bar {
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.video-card__content {
  padding: 20px;
}

.video-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.video-card__description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .use-cases-section--overlap {
    margin-top: -120px;
  }

  .use-cases-container {
    padding: 20px;
    border-radius: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-card {
    border-radius: 12px;
  }

  .video-card__content {
    padding: 16px;
  }

  .video-card__title {
    font-size: 16px;
  }

  .video-card__description {
    font-size: 13px;
  }
}

/* Vendor Video Styles (Partnerships Page) */
.vendor-video-container {
  max-width: 800px;
  margin: 0 auto;
}

.vendor-video-frame {
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 60px rgba(0, 0, 0, 0.4),
    0 0 80px var(--accent-glow);
}

.vendor-video {
  background: #000;
  border-radius: 0;
}

.vendor-video .vjs-big-play-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 999px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vendor-video .vjs-big-play-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.vendor-video .vjs-control-bar {
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer CTA Social Buttons */
.footer-cta__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-cta__social .btn {
  gap: 10px;
}

.footer-cta__social .btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer-cta__social {
    flex-direction: column;
    align-items: center;
  }

  .footer-cta__social .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Team Section Styles (About Page) */
.team-section {
  position: relative;
  overflow: visible;
}

.team-section--overlap {
  margin-top: -180px;
  padding-top: 0;
  padding-bottom: 80px;
  background: transparent;
  z-index: 10;
}

.team-section--overlap::before {
  display: none;
}

.team-container {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 48px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 80px var(--accent-glow);
}

.team-container .section__header {
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 3px solid var(--border);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.team-member__image::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.team-member:hover .team-member__image {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.team-member:hover .team-member__image::before {
  opacity: 1;
}

.team-member__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-member__image img {
  transform: scale(1.05);
}

.team-member__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.team-member__title {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 4px;
  line-height: 1.4;
}

.team-member__bio {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.team-member__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.team-member__linkedin:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.team-divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px auto 32px;
}

.team-section__subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0 0 32px;
}

.team-grid--contributors {
  grid-template-columns: repeat(4, 1fr);
}

.team-grid--contributors .team-member:first-child {
  grid-column: 2;
}

.team-grid--contributors .team-member:last-child {
  grid-column: 3;
}

/* Team Grid Responsive */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .team-grid--contributors .team-member:first-child,
  .team-grid--contributors .team-member:last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .team-section--overlap {
    margin-top: -120px;
  }

  .team-container {
    padding: 32px 24px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .team-member__image {
    width: 100px;
    height: 100px;
  }

  .team-member__name {
    font-size: 15px;
  }

  .team-member__title {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-member__image {
    width: 80px;
    height: 80px;
  }

  .team-member__name {
    font-size: 14px;
  }

  .team-member__linkedin {
    width: 32px;
    height: 32px;
  }

  .team-member__linkedin svg {
    width: 16px;
    height: 16px;
  }
}

/* Story Section Styles (About Page) */
.story-section {
  position: relative;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.2;
}

.story-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px;
  position: relative;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 4px 0 0 4px;
}

.story-card p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-card em {
  color: var(--accent-primary);
  font-style: italic;
}

/* Story Section Responsive */
@media (max-width: 768px) {
  .story-card {
    padding: 32px;
  }

  .story-card p {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .story-card {
    padding: 24px;
    border-radius: 16px;
  }

  .story-card p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 24px 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__content {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.cookie-banner__description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner__btn {
  flex: 1;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-banner__btn--decline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cookie-banner__btn--accept {
  background: var(--gradient-accent);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Cookie Preferences Link in Footer */
#cookie-preferences-link {
  cursor: pointer;
}

#cookie-preferences-link:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (min-width: 640px) {
  .cookie-banner__content {
    flex-direction: row;
    align-items: center;
    padding: 16px 24px;
  }

  .cookie-banner__actions {
    flex-shrink: 0;
  }

  .cookie-banner__btn {
    flex: none;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0 16px 16px;
  }

  .cookie-banner__content {
    padding: 16px;
  }

  .cookie-banner__title {
    font-size: 15px;
  }

  .cookie-banner__description {
    font-size: 13px;
  }
}

/* Logo Carousel */
.logo-carousel {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary), transparent);
}

.logo-carousel--primary::before {
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.logo-carousel--primary::after {
  background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.logo-carousel__track {
  display: flex;
  gap: 48px;
  animation: logoScroll 25s linear infinite;
  width: max-content;
}

.logo-carousel__track:hover {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.logo-carousel__item:hover {
  opacity: 1;
}

.logo-carousel__item img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.logo-carousel__item:hover img {
  filter: grayscale(0%) brightness(1);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

@media (max-width: 640px) {
  .logo-carousel {
    margin-top: 32px;
  }

  .logo-carousel::before,
  .logo-carousel::after {
    width: 40px;
  }

  .logo-carousel__track {
    gap: 32px;
  }

  .logo-carousel__item {
    height: 48px;
    padding: 0 12px;
  }

  .logo-carousel__item img {
    max-width: 120px;
  }
}

/* ===========================================
   Blog & Article Styles
   =========================================== */

/* Hero breadcrumb */
.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__breadcrumb a:hover {
  color: var(--accent-primary);
}

.hero__breadcrumb-sep {
  color: var(--text-muted);
}

.hero__breadcrumb span:last-child {
  color: var(--text-primary);
}

/* Blog Section */
.blog-section {
  padding: 80px 0 var(--section-padding);
  background: var(--bg-primary);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

.blog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.8);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
  filter: brightness(1);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card__date,
.blog-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-card__link {
  gap: 12px;
}

.blog-card__link-icon {
  width: 16px;
  height: 16px;
}

/* Article Layout */
.article {
  padding-top: 80px;
  background: var(--bg-primary);
}

/* Inline video (after title/subtitle) */
.article__video-inline {
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
}

.article__video {
  background: #000;
  border-radius: 0;
}

.article__video .vjs-big-play-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 999px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.article__video .vjs-big-play-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.article__video .vjs-control-bar {
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Article Body */
.article__body {
  padding: 48px 0 80px;
  background: var(--bg-primary);
}

/* Article Breadcrumb */
.article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 32px;
}

.article__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article__breadcrumb a:hover {
  color: var(--accent-primary);
}

.article__breadcrumb-sep {
  color: var(--text-muted);
}

/* Article Meta */
.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}

.article__category {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article__date,
.article__author {
  color: var(--text-muted);
}

/* Article Title */
.article__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
  font-style: italic;
}

/* Article Content */
.article__content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article__content p {
  margin-bottom: 24px;
}

.article__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 24px;
}

.article__content h2:first-child {
  margin-top: 0;
}

.article__content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

.article__content a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article__content a:hover {
  border-bottom-color: var(--accent-primary);
}

.article__content em {
  color: var(--text-primary);
}

.article__content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article__content ul,
.article__content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article__content li {
  margin-bottom: 8px;
}

.article__content li::marker {
  color: var(--accent-primary);
}

.article__content blockquote {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Article Tables */
.article__table-wrapper {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.article__table thead {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
}

.article__table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.article__table td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.article__table tbody tr:last-child td {
  border-bottom: none;
}

.article__table tbody tr:hover {
  background: rgba(245, 158, 11, 0.03);
}

.article__table td strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article__table-wrapper {
    margin: 24px -20px;
    padding: 0 20px;
    width: calc(100% + 40px);
  }

  .article__table {
    font-size: 14px;
    min-width: 500px;
  }

  .article__table th,
  .article__table td {
    padding: 12px 16px;
  }
}

/* Article Footer */
.article__footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Responsive Article */
@media (max-width: 768px) {
  .article__body {
    padding: 32px 0 64px;
  }

  .article__video-inline {
    margin-bottom: 32px;
  }

  .article__content {
    font-size: 16px;
  }

  .article__content h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  .article__content h3 {
    font-size: 20px;
  }
}

/* Article Hero Section */
.article-hero {
  padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245, 158, 11, 0.05), transparent);
  pointer-events: none;
}

.article-hero .hero__grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.article-hero .article__breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.article-hero .article__meta {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.article-hero__title {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease forwards;
}

.article-hero__subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

/* Article with Hero modifier */
.article--with-hero {
  padding-top: 0;
}

.article--with-hero .article__body {
  padding-top: 64px;
}

/* Enhanced Video Frame */
.article__video-frame {
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 60px rgba(0, 0, 0, 0.4),
    0 0 80px var(--accent-glow);
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.article__video-frame .article__video {
  border-radius: 0;
}

/* Article Pull Quote */
.article__pullquote {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 40px 48px 40px 72px;
  margin: 48px 0;
  border-left: 3px solid var(--accent-primary);
}

.article__pullquote-mark {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.article__pullquote-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
}

/* Responsive Article Hero */
@media (max-width: 768px) {
  .article-hero {
    padding: calc(var(--section-padding) + 60px) 0 48px;
  }

  .article-hero__title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .article--with-hero .article__body {
    padding-top: 48px;
  }

  .article__video-frame {
    border-radius: 12px;
    margin-bottom: 32px;
  }

  .article__pullquote {
    padding: 32px 24px 32px 56px;
    margin: 32px 0;
  }

  .article__pullquote-mark {
    font-size: 48px;
    left: 16px;
    top: 20px;
  }

  .article__pullquote-text {
    font-size: 18px;
  }
}
