/* Thinkerz.ai — Main Stylesheet */
/* Design tokens, base reset, and component styles */

/* ==========================================================================
   Design Tokens — CSS Custom Properties
   Requirements: 12.1, 12.2, 12.3, 12.4, 15.2
   ========================================================================== */

:root {
  /* --- Color Palette: Primary Olive --- */
  --color-green-50: #f7f8f0;
  --color-green-100: #e8ebd4;
  --color-green-200: #d4d9a9;
  --color-green-300: #b5bd6e;
  --color-green-400: #8b9a3b;
  --color-green-500: #6b7c2a;
  /* Primary Olive */
  --color-green-600: #556321;
  --color-green-700: #3f4a19;

  /* --- Color Palette: Accent Maroon --- */
  --color-red-50: #fdf2f2;
  --color-red-100: #f5d5d5;
  --color-red-200: #e8a9a9;
  --color-red-400: #a83232;
  --color-red-500: #800020;
  /* Accent Maroon */
  --color-red-600: #660019;

  /* --- Color Palette: Neutrals --- */
  --color-white: #ffffff;
  --color-page-bg: #FAFBFC;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-black: #000000;

  /* --- Typography: Font Families --- */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Typography: Font Sizes (responsive with clamp) --- */
  --text-hero-headline: clamp(3rem, 6vw, 5.5rem);
  --text-section-heading: clamp(2.25rem, 4vw, 3.5rem);
  --text-subheading: clamp(1.25rem, 2.5vw, 1.75rem);
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-caption: 0.875rem;

  /* --- Typography: Font Weights --- */
  --weight-bold: 700;
  --weight-semibold: 600;
  --weight-medium: 500;
  --weight-regular: 400;

  /* --- Spacing --- */
  --section-padding: clamp(6rem, 10vw, 12rem) clamp(1rem, 5vw, 6rem);
  --card-padding: 1.5rem;
  --gap-grid: 2rem;
  --gap-stack: 1rem;
  --gap-inline: 0.5rem;

  /* --- Shadows --- */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-nav: none;

  /* --- Border Radius --- */
  --radius-small: 0.5rem;
  --radius-medium: 1rem;
  --radius-large: 1rem;
  --radius-pill: 9999px;

  /* --- Breakpoints (for reference — used in media queries) --- */
  --bp-mobile: 768px;
  --bp-tablet: 1024px;
  --bp-desktop: 1024px;
  --bp-widescreen: 1440px;
}

/* ==========================================================================
   Font-display: swap — ensures text remains visible during font loading
   Requirement: 15.2
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}

/* ==========================================================================
   CSS Reset / Normalize
   Requirements: 13.1, 13.2, 13.3
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-hero-headline);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-section-heading);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-subheading);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Container
   Requirement: 13.2
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ==========================================================================
   Responsive Grid System
   Requirements: 13.1, 13.3
   Desktop (>1024px): 12 columns, 2rem gutter
   Tablet (768px–1024px): 8 columns, 1.5rem gutter, 2rem margin
   Mobile (<768px): 4 columns, 1rem gutter, 1rem margin
   ========================================================================== */

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

/* Span utilities — mobile-first (4-col base) */
.col-1 {
  grid-column: span 1;
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

/* --- Tablet: 768px – 1024px --- */
@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  .grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
  }

  .col-md-1 {
    grid-column: span 1;
  }

  .col-md-2 {
    grid-column: span 2;
  }

  .col-md-3 {
    grid-column: span 3;
  }

  .col-md-4 {
    grid-column: span 4;
  }

  .col-md-5 {
    grid-column: span 5;
  }

  .col-md-6 {
    grid-column: span 6;
  }

  .col-md-7 {
    grid-column: span 7;
  }

  .col-md-8 {
    grid-column: span 8;
  }
}

/* --- Desktop: >1024px --- */
@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-grid);
  }

  .col-lg-1 {
    grid-column: span 1;
  }

  .col-lg-2 {
    grid-column: span 2;
  }

  .col-lg-3 {
    grid-column: span 3;
  }

  .col-lg-4 {
    grid-column: span 4;
  }

  .col-lg-5 {
    grid-column: span 5;
  }

  .col-lg-6 {
    grid-column: span 6;
  }

  .col-lg-7 {
    grid-column: span 7;
  }

  .col-lg-8 {
    grid-column: span 8;
  }

  .col-lg-9 {
    grid-column: span 9;
  }

  .col-lg-10 {
    grid-column: span 10;
  }

  .col-lg-11 {
    grid-column: span 11;
  }

  .col-lg-12 {
    grid-column: span 12;
  }
}

/* ==========================================================================
   Section Base Styles
   Uses --section-padding design token
   ========================================================================== */

section {
  padding: var(--section-padding);
}

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

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* --- Flex Layouts --- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-sm {
  gap: var(--gap-inline);
}

.gap-md {
  gap: var(--gap-stack);
}

.gap-lg {
  gap: var(--gap-grid);
}

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

/* --- Responsive Visibility --- */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   Navigation Bar
   Requirements: 1.1, 1.3, 1.6
   ========================================================================== */

/* --- Sticky Header --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f0f0f0;
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- Nav Layout --- */
.nav {
  width: 100%;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.5rem;
  max-width: 100% !important;
  padding: 0 2vw !important;
}

/* --- Logo --- */
.nav__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-text {
  letter-spacing: -0.02em;
}

.nav__logo-img {
  height: 105px;
  width: 275px;
  max-height: none;
  object-fit: fill;
}

.nav__logo-dot {
  color: var(--color-green-500);
}

/* --- Desktop Menu --- */
.nav__menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
}

/* --- Nav Item --- */
.nav__item {
  position: relative;
}

/* --- Nav Link (dropdown trigger) --- */
.nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-900);
  background: none;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-gray-900);
  background-color: var(--color-gray-100);
}

/* --- Chevron Icon --- */
.nav__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown:focus-within .nav__chevron {
  transform: rotate(180deg);
}

/* --- Dropdown Panel --- */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 280px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Show dropdown on hover / focus-within */
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* --- Dropdown Item --- */
.nav__dropdown-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-small);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav__dropdown-item:hover,
.nav__dropdown-item:focus-visible {
  background-color: var(--color-green-50);
}

.nav__dropdown-label {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.125rem;
}

.nav__dropdown-desc {
  display: block;
  font-size: var(--text-caption);
  color: var(--color-gray-400);
  line-height: 1.4;
}

/* --- CTA Button --- */
.nav__cta {
  display: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background-color: var(--color-green-500);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav__cta {
    display: inline-flex;
    align-items: center;
  }
}

.nav__cta:hover {
  background-color: var(--color-green-600);
  transform: scale(1.02);
}

.nav__cta:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* --- Hamburger Button (hidden on desktop) --- */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav__hamburger:hover {
  background-color: var(--color-gray-50);
}

.nav__hamburger-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: var(--color-gray-800);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

/* --- Focus Indicators (Accessibility) --- */
.nav__link:focus-visible,
.nav__dropdown-item:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* ==========================================================================
   Mobile Menu Overlay
   Requirements: 1.2, 1.4, 16.2, 16.4
   ========================================================================== */

/* --- Hamburger Animation (open state) --- */
.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__hamburger:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 4rem;
  /* below the header */
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background-color: var(--color-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Hide on desktop */
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Mobile Menu Inner --- */
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 2rem;
  gap: 0.5rem;
}

/* --- Mobile Menu List --- */
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Mobile Menu Item --- */
.mobile-menu__item {
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu__item:last-child {
  border-bottom: none;
}

/* --- Mobile Menu Link (dropdown trigger) --- */
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-800);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--color-green-600);
}

.mobile-menu__link:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* --- Mobile Chevron --- */
.mobile-menu__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu__link[aria-expanded="true"] .mobile-menu__chevron {
  transform: rotate(180deg);
}

/* --- Mobile Dropdown --- */
.mobile-menu__dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu__dropdown.is-expanded {
  max-height: 500px;
  padding-bottom: 0.5rem;
}

/* --- Mobile Dropdown Item --- */
.mobile-menu__dropdown-item {
  display: block;
  padding: 0.625rem 0 0.625rem 1rem;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-600);
  text-decoration: none;
  border-left: 2px solid var(--color-gray-200);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__dropdown-item:hover,
.mobile-menu__dropdown-item:focus-visible {
  color: var(--color-green-600);
  border-left-color: var(--color-green-500);
}

.mobile-menu__dropdown-item:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* --- Mobile CTA Button --- */
.mobile-menu__cta {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background-color: var(--color-green-500);
  border-radius: var(--radius-pill);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu__cta:hover {
  background-color: var(--color-green-600);
  transform: scale(1.02);
}

.mobile-menu__cta:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* --- Mobile Menu Backdrop --- */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  top: 4rem;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .mobile-menu-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   Requirements: 2.1, 2.3, 2.4, 15.3
   ========================================================================== */

/* --- Hero Layout --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: var(--section-padding);
}

/* --- Animated Gradient Background --- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(63, 74, 25, 0.7) 0%,
      rgba(107, 124, 42, 0.6) 30%,
      rgba(128, 0, 32, 0.5) 70%,
      rgba(102, 0, 25, 0.65) 100%) !important;
  background-size: 300% 300% !important;
  animation: heroGradient 8s ease infinite, heroBgFadeIn 1.2s ease-out both;
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroBgFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Hero Content --- */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-stack);
  max-width: 860px;
}

/* --- Headline --- */
.hero__headline {
  font-size: var(--text-hero-headline);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1.1;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}

/* --- Subheadline --- */
.hero__subheadline {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  line-height: 1.6;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

/* --- CTA Buttons --- */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-stack);
  justify-content: center;
  margin-top: 0.5rem;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Primary CTA — filled green */
.hero__cta--primary {
  color: var(--color-white);
  background-color: var(--color-green-500);
  border: 2px solid var(--color-green-500);
}

.hero__cta--primary:hover {
  background-color: var(--color-green-600);
  border-color: var(--color-green-600);
  transform: scale(1.02);
}

/* Secondary CTA — outlined */
.hero__cta--secondary {
  color: var(--color-white);
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero__cta--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: scale(1.02);
}

/* --- Badges --- */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-inline);
  justify-content: center;
  margin-top: 1rem;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Hero Entrance Animation (CSS-only, no JS required)
   Requirement: 2.2
   ========================================================================== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Reduced Motion: disable hero animations --- */
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }

  .hero__headline,
  .hero__subheadline,
  .hero__ctas,
  .hero__badges {
    animation: none;
  }
}

/* ==========================================================================
   Trust / Social Proof Bar
   Requirements: 3.1, 3.2, 3.3, 3.4
   ========================================================================== */

/* --- Section: reduced padding compared to full sections --- */
.trust {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background-color: var(--color-gray-50);
  overflow: hidden;
}

/* --- Heading --- */
.trust__heading {
  text-align: center;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding-inline: 1rem;
}

/* --- Track: overflow hidden container --- */
.trust__track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* --- Logos container: CSS marquee animation --- */
.trust__logos {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
  width: max-content;
  animation: trustScroll 30s linear infinite;
}

/* Pause animation on hover */
.trust__track:hover .trust__logos {
  animation-play-state: paused;
}

/* --- Individual logo block --- */
.trust__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: var(--weight-bold);
  color: var(--color-gray-600);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  user-select: none;
  flex-shrink: 0;
}

.trust__logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--color-green-600);
}

/* --- Marquee keyframes --- */
@keyframes trustScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- Responsive: scale down logos on mobile --- */
@media (max-width: 767px) {
  .trust__logo {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .trust__logos {
    gap: 1.5rem;
  }
}

/* --- Reduced Motion: disable trust bar scroll animation --- */
@media (prefers-reduced-motion: reduce) {
  .trust__logos {
    animation: none;
  }
}

/* ==========================================================================
   Industry Solutions Grid
   Requirements: 4.1, 4.2, 4.4, 4.5
   ========================================================================== */

/* --- Section --- */
.industries {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

/* --- Header --- */
.industries__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.industries__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.industries__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Grid: 1 col mobile → 2 col tablet → 3 col desktop --- */
.industries__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

@media (min-width: 768px) {
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .industries__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-grid);
  }

  .industry-card {
    flex: 0 1 calc((100% - var(--gap-grid) * 2) / 3);
  }
}

/* --- Card --- */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid var(--card-accent, var(--color-green-500));
  border-radius: var(--radius-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.industry-card:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* --- Icon --- */
.industry-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--card-accent, var(--color-green-500));
  background-color: var(--color-gray-50);
  border-radius: var(--radius-small);
}

/* --- Title --- */
.industry-card__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

/* --- Description --- */
.industry-card__desc {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .industry-card {
    transition: none;
  }
}

/* ==========================================================================
   Problem-Solution-Result Flow
   Requirements: 5.1, 5.3, 5.4
   ========================================================================== */

/* --- Section --- */
.psr {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
}

/* --- Header --- */
.psr__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.psr__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
}

/* --- Steps Container --- */
.psr__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-grid);
  position: relative;
}

/* --- Individual Step --- */
.psr__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--card-padding);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  max-width: 360px;
  width: 100%;
  position: relative;
}

/* --- Step Number Circle --- */
.psr__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-green-500);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* --- Step Icon --- */
.psr__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: var(--radius-small);
}

/* --- Step Title --- */
.psr__step-title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

/* --- Step Description --- */
.psr__step-desc {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Mobile: Vertical connecting lines between steps --- */
.psr__step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background-color: var(--color-green-300);
  z-index: 1;
}

/* --- Desktop: Horizontal layout with connecting arrows --- */
@media (min-width: 1024px) {
  .psr__steps {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
  }

  .psr__step {
    flex: 1;
    max-width: none;
  }

  /* Remove vertical lines on desktop */
  .psr__step:not(:last-child)::after {
    /* Reposition as horizontal arrow */
    top: 50%;
    bottom: auto;
    left: auto;
    right: -3rem;
    transform: translateY(-50%);
    width: 3rem;
    height: 2px;
    background-color: var(--color-green-300);
  }

  /* Arrow head on desktop */
  .psr__step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.75rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--color-green-300);
    z-index: 2;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .psr__step {
    transition: none;
  }
}

/* ==========================================================================
   Platform Features Showcase
   Requirements: 6.1, 6.2, 6.3, 6.4, 16.4
   ========================================================================== */

/* --- Section --- */
.platform {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

/* --- Header --- */
.platform__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.platform__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.platform__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Tab Bar --- */
.platform__tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--color-gray-200);
  padding-bottom: 0;
}

.platform__tabs::-webkit-scrollbar {
  display: none;
}

/* --- Individual Tab --- */
.platform__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-600);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.platform__tab:hover {
  color: var(--color-gray-900);
  background-color: var(--color-gray-50);
}

.platform__tab:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: -2px;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
}

/* --- Active Tab --- */
.platform__tab--active {
  color: var(--color-green-600);
  font-weight: var(--weight-semibold);
  border-bottom-color: var(--color-green-500);
}

/* --- Tab Icon --- */
.platform__tab-icon {
  flex-shrink: 0;
}

/* --- Panels Container --- */
.platform__panels {
  position: relative;
}

/* --- Individual Panel --- */
.platform__panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  display: none;
}

.platform__panel--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Panel Inner Layout --- */
.platform__panel-inner {
  padding: var(--card-padding);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  max-width: 720px;
  margin-inline: auto;
}

/* --- Panel Icon --- */
.platform__panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: var(--radius-small);
}

/* --- Panel Title --- */
.platform__panel-title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

/* --- Panel Description --- */
.platform__panel-desc {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* --- Panel Bullet Points --- */
.platform__panel-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.platform__panel-bullets li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-body);
  color: var(--color-gray-800);
}

.platform__panel-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-green-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Responsive: mobile tab scrolling --- */
@media (max-width: 767px) {
  .platform__tabs {
    gap: 0;
  }

  .platform__tab {
    padding: 0.625rem 1rem;
    font-size: var(--text-caption);
  }

  .platform__tab-icon {
    display: none;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .platform__panel {
    transition: none;
  }
}

/* ==========================================================================
   Integration Ecosystem
   Requirements: 7.1, 7.2, 7.3
   ========================================================================== */

/* --- Section --- */
.integrations {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
}

/* --- Header --- */
.integrations__header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.integrations__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.integrations__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Center Logo --- */
.integrations__logo {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.integrations__logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

.integrations__logo-dot {
  color: var(--color-green-500);
}

/* --- Grid: 1 col mobile → 2 col tablet → 4 col desktop --- */
.integrations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

@media (min-width: 768px) {
  .integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Category --- */
.integrations__category {
  text-align: center;
}

.integrations__category-title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* --- List --- */
.integrations__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Item --- */
.integrations__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-600);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-small);
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.2s ease;
  animation: integrationPulse 3s ease-in-out infinite;
}

.integrations__item:nth-child(2n) {
  animation-delay: 0.5s;
}

.integrations__item:nth-child(3n) {
  animation-delay: 1s;
}

.integrations__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  color: var(--color-green-600);
}

/* --- Icon --- */
.integrations__icon {
  flex-shrink: 0;
  color: var(--color-green-500);
}

/* --- Pulse Animation --- */
@keyframes integrationPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(107, 124, 42, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(107, 124, 42, 0.08);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .integrations__item {
    animation: none;
  }
}

/* ==========================================================================
   Consulting Services
   Requirements: 8.1, 8.3
   ========================================================================== */

/* --- Section --- */
.consulting {
  padding: var(--section-padding);
  background-color: var(--color-green-50);
  color: var(--color-gray-900);
}

/* --- Header --- */
.consulting__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.consulting__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.consulting__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Grid: 1 col mobile → 2 col desktop --- */
.consulting__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

@media (min-width: 768px) {
  .consulting__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Card --- */
.consulting__card {
  padding: var(--card-padding);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.consulting__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* --- Card Icon --- */
.consulting__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: var(--radius-small);
}

/* --- Card Title --- */
.consulting__card-title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

/* --- Card Description --- */
.consulting__card-desc {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Deliverables List --- */
.consulting__deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.consulting__deliverables li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  color: var(--color-gray-800);
}

.consulting__deliverables li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-green-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .consulting__card {
    transition: none;
  }
}

/* ==========================================================================
   Partners Section
   Requirements: 9.1, 9.2
   ========================================================================== */

/* --- Section --- */
.partners {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

/* --- Header --- */
.partners__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.partners__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.partners__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Grid: side-by-side --- */
.partners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Card --- */
.partners__card {
  padding: var(--card-padding);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

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

/* --- Card Name --- */
.partners__card-name {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

/* --- Card Description --- */
.partners__card-desc {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .partners__card {
    transition: none;
  }
}

/* ==========================================================================
   CTA / Contact Section
   Requirements: 10.1, 10.2
   ========================================================================== */

/* --- Section --- */
.cta {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--color-green-500) 0%, var(--color-green-700) 100%);
  color: var(--color-white);
}

/* --- Inner --- */
.cta__inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* --- Heading --- */
.cta__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: 1rem;
}

/* --- Subheading --- */
.cta__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-stack);
  justify-content: center;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta__btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Primary CTA */
.cta__btn--primary {
  color: var(--color-gray-900);
  background-color: var(--color-white);
  border: 2px solid var(--color-white);
}

.cta__btn--primary:hover {
  background-color: var(--color-green-50);
  transform: scale(1.02);
}

/* Secondary CTA */
.cta__btn--secondary {
  color: var(--color-white);
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.cta__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: scale(1.02);
}

/* ==========================================================================
   Footer
   Requirements: 11.1, 11.2, 11.3
   ========================================================================== */

/* --- Section --- */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 6rem) clamp(1.5rem, 3vw, 2rem);
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
}

/* --- Top: Logo + Columns --- */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    gap: 3rem;
  }
}

/* --- Brand --- */
.footer__brand {
  flex-shrink: 0;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

.footer__logo-dot {
  color: var(--color-green-500);
}

.footer__logo:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* --- Columns Container --- */
.footer__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  flex: 1;
}

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

/* --- Column --- */
.footer__column-title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

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

.footer__link {
  font-size: var(--text-small);
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-green-600);
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* --- Bottom Bar --- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Social Icons --- */
.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-gray-400);
  border-radius: var(--radius-small);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.footer__social-link:hover {
  color: var(--color-gray-900);
  background-color: var(--color-gray-200);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

/* --- Legal Links --- */
.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  font-size: var(--text-caption);
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--color-green-400);
}

.footer__legal-link:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* --- Copyright --- */
.footer__copyright {
  font-size: var(--text-caption);
  color: var(--color-gray-400);
}

/* ==========================================================================
   Animation Engine — Scroll-Triggered Reveals
   Requirements: 14.1, 14.2, 14.3, 14.4
   ========================================================================== */

/* --- Base hidden state for all animated elements --- */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
}

/* --- Per-type initial transforms --- */
[data-animate="fade-up"] {
  transform: translateY(24px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}

[data-animate="scale-up"] {
  transform: scale(0.92);
}

/* --- Visible state (applied by Intersection Observer) --- */
[data-animate].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger-delay, 0ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger-delay, 0ms);
}

/* --- Reduced Motion: skip all animation, show everything immediately --- */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}


/* ==========================================================================
   Industry Service Pages — Deep Content Sections
   New components for Kore.ai-style detailed industry pages
   ========================================================================== */

/* --- Value Props Row (3 cards) --- */
.value-props {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.value-props__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .value-props__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-prop-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-medium);
  background-color: var(--color-gray-50);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.value-prop-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: 50%;
}

.value-prop-card__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.value-prop-card__desc {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Use Case Grid (two-column categorized) --- */
.use-cases {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
}

.use-cases__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.use-cases__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.use-cases__subheading {
  font-size: var(--text-subheading);
  font-weight: var(--weight-regular);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}

.use-cases__categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .use-cases__categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases__categories--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-category__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-green-700);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-green-200);
}

.use-case-category__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.use-case-category__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-small);
  font-size: var(--text-body);
  color: var(--color-gray-800);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-case-category__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.use-case-category__item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-green-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Architecture Diagram --- */
.architecture {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.architecture__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.architecture__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.architecture__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.architecture__diagram {
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.arch-row__label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
  text-align: center;
  margin-bottom: 0.25rem;
}

.arch-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-gray-800);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-small);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.arch-item--primary {
  background-color: var(--color-green-50);
  border-color: var(--color-green-200);
  color: var(--color-green-700);
  font-weight: var(--weight-semibold);
}

.arch-item--accent {
  background-color: var(--color-red-50);
  border-color: var(--color-red-200);
  color: var(--color-red-600);
}

.arch-connector {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
  color: var(--color-gray-400);
}

/* --- Problem Cards Section --- */
.problems {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
}

.problems__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.problems__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.problems__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.problem-card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.problem-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  color: var(--color-red-500);
  background-color: var(--color-red-50);
  border-radius: 50%;
}

.problem-card__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.problem-card__desc {
  font-size: var(--text-small);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Feature Blocks (alternating layout) --- */
.features-deep {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.features-deep__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.features-deep__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.features-deep__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.features-deep__blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin-inline: auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background-color: var(--color-gray-50);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-large);
  transition: box-shadow 0.3s ease;
}

.feature-block:hover {
  box-shadow: var(--shadow-card-hover);
}

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

  .feature-block--reverse {
    direction: rtl;
  }

  .feature-block--reverse>* {
    direction: ltr;
  }
}

.feature-block__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-green-500);
  color: var(--color-white);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  margin-bottom: 0.75rem;
}

.feature-block__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.feature-block__desc {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-body);
  color: var(--color-gray-800);
  line-height: 1.5;
}

.feature-block__list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  background-color: var(--color-green-500);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background-color: var(--color-gray-50);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-medium);
  color: var(--color-green-600);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.feature-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-medium);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.5);
}

/* hero__bg override removed — consolidated into main rule above */

/* --- Platform Page Specific --- */
.platform-hero-banner {
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, var(--color-green-50), var(--color-white));
  border: 1px solid var(--color-green-200);
  border-radius: var(--radius-medium);
  text-align: center;
  max-width: 900px;
  margin: -2rem auto 0;
  position: relative;
  z-index: 1;
}

.platform-hero-banner__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-green-700);
  margin-bottom: 0.25rem;
}

.platform-hero-banner__desc {
  font-size: var(--text-body);
  color: var(--color-gray-600);
}

/* --- Solution Cards (3-up) --- */
.solutions {
  position: relative;
  padding: var(--section-padding);
  background-color: #fafbfc;
  overflow: hidden;
}

.solutions::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--color-green-200) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.solutions::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--color-red-100) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

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

.solutions__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.solutions__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.solutions__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .solutions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid var(--color-green-500);
  border-radius: var(--radius-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.solution-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: var(--radius-small);
}

.solution-card__title {
  font-size: var(--text-subheading);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.solution-card__desc {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.solution-card__link {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-green-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.solution-card__link:hover {
  color: var(--color-green-700);
}

/* --- Capabilities Grid (6-up) --- */
.capabilities {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
}

.capabilities__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.capabilities__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.capabilities__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capabilities__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.capability-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: var(--radius-small);
}

.capability-card__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.capability-card__desc {
  font-size: var(--text-small);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.capability-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.capability-card__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--color-green-700);
  background-color: var(--color-green-50);
  border-radius: var(--radius-pill);
}

/* --- Marketplace Agent Cards --- */
.marketplace-agents {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.marketplace-agents__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.marketplace-agents__heading {
  font-size: var(--text-section-heading);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.marketplace-agents__subheading {
  font-size: var(--text-body);
  color: var(--color-gray-600);
  max-width: 640px;
  margin-inline: auto;
}

.marketplace-agents__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .marketplace-agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .marketplace-agents__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agent-card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.agent-card__badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-green-700);
  background-color: var(--color-green-50);
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.agent-card__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.agent-card__desc {
  font-size: var(--text-small);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Reduced Motion for new components --- */
@media (prefers-reduced-motion: reduce) {

  .value-prop-card,
  .use-case-category__item,
  .arch-item,
  .problem-card,
  .feature-block,
  .solution-card,
  .capability-card,
  .agent-card {
    transition: none;
  }
}

/* ==========================================================================
   Sliding Use Case Cards Animation
   ========================================================================== */

.use-case-category__item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.use-case-category__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Category Carousel — Marketplace Browse Cards
   ========================================================================== */

.marketplace-categories {
  padding: var(--section-padding);
  background-color: var(--color-gray-50);
}

.marketplace-categories__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.category-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-carousel__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  min-width: 180px;
  max-width: 200px;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-green-300);
}

.category-card:focus-visible {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

.category-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: 50%;
}

.category-card__title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0.375rem;
}

.category-card__desc {
  font-size: var(--text-caption);
  color: var(--color-gray-400);
  line-height: 1.4;
}

/* Auto-scroll animation for category carousel */
@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.category-carousel__track--animate {
  animation: carouselScroll 25s linear infinite;
}

.category-carousel:hover .category-carousel__track--animate {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .category-carousel__track--animate {
    animation: none;
  }
}

/* Add subtle pulse to agent cards in marketplace */
.agent-card {
  position: relative;
  overflow: hidden;
}

.agent-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.agent-card:hover::after {
  left: 100%;
}

/* ==========================================================================
   Use Case Card Carousel — Industry Pages
   ========================================================================== */

.use-case-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.use-case-carousel::-webkit-scrollbar {
  display: none;
}

.use-case-carousel__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.25rem;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  min-width: 200px;
  max-width: 220px;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid var(--color-green-500);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--color-red-500);
}

.use-case-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.use-case-card:hover::after {
  left: 100%;
}

.use-case-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  color: var(--color-green-600);
  background-color: var(--color-green-50);
  border-radius: 50%;
}

.use-case-card__title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-900);
}

/* Auto-scroll for use case carousel */
@keyframes useCaseScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.use-case-carousel__track--animate {
  animation: useCaseScroll 30s linear infinite;
}

.use-case-carousel:hover .use-case-carousel__track--animate {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .use-case-carousel__track--animate {
    animation: none;
  }
}

/* ==========================================================================
   Industry Cards in Carousel
   ========================================================================== */

.use-case-carousel .industry-card {
  flex-shrink: 0;
  min-width: 280px;
  max-width: 320px;
}

/* ==========================================================================
   Logo Redesign & Bulb Animation
   ========================================================================== */

.nav__logo {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav__logo::before {
  display: none;
  content: "";
  width: 28px;
  height: 28px;
  /* Bulb SVG using Olive (--color-green-500: #6b7c2a) and Maroon (--color-red-500: #800020) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6' stroke='%23800020'/%3E%3Cpath d='M10 22h4' stroke='%23800020'/%3E%3Cpath d='M12 2v1'/%3E%3Cpath d='M12 7v1'/%3E%3Cpath d='M15 18a3 3 0 0 0 3-3c0-1.7-1.3-3.1-2-4.5A5.6 5.6 0 0 0 12 4a5.6 5.6 0 0 0-4 6.5c-.7 1.4-2 2.8-2 4.5 0 1.6 1.3 3 3 3'/%3E%3Cpath d='m4.5 9 1.5 1'/%3E%3Cpath d='m19.5 9-1.5 1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: bulbPulse 2.5s infinite ease-in-out;
}

@keyframes bulbPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(107, 124, 42, 0.5));
  }

  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(128, 0, 32, 0.8));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(107, 124, 42, 0.5));
  }
}

/* Gradient styling for logo text */
.nav__logo-text {
  background: linear-gradient(90deg, var(--color-green-500) 0%, var(--color-red-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--color-red-500);
  color: var(--color-red-500);
}

/* Global Floating Bulb Animations */
.hero::after,
.psr::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6' stroke='%23800020'/%3E%3Cpath d='M10 22h4' stroke='%23800020'/%3E%3Cpath d='M12 2v1'/%3E%3Cpath d='M12 7v1'/%3E%3Cpath d='M15 18a3 3 0 0 0 3-3c0-1.7-1.3-3.1-2-4.5A5.6 5.6 0 0 0 12 4a5.6 5.6 0 0 0-4 6.5c-.7 1.4-2 2.8-2 4.5 0 1.6 1.3 3 3 3'/%3E%3Cpath d='m4.5 9 1.5 1'/%3E%3Cpath d='m19.5 9-1.5 1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  animation: floatBulb 6s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBulb {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.3;
  }

  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
}

/* --- Premium Platform Layout Overrides --- */
@media (min-width: 1024px) {
  .platform > .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
  }
  .platform__header {
    grid-column: 1 / -1;
  }
  .platform__tabs {
    flex-direction: column !important;
    position: sticky !important;
    top: 120px !important;
  }
}

/* --- Alternating Premium Glow Backgrounds --- */
.industries, .platform, .value-props, .features-deep {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}
.industries > .container, .platform > .container, .value-props > .container, .features-deep > .container {
  position: relative;
  z-index: 1;
}
.industries::before, .platform::before, .value-props::before, .features-deep::before {
  content: ""; position: absolute; top: -20%; left: -10%; width: 60%; height: 60%;
  background: radial-gradient(circle, var(--color-green-200) 0%, transparent 70%);
  filter: blur(100px); opacity: 0.5; z-index: 0; pointer-events: none;
}

.psr, .integrations, .consulting, .cta, .use-cases, .problems {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}
.psr > .container, .integrations > .container, .consulting > .container, .cta > .container, .use-cases > .container, .problems > .container {
  position: relative;
  z-index: 1;
}
.psr::after, .integrations::after, .consulting::after, .cta::after, .use-cases::after, .problems::after {
  content: ""; position: absolute; bottom: -20%; right: -10%; width: 50%; height: 50%;
  background: radial-gradient(circle, var(--color-red-100) 0%, transparent 70%);
  filter: blur(100px); opacity: 0.5; z-index: 0; pointer-events: none;
}

/* --- Light Clean Card Overrides --- */
.solution-card,
.industry-card,
.value-prop-card,
.problem-card,
.use-case-card {
  background: var(--color-white) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* --- Selective Heading Colors --- */
/* Core structural headings (h2, h3) set to premium near-black */
h2, h3 {
  color: var(--color-gray-900) !important;
}

/* Accents and primary titles (h1, h4, h5, h6) set to Maroon */
h1, h4, h5, h6 {
  color: var(--color-red-500) !important;
}

/* Ensure headings inside dark backgrounds are white */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.hero [class*="heading"], .hero [class*="headline"], .hero [class*="title"],
.cta h1, .cta h2, .cta h3, .cta h4, .cta h5, .cta h6,
.cta [class*="heading"], .cta [class*="headline"], .cta [class*="title"] {
  color: var(--color-white) !important;
}