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

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-neutral-primary);
  line-height: 1.5;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   Leonardo Notebook Background Pattern
   A subtle sacred geometry grid inspired by Da Vinci's notebooks.
   Multi-layered: fine grid, medium grid, major divisions,
   diamond connectors, and sacred geometry overlays.
   ═══════════════════════════════════════════════════════════════ */

/* Base notebook grid — multi-scale like a drafting table */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* Finest grid — 20px, barely visible */
    linear-gradient(rgba(184, 160, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 160, 128, 0.03) 1px, transparent 1px),
    /* Medium grid — 60px */
    linear-gradient(rgba(184, 160, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 160, 128, 0.05) 1px, transparent 1px),
    /* Major grid — 240px, most visible */
    linear-gradient(rgba(184, 160, 128, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 160, 128, 0.09) 1px, transparent 1px);
  background-size:
    20px 20px,
    20px 20px,
    60px 60px,
    60px 60px,
    240px 240px,
    240px 240px;
  background-position: center center;
}

/* Diamond connectors at major grid intersections */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23b8a080'%3E%3C!-- Diamond connector at intersection --%3E%3Cpath d='M120,115 L125,120 L120,125 L115,120 Z' stroke-width='0.6' opacity='0.3' fill='%23b8a080' fill-opacity='0.15'/%3E%3C!-- Corner diamonds --%3E%3Cpath d='M0,237 L3,240 L0,240 Z' stroke-width='0.5' opacity='0.2' fill='%23b8a080' fill-opacity='0.1'/%3E%3Cpath d='M240,237 L237,240 L240,240 Z' stroke-width='0.5' opacity='0.2' fill='%23b8a080' fill-opacity='0.1'/%3E%3Cpath d='M0,3 L3,0 L0,0 Z' stroke-width='0.5' opacity='0.2' fill='%23b8a080' fill-opacity='0.1'/%3E%3Cpath d='M240,3 L237,0 L240,0 Z' stroke-width='0.5' opacity='0.2' fill='%23b8a080' fill-opacity='0.1'/%3E%3C!-- Midpoint tick marks --%3E%3Cline x1='120' y1='0' x2='120' y2='3' stroke-width='0.4' opacity='0.06'/%3E%3Cline x1='120' y1='237' x2='120' y2='240' stroke-width='0.4' opacity='0.06'/%3E%3Cline x1='0' y1='120' x2='3' y2='120' stroke-width='0.4' opacity='0.06'/%3E%3Cline x1='237' y1='120' x2='240' y2='120' stroke-width='0.4' opacity='0.06'/%3E%3C!-- Small dots at 60px sub-intersections --%3E%3Ccircle cx='60' cy='60' r='1' fill='%23b8a080' fill-opacity='0.04' stroke='none'/%3E%3Ccircle cx='180' cy='60' r='1' fill='%23b8a080' fill-opacity='0.04' stroke='none'/%3E%3Ccircle cx='60' cy='180' r='1' fill='%23b8a080' fill-opacity='0.04' stroke='none'/%3E%3Ccircle cx='180' cy='180' r='1' fill='%23b8a080' fill-opacity='0.04' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-position: center center;
}

/* Ensure all page content stays above the grid */
body > * {
  position: relative;
  z-index: 1;
}

/* Sacred geometry overlay — golden spirals, Flower of Life, construction arcs */
.leonardo-bg {
  position: relative;
}

.leonardo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%23b8a080'%3E%3C!-- Large golden ratio circles --%3E%3Ccircle cx='360' cy='360' r='300' stroke-width='0.8'/%3E%3Ccircle cx='360' cy='360' r='185.4' stroke-width='0.6'/%3E%3Ccircle cx='360' cy='360' r='114.6' stroke-width='0.6'/%3E%3Ccircle cx='360' cy='360' r='70.8' stroke-width='0.5'/%3E%3Ccircle cx='360' cy='360' r='43.8' stroke-width='0.5'/%3E%3C!-- Flower of Life — 7 interlocking circles --%3E%3Ccircle cx='360' cy='360' r='120' stroke-width='0.5' stroke-dasharray='3 6'/%3E%3Ccircle cx='360' cy='240' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3Ccircle cx='360' cy='480' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3Ccircle cx='256' cy='300' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3Ccircle cx='464' cy='300' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3Ccircle cx='256' cy='420' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3Ccircle cx='464' cy='420' r='120' stroke-width='0.4' stroke-dasharray='3 6'/%3E%3C!-- Golden spiral arc approximation --%3E%3Cpath d='M360,360 Q360,175 545,175' stroke-width='0.6' stroke-dasharray='5 8'/%3E%3Cpath d='M360,360 Q360,545 175,545' stroke-width='0.6' stroke-dasharray='5 8'/%3E%3C!-- Construction cross --%3E%3Cline x1='60' y1='360' x2='660' y2='360' stroke-width='0.4' stroke-dasharray='2 8'/%3E%3Cline x1='360' y1='60' x2='360' y2='660' stroke-width='0.4' stroke-dasharray='2 8'/%3E%3C!-- Diagonal construction --%3E%3Cline x1='60' y1='60' x2='660' y2='660' stroke-width='0.3' stroke-dasharray='4 16'/%3E%3Cline x1='660' y1='60' x2='60' y2='660' stroke-width='0.3' stroke-dasharray='4 16'/%3E%3C!-- Phi rectangle --%3E%3Crect x='137.7' y='180' width='444.6' height='360' rx='2' stroke-width='0.4' stroke-dasharray='6 10'/%3E%3C!-- Vesica piscis --%3E%3Cellipse cx='300' cy='360' rx='100' ry='173' stroke-width='0.3' stroke-dasharray='2 6'/%3E%3Cellipse cx='420' cy='360' rx='100' ry='173' stroke-width='0.3' stroke-dasharray='2 6'/%3E%3C!-- Center mark --%3E%3Ccircle cx='360' cy='360' r='4' fill='%23b8a080' fill-opacity='0.12' stroke='none'/%3E%3C!-- Cardinal marks --%3E%3Ccircle cx='360' cy='60' r='2.5' fill='%23b8a080' fill-opacity='0.1' stroke='none'/%3E%3Ccircle cx='360' cy='660' r='2.5' fill='%23b8a080' fill-opacity='0.1' stroke='none'/%3E%3Ccircle cx='60' cy='360' r='2.5' fill='%23b8a080' fill-opacity='0.1' stroke='none'/%3E%3Ccircle cx='660' cy='360' r='2.5' fill='%23b8a080' fill-opacity='0.1' stroke='none'/%3E%3C!-- Corner brackets --%3E%3Cpath d='M60,60 L85,60 M60,60 L60,85' stroke-width='0.8'/%3E%3Cpath d='M660,60 L635,60 M660,60 L660,85' stroke-width='0.8'/%3E%3Cpath d='M60,660 L85,660 M60,660 L60,635' stroke-width='0.8'/%3E%3Cpath d='M660,660 L635,660 M660,660 L660,635' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 720px 720px;
  background-position: center;
}

.leonardo-bg > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Parchment Paper Texture
   Subtle aged paper noise applied to sections and cards.
   Gives that tactile, Renaissance manuscript feel.
   ═══════════════════════════════════════════════════════════════ */

/* SVG noise filter for paper texture — fine grain, subtle */
.parchment-bg,
.feature-page section,
.feature-page .arena-demo,
.roadmap-card,
.coming-soon,
.api-overview,
.api-endpoints,
.code-example,
.sdk-card {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Paper texture for card surfaces — applied once, not inherited by children */
.step-card,
.feature-card,
.routing-node,
.provider-badge,
.arena-card,
.arena-demo,
.arena-hero-card,
[class*="card"],
[class*="Card"] {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E") !important;
  background-repeat: repeat;
}

/* Prevent double texture — children of textured cards should not inherit texture */
[class*="card"] [class*="card"],
[class*="Card"] [class*="Card"],
[class*="card"] .parchment-bg,
[class*="card"] .principle,
[class*="card"] > div,
.ai-for-good-principles .principle {
  background-image: none !important;
}

/* ═══ Shared Hero Styles for Feature Pages ═══ */
.feature-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.feature-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-hero-bg img,
.feature-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(248,244,240,0.1) 0%, rgba(248,244,240,0.35) 40%, rgba(248,244,240,0.9) 100%);
}

.feature-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.feature-hero-card {
  background: rgba(248, 244, 240, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-hero h1 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  color: var(--color-neutral-primary) !important;
  margin-bottom: 1rem !important;
  line-height: 1.15 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7) !important;
  -webkit-text-fill-color: var(--color-neutral-primary) !important;
}

.feature-hero .subtitle {
  font-size: 1.05rem;
  color: var(--color-neutral-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.feature-hero .hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-hero .cta-primary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.875rem 2rem !important;
  background: var(--color-neutral-inverse, #2d5a4f) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.feature-hero .cta-primary:hover {
  background: var(--color-btn-primary-hover, #1e3a2b) !important;
  transform: translateY(-1px);
}

.feature-hero .cta-secondary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.875rem 2rem !important;
  background: rgba(248, 244, 240, 0.35) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--color-neutral-primary, #2d3c34) !important;
  border: 1.5px solid rgba(248, 244, 240, 0.5) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.feature-hero .cta-secondary:hover {
  border-color: var(--color-neutral-inverse, #2d5a4f) !important;
  background: rgba(45, 90, 79, 0.05) !important;
}

/* ═══ Shared CTA Card Styles for Feature Pages ═══ */
.feature-page .arena-cta-wrapper {
  position: relative;
  padding: var(--section-spacing) 2rem !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow: visible;
  background: transparent !important;
}

.feature-page .arena-cta {
  text-align: center !important;
  padding: 4rem 3.5rem !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-neutral-inverse, #2d5a4f) !important;
  border-radius: var(--radius-large, 16px) !important;
  box-shadow: 0 4px 24px rgba(30, 58, 43, 0.12), 0 12px 48px rgba(30, 58, 43, 0.06) !important;
}

.feature-page .arena-cta-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(184, 160, 128, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.feature-page .arena-cta-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(30deg);
  width: 480px;
  height: 480px;
  border: 1px solid rgba(184, 160, 128, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.feature-page .arena-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--text-h2);
  color: var(--color-surface-light, #faf8f5) !important;
  margin-bottom: 1rem;
  text-shadow: none !important;
  position: relative;
  z-index: 1;
}

.feature-page .arena-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: none !important;
  max-width: 550px;
  position: relative;
  z-index: 1;
}

.feature-page .arena-cta .hero-ctas {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  position: relative;
  z-index: 1;
}

.feature-page .arena-cta .cta-primary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.875rem 2rem !important;
  background: var(--color-surface-light, #faf8f5) !important;
  color: var(--color-neutral-primary, #2d3c34) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.feature-page .arena-cta .cta-primary:hover {
  background: var(--color-bg-primary, #f8f4f0) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-page .arena-cta .cta-secondary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.875rem 2rem !important;
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  color: var(--color-surface-light, #faf8f5) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.feature-page .arena-cta .cta-secondary:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* Text legibility — subtle background highlight for text on patterned backgrounds */
.leonardo-bg h1,
.leonardo-bg h2,
.leonardo-bg h3,
.leonardo-bg .section-subtitle,
.leonardo-bg .subtitle,
.arena-section > h2,
.arena-section > p {
  text-shadow:
    0 0 20px rgba(248, 244, 240, 0.9),
    0 0 40px rgba(248, 244, 240, 0.7),
    0 0 60px rgba(248, 244, 240, 0.4);
}

/* Override warm glow on dark backgrounds — use dark green shadow instead */
.support-header h1, .support-header p,
.roadmap-hero h1, .roadmap-hero p,
.api-hero h1, .api-hero p,
.careers-hero h1, .careers-hero p,
.press-hero h1, .press-hero p,
.about-hero h1, .about-hero p,
.arena-cta h2, .arena-cta p,
[style*="background"][style*="#2d3c34"] h1,
[style*="background"][style*="#2d3c34"] h2,
[style*="background"][style*="#1e3a2b"] h1,
[style*="background"][style*="#1e3a2b"] h2 {
  text-shadow: 0 2px 8px rgba(20, 40, 30, 0.5) !important;
}

/* Remove warm text glow inside white card containers where it washes out text */
.pricing-card h1, .pricing-card h2, .pricing-card h3, .pricing-card p,
.sdk-card h1, .sdk-card h2, .sdk-card h3, .sdk-card p,
.code-example h1, .code-example h2, .code-example h3,
.api-endpoints h1, .api-endpoints h2, .api-endpoints h3,
.capability-card h1, .capability-card h2, .capability-card h3,
.panel h1, .panel h2, .panel h3,
.faq-question,
[style*="background: white"] h1, [style*="background: white"] h2, [style*="background: white"] h3,
[style*="background-color: white"] h1, [style*="background-color: white"] h2, [style*="background-color: white"] h3 {
  text-shadow: none !important;
}

/* Accent sections get a slightly warmer, more visible texture */
.routing-section,
.parchment-accent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") !important;
  background-repeat: repeat;
}

/* Reduced motion — disable animations and transitions */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    opacity: 0.5;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  video[autoplay] {
    display: none;
  }

  .background-video {
    display: none;
  }
}

/* Global focus indicator for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-highlight-blue);
  outline-offset: 2px;
}

/* Utility classes */
.has-text-centered {
  text-align: center;
}

.notification {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  background-color: #e8ddc7;
  color: var(--color-neutral-primary);
  margin-bottom: 1.5rem;
}

.notification.is-info {
  background-color: #f5efe6;
  border-left: 4px solid #b8a080;
  color: #4a3a2a;
}

/* Button-like link reset */
a.cta-button,
a.primary-button,
a.secondary-button {
  text-decoration: none;
}

/* Container for consistent page margins */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10000;
  background-color: rgba(248, 244, 240, 0.97);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 100001 !important;
  transform-style: preserve-3d;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  color: var(--color-neutral-secondary);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.logo a:hover {
  color: var(--color-neutral-dark);
  transition: color 0.3s ease;
}

.logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-neutral-primary);
  font-size: 1.1rem;
  transition: color 0.2s ease-out;
}

/* Hide mobile-only items by default */
.mobile-only {
  display: none;
}

.dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.dropdown-arrow {
  font-size: 0.75rem;
}

/* Navigation Dropdown Menu */
nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-primary, #f8f4f0);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}

nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav .dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--color-neutral-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

nav .dropdown-menu a:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-accent-tertiary);
}

nav .dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

nav .dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

.cta-button {
  background: linear-gradient(135deg, #f5f0e6 0%, #e8ddc7 100%);
  color: #5c4a3a;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.55rem 1.5rem;
  border: 1px solid var(--color-border-dark);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 30%, rgba(139, 115, 85, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(160, 140, 110, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ede8de 0%, #e0d5bf 100%);
  color: #4a3a2a;
}

.cta-button:active {
  transform: translateY(2px);
  box-shadow: 
    0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Hero section styles */
.hero {
  max-width: 1400px;
  margin: 3rem auto 1rem auto;
  padding: 0 4rem;
  position: relative;
}

/* Horizontal gradient mask — fades top/bottom so notebook grid shows only in the middle */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--color-bg-primary) 0%,
    rgba(248, 244, 240, 0.15) 30%,
    rgba(248, 244, 240, 0.05) 50%,
    rgba(248, 244, 240, 0.15) 70%,
    var(--color-bg-primary) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 17 / 18;
  max-width: 600px;
  margin: auto;
  border-radius: 1rem;
}

#hero-video, #hero-video-2, #hero-video-3, .davinci-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  border-radius: 1rem;
  transition: opacity 0.4s ease-in-out;
}

#hero-video {
  z-index: 1;
}

#hero-video-2 {
  z-index: 2;
}

#hero-video-3 {
  z-index: 3;
}

.davinci-image {
  z-index: 0;
}

#sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(45, 60, 52, 0.85);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0.3;
}

.davinci-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text h1 {
  font-size: 3.4rem;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 4rem;
  line-height: 1.1;
  color: var(--color-neutral-primary);
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgb(30, 58, 43);
  max-width: 100%;
  margin-bottom: 1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.feature {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-size: 2.2rem;
  line-height: 1;
  position: relative;
  top: 0.1rem;
}

.feature-icon-star {
  font-size: 2.2rem;
  top: 0.05rem;
}

.feature-icon-rotate {
  font-size: 2.2rem;
  top: 0.05rem;
}

.feature .feature-icon-heart {
  font-size: 2rem !important;
  top: 0.15rem !important;
}

.feature-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-neutral-primary);
  line-height: 1.4;
  align-self: start;
  padding-top: 0.3rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.primary-button {
  background-color: var(--color-highlight-blue);
  color: var(--color-neutral-primary);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease-out, transform 0.15s ease-out;
}

.primary-button:hover {
  background-color: var(--color-highlight-blue-hover);
  transform: translateY(-1px);
}

.secondary-button {
  background-color: transparent;
  color: var(--color-neutral-primary);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(45 60 52);
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out;
}

.secondary-button:hover {
  background-color: rgba(45, 60, 52, 0.05);
  transform: translateY(-1px);
}

/* Enterprise AI section styles */
.enterprise-ai {
  padding: 6rem 4rem 0 4rem;
  background: linear-gradient(
    to bottom,
    rgba(248, 244, 240, 0.92) 0%,
    rgba(248, 244, 240, 0.4) 20%,
    rgba(248, 244, 240, 0.3) 50%,
    rgba(248, 244, 240, 0.4) 80%,
    rgba(248, 244, 240, 0.92) 100%
  );
  position: relative;
  overflow: visible;
}

.enterprise-ai::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.enterprise-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 400;
  color: var(--color-neutral-dark);
  margin-bottom: 3rem;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(30, 58, 43, 0.8);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.enterprise-ai .video-background-container {
  position: absolute;
  top: calc(53% + 34px);
  left: 0;
  width: 100%;
  height: 505px;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 1;
}

.enterprise-ai .background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  filter: hue-rotate(220deg) saturate(0.3) brightness(0.7);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out, filter 0.5s ease-in-out;
}

#background-video-default {
  object-position: center 55%;
}

#background-video-panel2 {
  object-position: center 50%;
}

#background-video-panel3 {
  object-position: center 25%;
}

.enterprise-ai .background-video.active {
  opacity: 0.8;
  z-index: 6;
}

.enterprise-ai.hover-panel-1 .background-video.active {
  filter: hue-rotate(280deg) saturate(0.5) brightness(0.9);
}

.enterprise-ai.hover-panel-2 .background-video.active {
  filter: hue-rotate(180deg) saturate(0.6) brightness(0.8);
}

.enterprise-ai.hover-panel-3 .background-video.active {
  filter: hue-rotate(320deg) saturate(0.4) brightness(1);
}

.enterprise-ai.hover-panel-4 .background-video.active {
  filter: hue-rotate(120deg) saturate(0.7) brightness(0.9);
}

.enterprise-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.circular-panels-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: auto;
  min-height: 800px;
  margin: 50px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 4rem 8rem 4rem;
  overflow: visible;
}

.panels-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  grid-template-rows: auto auto;
  grid-row-gap: 10.5rem;
  width: 100%;
  min-height: 600px;
  position: relative;
  z-index: 10;
}

.panel {
  background-color: rgb(255 255 255 / 37%);
  padding: 0.5rem 1.5em 0.3em;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  width: 100%;
  height: auto;
  max-height: 200px;
  min-height: 180px;
  transform-origin: center center;
  transition: all 0.3s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.panels-container .panel:nth-child(3),
.panels-container .panel:nth-child(4) {
  margin-top: -250px;
  position: relative;
  z-index: 10;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.panel h3,
.panel p {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.panel-art {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  opacity: 0.15;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, stroke 0.3s ease-out;
}

.panel:hover .panel-art {
  transform: scale(1.1);
  opacity: 0.3;
}

.panel-art svg {
  width: 100%;
  height: 100%;
}

.panel-art svg path, .panel-art svg circle {
  stroke: #a0a0a0;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  filter: url(#fresco-texture);
  transition: stroke 0.3s ease-out;
}

.panels-container .panel:nth-child(1) .panel-art {
  top: -10px;
  left: -10px;
  width: 140px;
  height: 140px;
}

.panels-container .panel:nth-child(1):hover .panel-art {
  transform: rotate(20deg) scale(1.15);
}

.panels-container .panel:nth-child(1):hover .panel-art svg path,
.panels-container .panel:nth-child(1):hover .panel-art svg circle {
  animation: color-cycle-green 2s ease-in-out infinite;
}

.panels-container .panel:nth-child(1):hover .panel-art svg path:first-child {
  animation: color-cycle-green 2s ease-in-out infinite, svg-counter-rotate-1 4s linear infinite;
  transform-origin: 50px 50px;
}

.panels-container .panel:nth-child(1):hover .panel-art svg path:last-child {
  animation: color-cycle-green 2s ease-in-out infinite, svg-counter-rotate-2 4s linear infinite;
  transform-origin: 50px 50px;
}

.panels-container .panel:nth-child(2) .panel-art {
  top: -15px;
  right: -15px;
  width: 160px;
  height: 160px;
}

.panels-container .panel:nth-child(2):hover .panel-art {
  transform: scale(1.2);
}

.panels-container .panel:nth-child(2):hover .panel-art svg path,
.panels-container .panel:nth-child(2):hover .panel-art svg circle {
  animation: color-cycle-blue 2.5s ease-in-out infinite, svg-rotate 6s linear infinite;
  transform-origin: 50px 50px;
}

.panels-container .panel:nth-child(3) .panel-art {
  bottom: -10px;
  left: -10px;
  width: 150px;
  height: 150px;
}

.panels-container .panel:nth-child(3):hover .panel-art {
  transform: translateY(-15px) scale(1.1);
}

.panels-container .panel:nth-child(3):hover .panel-art svg .fibonacci-spiral {
  animation: color-cycle-yellow 3s ease-in-out infinite, fibonacci-rotate 8s linear infinite;
  transform-origin: 50px 50px;
}

.panels-container .panel:nth-child(3):hover .panel-art svg .golden-rect-1 {
  animation: color-cycle-yellow 3s ease-in-out infinite, golden-pulse-1 2s ease-in-out infinite;
  transform-origin: 46px 54px;
}

.panels-container .panel:nth-child(3):hover .panel-art svg .golden-rect-2 {
  animation: color-cycle-yellow 3s ease-in-out infinite, golden-pulse-2 2.5s ease-in-out infinite;
  transform-origin: 35.5px 51.5px;
}

.panels-container .panel:nth-child(3):hover .panel-art svg .golden-rect-3 {
  animation: color-cycle-yellow 3s ease-in-out infinite, golden-pulse-3 3s ease-in-out infinite;
  transform-origin: 39.5px 34.5px;
}

.panels-container .panel:nth-child(3):hover .panel-art svg .golden-rect-4 {
  animation: color-cycle-yellow 3s ease-in-out infinite, golden-pulse-4 3.5s ease-in-out infinite;
  transform-origin: 67px 41px;
}

.panels-container .panel:nth-child(4) .panel-art {
  bottom: -15px;
  right: -15px;
  width: 170px;
  height: 170px;
}

.panels-container .panel:nth-child(4):hover .panel-art {
  transform: rotate(-15deg) scale(1.15);
}

.panels-container .panel:nth-child(4):hover .panel-art svg path,
.panels-container .panel:nth-child(4):hover .panel-art svg circle {
  animation: color-cycle-pink 2.2s ease-in-out infinite;
}

.panels-container .panel:nth-child(4):hover .panel-art svg path:first-child {
  animation: color-cycle-pink 2.2s ease-in-out infinite, svg-rotate 5s linear infinite;
  transform-origin: 50px 50px;
}

.panels-container .panel:nth-child(4):hover .panel-art svg path:last-child {
  animation: color-cycle-pink 2.2s ease-in-out infinite, svg-rotate-reverse 5s linear infinite;
  transform-origin: 50px 50px;
}

/* Keyframes for animations */
@keyframes subtle-rotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes subtle-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes subtle-flow {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(2px) translateY(2px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes color-cycle-green {
  0% { stroke: #4CAF50; }
  25% { stroke: #8BC34A; }
  50% { stroke: #CDDC39; }
  75% { stroke: #66BB6A; }
  100% { stroke: #4CAF50; }
}

@keyframes color-cycle-blue {
  0% { stroke: #8b7355; }
  25% { stroke: #a08060; }
  50% { stroke: #9a8570; }
  75% { stroke: #7a6345; }
  100% { stroke: #8b7355; }
}

@keyframes color-cycle-yellow {
  0% { stroke: #FFC107; }
  25% { stroke: #FFEB3B; }
  50% { stroke: #FF9800; }
  75% { stroke: #FFD54F; }
  100% { stroke: #FFC107; }
}

@keyframes color-cycle-pink {
  0% { stroke: #E91E63; }
  25% { stroke: #F06292; }
  50% { stroke: #FF4081; }
  75% { stroke: #C2185B; }
  100% { stroke: #E91E63; }
}

@keyframes svg-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes svg-rotate-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes svg-counter-rotate-1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes svg-counter-rotate-2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes fibonacci-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes golden-pulse-1 {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes golden-pulse-2 {
  0% { transform: scale(1); opacity: 0.7; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes golden-pulse-3 {
  0% { transform: scale(1); opacity: 0.6; }
  40% { transform: scale(1.08); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes golden-pulse-4 {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* Apply continuous animations */
.panels-container .panel:nth-child(1) .panel-art svg {
  animation: subtle-rotate 8s ease-in-out infinite alternate;
}

.panels-container .panel:nth-child(2) .panel-art svg {
  animation: subtle-scale 7s ease-in-out infinite alternate;
}

.panels-container .panel:nth-child(3) .panel-art svg {
  animation: subtle-flow 9s ease-in-out infinite alternate;
}

.panels-container .panel:nth-child(4) .panel-art svg {
  animation: subtle-rotate 10s ease-in-out infinite alternate reverse;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  font-family: 'Source Sans 3', sans-serif;
  z-index: 99999 !important;
  margin-left: 15px;
  isolation: isolate;
}

.language-switcher-current {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher-current:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-icon {
  margin-right: 8px;
  font-size: 18px;
  color: var(--color-neutral-secondary);
}

.current-language {
  margin: 0 8px;
  font-size: 14px;
  color: var(--color-neutral-primary);
  font-weight: 500;
}

.dropdown-icon {
  font-size: 10px;
  color: var(--color-neutral-secondary);
  transition: transform 0.3s ease;
}

.language-switcher.active .dropdown-icon {
  transform: rotate(180deg);
}

.language-switcher-dropdown {
  position: fixed;
  width: 180px;
  background-color: var(--color-bg-primary, #f8f4f0);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  z-index: 999999 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dropdown display is now controlled by JavaScript since it's moved to body */

.language-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-neutral-primary);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: var(--color-bg-primary);
  color: var(--color-neutral-dark);
}

.language-name {
  font-size: 14px;
  font-weight: 500;
}

.language-native {
  font-size: 13px;
  color: var(--color-neutral-secondary);
  font-weight: 400;
}

.language-option:hover .language-native {
  color: var(--color-neutral-dark);
}

/* RTL Support */
html[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 15px;
}

html[dir="rtl"] .language-switcher-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-icon {
  margin-right: 0;
  margin-left: 8px;
}

/* Light beam removed - z-index styling cleaned up */

/* Video and footer styling restored to normal */
.background-video, .enterprise-ai .background-video {
  display: block;
  opacity: 1;
}

.enterprise-ai .background-video.active {
  opacity: 0.8;
}

.hero-video, .hero-video-2, .hero-video-3 {
  display: block;
}

/* Hero video initial states - videos 2 and 3 start hidden but can be shown by JS */
#hero-video-2, #hero-video-3 {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* Sound toggle initial state */
#sound-toggle {
  display: none;
}

/* Show button fully when hovering over video container */
.hero-image:hover #sound-toggle {
  opacity: 1;
}

#sound-toggle:hover {
  background-color: rgba(45, 60, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  opacity: 1;
}

#sound-toggle:active {
  transform: translateY(0);
}

/* SVG utility styles */
.svg-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.svg-definitions {
  display: none;
}

/* Intelligent futuristic pulsing animations */
@keyframes futuristicPulse {
  0%, 100% { 
    opacity: 0.6;
    filter: brightness(1) blur(0px);
  }
  25% { 
    opacity: 0.8;
    filter: brightness(1.1) blur(0.5px);
  }
  50% { 
    opacity: 0.7;
    filter: brightness(1.05) blur(0.2px);
  }
  75% { 
    opacity: 0.9;
    filter: brightness(1.15) blur(0.8px);
  }
}

@keyframes dataFlow {
  0% { 
    background-position: 0px 0px;
  }
  100% { 
    background-position: 200px 0px;
  }
}

@keyframes energyWave {
  0%, 100% { 
    transform: scaleY(1) scaleX(1);
  }
  33% { 
    transform: scaleY(1.02) scaleX(0.99);
  }
  66% { 
    transform: scaleY(0.98) scaleX(1.01);
  }
}

/* All lighting effects removed */








/* Footer Styles */
.contact-footer-wrapper {
  background: linear-gradient(rgba(30, 58, 43, 0.7), rgba(30, 58, 43, 0.8)),
              url('https://pub-fb3e683317b24cf8b4260121edae02be.r2.dev/images/leonardo-with-his-robot.webp');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
}

/* Grid overlay on footer — lets notebook pattern show through subtly */
.contact-footer-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    /* Medium grid */
    linear-gradient(rgba(184, 160, 128, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 160, 128, 0.06) 1px, transparent 1px),
    /* Major grid */
    linear-gradient(rgba(184, 160, 128, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 160, 128, 0.1) 1px, transparent 1px);
  background-size:
    60px 60px,
    60px 60px,
    240px 240px,
    240px 240px;
  background-position: center center;
}

.contact-footer-wrapper > * {
  position: relative;
  z-index: 2;
}

/* Removed parchment texture background art */

/* Removed pencil sketch background art */

.site-footer {
  background: transparent;
  color: var(--color-bg-primary);
  padding: 3rem 0 1rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

/* Add Renaissance-themed parchment background for footer on non-homepage pages */
body:not(.homepage) .site-footer {
  background: 
    /* Parchment texture base */
    radial-gradient(circle at 20% 80%, rgba(245, 230, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 210, 180, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(215, 195, 165, 0.08) 0%, transparent 50%),
    /* Radial aged paper gradient - light center to dark edges */
    radial-gradient(ellipse at center top, 
      rgba(45, 35, 25, 0.25) 0%,     /* Light center */
      rgba(35, 30, 25, 0.35) 30%,    /* Getting darker */
      rgba(40, 32, 28, 0.55) 60%,    /* Medium darkness */
      rgba(38, 28, 22, 0.85) 85%,    /* Dark edges */
      rgba(42, 30, 25, 0.90) 100%    /* Darkest corners */
    );
  
  /* Fix background sizing and positioning for mobile/iPhone */
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
}

/* Sacred geometry background layer - horizontally flipped */
body:not(.homepage) .site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://pub-fb3e683317b24cf8b4260121edae02be.r2.dev/images/u4943574663_httpss.mj.runclv3aUm6SU0_Flat_sacred_geometry_Rus_f2e3fde5-6320-49e3-9c39-e5bbbf571e50_2.png');
  background-size: cover; /* Cover the area without stretching */
  background-position: center center;
  background-repeat: no-repeat;
  transform: scaleX(-1); /* Flip horizontally */
  opacity: 0.15; /* Very subtle for text readability */
  mix-blend-mode: multiply; /* Blend with the parchment background */
  z-index: 0;
  pointer-events: none;
}


/* SVG art pieces removed for cleaner footer design */

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Footer decorative SVG elements removed for cleaner design */

.footer-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-highlight-blue);
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-bg-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-highlight-blue);
}

/* Position-specific gradient text colors for each footer column */

/* Column 1 (Brand Section - Left) - Darkest since it's on lightest background */
body:not(.homepage) .footer-content .footer-section:nth-child(1) h3,
body:not(.homepage) .footer-content .footer-section:nth-child(1) a,
body:not(.homepage) .footer-content .footer-section:nth-child(1) .footer-logo span,
body:not(.homepage) .footer-content .footer-section:nth-child(1) .footer-tagline {
  color: var(--color-bg-primary);
}

/* Column 2 (Product) - Medium-dark */
body:not(.homepage) .footer-content .footer-section:nth-child(2) h3,
body:not(.homepage) .footer-content .footer-section:nth-child(2) a {
  color: var(--color-bg-primary);
}

/* Column 3 (Resources) - Medium */
body:not(.homepage) .footer-content .footer-section:nth-child(3) h3,
body:not(.homepage) .footer-content .footer-section:nth-child(3) a {
  color: var(--color-bg-primary);
}

/* Column 4 (Company) - Keep similar to first columns */
body:not(.homepage) .footer-content .footer-section:nth-child(4) h3,
body:not(.homepage) .footer-content .footer-section:nth-child(4) a {
  color: var(--color-bg-primary);
}

/* Column 5 (Legal) - Darker for better contrast against light background */
body:not(.homepage) .footer-content .footer-section:nth-child(5) h3,
body:not(.homepage) .footer-content .footer-section:nth-child(5) a {
  color: var(--color-bg-primary);
}

/* Footer bottom section (spans full width) - Better contrast for readability */
body:not(.homepage) .copyright,
body:not(.homepage) .footer-bottom-links a,
body:not(.homepage) .privacy-settings-link {
  color: white !important; /* Pure white for maximum contrast */
  background: none !important; /* Remove gradient that was causing poor contrast */
  -webkit-text-fill-color: initial !important; /* Reset webkit text fill */
  opacity: 0.7 !important; /* 70% opacity for perfect balance */
}

/* Hover states for each column */
body:not(.homepage) .footer-content .footer-section:nth-child(1) a:hover {
  color: var(--color-surface-light);
}
body:not(.homepage) .footer-content .footer-section:nth-child(2) a:hover {
  color: var(--color-surface-light);
}
body:not(.homepage) .footer-content .footer-section:nth-child(3) a:hover {
  color: var(--color-surface-light);
}
body:not(.homepage) .footer-content .footer-section:nth-child(4) a:hover {
  color: var(--color-surface-light);
}
body:not(.homepage) .footer-content .footer-section:nth-child(5) a:hover {
  color: var(--color-surface-light);
}
body:not(.homepage) .footer-bottom-links a:hover,
body:not(.homepage) .privacy-settings-link:hover {
  color: #d4c4a0 !important; /* Warm gold hover for contrast against cream base */
}

.brand-section .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.footer-logo-link span {
  color: inherit;
}

.brand-section .footer-logo img {
  height: 2rem;
  width: auto;
}

.brand-section .footer-logo span {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-highlight-blue);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(207, 220, 255, 0.1);
  border-radius: 50%;
  color: var(--color-highlight-blue);
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--color-highlight-blue);
  color: var(--color-neutral-dark);
}

/* SVG brand-mark icons inside footer-social (e.g. Hugging Face logo).
   HF's monochrome mark ships as fill="black"; the footer uses white/blue icons,
   so we invert to match the surrounding icon color. */
.footer-social-img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

/* Brand page — /brand */
.brand-page {
  padding: 4rem 0 6rem;
  background: #faf8f5;
  color: #2d3c34;
  min-height: 60vh;
}

.brand-page-header {
  display: block; /* override global `header { display: flex }` at line 495 */
  text-align: center;
  max-width: min(1100px, 92vw);
  margin: 0 auto 4rem;
  padding: 0 1rem;
  background-color: transparent;
  position: static;
  z-index: auto;
}

.brand-page-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-page-tagline {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #4a3a2a;
}

.brand-page-note {
  display: block;
  font-size: 0.95rem;
  color: #6b5d4f;
}

.brand-page-note a {
  white-space: nowrap;
}

.brand-page-note a {
  color: #2d5a4f;
  text-decoration: underline;
}

.brand-section {
  max-width: 1000px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}

.brand-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e0d5bf;
  padding-bottom: 0.4rem;
}

.brand-section p {
  font-size: 0.98rem;
  color: #4a3a2a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.site-footer .brand-section p,
.site-footer .footer-tagline {
  color: var(--color-bg-primary);
}

.brand-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.brand-asset {
  background: #fff;
  border: 1px solid #e0d5bf;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-asset:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 60, 52, 0.08);
}

.brand-asset-preview {
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.brand-bg-light {
  background: #faf8f5;
}

.brand-bg-dark {
  background: #1e3a2b;
}

.brand-asset-info {
  padding: 0.85rem 1rem;
  border-top: 1px solid #ede8de;
}

.brand-asset-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3c34;
  margin-bottom: 0.35rem;
}

.brand-asset-links {
  display: flex;
  gap: 0.75rem;
}

.brand-asset-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d5a4f;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-asset-links a:hover {
  color: #c08850;
}

/* Colors */
.brand-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.brand-color-swatch {
  padding: 1.2rem 1rem;
  border-radius: 8px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.brand-color-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.brand-color-hex {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* Typography sample */
.brand-type-sample {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e0d5bf;
  border-radius: 10px;
}

.brand-type-display {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1e3a2b;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.brand-type-body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a3a2a;
}

/* Usage list */
.brand-usage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-usage-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-bottom: 1px solid #ede8de;
  position: relative;
  color: #4a3a2a;
  line-height: 1.55;
}

.brand-usage-list li:last-child {
  border-bottom: none;
}

.brand-usage-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #c08850;
}

.brand-usage-list strong {
  color: #1e3a2b;
  font-weight: 700;
}

/* Partners */
.brand-partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-partner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  background: #fff;
  border: 1px solid #e0d5bf;
  border-radius: 8px;
  color: #2d3c34;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.brand-partner:hover {
  background: #f8f4f0;
  border-color: #c08850;
}

.brand-partner i {
  font-size: 1.6rem;
  color: #1e3a2b;
}

.brand-partner img {
  height: 28px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 244, 240, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #d4c4a0;
}

/* Features Section Styles */
.features-section {
  padding: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 244, 240, 0.92) 0%,
    rgba(248, 244, 240, 0.4) 25%,
    rgba(248, 244, 240, 0.3) 50%,
    rgba(248, 244, 240, 0.4) 75%,
    rgba(248, 244, 240, 0.92) 100%
  );
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: -12rem;
  /* transform: translateY(-6rem); - removed to fix stacking context */
  z-index: 1000 !important;
  isolation: isolate;
}

/* Light beam window effect removed */

.features-container {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem 0;
  position: relative;
  z-index: 10;
}

/* Splotchy background for features header - removed */
.features-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 70%;
  max-width: 600px;
  height: 150%;
  /* background removed */
  /* filter removed */
  z-index: -1;
  /* border-radius removed */
  /* animation removed */
}

.features-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: #4a3a2a;
  margin-bottom: 1rem;
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1000 !important;
  mix-blend-mode: multiply;
}

.features-header p {
  color: #5c4a3a;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 15px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1000 !important;
}


/* Desktop layout for journal showcase */
@media (min-width: 769px) {
  .davinci-journal-showcase {
    display: flex;
    width: 100%;
    min-height: 700px;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    align-items: center;
    flex-direction: row;
  }
  
  .feature-details {
    flex: 0 0 60%;
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 15;
    height: 700px;
    transform: translateY(-80px) translateX(-40px);
  }
}

/* Mobile and tablet fallback */
.davinci-journal-showcase {
  display: flex;
  width: 100%;
  min-height: 700px;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.journal-stack {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  padding-top: 0;
  padding-left: 10rem;
  position: relative;
  z-index: 10;
  margin-left: 4.44em;
  padding-right: 0;
  margin-right: -2.222em;
}

.journal-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: #5c4a3a;
  margin-bottom: 2rem;
  text-align: center;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Journal Navigation Buttons */
.journal-navigation {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  z-index: 15;
}

.nav-button {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, rgba(245, 240, 230, 0.85) 0%, rgba(232, 221, 199, 0.85) 100%);
  border: 1px solid var(--color-border-dark);
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 30%, rgba(139, 115, 85, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(160, 140, 110, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.nav-button svg {
  width: 100%;
  height: 100%;
}

.nav-button:hover {
  transform: translateY(1px);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ede8de 0%, #e0d5bf 100%);
}

.nav-button:active {
  transform: translateY(2px);
  box-shadow: 
    0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.nav-button:hover svg rect,
.nav-button:hover svg path {
  stroke: #6b5a44;
}

.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-button:disabled:hover {
  transform: none;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f5f0e6 0%, #e8ddc7 100%);
}

.journal-pages-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 500px;
  perspective: 1000px;
  margin-top: 80px;
}

.journal-stack {
  position: relative;
}

/* Da Vinci Journal Page Styles */
.journal-page {
  position: absolute;
  width: 250px;
  height: 350px;
  background: linear-gradient(135deg, rgba(245, 240, 230, 1.0) 0%, rgba(232, 221, 199, 1.0) 100%);
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 0 30px rgba(139, 115, 85, 0.1);
  cursor: pointer;
  transition: all 0.4s ease, opacity 0.3s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Multi-layered aged paper texture */
.journal-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(139, 115, 85, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(160, 140, 110, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(100, 80, 60, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(120, 100, 70, 0.1) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 20%, rgba(140, 120, 90, 0.09) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.page-content {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--color-accent-secondary);
  font-style: italic;
}

.sketch-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 40px 0;
}

.sketch-area .feature-icon {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.3;
  filter: sepia(0.5);
}

.davinci-sketch {
  width: 100%;
  height: 100%;
  max-width: 180px;
  max-height: 180px;
  filter: blur(0.3px);
  opacity: 0.8;
}

.mirror-text {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) scaleX(-1);
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--color-accent-secondary);
  opacity: 0.4;
  font-style: italic;
  letter-spacing: 2px;
}

.annotations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.annotation {
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  color: var(--color-accent-secondary);
  opacity: 0.5;
  font-style: italic;
}

.annotation.top-right {
  top: 40px;
  right: 25px;
}

.annotation.bottom-left {
  bottom: 30px;
  left: 25px;
}

/* Journal Page Stack Positioning - Simple stacked layout */
.journal-page:nth-child(1) { 
  transform: translateX(0px) translateY(0px) rotate(-2deg) scale(1.0); 
  z-index: 10; 
  background: linear-gradient(135deg, rgba(245, 240, 230, 1.0) 0%, rgba(232, 221, 199, 1.0) 100%);
}
.journal-page:nth-child(2) { transform: translateX(5px) translateY(2px) rotate(-1.5deg) scale(1.0); z-index: 9; }
.journal-page:nth-child(3) { transform: translateX(10px) translateY(4px) rotate(-1deg) scale(1.0); z-index: 8; }
.journal-page:nth-child(4) { transform: translateX(15px) translateY(6px) rotate(-0.5deg) scale(1.0); z-index: 7; }
.journal-page:nth-child(5) { transform: translateX(20px) translateY(8px) rotate(0deg) scale(1.0); z-index: 6; }
.journal-page:nth-child(6) { transform: translateX(25px) translateY(10px) rotate(0.5deg) scale(1.0); z-index: 5; }
.journal-page:nth-child(7) { transform: translateX(30px) translateY(12px) rotate(1deg) scale(1.0); z-index: 4; }
.journal-page:nth-child(8) { transform: translateX(35px) translateY(14px) rotate(1.5deg) scale(1.0); z-index: 3; }
.journal-page:nth-child(9) { transform: translateX(40px) translateY(16px) rotate(2deg) scale(1.0); z-index: 2; }
.journal-page:nth-child(10) { transform: translateX(45px) translateY(18px) rotate(2.5deg) scale(1.0); z-index: 1; }

/* Scroll animation removed - clean CSS */

/* Active Journal Page */
.journal-page.active {
  transform: translateX(-80px) translateY(-30px) rotate(-5deg) scale(1.15);
  z-index: 20;
  background: linear-gradient(135deg, rgba(245, 240, 230, 1.0) 0%, rgba(232, 221, 199, 1.0) 100%) !important;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 40px rgba(139, 115, 85, 0.15);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Da Vinci sketch hand-drawing animations - only on active page */
.journal-page.active .davinci-sketch path,
.journal-page.active .davinci-sketch line,
.journal-page.active .davinci-sketch circle {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: handDraw 3s ease-out forwards;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Performance optimizations */
  will-change: stroke-dashoffset, opacity;
  transform: translateZ(0); /* Hardware acceleration */
}

/* More realistic staggered timing like an artist would draw */
.journal-page.active .davinci-sketch path:nth-child(1) { animation-delay: 0.3s; animation-duration: 2.5s; }
.journal-page.active .davinci-sketch path:nth-child(2) { animation-delay: 0.8s; animation-duration: 2.8s; }
.journal-page.active .davinci-sketch path:nth-child(3) { animation-delay: 1.4s; animation-duration: 2.2s; }
.journal-page.active .davinci-sketch path:nth-child(4) { animation-delay: 2.1s; animation-duration: 2.6s; }
.journal-page.active .davinci-sketch line:nth-child(1) { animation-delay: 0.5s; animation-duration: 1.8s; }
.journal-page.active .davinci-sketch line:nth-child(2) { animation-delay: 1.2s; animation-duration: 2.1s; }
.journal-page.active .davinci-sketch line:nth-child(3) { animation-delay: 1.8s; animation-duration: 1.9s; }
.journal-page.active .davinci-sketch line:nth-child(4) { animation-delay: 2.4s; animation-duration: 1.7s; }
.journal-page.active .davinci-sketch circle:nth-child(1) { animation-delay: 0.7s; animation-duration: 3.2s; }
.journal-page.active .davinci-sketch circle:nth-child(2) { animation-delay: 1.6s; animation-duration: 2.9s; }
.journal-page.active .davinci-sketch circle:nth-child(3) { animation-delay: 2.3s; animation-duration: 3.1s; }

/* Hand-drawing animation with natural pen movement */
@keyframes handDraw {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  5% {
    opacity: 0.4;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
}

/* Also animate the feature icons with a subtle pulse */
.journal-page.active .sacred-icon {
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Animate handwritten annotations appearing */
.journal-page.active .annotations .annotation {
  opacity: 0;
  animation: fadeInAnnotation 0.8s ease-out forwards;
}

.journal-page.active .annotations .annotation:nth-child(1) { animation-delay: 1.5s; }
.journal-page.active .annotations .annotation:nth-child(2) { animation-delay: 1.8s; }

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

/* Hand-written effect for mirror text */
.journal-page.active .mirror-text {
  opacity: 0;
  transform: translateX(-10px) rotate(-1deg);
  animation: handWrite 2.5s ease-out 3.5s forwards;
  position: relative;
}

/* Add ink blot effect as text appears */
.journal-page.active .mirror-text::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 3px;
  height: 3px;
  background: rgba(139, 115, 85, 0.4);
  border-radius: 50%;
  opacity: 0;
  animation: inkBlot 0.3s ease-out 3.5s forwards;
}

@keyframes handWrite {
  0% {
    opacity: 0;
    transform: translateX(-10px) rotate(-1deg) scale(0.95);
  }
  20% {
    opacity: 0.3;
    transform: translateX(-5px) rotate(-0.5deg) scale(0.98);
  }
  100% {
    opacity: 0.8;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes inkBlot {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.journal-page:hover:not(.active) {
  transform: translateY(-10px);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.15),
    inset 0 0 30px rgba(139, 115, 85, 0.1);
}
.journal-page:focus {
  outline: 3px solid #8b7355;
  outline-offset: 2px;
}

/* Ink stains and aging effects */
.journal-page.active::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(45deg);
}

/* Renaissance-style handwriting */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400&display=swap');

.renaissance-handwriting {
  font-family: 'Kalam', cursive;
  letter-spacing: 0.5px;
  text-shadow: 0 0 1px rgba(139, 115, 85, 0.3);
}

/* Multiple overlapping text layers */
.journal-page .handwritten-notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journal-page .handwritten-notes::before {
  content: 'φ = (1 + √5) / 2';
  position: absolute;
  top: 25px;
  left: 20px;
  font-family: 'Kalam', cursive;
  font-size: 10px;
  font-weight: 300;
  color: rgba(139, 115, 85, 0.4);
  transform: rotate(-3deg) skewX(-5deg);
  filter: blur(0.2px);
  letter-spacing: 0.5px;
}

.journal-page .handwritten-notes::after {
  content: 'Proportio divina';
  position: absolute;
  bottom: 40px;
  right: 25px;
  font-family: 'Kalam', cursive;
  font-size: 9px;
  font-weight: 400;
  color: rgba(120, 100, 70, 0.35);
  transform: rotate(2deg) skewX(3deg);
  font-style: italic;
  letter-spacing: 0.8px;
}

/* Additional sketch overlays */
.journal-page .sketch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journal-page .sketch-overlay::before {
  content: '';
  position: absolute;
  top: 45px;
  right: 40px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 50%;
  transform: rotate(15deg);
}

.journal-page .sketch-overlay::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: 35px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid rgba(160, 140, 110, 0.15);
  transform: rotate(-10deg);
}

/* Mathematical annotations layer */
.journal-page .math-annotations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font-family: 'Kalam', cursive;
  font-size: 8px;
  color: rgba(100, 80, 60, 0.3);
  font-weight: 300;
}

.journal-page .math-annotations::before {
  content: '∑∞';
  position: absolute;
  top: calc(70px + var(--math-offset-y, 0px));
  left: calc(40px + var(--math-offset-x, 0px));
  transform: rotate(-5deg) skewY(-3deg);
  filter: blur(0.4px);
  letter-spacing: 1px;
}

.journal-page .math-annotations::after {
  content: '∫ƒ(x)dx';
  position: absolute;
  top: calc(110px + var(--math-offset-y, 0px));
  right: calc(50px - var(--math-offset-x, 0px));
  transform: rotate(4deg) skewY(2deg);
  opacity: 0.6;
  letter-spacing: 0.8px;
}

/* Page-specific handwritten notes for QA/Release Management context */
.journal-page[data-feature="multiplayer"] .handwritten-notes::before {
  content: 'Review cycles: n=3';
  font-size: 9px;
  top: 35px;
  left: 25px;
}

.journal-page[data-feature="multiplayer"] .handwritten-notes::after {
  content: 'consensus.threshold = 0.75';
  font-size: 8px;
  bottom: 45px;
  right: 25px;
  transform: rotate(-3deg);
  font-style: italic;
}

.journal-page[data-feature="ai_family"] .handwritten-notes::before {
  content: 'v2.3.1 → v2.4.0';
  font-size: 10px;
  top: 30px;
  right: 30px;
  left: auto;
  transform: rotate(5deg);
}

.journal-page[data-feature="ai_family"] .math-annotations::after {
  content: 'rollback.enabled = true';
  top: 140px;
  left: 35px;
  font-size: 7px;
  transform: rotate(-2deg);
  opacity: 0.5;
}

.journal-page[data-feature="voice_io"] .handwritten-notes::before {
  content: 'waveform.sample_rate = 48kHz';
  font-size: 8px;
  top: 45px;
  left: 20px;
  transform: rotate(-4deg);
}

.journal-page[data-feature="performance_analytics"] .handwritten-notes::after {
  content: 'p95 < 200ms';
  bottom: 50px;
  right: 20px;
  font-size: 8px;
  opacity: 0.4;
}

.journal-page[data-feature="performance_analytics"] .math-annotations::before {
  content: 'σ² = 0.03';
  top: 90px;
  right: 40px;
  left: auto;
  transform: rotate(3deg);
}

.journal-page[data-feature="enterprise_security"] .handwritten-notes::before {
  content: 'SOC2 Type II';
  top: 40px;
  left: 30px;
  font-size: 9px;
  text-decoration: underline;
  opacity: 0.35;
}

.journal-page[data-feature="enterprise_security"] .handwritten-notes::after {
  content: 'encrypt(AES-256)';
  bottom: 55px;
  left: 45px;
  font-size: 8px;
  transform: rotate(2deg);
}

.journal-page[data-feature="lightning_responses"] .handwritten-notes::before {
  content: 'deploy.time = 1.2s';
  font-size: 9px;
  top: 50px;
  right: 35px;
  left: auto;
  transform: rotate(-3deg);
}

.journal-page[data-feature="domain_specialization"] .handwritten-notes::after {
  content: 'BLEU: 0.89';
  bottom: 35px;
  left: 40px;
  font-size: 9px;
}

.journal-page[data-feature="domain_specialization"] .math-annotations::before {
  content: 'medical.accuracy = 97.3%';
  top: 75px;
  right: 30px;
  left: auto;
  font-size: 8px;
  transform: rotate(4deg);
}

.journal-page[data-feature="smart_workflows"] .math-annotations::before {
  content: 'CI/CD: t < 15min';
  top: 85px;
  left: 30px;
}

.journal-page[data-feature="smart_workflows"] .handwritten-notes::after {
  content: 'pipeline.stages = 5';
  bottom: 40px;
  right: 35px;
  font-size: 8px;
  transform: rotate(-2deg);
}

.journal-page[data-feature="api_integration"] .handwritten-notes::before {
  content: 'REST → GraphQL';
  font-size: 9px;
  top: 40px;
  left: 35px;
  transform: rotate(3deg);
}

.journal-page[data-feature="api_integration"] .math-annotations::after {
  content: 'webhook.retry = 3';
  bottom: 60px;
  right: 30px;
  font-size: 8px;
  opacity: 0.5;
}

.journal-page[data-feature="scalability"] .handwritten-notes::before {
  content: 'horizontal.scale(∞)';
  font-size: 9px;
  top: 35px;
  right: 25px;
  left: auto;
  transform: rotate(-4deg);
}

.journal-page[data-feature="scalability"] .math-annotations::before {
  content: 'O(log n)';
  top: 100px;
  left: 45px;
  font-size: 10px;
  font-weight: bold;
  opacity: 0.6;
}

/* Background Sketches */
.background-sketches {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.feature-bg-sketch {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.sketch-layer {
  transition: all 0.6s ease;
  pointer-events: all;
}

.sketch-layer * {
  transition: opacity 0.4s ease, stroke-width 0.4s ease;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Pencil-like texture for sketches */
.sketch-layer path {
  filter: url(#pencil-texture);
}

@supports not (filter: url(#pencil-texture)) {
  .sketch-layer path {
    stroke-dasharray: 0.5 0.5;
    stroke-dashoffset: 0;
  }
}

/* Drawing animations */
@keyframes drawPath {
  from {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: var(--target-opacity, 0.1);
  }
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: var(--target-opacity, 0.15);
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: var(--target-opacity, 0.1);
  }
}

/* Animated elements */
.sketch-layer path.draw-animated {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s ease-out forwards;
  animation-delay: var(--animation-delay, 0s);
}

.sketch-layer text {
  opacity: 0;
  animation: fadeInText 1s ease-out forwards;
  animation-delay: var(--animation-delay, 2s);
}

.sketch-layer circle.scale-animated,
.sketch-layer rect.scale-animated {
  transform-origin: center;
  opacity: 0;
  animation: scaleIn 1.5s ease-out forwards;
  animation-delay: var(--animation-delay, 0.5s);
}

/* Continuous subtle animations */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: var(--base-opacity, 0.1);
  }
  50% {
    opacity: calc(var(--base-opacity, 0.1) * 1.3);
  }
}

.sketch-layer .floating {
  animation: floatSubtle 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.sketch-layer .pulsing {
  animation: pulseSubtle 4s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

/* Interactive opacity on hover */
.sketch-layer.highlighted * {
  opacity: 0.25 !important;
  stroke-width: 2;
}

.sketch-layer.highlighted circle,
.sketch-layer.highlighted rect {
  opacity: 0.2 !important;
}

.sketch-layer.highlighted path {
  opacity: 0.3 !important;
}

/* Active state for background sketches */
.sketch-layer.active-sketch * {
  opacity: 0.2 !important;
  stroke-width: 2;
}

.sketch-layer.active-sketch circle,
.sketch-layer.active-sketch rect {
  opacity: 0.15 !important;
}

.sketch-layer.active-sketch path {
  opacity: 0.25 !important;
}

.sketch-layer.active-sketch text {
  opacity: 0.18 !important;
}

/* Feature Details Area - moved to desktop media query above */

.feature-content {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 20;
}

/* Splotchy background for text readability - removed */
.feature-content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  right: -2rem;
  bottom: -2rem;
  /* background removed */
  /* filter removed */
  /* transform removed */
  z-index: -1;
  /* border-radius removed */
  /* animation removed */
}

@keyframes splotchyMove {
  0% {
    transform: rotate(-2deg) scale(1.1);
  }
  50% {
    transform: rotate(1deg) scale(1.15);
  }
  100% {
    transform: rotate(-1deg) scale(1.1);
  }
}

.feature-content.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  margin-top: 0;
  padding-top: 0;
}

.feature-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  color: #4a3a2a;
  margin-bottom: 1.5rem;
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1000 !important;
}

.feature-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #5c4a3a;
  max-width: 600px;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 15px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1000 !important;
}

/* Responsive styles for playing cards layout */
@media (max-width: 1024px) {
  .features-showcase {
    flex-direction: column;
  }
  
  .playing-cards-deck {
    flex: 1;
    width: 100%;
    min-height: 400px;
  }
  
  .feature-details {
    flex: 1;
    width: 100%;
    padding: 0 2rem 2em;
  }
  
  .cards-container {
    height: 300px;
  }
  
  .playing-card {
    width: 100px;
    height: 140px;
  }
  
  .card-value {
    font-size: 16px;
  }
  
  .card-suit {
    font-size: 18px;
  }
  
  .card-center {
    font-size: 2.5rem;
  }
  
  /* Journal pages responsive */
  .davinci-journal-showcase {
    flex-direction: column;
  }
  
  .journal-stack {
    flex: 1;
    padding: 1rem;
  }
  
  .journal-pages-container {
    max-width: 300px;
    height: 450px;
  }
  
  .journal-page {
    width: 220px;
    height: 320px;
  }
  
  .journal-navigation {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .nav-button {
    width: 50px;
    height: 35px;
  }
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Sacred Geometry Icon Styles */
.sacred-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-secondary);
  display: inline-block;
  vertical-align: middle;
}

.feature-icon .sacred-icon {
  width: 48px;
  height: 48px;
  color: var(--color-neutral-dark);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.journal-page:hover .feature-icon .sacred-icon {
  opacity: 1;
  transform: scale(1.1);
}

.principle-icon .sacred-icon {
  width: 60px;
  height: 60px;
  color: var(--color-accent-tertiary);
}

.ai-for-good-principles .principle:hover .sacred-icon {
  transform: rotate(15deg) scale(1.1);
  transition: all 0.3s ease;
}

/* Override sketch area icon styles for SVG */
.sketch-area .feature-icon {
  position: absolute;
  font-size: inherit;
  opacity: 1;
  filter: none;
}

.sketch-area .feature-icon .sacred-icon {
  position: relative;
  opacity: 0.3;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: rgba(30, 58, 43, 0.8);
  line-height: 1.6;
}

/* Team Section Styles */
.team-section {
  padding: 4rem 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.45) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.45) 70%,
    rgba(255, 255, 255, 0.9) 100%
  );
  position: relative;
}

/* Light beam overlay removed - using main beam instead */

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1000 !important;
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--color-bg-primary);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid #d4c4a0;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: var(--color-neutral-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-member .bio {
  color: rgba(30, 58, 43, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-member .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-neutral-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-member .social-link:hover {
  color: var(--color-neutral-dark);
}

/* Signup Section Styles */
.signup-section {
  padding: 4rem 0;
  background: linear-gradient(
    to bottom,
    rgba(232, 221, 199, 0.6) 0%,
    rgba(232, 221, 199, 0.3) 30%,
    rgba(232, 221, 199, 0.2) 50%,
    rgba(232, 221, 199, 0.3) 70%,
    rgba(232, 221, 199, 0.6) 100%
  );
  position: relative;
}

/* Light beam overlay removed - using main beam instead */

.signup-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1000 !important;
}

.signup-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1000 !important;
}

.signup-intro {
  font-size: 1.2rem;
  color: rgba(30, 58, 43, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(30, 58, 43, 0.2);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--color-bg-primary, #f8f4f0);
  color: var(--color-neutral-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-neutral-primary);
  box-shadow: 0 0 0 3px rgba(45, 60, 52, 0.1);
}

.signup-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-neutral-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
}

.signup-button:hover {
  background-color: var(--color-neutral-dark);
  color: #fff;
  text-decoration: none;
}

.signup-note {
  font-size: 0.9rem;
  color: rgba(30, 58, 43, 0.6);
  margin-top: 0.5rem;
}

/* AI for Good Section Styles */
.ai-for-good-section {
  padding: 4rem 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 244, 240, 0.92) 0%,
    rgba(248, 244, 240, 0.45) 30%,
    rgba(248, 244, 240, 0.35) 50%,
    rgba(248, 244, 240, 0.45) 70%,
    rgba(248, 244, 240, 0.92) 100%
  );
  position: relative;
}

/* Light beam overlay removed - using main beam instead */

.ai-for-good-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1000 !important;
}

.ai-for-good-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ai-for-good-text h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-neutral-dark);
  margin-bottom: 1.5rem;
}

.ai-for-good-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(30, 58, 43, 0.8);
  margin-bottom: 2rem;
}

.ai-for-good-principles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.principle-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.principle-text h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  margin-bottom: 0.5rem;
}

.principle-text p {
  font-size: 1rem;
  color: rgba(30, 58, 43, 0.7);
  margin-bottom: 0;
}

.ai-for-good-image {
  text-align: center;
}

.ai-for-good-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ai-for-good-image a:hover img {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive styles */
@media (max-width: 1200px) {
  header {
    padding: 2rem;
  }
  
  .hero {
    padding: 0 2rem;
  }
  
  .hero-content {
    gap: 3rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 2rem 1.2rem 1rem 1.2rem;
  }
  
  /* First section (brand) spans both columns and is centered */
  .footer-section:first-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Left-align the tagline under the brand */
  .footer-section:first-child .footer-tagline {
    text-align: left;
  }
  
  .footer-section {
    margin-bottom: 1rem;
    padding: 0 0.8rem;
  }
  
  .footer-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  .footer-section li {
    margin-bottom: 0.4rem;
  }
  
  .footer-section a {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* Make brand section more compact on mobile */
  .footer-section:first-child .footer-logo span {
    font-size: 1.1rem;
  }
  
  .footer-section:first-child .footer-tagline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .footer-section:first-child .footer-social {
    gap: 0.8rem;
  }
  
  
  .footer-section h3 {
    margin-bottom: 1.5rem;
    text-shadow: none !important;
    filter: none !important;
    text-stroke: transparent !important;
    -webkit-text-stroke: transparent !important;
  }
  
  /* Nuclear option - override ALL possible text shadow sources on headers */
  .footer-section h3,
  body:not(.homepage) .footer-section h3,
  .site-footer .footer-section h3,
  body:not(.homepage) .site-footer .footer-section h3,
  body:not(.homepage) .footer-content .footer-section h3,
  body:not(.homepage) .footer-content .footer-section:nth-child(1) h3,
  body:not(.homepage) .footer-content .footer-section:nth-child(2) h3,
  body:not(.homepage) .footer-content .footer-section:nth-child(3) h3,
  body:not(.homepage) .footer-content .footer-section:nth-child(4) h3,
  body:not(.homepage) .footer-content .footer-section:nth-child(5) h3 {
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    text-stroke: transparent !important;
    -webkit-text-stroke: transparent !important;
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: var(--color-highlight-blue) !important;
  }

  /* Remove shadows from all other footer elements */
  .site-footer *,
  body:not(.homepage) .site-footer *,
  .footer-section *,
  .footer-content *,
  .footer-section a,
  .footer-section li,
  .footer-section li a,
  .footer-section ul li a,
  .footer-logo span,
  .footer-tagline,
  body:not(.homepage) .footer-content .footer-section a,
  body:not(.homepage) .footer-content .footer-section li a {
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 3rem;
  }
  
  /* Key Benefits Mobile Layout - Convert hexagon to vertical column */
  .key-benefits {
    padding: 2rem 1rem;
  }
  
  .benefits-hexagon {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    max-width: 100% !important;
    padding: 1rem !important;
    align-items: center !important;
    margin: 1rem auto !important;
  }
  
  .benefit-node {
    width: 300px !important;
    height: auto !important;
    border-radius: 20px !important;
    padding: 2rem 1.5rem !important;
    margin: 0 !important;
    position: static !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }
  
  /* Override specific hexagon positioning for mobile */
  .benefit-node:nth-child(1),
  .benefit-node:nth-child(2),
  .benefit-node:nth-child(3),
  .benefit-node:nth-child(4),
  .benefit-node:nth-child(5),
  .benefit-node:nth-child(6) {
    grid-column: unset !important;
    grid-row: unset !important;
    position: static !important;
  }
  
  /* Ultra-aggressive text shadow removal for footer bottom */
  .site-footer .footer-bottom,
  .site-footer .footer-bottom *,
  .site-footer .footer-bottom-content,
  .site-footer .footer-bottom-content *,
  .site-footer .footer-bottom-links,
  .site-footer .footer-bottom-links *,
  .site-footer .footer-bottom-links a,
  .site-footer .copyright,
  .site-footer .privacy-settings-link,
  .footer-bottom,
  .footer-bottom *,
  .footer-bottom-content,
  .footer-bottom-content *,
  .footer-bottom-links,
  .footer-bottom-links *,
  .footer-bottom-links a,
  .copyright,
  .privacy-settings-link,
  body:not(.homepage) .site-footer .copyright,
  body:not(.homepage) .site-footer .footer-bottom-links a,
  body:not(.homepage) .site-footer .privacy-settings-link,
  body:not(.homepage) .copyright,
  body:not(.homepage) .footer-bottom-links a,
  body:not(.homepage) .privacy-settings-link {
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    -o-text-shadow: none !important;
    -ms-text-shadow: none !important;
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #f8f4f0 !important;
    color: #f8f4f0 !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }
  
  .ai-for-good-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .signup-section h2,
  .ai-for-good-text h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 2rem;
  }

  header {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Hide desktop demo button on mobile */
  .mobile-demo-button {
    display: none !important;
  }

  /* Show mobile-only nav items */
  .mobile-only {
    display: block !important;
  }

  .mobile-hide {
    display: none !important;
  }

  nav ul {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  li.dropdown {
    align-items: center !important;
    gap: 0.25rem !important;
  }

  li.dropdown > a {
    line-height: 1.2;
  }

  li.dropdown .dropdown-arrow {
    font-size: 0.65rem !important;
    line-height: 1;
    display: inline-block;
    vertical-align: baseline;
    transform: translateY(0);
    margin-top: 0;
    padding-top: 0;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  button, a, [role="button"] {
    min-height: 32px !important;
  }
  .features {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Journal pages mobile */
  .journal-pages-container {
    max-width: 250px;
    height: 300px;
  }

  .journal-stack {
    margin-left: 0;
  }
  
  .journal-page {
    width: 180px;
    height: 260px;
  }
  
  .page-number {
    font-size: 14px;
  }
  
  .davinci-sketch {
    max-width: 140px;
    max-height: 140px;
  }
  
  .annotations {
    font-size: 8px;
  }
  
  .handwritten-notes::before,
  .handwritten-notes::after,
  .math-annotations::before,
  .math-annotations::after {
    font-size: 7px;
  }
  
  .feature {
    flex-direction: row;
    text-align: left;
  }
  
  .enterprise-content h2 {
    font-size: 2.5rem;
  }
  
  .panels-container {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .signup-section h2,
  .ai-for-good-text h2 {
    font-size: 2rem;
  }
  
  .ai-for-good-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .principle {
    flex-direction: column;
    text-align: center;
  }
  
  .principle-icon {
    font-size: 3rem;
    width: 100%;
  }
}

/* Expert Answers Section */
.expert-answers-section {
  padding: 5rem 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 245, 0.92) 0%,
    rgba(245, 245, 245, 0.45) 25%,
    rgba(245, 245, 245, 0.35) 50%,
    rgba(245, 245, 245, 0.45) 75%,
    rgba(245, 245, 245, 0.92) 100%
  );
  position: relative;
}

.expert-answers-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.expert-answers-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-neutral-dark);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.expert-answers-description {
  font-size: 1.1rem;
  color: rgba(30, 58, 43, 0.8);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-bg-primary, #f8f4f0);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f8f8;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(30, 58, 43, 0.6);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 70, 193, 0.3) rgba(107, 70, 193, 0.1);
}

.faq-answer.active::-webkit-scrollbar {
  width: 8px;
}

.faq-answer.active::-webkit-scrollbar-track {
  background: rgba(107, 70, 193, 0.1);
  border-radius: 4px;
}

.faq-answer.active::-webkit-scrollbar-thumb {
  background: rgba(107, 70, 193, 0.3);
  border-radius: 4px;
}

.faq-answer.active::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 70, 193, 0.5);
}

.faq-answer p {
  font-size: 1rem;
  color: rgba(30, 58, 43, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: transparent;
  position: relative;
  color: var(--color-bg-primary);
  z-index: 2;
}

/* Removed chart/diagram background art */

/* Removed chat bubble background art */

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-highlight-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.contact-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-bg-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: rgba(248, 244, 240, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-method {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 2rem;
  background-color: rgb(255 255 255 / 25%);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, filter 0.4s ease;
  filter: brightness(1);
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background-color: rgb(255 255 255 / 35%);
  filter: brightness(1.1);
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: rgba(30, 58, 43, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}

.contact-method p {
  font-size: 1rem;
  color: rgba(30, 58, 43, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.contact-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-link:hover {
  border-bottom-color: var(--color-neutral-dark);
}

@media (max-width: 768px) {
  .expert-answers-content h2,
  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-method {
    padding: 1.5rem;
  }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Pause all videos for users who prefer reduced motion */
  .hero-video,
  .background-video,
  video {
    animation: none !important;
  }
  
  /* Disable journal page animations */
  .journal-page.active .davinci-sketch path,
  .journal-page.active .davinci-sketch line,
  .journal-page.active .davinci-sketch circle {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  
  /* Disable parallax scrolling */
  .panel {
    transform: none !important;
  }
  
  /* Disable hover animations */
  .journal-page:hover:not(.active) {
    transform: none !important;
  }
  
  /* Disable journal page transitions */
  .journal-page {
    transition: none !important;
  }
}

/* Mobile-first video optimizations */
@media (max-width: 768px) {
  /* Reduce video quality and disable autoplay on small screens */
  .background-video {
    display: none; /* Replace with static images on mobile */
  }
  
  /* Ensure hero videos are optimized for mobile */
  .hero-video {
    max-width: 100%;
    height: auto;
  }
  
  /* Disable complex animations on mobile for better performance */
  .journal-page.active .davinci-sketch path,
  .journal-page.active .davinci-sketch line,
  .journal-page.active .davinci-sketch circle {
    animation-duration: 1s !important; /* Faster animations */
  }
}

/* Battery-aware optimizations */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Only load videos on mobile if user hasn't requested reduced motion and battery allows */
  .hero-video[data-battery-aware="true"] {
    display: none;
  }
}

/* Privacy Settings Dropdown in Footer */
.privacy-dropdown {
  position: relative;
  display: inline-block;
}

.privacy-settings-link {
  color: rgba(248, 244, 240, 0.8);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
}

.privacy-settings-link:hover {
  color: #d4c4a0;
}

.privacy-dropdown-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 60, 52, 0.95);
  min-width: 160px;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 244, 240, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.privacy-dropdown:hover .privacy-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.privacy-dropdown-content a,
.privacy-dropdown-content button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: rgba(248, 244, 240, 0.9);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.privacy-dropdown-content a:hover,
.privacy-dropdown-content button:hover {
  background-color: rgba(212, 196, 160, 0.1);
  color: #d4c4a0;
}

/* Arrow indicator */
.privacy-dropdown-content::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(45, 60, 52, 0.95);
}

@media (max-width: 768px) {
  .privacy-dropdown-content {
    left: 0;
    transform: none;
    min-width: 140px;
  }
  
  .privacy-dropdown:hover .privacy-dropdown-content {
    transform: translateY(0);
  }
  
  .privacy-dropdown-content::before {
    left: 20px;
    transform: none;
  }
}

/* ================================
   News Carousel Section
   ================================ */

.news-section {
  padding: 6rem 0;
  min-height: 70vh;
  background: linear-gradient(
    to bottom,
    rgba(248, 244, 240, 0.92) 0%,
    rgba(248, 244, 240, 0.45) 25%,
    rgba(248, 244, 240, 0.35) 50%,
    rgba(248, 244, 240, 0.45) 75%,
    rgba(248, 244, 240, 0.92) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.news-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.news-carousel {
  position: relative;
  overflow: hidden;
}

.news-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card {
  min-width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-card.active {
  opacity: 1;
  transform: translateX(0);
}

.news-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: all 0.3s ease;
}

.news-card-link:hover {
  transform: translateY(-2px);
}

.news-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 9;
}

.news-card-image img,
.news-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card-link:hover .news-card-image img,
.news-card-link:hover .news-card-image video {
  transform: scale(1.05);
}

.news-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-date {
  font-size: 0.875rem;
  color: rgba(30, 58, 43, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.news-card-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(30, 58, 43, 0.95);
  line-height: 1.2;
  margin: 0;
}

.news-card-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(30, 58, 43, 0.8);
  margin: 0;
}

.read-more {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.news-card-link:hover .read-more {
  gap: 0.75rem;
  transition: gap 0.3s ease;
}

/* Carousel Controls - Hidden */
.carousel-control {
  display: none;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(30, 58, 43, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(30, 58, 43, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: rgba(30, 58, 43, 0.9);
  width: 2rem;
  border-radius: 0.375rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .news-card-link {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-header h2 {
    font-size: 2.5rem;
  }

  .news-card-content h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .news-section {
    padding: 3rem 0;
  }

  .news-header h2 {
    font-size: 2rem;
  }

  .news-card-content h3 {
    font-size: 1.5rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

/* Text alignment */
.text-center { text-align: center; }

/* Margins */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.m-0 { margin: 0; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-flex { display: inline-flex; }

/* Flex utilities */
.align-items-center { align-items: center; }
.gap-05 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }

/* Width */
.w-100 { width: 100%; }

/* Object fit */
.object-cover { object-fit: cover; }

/* ========================================
   Support Page - Model Compatibility Section
   ======================================== */

/* Provider list item wrapper */
.provider-item {
    margin-bottom: 1.5rem;
}

/* Provider label row: icon + provider name */
.provider-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Small bullet icon for provider lists */
.provider-bullet {
    color: var(--color-neutral-primary);
    font-size: 0.5rem;
}

/* Provider name emphasis */
.provider-name {
    color: var(--color-neutral-primary);
}

/* Provider model details text */
.provider-models {
    margin-left: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.provider-models:last-child,
.provider-models.no-mb {
    margin-bottom: 0;
}

/* Model compatibility card */
.model-card {
    background: var(--color-bg-primary, #f8f4f0);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Model card header area */
.model-card-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Model card header icon override */
.model-card-header .help-card-icon {
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

/* Model card title */
.model-card-title {
    color: var(--color-neutral-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Model card description */
.model-card-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Model compatibility two-column grid */
.model-compat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Provider category card (fine-tuning / base models) */
.provider-category-card {
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.provider-category-card.fine-tuning {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.05), rgba(139, 115, 85, 0.1));
    border-left-color: var(--color-accent-secondary);
}

.provider-category-card.base-models {
    background: linear-gradient(135deg, rgba(212, 196, 160, 0.05), rgba(212, 196, 160, 0.1));
    border-left-color: #d4c4a0;
}

/* Provider category heading */
.provider-category-title {
    color: var(--color-neutral-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-category-title .icon-fine-tuning {
    color: var(--color-accent-secondary);
}

.provider-category-title .icon-base-models {
    color: #d4c4a0;
}

/* Contact info compact styles */
.contact-method h4 {
    margin: 0;
    color: var(--color-neutral-primary);
}

.contact-method p {
    margin: 0;
    color: #666;
}

/* Form two-column row */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Support hours heading */
.support-hours h4 {
    color: var(--color-neutral-primary);
    margin-bottom: 1rem;
}

/* Contact form heading */
.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-neutral-primary);
}

/* CTA section text */
.cta-section h2 {
    color: var(--color-neutral-primary);
    margin-bottom: 1rem;
}

.cta-section p {
    color: #666;
    margin-bottom: 2rem;
}

/* Section with light gray background — transparent gradient to show grid */
.bg-light {
    background: linear-gradient(
        to bottom,
        rgba(249, 249, 249, 0.92) 0%,
        rgba(249, 249, 249, 0.45) 25%,
        rgba(249, 249, 249, 0.35) 50%,
        rgba(249, 249, 249, 0.45) 75%,
        rgba(249, 249, 249, 0.92) 100%
    );
}

/* ========================================
   Blog Page - Additional utility classes
   ======================================== */

/* Recent articles heading */
.recent-articles-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-neutral-primary);
    margin-bottom: 2rem;
}

/* Share card video cover */
.share-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Share card title override */
.share-card .share-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Share card description */
.share-card-description {
    font-size: 0.9rem;
    color: var(--color-neutral-primary);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Blog section — transparent gradient to show grid */
.blog-section {
    background: linear-gradient(
        to bottom,
        rgba(248, 244, 240, 0.92) 0%,
        rgba(248, 244, 240, 0.45) 25%,
        rgba(248, 244, 240, 0.35) 50%,
        rgba(248, 244, 240, 0.45) 75%,
        rgba(248, 244, 240, 0.92) 100%
    ) !important;
}

/* Link reset (no decoration, inherit color) */
.link-reset {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   AI Safety Page - Contributor card width
   ======================================== */
.contributor-card.contributor-card-fixed {
    width: 300px;
}

/* AI Standards Hub avatar override */
.contributor-avatar.logo-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e8ddc7;
}

.contributor-avatar.logo-avatar img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* AI Standards Hub social link override */
.social-link.social-link-blue {
    background-color: #3d9668;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

/* Blog post tables — research data styling */
.content-body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  font-feature-settings: "tnum" 1, "lnum" 1;
  background: #faf8f5;
  border: 1px solid #e0d5bf;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(45, 60, 52, 0.04), 0 1px 2px rgba(45, 60, 52, 0.06);
}

.content-body table thead {
  background: linear-gradient(135deg, #2d5a4f 0%, #1e3a2b 100%);
}

.content-body table thead th {
  color: #faf8f5;
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid #1e3a2b;
}

.content-body table thead th:not(:first-child) {
  text-align: right;
}

.content-body table tbody td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #ede8de;
  color: #2d3c34;
  vertical-align: top;
}

.content-body table tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.content-body table tbody tr:nth-child(even) td {
  background: rgba(245, 240, 230, 0.4);
}

.content-body table tbody tr:hover td {
  background: rgba(45, 90, 79, 0.06);
}

.content-body table tbody tr:last-child td {
  border-bottom: none;
}

.content-body table tbody td strong {
  color: #1e3a2b;
  font-weight: 700;
}

.content-body table tbody td em {
  color: #6b5d4f;
  font-style: italic;
}

/* Mobile: let tables scroll horizontally rather than overflow */
@media (max-width: 640px) {
  .content-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ═════════════════════════════════════════════════════════════════
   /compliance/ landing page
   ═════════════════════════════════════════════════════════════════ */
.compliance-page {
  background: #faf8f5;
  padding: 4rem 1.5rem 6rem;
  color: #2d3c34;
}

.compliance-hero {
  /* override the global `header { display: flex }` rule that would otherwise
     lay the children out as horizontal columns */
  display: block;
  background-color: transparent;
  position: static;
  z-index: auto;
  padding: 0;
  max-width: 880px;
  margin: 0 auto 4rem;
  text-align: center;
}

.compliance-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c08850;
  margin-bottom: 1rem;
}

.compliance-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1e3a2b;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.compliance-tagline {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #4a3a2a;
  margin-bottom: 1.75rem;
}

.compliance-tagline strong {
  color: #2d5a4f;
}

.compliance-hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.compliance-mapping {
  max-width: 1180px;
  margin: 0 auto 4rem;
}

.compliance-mapping h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a2b;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.compliance-mapping-sub {
  text-align: center;
  color: #6b5d4f;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.compliance-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e0d5bf;
  box-shadow: 0 4px 18px rgba(45, 60, 52, 0.08);
}

.compliance-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compliance-table thead {
  background: linear-gradient(135deg, #1e3a2b 0%, #2d5a4f 100%);
}

.compliance-table thead th {
  color: #faf8f5;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compliance-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ede8de;
  color: #2d3c34;
  vertical-align: top;
  line-height: 1.5;
}

.compliance-table tbody tr:last-child td { border-bottom: none; }
.compliance-table tbody tr:nth-child(even) td { background: rgba(245, 240, 230, 0.4); }
.compliance-table tbody tr.compliance-row-highlight td { background: rgba(243, 201, 143, 0.15); }
.compliance-table tbody td strong { color: #1e3a2b; }
.compliance-table tbody td code { font-family: 'DM Mono', Menlo, monospace; font-size: 0.85em; background: #f5efe6; padding: 0.05em 0.35em; border-radius: 3px; }

.compliance-row-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 0.4em;
  vertical-align: -0.12em;
  border-radius: 1px;
}

.compliance-receipt-section {
  max-width: 1180px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.compliance-receipt-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 1rem;
}

.compliance-receipt-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: #4a3a2a;
  margin-bottom: 1rem;
}

.compliance-receipt-pre {
  background: #1e3a2b;
  color: #f3c98f;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  font-family: 'DM Mono', Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  box-shadow: 0 6px 24px rgba(30, 58, 43, 0.18);
}

.compliance-cta-band {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #f5efe6 0%, #e8ddc7 100%);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e0d5bf;
}

.compliance-cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.compliance-cta-band p {
  color: #4a3a2a;
  margin-bottom: 1.5rem;
}

@media (max-width: 880px) {
  .compliance-receipt-section { grid-template-columns: 1fr; }
}

/* ── EU AI Act badge inside the journal feature-content panel ─── */
.feature-content-eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0.85rem;
  padding: 0.3rem 0.6rem 0.3rem 0.4rem;
  background: rgba(0, 51, 153, 0.08);
  border: 1px solid rgba(0, 51, 153, 0.25);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #003399;
  letter-spacing: 0.02em;
}

.feature-content-eu-badge img {
  width: 18px;
  height: 12px;
  display: block;
  border-radius: 1px;
}

.feature-content-cta {
  float: right;
  display: inline-flex;
  align-items: center;
  margin: -2.5rem 0 0 1rem;
  padding: 0.45rem 0.9rem;
  background: #1e3a2b;
  color: #faf8f5 !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.18s ease;
}

.feature-content-cta:hover {
  background: #2d5a4f;
  transform: translateY(-1px);
}

.feature-content[data-feature="enterprise_security"] .journal-navigation {
  clear: both;
}

/* ── Auto-advance progress bar for "Age of AI Management" pages ─── */
.journal-progress {
  position: relative;
  width: 280px;
  max-width: 100%;
  height: 4px;
  background: rgba(139, 115, 85, 0.28);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1.4rem;
  align-self: center;
  z-index: 5;
}

.journal-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2d5a4f 0%, #1e3a2b 100%);
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
}

.journal-progress-fill.is-running {
  animation: journal-progress-fill var(--journal-progress-duration, 9s) linear forwards;
}

.journal-progress-fill.is-paused {
  animation-play-state: paused;
}

@keyframes journal-progress-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .journal-progress { display: none; }
}

/* ── Site-wide research banner (above the nav header) ────────── */
.site-research-banner {
  background: linear-gradient(90deg, #2d4d6a 0%, #3d6888 100%);
  color: #eef5fb;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(168, 212, 240, 0.2);
  position: relative;
  z-index: 100;
}

.site-research-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  text-align: center;
}

.site-research-banner-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.78;
}

.site-research-banner a {
  display: inline-flex;
  align-items: center;
  color: #a8d8f5;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.site-research-banner a:hover {
  color: #eef5fb;
  border-bottom-color: rgba(238, 245, 251, 0.5);
}

.site-research-banner-sep {
  color: rgba(238, 245, 251, 0.35);
}

.site-research-banner-hf {
  display: inline-block;
  height: 1.05em;
  width: auto;
  vertical-align: -0.18em;
  margin-left: 0.15em;
}

.site-research-banner-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ab8e0;
  box-shadow: 0 0 0 0 rgba(122, 184, 224, 0.65);
  animation: site-research-banner-pulse 2.4s ease-in-out infinite;
}

@keyframes site-research-banner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122, 184, 224, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(122, 184, 224, 0); }
}

@media (max-width: 640px) {
  .site-research-banner-inner {
    padding: 0.5rem 0.85rem;
    gap: 0.4rem;
    font-size: 0.78rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .site-research-banner .site-research-banner-sep,
  .site-research-banner a.site-research-banner-secondary {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-research-banner-label {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════════
   Homepage research-section variants A / B / C — preview templates
   ═════════════════════════════════════════════════════════════════ */

.research-band-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c08850;
  margin-bottom: 0.85rem;
}

/* ── VARIANT A — Open Research trust band ─────────────────────── */
.research-band {
  padding: 4.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, #faf8f5 0%, #f5efe6 100%);
  border-top: 1px solid #e0d5bf;
  border-bottom: 1px solid #e0d5bf;
}

.research-band-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.research-band-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #1e3a2b;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  line-height: 1.15;
}

.research-band-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a3a2a;
  margin-bottom: 1rem;
}

.research-band-text a {
  color: #2d5a4f;
  text-decoration: underline;
}

.research-band-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.research-cta-primary,
.research-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.research-cta-primary {
  background: #1e3a2b;
  color: #faf8f5 !important;
}
.research-cta-primary:hover {
  background: #2d5a4f;
  transform: translateY(-1px);
}

.research-cta-secondary {
  background: transparent;
  color: #1e3a2b !important;
  border: 1px solid #1e3a2b;
  text-decoration: none !important;
}
.research-cta-secondary:hover {
  background: #1e3a2b;
  color: #faf8f5 !important;
}

.research-band-visual {
  position: relative;
}

.research-band-visual a {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(45, 60, 52, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-band-visual a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(45, 60, 52, 0.25);
}

.research-band-visual img,
.research-band-visual-video {
  display: block;
  width: 100%;
  height: auto;
}

.research-band-visual-video {
  background: #faf8f5;
  object-fit: cover;
}

.research-band-visual-overlay {
  position: absolute;
  inset: auto auto 14px 14px;
  background: transparent;
  color: #faf8f5;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(250, 248, 245, 0.65);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.research-band-visual a:hover .research-band-visual-overlay {
  background: rgba(250, 248, 245, 0.95);
  color: #1e3a2b;
  border-color: #faf8f5;
  text-shadow: none;
}

.research-band-logos {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px dashed #d4c4a0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2.4rem;
}

.research-band-logos-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7d68;
  font-weight: 600;
}

.research-band-logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
}

.research-band-logos li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'DM Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3c34;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.research-band-logos li:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.research-band-logos li img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  /* The SimpleIcons + Wikipedia SVGs ship in their own colors; recolor to a
     unified sage so the row reads as one consistent visual treatment. */
  filter: brightness(0) saturate(100%) invert(20%) sepia(28%) saturate(672%) hue-rotate(110deg) brightness(94%) contrast(88%);
}

/* Google and Microsoft: tint towards the dark forest green while retaining
   subtle tonal variation between color segments. Skipping brightness(0) so
   the original hues survive as gentle shade differences, not flat color. */
.research-band-logos li.research-band-logo-brand-color img {
  filter: saturate(60%) sepia(80%) hue-rotate(110deg) brightness(72%) contrast(90%);
}

/* OpenAI ships as a wider wordmark — give it a wider canvas so it doesn't
   crush at 22px wide. */
.research-band-logos li.research-band-logo-wide img {
  width: auto;
  height: 18px;
}

/* (Previously: brand-color exception preserved Google/Qwen/Microsoft's native
   colors. Removed — uniform sage treatment across all 6 logos reads cleaner
   in the trust band.) */

/* Variant D: blog-cards row sits underneath the trust band */
.research-band-cards {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px dashed #d4c4a0;
}

@media (max-width: 880px) {
  .research-band-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── VARIANT B — Research showcase with embedded viewer ───────── */
.research-showcase {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(180deg, #faf8f5 0%, #f0ebe0 100%);
  border-top: 1px solid #e0d5bf;
  border-bottom: 1px solid #e0d5bf;
}

.research-showcase-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.research-showcase-header h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: #1e3a2b;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.research-showcase-sub {
  font-size: 1.1rem;
  color: #4a3a2a;
  line-height: 1.6;
}

.research-showcase-viewer {
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(45, 60, 52, 0.18);
  background: #050510;
}

.research-showcase-viewer iframe {
  display: block;
  border: 0;
  background: #050510;
  width: 100%;
}

.research-showcase-viewer-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a2b 0%, #2d5a4f 100%);
  color: #faf8f5;
  font-size: 0.95rem;
}

.research-showcase-viewer-cta strong {
  color: #f3c98f;
}

.research-showcase-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.research-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0d5bf;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45, 60, 52, 0.14);
}

.research-card-image {
  background: #faf8f5;
  border-bottom: 1px solid #ede8de;
  padding: 0.5rem 0.5rem 0;
}

.research-card-image img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.research-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a2b;
  margin: 1rem 1.15rem 0.5rem;
  line-height: 1.25;
}

.research-card p {
  font-size: 0.95rem;
  color: #4a3a2a;
  line-height: 1.5;
  margin: 0 1.15rem 0.85rem;
  flex: 1;
}

.research-card-meta {
  display: block;
  padding: 0.6rem 1.15rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7d68;
}

.research-showcase-footer {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .research-showcase-cards {
    grid-template-columns: 1fr;
  }
  .research-showcase-viewer iframe {
    height: 380px !important;
  }
}

/* ── VARIANT C — Hybrid hero augmentation ─────────────────────── */
.hero-research-line {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(45, 90, 79, 0.3);
  font-size: 0.92rem;
  color: #6b5d4f;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-research-line a {
  color: #2d5a4f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.hero-research-line a:hover {
  border-bottom-color: #2d5a4f;
}

.hero-research-sep {
  color: #c8b89a;
}

.hero-research-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d5a4f;
  box-shadow: 0 0 0 0 rgba(45, 90, 79, 0.6);
  animation: hero-research-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-research-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 90, 79, 0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(45, 90, 79, 0); }
}

/* Vindex viewer iframe embed (Zola shortcode) */
.content-body .vindex-viewer-embed,
.vindex-viewer-embed {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  background: #050510;
}

.vindex-viewer-caption {
  padding: 10px 16px;
  background: #f7f6f3;
  font-size: 12px;
  color: #666;
  font-family: 'DM Mono', 'JetBrains Mono', Menlo, monospace;
}

.vindex-viewer-caption strong {
  color: #2d5a4f;
  font-weight: 600;
}

.vindex-viewer-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a2b 0%, #2d5a4f 100%);
  color: #faf8f5;
  font-size: 0.95rem;
}

.vindex-viewer-cta-text {
  flex: 1;
  min-width: 240px;
}

.vindex-viewer-cta-text strong {
  color: #f3c98f;
  font-weight: 600;
}

.vindex-viewer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  background: #f3c98f;
  color: #1e3a2b;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.vindex-viewer-cta-button:hover {
  background: #faf8f5;
  transform: translateX(2px);
}

/* Blog chart figures — visualizations under data tables */
.content-body .blog-chart {
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 0.75rem 0.75rem;
  background: #faf8f5;
  border: 1px solid #e0d5bf;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(45, 60, 52, 0.04);
}

.content-body .blog-chart img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.content-body .blog-chart figcaption {
  margin-top: 0.65rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #6b5d4f;
  text-align: center;
  line-height: 1.5;
}
