/* JOV.AI Brand Standards */

/* Import Google Fonts */

/* Brand Colors */
:root {
  --jov-golden: #f4ac39;
  --jov-camo: #83877f;
  --jov-orange: #e56f2b;
  --jov-charcoal: #433f3e;
  --jov-navy: #1b2436;
  --jov-light: #d5d5d4;
  --jov-slate: #2c3e50;
  --jov-burgundy: #7a2c25;

  /* Semantic mappings */
  --jov-earth: var(--jov-charcoal);
  --jov-mint: var(--jov-light);
  --jov-pacific: var(--jov-slate);
  --jov-red: var(--jov-burgundy);
}

/* Override Material theme colors */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--jov-earth);
  --md-primary-fg-color--light: #4a3d3f;
  --md-primary-fg-color--dark: #2a1e20;
  --md-accent-fg-color: var(--jov-golden);
  --md-typeset-a-color: var(--jov-earth);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--jov-navy);
  --md-accent-fg-color: var(--jov-golden);
  --md-typeset-a-color: var(--jov-golden);
  --md-default-fg-color: rgba(255, 255, 255, 0.87);
  --md-default-fg-color--light: rgba(255, 255, 255, 0.54);
  --md-default-fg-color--lighter: rgba(255, 255, 255, 0.32);
  --md-default-bg-color: var(--jov-navy);
}

/* Typography */
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] body {
  color: rgba(255, 255, 255, 0.87);
}

[data-md-color-scheme="slate"] .md-typeset {
  color: rgba(255, 255, 255, 0.87);
}

/* Dark mode sidebar navigation (left and right) */
[data-md-color-scheme="slate"] .md-nav__link {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav__link:focus {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-nav__link--active,
[data-md-color-scheme="slate"] .md-nav__item--active > .md-nav__link {
  color: var(--jov-golden);
}

[data-md-color-scheme="slate"] .md-nav__title {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-nav__item--nested > .md-nav__link {
  color: rgba(255, 255, 255, 0.7);
}

/* Table of contents (right sidebar) */
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link {
  color: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link--active {
  color: var(--jov-golden);
}

.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
}

.md-typeset h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.md-typeset h4, .md-typeset h5, .md-typeset h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Make logo slightly dimmed for light mode mint header, full brightness for dark mode */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.8rem;
  filter: brightness(0.95);
}

[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  filter: none;
}

/* Hide redundant site name/page title in header - logo is sufficient */
.md-header__title {
  display: none;
}

/* Hero title styling for homepage */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--jov-earth);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

/* Primary buttons use Golden */
.md-button--primary {
  background-color: var(--jov-golden) !important;
  border-color: var(--jov-golden) !important;
  color: var(--jov-earth) !important;
}

.md-button--primary:hover {
  background-color: var(--jov-orange) !important;
  border-color: var(--jov-orange) !important;
}

/* Secondary buttons */
.md-button:not(.md-button--primary) {
  border-color: var(--jov-camo);
  color: var(--jov-camo);
}

.md-button:not(.md-button--primary):hover {
  background-color: var(--jov-camo);
  color: white;
}

/* Navigation tabs */
.md-tabs {
  background-color: var(--jov-mint);
}


[data-md-color-scheme="slate"] .md-tabs {
  background-color: var(--jov-navy);
}

.md-tabs__link {
  color: var(--jov-earth) !important;
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Header */
.md-header {
  background-color: var(--jov-mint);
}

[data-md-color-scheme="slate"] .md-header {
  background-color: var(--jov-slate);
}

/* ============================================
   NAVIGATION TABS IN HEADER
   Tabs are moved into header via JavaScript
   ============================================ */

/* Hide tabs until JS moves them into header - prevents FOUC */
.md-tabs:not(.md-tabs--in-header) {
  display: none !important;
}

/* When tabs are inside header */
.md-tabs--in-header,
.md-tabs--in-header *,
.md-tabs--in-header .md-tabs__list,
.md-tabs--in-header .md-tabs__item,
.md-tabs--in-header .md-tabs__link {
  transform: none !important;
  opacity: 1 !important;
}

.md-tabs--in-header,
.md-tabs--in-header[hidden] {
  position: static !important;
  background: transparent !important;
  width: auto !important;
  flex: 1;
  z-index: 100;
  pointer-events: auto;
  overflow: visible !important;
  clip: unset !important;
  clip-path: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.md-tabs--in-header .md-grid {
  overflow: visible !important;
}

.md-tabs--in-header .md-tabs__list {
  overflow: visible !important;
}

/* Remove the separate tabs bar - it's now in header */
.md-header--lifted {
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.1), 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
}

/* Style the tabs list */
.md-tabs--in-header .md-tabs__list {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Style individual tab items */
.md-tabs--in-header .md-tabs__item {
  display: flex !important;
  align-items: center;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: unset !important;
  width: auto !important;
  flex: none !important;
}

.md-tabs--in-header .md-tabs__link {
  padding: 0.5rem 0.75rem !important;
  margin: 0 !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
  pointer-events: auto !important;
  z-index: 100;
  min-width: unset !important;
  width: auto !important;
}

.md-tabs--in-header .md-tabs__link:hover,
.md-tabs--in-header .md-tabs__item--active .md-tabs__link {
  opacity: 1;
}

/* Adjust header layout - use order to force positions regardless of DOM order */
.md-header__inner {
  display: flex;
  align-items: center;
}

/* Default order for all header children */
.md-header__inner > * {
  order: 5;
}

/* Logo always first */
.md-logo {
  order: 1 !important;
}

/* Hamburger menu second */
[for="__drawer"] {
  order: 2 !important;
}

/* Placeholder takes middle space */
.nav-placeholder {
  order: 3 !important;
  flex: 1;
}

/* Tabs take middle space */
.md-tabs--in-header {
  order: 3 !important;
}

/* Search always near end */
[for="__search"] {
  order: 10 !important;
}

/* CTA always last */
.nav-cta-button {
  order: 11 !important;
  margin-left: 0.5rem;
}

/* Hide the grid wrapper inside tabs */
.md-tabs--in-header > .md-grid {
  max-width: none;
  padding: 0;
}

/* Hide tabs on mobile - hamburger menu takes over */
@media screen and (max-width: 76.1875em) {
  .md-tabs--in-header {
    display: none;
  }
}

/* Increase base font size for readability */
.md-typeset {
  font-size: 0.9rem;
}

/* Utility class for font-weight 600 */
.fw-600 {
  font-weight: 600;
}

/* Animated background - Option D: Geometric Mesh with Parallax (Full Body) */
@keyframes meshPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes meshShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.hero-text {
  text-align: center;
  padding: 3rem 2rem 3rem 2rem;
  color: var(--jov-earth);
  position: relative;
}

/* Full-body parallax mesh container - only show on home page */
.parallax-mesh-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  pointer-events: none;
  overflow: hidden;
  display: none; /* Hidden by default */
}

/* Only show mesh when .hero-text exists (home page) */
body:has(.hero-text) .parallax-mesh-container {
  display: block;
}

/* Parallax mesh layers - created by JS for scroll transforms */
.parallax-mesh-layer {
  position: absolute;
  top: -50%;
  left: -20%;
  right: -20%;
  height: 200%;
  pointer-events: none;
  will-change: transform;
}

.parallax-mesh-1 {
  background-image:
    linear-gradient(rgba(244, 172, 57, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 172, 57, 0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: meshPulse 6s ease-in-out infinite, meshShift 20s linear infinite;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 0%, transparent 60%);
}

.parallax-mesh-2 {
  background-image:
    linear-gradient(45deg, rgba(122, 44, 37, 0.5) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(122, 44, 37, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: meshPulse 8s ease-in-out infinite 2s;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 50%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 50%);
}

[data-md-color-scheme="slate"] .hero-text {
  color: white;
}

.hero-text h1 {
  color: var(--jov-earth);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .hero-text h1 {
  color: var(--jov-golden);
}

.hero-text p {
  color: var(--jov-earth);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

[data-md-color-scheme="slate"] .hero-text p {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero CTA box - mint background with rounded corners */
.hero-cta-box {
  background-color: var(--jov-mint);
  padding: 2.5rem 2rem;
  margin: 0 0 4rem 0;
  border-radius: 24px;
  text-align: left;
  color: var(--jov-earth);
  position: relative;
  z-index: 1;
}

[data-md-color-scheme="slate"] .hero-cta-box {
  background-color: rgba(44, 62, 80, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(119, 160, 181, 0.2);
  color: var(--jov-light);
}

.hero-cta-box p {
  color: var(--jov-earth);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .hero-cta-box p {
  color: rgba(255, 255, 255, 0.9);
}

/* Secondary CTA link style */
.hero-cta-box .secondary-cta {
  color: var(--jov-earth);
  font-weight: 900;
}

.hero-cta-box .secondary-cta:hover {
  color: var(--jov-earth);
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-md-color-scheme="slate"] .hero-cta-box .secondary-cta {
  text-decoration-color: var(--jov-orange);
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .hero-cta-box .secondary-cta:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration-color: var(--jov-mint);
}

@media (min-width: 768px) {
  .hero-text {
    padding: 3rem 2rem 3rem 2rem;
  }
  .hero-cta-box {
    padding: 3rem 3rem;
  }
}

.hero-cta {
  display: block !important;
  width: fit-content;
  margin: 1.5rem auto 0 auto;
}

/* Trust strip styling */
.trust-strip {
  text-align: left;
  padding: 2.5rem 2rem;
  background-color: rgba(53, 41, 43, 0.15);
  border-radius: 32px;
  margin: 3rem 0 4rem 0;
  position: relative;
  z-index: 1;
}

[data-md-color-scheme="slate"] .trust-strip {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(119, 160, 181, 0.2);
}

.trust-strip p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--jov-earth);
  margin: 0;
}

[data-md-color-scheme="slate"] .trust-strip p {
  color: var(--jov-camo);
}

.trust-strip strong {
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .trust-strip strong {
  color: var(--jov-golden);
}

/* Hide HR dividers */
.md-typeset hr {
  display: none;
}

.trust-strip a {
  color: var(--jov-pacific);
}

.trust-strip a:hover {
  color: var(--jov-golden);
}

[data-md-color-scheme="slate"] .trust-strip a {
  color: var(--jov-orange);
}

[data-md-color-scheme="slate"] .trust-strip a:hover {
  color: var(--jov-golden);
}

/* Glassmorphism cards */
.glass-card {
  background: rgba(53, 41, 43, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(53, 41, 43, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--jov-pacific);
  box-shadow: 0 4px 20px rgba(119, 160, 181, 0.2);
}

[data-md-color-scheme="slate"] .glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(119, 160, 181, 0.2);
}

[data-md-color-scheme="slate"] .glass-card:hover {
  border-color: var(--jov-burgundy);
  box-shadow: 0 4px 20px rgba(122, 44, 37, 0.25);
}

/* Problem/Solution grid */
.problem-solution-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 6rem 0;
}

@media (min-width: 768px) {
  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.problem-col {
  font-style: italic;
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .problem-col {
  color: var(--jov-camo);
}

.solution-col {
  font-weight: 500;
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .solution-col {
  color: rgba(255, 255, 255, 0.9);
}

.solution-col strong {
  color: var(--jov-burgundy);
}

[data-md-color-scheme="slate"] .solution-col strong {
  color: var(--jov-orange);
}

/* Process steps */
.process-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 5rem 0;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.process-step {
  text-align: center;
  padding: 0.5rem 1rem;
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .process-step {
  color: rgba(255, 255, 255, 0.9);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--jov-orange);
  color: white;
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step h4 {
  margin: 0.5rem 0;
  color: var(--jov-pacific);
  font-size: 32px;
}

.process-step h4 .headerlink {
  display: none;
}

[data-md-color-scheme="slate"] .process-step h4 {
  color: var(--jov-orange);
}

/* Why Us cards */
.why-us-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}

@media (min-width: 768px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.why-us-grid .glass-card .lg {
  color: var(--jov-earth);
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

[data-md-color-scheme="slate"] .why-us-grid .glass-card .lg {
  color: var(--jov-orange);
}

.why-us-grid .glass-card {
  color: var(--jov-earth);
}

.why-us-grid .glass-card strong {
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .why-us-grid .glass-card {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .why-us-grid .glass-card strong {
  color: var(--jov-golden);
}

/* "We'll tell you no" paragraph */
.why-us-grid + p {
  font-size: 26px;
  line-height: 1.4;
  margin-top: 2rem;
}


[data-md-color-scheme="slate"] .why-us-grid + p {
  color: rgba(255, 255, 255, 0.9);
}

/* "Why JOV AI" heading in dark mode */
[data-md-color-scheme="slate"] .md-typeset h2 {
  color: rgba(255, 255, 255, 0.9);
}

.why-us-grid .glass-card:hover {
  border-color: var(--jov-burgundy);
}

/* Footer CTA section */
.footer-cta {
  background-color: var(--jov-mint);
  padding: 4rem 2rem;
  margin: 5rem 0 0 0;
  text-align: center;
  color: var(--jov-earth);
  position: relative;
  z-index: 1;
  border-radius: 32px;
}

.footer-cta h2 {
  color: var(--jov-earth);
  margin-bottom: 0.5rem;
}

.footer-cta p {
  color: var(--jov-earth);
  margin-bottom: 2rem;
}

[data-md-color-scheme="slate"] .footer-cta {
  background-color: rgba(44, 62, 80, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(119, 160, 181, 0.2);
  color: white;
}

[data-md-color-scheme="slate"] .footer-cta h2 {
  color: white;
}

[data-md-color-scheme="slate"] .footer-cta p {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer form fields */
.footer-cta input,
.footer-cta textarea {
  background: var(--jov-earth) !important;
  color: white !important;
  border-color: var(--jov-earth) !important;
}

.footer-cta input::placeholder,
.footer-cta textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-cta label {
  color: var(--jov-earth) !important;
}

[data-md-color-scheme="slate"] .footer-cta input,
[data-md-color-scheme="slate"] .footer-cta textarea {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-md-color-scheme="slate"] .footer-cta label {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Nav CTA button */
.md-header__inner .nav-cta-button {
  background-color: var(--jov-golden);
  color: var(--jov-earth);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1rem;
}

.md-header__inner .nav-cta-button:hover {
  background-color: #e09a2a;
}

/* ============================================
   ANIMATIONS & POLISH
   ============================================ */

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp3D {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(20deg) translateY(30px);
    filter: drop-shadow(0 0 0 transparent);
  }
  40% {
    opacity: 1;
    transform: perspective(1000px) rotateX(20deg) translateY(0);
    filter: drop-shadow(0 0 0 transparent);
  }
  70% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
    filter: drop-shadow(0 0 0 transparent);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
    filter: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero text - big, bold, gradient, 3D animated entrance */
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  animation: fadeInUp3D 1.2s ease-out forwards;
  background: linear-gradient(135deg, var(--jov-golden) 0%, #f9c56a 50%, var(--jov-golden) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 5.5rem;
  }
}

/* Hero CTA box entrance */
.hero-cta-box {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Trust strip entrance */
.trust-strip {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glass cards - enhanced hover */
.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease-out;
}

/* Card hover - lift effect */
.glass-card:hover,
.scroll-animate.visible.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-md-color-scheme="slate"] .glass-card:hover,
[data-md-color-scheme="slate"] .scroll-animate.visible.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Primary button - enhanced hover with shimmer */
.md-button--primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.md-button--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.md-button--primary:hover::before {
  left: 100%;
}

.md-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 172, 57, 0.4);
}

/* Step numbers - pulse on hover */
.step-number {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(229, 111, 43, 0.4);
}

/* Icons in Why Us - subtle bounce on card hover */
.why-us-grid .glass-card .lg {
  transition: transform 0.3s ease;
}

.why-us-grid .glass-card:hover .lg {
  transform: scale(1.15);
}

/* Links - smooth underline animation */
.secondary-cta {
  position: relative;
  transition: all 0.3s ease;
}

/* Footer CTA - entrance animation */
.footer-cta {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* ============================================
   CONTENT Z-INDEX (Above parallax mesh)
   ============================================ */
.md-content {
  position: relative;
  z-index: 1;
}

.md-typeset h2,
.md-typeset h3,
.md-typeset p {
  position: relative;
  z-index: 1;
}

/* ============================================
   BACKGROUND TEXTURE (Subtle grain/noise)
   ============================================ */
[data-md-color-scheme="slate"] .md-main {
  position: relative;
}

[data-md-color-scheme="slate"] .md-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Counter styling */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Cookie Consent Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e0e0e0;
  padding: 1rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="slate"] #cookie-banner {
  background: rgba(43, 47, 64, 0.98);
  border-top-color: #3a3f56;
  color: rgba(255, 255, 255, 0.87);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .cookie-text {
    flex: 1;
  }
}

.cookie-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--jov-earth);
}

[data-md-color-scheme="slate"] .cookie-text h4 {
  color: rgba(255, 255, 255, 0.9);
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

[data-md-color-scheme="slate"] .cookie-text p {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-btn-primary {
  background-color: var(--jov-golden);
  color: var(--jov-earth);
}

.cookie-btn-primary:hover {
  background-color: #e09622;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background-color: transparent;
  color: var(--jov-earth);
  border: 1px solid #ddd;
}

[data-md-color-scheme="slate"] .cookie-btn-secondary {
  color: rgba(255, 255, 255, 0.87);
  border-color: #3a3f56;
}

.cookie-btn-secondary:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

[data-md-color-scheme="slate"] .cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-link {
  color: var(--jov-golden);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.cookie-link:hover {
  color: #e09622;
  text-decoration: underline;
}

/* Typography Testing Options */
/* Add these classes to .hero-text to test different fonts */

/* Option 1: Outfit (Logo Match - Dyke's Recommendation) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&display=swap');

.hero-text.font-outfit h1 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Option 2: Inter (Modern, Tech) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

.hero-text.font-inter h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Option 2: Roboto (Clean, Professional) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

.hero-text.font-roboto h1 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Option 3: System UI (Native, Fast) */
.hero-text.font-system h1 {
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Option 4: Current (Lora serif - retro/distinguished) */
.hero-text.font-current h1 {
  font-family: 'Lora', serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Option 5: Montserrat (Current sans-serif) */
.hero-text.font-montserrat h1 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Alternative Mesh Backgrounds */
/* Add these classes to body to test different mesh styles */

/* Option 1: Subtle Tech Mesh */
body.mesh-tech .parallax-mesh-1 {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(119, 160, 181, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(244, 172, 57, 0.1) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px;
  animation: meshShift 30s linear infinite;
}

body.mesh-tech .parallax-mesh-2 {
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(119, 160, 181, 0.05) 49%, rgba(119, 160, 181, 0.05) 51%, transparent 53%);
  background-size: 60px 60px;
  animation: meshShift 25s linear infinite reverse;
}

/* Option 2: Minimal Dots */
body.mesh-minimal .parallax-mesh-1 {
  background-image:
    radial-gradient(circle, rgba(67, 63, 62, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: meshPulse 10s ease-in-out infinite;
}

body.mesh-minimal .parallax-mesh-2 {
  background-image:
    radial-gradient(circle, rgba(244, 172, 57, 0.05) 2px, transparent 2px);
  background-size: 100px 100px;
  animation: meshPulse 12s ease-in-out infinite 3s;
}

/* Option 3: No Mesh (Clean) */
body.mesh-none .parallax-mesh-container {
  display: none !important;
}

/* Hero Problem Grid (1x4 horizontal layout) */
.hero-problem-grid {
  max-width: 1200px;
  margin: 2rem auto;
}

.carousel-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  .carousel-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .carousel-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.carousel-nav {
  display: none; /* Remove navigation for grid layout */
}

.hero-problem-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

[data-md-color-scheme="slate"] .hero-problem-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-problem-card:hover {
  border-color: var(--jov-golden);
  background: rgba(244, 172, 57, 0.05);
  transform: translateY(-2px);
}

.problem-trigger {
  display: block;
  font-style: italic;
  color: #6ce9ff !important;
  font-size: 22px !important;
  font-weight: 500;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

[data-md-color-scheme="slate"] .problem-trigger {
  color: #6ce9ff !important;
}

.solution-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--jov-earth);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

[data-md-color-scheme="slate"] .solution-label {
  color: rgba(255, 255, 255, 0.9);
}

.hook-copy {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--jov-earth);
  margin-bottom: 1.25rem;
  opacity: 0.9;
  flex: 1;
}

[data-md-color-scheme="slate"] .hook-copy {
  color: rgba(255, 255, 255, 0.8);
}

.hero-problem-card .md-button {
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  padding: 0.5rem 0.5rem;
}

/* Adjust text sizes for 1x4 layout */
@media (min-width: 1200px) {
  .problem-trigger {
    font-size: 20px !important;
  }

  .solution-label {
    font-size: 1rem;
    line-height: 1.2;
  }

  .hook-copy {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
