/* ==========================================================================
   EASTWOOD IMPACT AI — Style System v2
   Mobile-first · Dark/Light Mode · AI-Tech Aesthetic · Warm CTA Accents
   ========================================================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  /* Core palette — Earth & Nature */
  --green-950: #0d1508;
  --green-900: #111a0d;
  --green-800: #1e2d16;
  --green-700: #2a3d1f;
  --green-600: #354021;
  --green-500: #4a5535;
  --green-400: #5A6247;
  --green-300: #7a8066;
  --green-200: #9aa385;
  --green-100: #c5cbb5;
  --green-50:  #F6F5EA;

  /* Accent green (brighter, for UI elements) */
  --sage-500: #5f8236;
  --sage-400: #739a42;
  --sage-300: #8bb45c;

  /* Warm accent (amber/gold for CTAs) */
  --warm-600: #b8891e;
  --warm-500: #d4a03c;
  --warm-400: #e0b45a;
  --warm-300: #e8c97d;

  /* Neutral tones (warm-green undertone) */
  --gray-950: #0f1209;
  --gray-900: #1a1e14;
  --gray-800: #2a2e22;
  --gray-700: #3d4234;
  --gray-600: #545949;
  --gray-500: #6d7260;
  --gray-400: #919683;
  --gray-300: #b2b7a5;
  --gray-200: #d0d4c6;
  --gray-100: #e4e7dc;
  --gray-50:  #F6F5EA;

  --white: #ffffff;
  --cream: #F6F5EA;

  /* Typography */
  --font-title: 'NewSpirit', Georgia, 'Times New Roman', serif;
  --font-body:  'NeueHaasDisplay', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Sizing */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --section-pad: 5rem;
  --nav-height: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;
}

/* ---------- Dark theme (default) ---------- */
[data-theme="dark"] {
  --bg-primary:    var(--green-950);
  --bg-secondary:  var(--green-900);
  --bg-elevated:   #152010;
  --bg-surface:    rgba(21, 32, 16, 0.6);
  --bg-card:       rgba(17, 26, 13, 0.85);
  --bg-card-hover: rgba(42, 61, 31, 0.4);

  --text-primary:   var(--green-50);
  --text-secondary: var(--green-100);
  --text-muted:     var(--green-300);

  --accent:       var(--sage-400);
  --accent-glow:  var(--sage-300);
  --accent-soft:  rgba(95, 130, 54, 0.12);

  --cta:          var(--warm-500);
  --cta-hover:    var(--warm-400);
  --cta-glow:     rgba(212, 160, 60, 0.35);
  --cta-soft:     rgba(212, 160, 60, 0.1);

  --border:       rgba(90, 98, 71, 0.18);
  --border-hover: rgba(90, 98, 71, 0.35);
  --border-glow:  rgba(115, 154, 66, 0.2);

  --glow-color:   rgba(115, 154, 66, 0.45);
  --glow-soft:    rgba(115, 154, 66, 0.06);
  --glow-line:    var(--sage-300);

  --shadow-card:  0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px var(--border), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hover);
  --shadow-elevated: 0 12px 40px rgba(0,0,0,0.5);

  --particle-color: rgba(90, 130, 54, 0.4);
  --particle-line:  rgba(90, 130, 54, 0.06);

  --nav-bg: rgba(13, 21, 8, 0.88);
  --nav-mobile-menu-bg: rgba(13, 21, 8, 0.72);
  --nav-border: rgba(90, 98, 71, 0.1);

  color-scheme: dark;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg-primary:    var(--cream);
  --bg-secondary:  var(--white);
  --bg-elevated:   var(--white);
  --bg-surface:    rgba(255, 255, 255, 0.8);
  --bg-card:       var(--white);
  --bg-card-hover: #eef0e4;

  --text-primary:   var(--green-600);
  --text-secondary: var(--green-400);
  --text-muted:     var(--green-300);

  --accent:       var(--sage-500);
  --accent-glow:  var(--sage-400);
  --accent-soft:  rgba(95, 130, 54, 0.08);

  --cta:          var(--warm-600);
  --cta-hover:    var(--warm-500);
  --cta-glow:     rgba(184, 137, 30, 0.2);
  --cta-soft:     rgba(184, 137, 30, 0.06);

  --border:       rgba(53, 64, 33, 0.1);
  --border-hover: rgba(53, 64, 33, 0.2);
  --border-glow:  rgba(95, 130, 54, 0.12);

  --glow-color:   rgba(95, 130, 54, 0.3);
  --glow-soft:    rgba(95, 130, 54, 0.04);
  --glow-line:    var(--sage-300);

  --shadow-card:  0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 8px 25px rgba(0,0,0,0.08), 0 0 0 1px var(--border-hover);
  --shadow-elevated: 0 12px 40px rgba(0,0,0,0.1);

  --particle-color: rgba(53, 64, 33, 0.2);
  --particle-line:  rgba(53, 64, 33, 0.04);

  --nav-bg: rgba(246, 245, 234, 0.92);
  --nav-mobile-menu-bg: rgba(246, 245, 234, 0.78);
  --nav-border: rgba(53, 64, 33, 0.06);

  color-scheme: light;
}


/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Page load animation */
body.loading {
  overflow: hidden;
}
body.loading .hero__content,
body.loading .hero__visual {
  opacity: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(95, 130, 54, 0.2);
  color: var(--text-primary);
}


/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.875rem, 5.5vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-glow {
  background: linear-gradient(135deg, var(--sage-300), var(--warm-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px var(--glow-color));
}

[data-theme="light"] .text-glow {
  background: linear-gradient(135deg, var(--sage-500), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}


/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Alternating section backgrounds for visual rhythm */
.section--alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.875rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.section-title {
  margin-bottom: 0.875rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on primary buttons */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease);
}
.btn--primary:hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
  font-size: 1.0625rem;
  padding: 1rem 2rem;
}
.btn--primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--cta-glow), 0 2px 8px rgba(0,0,0,0.15);
}
.btn--primary:active {
  transform: translateY(-1px);
}

.btn--primary svg {
  transition: transform var(--duration) var(--ease);
}
.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}
.btn--sm:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn--full { width: 100%; }


/* ---------- 6. Glow Line ---------- */
.glow-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--glow-line), transparent);
  opacity: 0.4;
}

[data-theme="dark"] .glow-line {
  box-shadow: 0 0 8px var(--glow-soft);
}


/* ---------- 7. Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  z-index: 1001;
  transition: none;
  pointer-events: none;
}


/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.nav--scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.logo-dot {
  color: var(--cta);
}

.logo-full {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: none;
}

.nav__menu { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1002;
}

.nav__cta { display: none; }

/* Language switcher */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__lang-sep {
  color: var(--text-muted);
  opacity: 0.5;
}
.nav__lang-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.1rem 0.15rem;
  transition: color 0.2s;
}
.nav__lang-link:hover { color: var(--text-primary); }
.nav__lang-link.is-active {
  color: var(--text-primary);
  font-weight: 700;
  pointer-events: none;
}

/* Hide theme toggle + lang switcher from top bar on mobile — both live in the mobile menu */
.nav__actions .theme-toggle,
.nav__actions .nav__lang { display: none; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--border-glow);
  transform: rotate(15deg);
}

.theme-icon {
  width: 1.125rem;
  height: 1.125rem;
  position: absolute;
  transition: opacity var(--duration) var(--ease), transform 0.4s var(--ease-spring);
}

[data-theme="dark"] .theme-icon--sun  { opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .theme-icon--sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-icon--moon { opacity: 1; transform: rotate(0deg); }

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.375rem;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.nav__toggle.open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open .nav__toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay + slide-out */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}
.nav__overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Full-screen mobile menu */
.nav__menu.mobile-open,
.nav__menu.mobile-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1001;
  background: var(--nav-mobile-menu-bg);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: var(--nav-height) 2rem 3rem;
  gap: 0;
  overflow-y: auto;
}

.nav__menu.mobile-open {
  animation: mobileNavIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.nav__menu.mobile-closing {
  animation: mobileNavOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mobileNavOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.nav__menu.mobile-open .nav__list,
.nav__menu.mobile-closing .nav__list {
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 320px;
}

.nav__menu.mobile-open .nav__link,
.nav__menu.mobile-closing .nav__link {
  font-size: 1.5rem;
  padding: 0.875rem 2rem;
  text-align: center;
  width: 100%;
  border-radius: var(--radius);
}

/* CTA inside mobile menu — hidden on desktop */
.nav__mobile-cta {
  display: none;
}

.nav__menu.mobile-open .nav__mobile-cta,
.nav__menu.mobile-closing .nav__mobile-cta {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
}

/* Theme + lang row at bottom of mobile menu */
.nav__menu-bottom {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  width: 100%;
  max-width: 320px;
  border-top: 1px solid var(--border);
}
.nav__menu.mobile-open .nav__menu-bottom,
.nav__menu.mobile-closing .nav__menu-bottom {
  display: flex;
}
.nav__menu-bottom .theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
}
.nav__menu-bottom .nav__lang {
  font-size: 0.75rem;
}


/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 0 2rem;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(95, 130, 54, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 25%, rgba(139, 180, 92, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(212, 160, 60, 0.04) 0%, transparent 70%);
  animation: meshFloat 25s ease-in-out infinite alternate;
}

[data-theme="light"] .hero__mesh {
  background:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(95, 130, 54, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 25%, rgba(139, 180, 92, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(212, 160, 60, 0.02) 0%, transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--particle-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--particle-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 65%);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.hero__content {
  max-width: 640px;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 6px var(--cta-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Photo */
.hero__visual {
  position: relative;
  flex-shrink: 0;
  transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s;
}

.hero__photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--border-glow), var(--shadow-elevated);
}

.hero__photo-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  opacity: 0.25;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero__photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  z-index: 1;
  border: 2px dashed var(--accent);
  opacity: 0.2;
  animation: spinSlow 30s linear infinite;
}

/* Trust bar */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__trust svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--cta);
  flex-shrink: 0;
}

@media (min-width: 48rem) {
  .hero__trust { justify-content: flex-start; }
}

/* Hero caption */
.hero__caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-decoration: none;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}


/* ---------- 10. Problem Section ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.problem__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease);
  position: relative;
  border-left: 3px solid var(--cta);
}

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

[data-theme="dark"] .problem__card:hover {
  box-shadow: var(--shadow-card-hover), 0 0 20px var(--glow-soft);
}

.problem__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.problem__icon svg { width: 1.25rem; height: 1.25rem; }

.problem__card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.problem__card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; }

.problem__transition {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.problem__transition p {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cta);
  white-space: nowrap;
}


/* ---------- 11. Solution Section ---------- */

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease);
}

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

[data-theme="dark"] .benefit:hover {
  box-shadow: var(--shadow-card-hover), 0 0 20px var(--glow-soft);
}

/* Primary benefit card */
.benefit--primary {
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-glow);
}

.benefit--primary .benefit__content {
  width: 100%;
}

.benefit__highlight {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cta);
  background: var(--cta-soft);
  border: 1px solid rgba(212, 160, 60, 0.15);
  border-radius: 100px;
  padding: 0.25rem 0.875rem;
}

.benefit__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--cta-soft));
  border-radius: var(--radius-md);
  color: var(--accent);
  transition: all var(--duration) var(--ease);
}

.benefit--primary .benefit__icon {
  width: 3.5rem;
  height: 3.5rem;
}

.benefit:hover .benefit__icon {
  color: var(--cta);
  background: var(--cta-soft);
  transform: scale(1.08);
}
.benefit__icon svg { width: 1.375rem; height: 1.375rem; }
.benefit--primary .benefit__icon svg { width: 1.5rem; height: 1.5rem; }

.benefit h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.benefit--primary h3 { font-size: 1.375rem; }
.benefit p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* Process */
.process {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.process__heading {
  text-align: center;
  margin-bottom: 2rem;
}

.process__duration {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cta);
  background: var(--cta-soft);
  border: 1px solid rgba(212, 160, 60, 0.15);
  border-radius: 100px;
  padding: 0.15rem 0.625rem;
  margin-bottom: 0.375rem;
}

/* ── Stepper ── */
.stepper__nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.25rem;
  padding: 0;
}

.stepper__track {
  position: absolute;
  top: 1.25rem;        /* half of 2.5rem dot = vertical center */
  left: 12.5%;         /* center of dot 1 in 4-equal-flex layout (100%/8) */
  right: 12.5%;        /* center of dot 4, same margin from right */
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.stepper__track-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.34, 1.1, 0.64, 1);
  box-shadow: 0 0 8px var(--cta-glow);
  position: relative;
}

/* Glowing dot at the leading edge of the drawn line */
.stepper__track-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%) scaleX(1); /* counter the parent scaleX */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 6px var(--cta), 0 0 12px var(--cta-glow);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show the dot only while the fill is partially drawn (not at 0 or full) */
.stepper__track-fill.is-drawing::after {
  opacity: 1;
}

.stepper__dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
  flex: 1;
}

.stepper__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.stepper__dot.is-active .stepper__num {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  box-shadow: 0 0 0 4px var(--cta-soft), 0 0 16px var(--cta-glow);
  animation: stepPulse 2.5s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--cta-soft), 0 0 16px var(--cta-glow); }
  50% { box-shadow: 0 0 0 8px rgba(212, 160, 60, 0), 0 0 28px var(--cta-glow); }
}

.stepper__dot.is-done .stepper__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.stepper__dot.is-done .stepper__label {
  color: var(--accent);
}

.stepper__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.stepper__dot.is-active .stepper__label { color: var(--cta); }

/* Content panels — height wraps active panel's content */
.stepper__content {
  position: relative;
  overflow: hidden;
}

.stepper__panel {
  display: none;
  pointer-events: none;
}

.stepper__panel.is-active {
  display: block;
  pointer-events: auto;
}

@keyframes stepSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes stepSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes stepSlideOutLeft {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes stepSlideOutRight {
  from { opacity: 1; transform: translateX(0);    }
  to   { opacity: 0; transform: translateX(40px); }
}

/* Incoming panel: in normal flow → dictates container height */
.stepper__panel.anim-in-right { display: block; animation: stepSlideInRight 0.38s cubic-bezier(0.4,0,0.2,1) both; }
.stepper__panel.anim-in-left  { display: block; animation: stepSlideInLeft  0.38s cubic-bezier(0.4,0,0.2,1) both; }
/* Outgoing panel: absolute so it overlays without affecting height */
.stepper__panel.anim-out-left  { display: block; position: absolute; inset: 0; animation: stepSlideOutLeft  0.38s cubic-bezier(0.4,0,0.2,1) both; z-index: 2; }
.stepper__panel.anim-out-right { display: block; position: absolute; inset: 0; animation: stepSlideOutRight 0.38s cubic-bezier(0.4,0,0.2,1) both; z-index: 2; }

.stepper__panel-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.stepper__panel-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-soft);
  border: 1px solid rgba(212, 160, 60, 0.2);
  border-radius: var(--radius-sm);
}

.stepper__panel-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--cta);
}

.stepper__panel-body { flex: 1; }

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

.stepper__bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.stepper__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--cta);
  border-radius: 50%;
  margin-top: 0.5em;
}

.stepper__panel-body h4 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.stepper__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

/* Prev visible: push next to far right */
.stepper__btn--prev:not([disabled]) { margin-right: auto; }
/* Prev on first step: completely hidden */
.stepper__btn--prev[disabled] { display: none; }
.stepper__btn[disabled] { opacity: 0.25; cursor: not-allowed; pointer-events: none; }



/* ---------- 12. Credibility ---------- */
.credibility__layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.credibility__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.credibility__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.credibility__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credibility__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glow);
  pointer-events: none;
}

.credibility__mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.credibility__mini-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease);
}
.credibility__mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.credibility__mini-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.credibility__mini-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.375rem;
  line-height: 1.3;
}

.credibility__subheading {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.credibility__text > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.credibility__quote {
  position: relative;
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--cta);
  box-shadow: var(--shadow-card);
}

.credibility__quote p {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}


/* ---------- 13. Testimonials ---------- */
.testimonials__carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  /* Clip horizontally but allow vertical space for shadows */
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 0;
  /* Vertical padding so box-shadows aren't clipped */
  padding: 2.5rem 0 3rem;
}

.testimonial {
  flex: 0 0 290px;
  min-width: 0;
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease),
              opacity  0.45s var(--ease),
              box-shadow 0.45s var(--ease);
  border: none;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity;
}

.testimonial.active {
  box-shadow: var(--shadow-elevated);
  cursor: default;
}

[data-theme="dark"] .testimonial.active {
  box-shadow: var(--shadow-elevated), 0 0 30px var(--glow-soft);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.testimonials__dot.active {
  opacity: 1;
  background: var(--cta);
  transform: scale(1.3);
}

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

.testimonial__quote {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cta);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.testimonial__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cta);
  background: var(--cta-soft);
  border: 1px solid rgba(212, 160, 60, 0.15);
  border-radius: 100px;
  padding: 0.2rem 0.625rem;
  margin-top: 0.375rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--cta-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border-glow);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__avatar span {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.testimonial__author > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial__author strong { display: block; font-size: 0.9375rem; }
.testimonial__author span { font-size: 0.8125rem; color: var(--text-muted); display: block; }


/* ---------- Section Transition ---------- */
.section-fade {
  height: 120px;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  margin-top: -1px;
  pointer-events: none;
}


/* ---------- 14. Implementation ---------- */
.implementation { padding-top: 0; }

.implementation__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: none;
}

/* Gradient top border */
.implementation__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  opacity: 0.6;
}

.implementation__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cta-glow) 0%, transparent 70%);
  opacity: 0.15;
}

.implementation__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-soft);
  border-radius: var(--radius-md);
  color: var(--cta);
}
.implementation__icon svg { width: 1.5rem; height: 1.5rem; }

.implementation__card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.implementation__card p { font-size: 0.9375rem; color: var(--text-secondary); }


/* ---------- 15. Pricing ---------- */
.pricing__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: none;
}

/* Gradient border top */
.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cta), var(--accent));
}

.pricing__header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.pricing__label {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem;
  margin: 0.75rem 0 0.5rem;
}

.pricing__currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.5rem;
}

.pricing__amount {
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing__note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing__roi {
  display: inline-block;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--cta-soft);
  border: 1px solid rgba(212, 160, 60, 0.2);
  border-left: 2px solid var(--cta);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  text-align: left;
  width: 100%;
}

.pricing__roi strong {
  color: var(--cta);
  font-weight: 600;
}

.pricing__list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pricing__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing__list svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cta);
}

/* Calendly */
.pricing__calendly {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.pricing__calendly-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing__calendly-text {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.calendly-inline-widget {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendly-inline-widget iframe {
  border: none;
  scrollbar-width: none;
}

.calendly-inline-widget iframe::-webkit-scrollbar {
  display: none;
}


/* ---------- 16. Footer ---------- */
.footer {
  padding: 3rem 0 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Social icons */
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__social-link svg { width: 1rem; height: 1rem; }

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}
.footer__col a:hover { color: var(--accent); }

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer__bottom p { font-size: 0.8125rem; color: var(--text-muted); }


/* ---------- 17. Animations ---------- */

.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helper: longer transition for smoother feel */
.anim[data-delay] {
  transition-duration: 0.7s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.06); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  30% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 10px) scale(1.02); }
  100% { transform: translate(10px, -15px) scale(1.01); }
}

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

body:not(.loading) .hero__content {
  animation: fadeInUp 0.9s var(--ease-out) forwards;
}
body:not(.loading) .hero__visual {
  animation: fadeInUp 0.9s var(--ease-out) 0.15s forwards;
}


/* ---------- 18. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .anim { opacity: 1; transform: none; }
  .testimonial { transform: none; opacity: 1; }
  body:not(.loading) .hero__content,
  body:not(.loading) .hero__visual { animation: none; opacity: 1; }
  .hero__orb, .hero__scanner { animation: none !important; }
}


/* ---------- 19. Media Queries ---------- */

@media (min-width: 23.4375rem) {
  :root { --container-pad: 1.5rem; }
}

/* Tablets (640px+) */
@media (min-width: 40rem) {
  :root { --section-pad: 6rem; }

  .hero__actions { flex-direction: row; }
  .problem__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit--primary { grid-column: 1 / -1; }
  .testimonial { flex-basis: 380px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Desktop (768px+) */
@media (min-width: 48rem) {
  .logo-full { display: block; }
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; }
  .nav__cta { display: inline-flex; }
  .nav__actions .theme-toggle { display: flex; }
  .nav__actions .nav__lang { display: flex; }

  .hero__container { flex-direction: row; text-align: left; gap: 4rem; }
  .hero__content { max-width: 560px; min-width: 0; flex: 1; }
  .hero__subtitle { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__photo-frame { width: 300px; height: 300px; }

  .credibility__layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .credibility__visual { flex-shrink: 0; width: 260px; max-width: 260px; }
  .credibility__text { flex: 1; }
}

/* Large desktop (1024px+) */
@media (min-width: 64rem) {
  :root { --section-pad: 7rem; --container-pad: 2rem; }

  .hero__photo-frame { width: 360px; height: 360px; }
  .problem__grid { grid-template-columns: repeat(4, 1fr); }
  .problem__card { flex-direction: column; text-align: center; align-items: center; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { align-items: flex-start; text-align: left; }
  .benefit--primary { grid-column: 1 / -1; }
  .credibility__visual { width: 300px; max-width: 300px; }
  .testimonial { flex-basis: 420px; }

  .pricing__layout { flex-direction: row; align-items: flex-start; max-width: 100%; }
  .pricing__card { flex: 0 0 420px; position: sticky; top: calc(var(--nav-height) + 2rem); }
  .pricing__calendly { flex: 1; min-width: 0; }

  .implementation__card { max-width: 720px; margin: 0 auto; padding: 2rem; }

  /* Stepper: labels always visible on desktop */
  .stepper__label { white-space: nowrap; }
}

@media (min-width: 80rem) {
  .hero__photo-frame { width: 400px; height: 400px; }
}


/* ---------- 20. Legal Pages ---------- */
.legal__container {
  max-width: 720px;
}

.legal__back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color var(--duration) var(--ease);
}
.legal__back:hover { color: var(--accent); }

.legal h1 {
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.legal p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal ul li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.375rem;
}

.legal code {
  font-size: 0.875em;
  background: var(--accent-soft);
  padding: 0.1rem 0.375rem;
  border-radius: var(--radius-sm);
}

.legal__updated {
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ---------- 21. Print ---------- */
@media print {
  .nav, .hero__particles, .hero__mesh, .hero__grid, .hero__scroll,
  .theme-toggle, .pricing__calendly, .glow-line, .scroll-progress, .section-fade { display: none !important; }
  body { background: white; color: black; }
  .section { padding: 2rem 0; }
  .anim { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================================
   TESTIMONIALS — Spotlight Stage
   ========================================================================== */

.testimonials--spotlight {
  background: var(--green-950);
  padding-bottom: 0;
}

.testimonials__title { color: var(--cream); }

.section-label--demo {
  background: rgba(212, 160, 60, 0.1);
  color: var(--cta);
  border: 1px solid rgba(212, 160, 60, 0.25);
}

/* ── SPOTLIGHT STAGE ───────────────────────────────────────── */
.spotlight-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 1rem 4rem;
  overflow: visible;
}

.spotlight-beam {
  position: absolute;
  top: -250px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 300px at var(--sl-x, 50%) var(--sl-y, -200px),
    rgba(212, 160, 60, 0.18) 0%,
    rgba(115, 154, 66, 0.06) 50%,
    transparent 100%
  );
  transition: background 0.05s linear;
}

.spotlight-persons {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.spotlight-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.spotlight-person__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.spotlight-person.lit .spotlight-person__ring {
  border-color: var(--cta);
  box-shadow: 0 0 0 4px rgba(212,160,60,0.2), 0 0 28px rgba(212,160,60,0.45);
  transform: scale(1.12);
}

.spotlight-person__ring img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.45);
  transition: filter 0.4s ease;
}
.spotlight-person.lit .spotlight-person__ring img {
  filter: grayscale(0) brightness(1.1);
}

.spotlight-person__ring--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 98, 71, 0.35);
}
.spotlight-person__ring--initials span {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s ease;
  letter-spacing: 0.02em;
  line-height: 1;
}
.spotlight-person.lit .spotlight-person__ring--initials span {
  color: var(--cta);
}

.spotlight-person__name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  transition: color 0.35s ease;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.spotlight-person.lit .spotlight-person__name { color: var(--cta); }

.spotlight-person__role {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  transition: color 0.35s ease;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.spotlight-person.lit .spotlight-person__role { color: rgba(255,255,255,0.55); }

.spotlight-quote {
  max-width: 540px;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.spotlight-quote__text {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--cream);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin: 0;
}
.spotlight-quote__text.sl-visible { opacity: 1; transform: translateY(0); }

.spotlight-quote__attr {
  font-size: 0.75rem;
  color: var(--cta);
  opacity: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.45s ease 0.2s;
  margin: 0;
}
.spotlight-quote__attr.sl-visible { opacity: 0.85; }

.spotlight-hl {
  color: #e0b45a;
  animation: hl-breathe 4s ease-in-out infinite;
}
@keyframes hl-breathe {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.spotlight-idle-hint {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  transition: opacity 0.3s ease;
}

/* ── SPOTLIGHT: MOBILE OVERRIDES ─────────────────────────── */
@media (max-width: 47.9375rem) {
  /* Horizontal scrollable row — clear & tappable */
  .spotlight-persons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .spotlight-persons::-webkit-scrollbar { display: none; }

  .spotlight-person {
    flex-shrink: 0;
    cursor: pointer;
    padding: 0.625rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-width: 72px;
  }
  .spotlight-person.lit {
    background: rgba(212, 160, 60, 0.08);
    border-color: rgba(212, 160, 60, 0.25);
  }

  .spotlight-person__ring {
    width: 72px;
    height: 72px;
  }

  .spotlight-quote {
    max-width: 100%;
    min-height: 180px;
    padding: 0 1.25rem;
  }

  .spotlight-quote__text {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* ── D: TYPEWRITER ─────────────────────────────────────────── */
.typewriter-display {
  position: relative;
  min-height: 200px;
  padding: 3rem 2rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.typewriter-quotemark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: var(--cta);
  opacity: 0.2;
  user-select: none;
}

.typewriter-text {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 3.2em;
  margin: 0;
}
.typewriter-text::after {
  content: '|';
  color: var(--cta);
  animation: twBlink 1s step-end infinite;
  margin-left: 1px;
}
.typewriter-text.tw-erasing::after {
  animation: none;
  opacity: 0.4;
}

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

.typewriter-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.typewriter-author.tw-visible { opacity: 1; transform: translateY(0); }

.typewriter-author__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cta);
  flex-shrink: 0;
}
.typewriter-author__avatar img { width: 100%; height: 100%; object-fit: cover; }

.typewriter-author__name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.typewriter-author__role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.typewriter-selector {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tw-person-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  color: var(--text-muted);
}
.tw-person-btn:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.tw-person-btn.active { border-color: var(--cta); background: var(--cta-soft); color: var(--cta); }

.tw-person-btn__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); }
.tw-person-btn__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tw-person-btn__name { font-size: 0.7rem; white-space: nowrap; }


/* ---------- Mobile Sticky CTA Bar ---------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 0.75rem 1.25rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.mobile-cta-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-cta-bar .btn {
  width: 100%;
  max-width: 400px;
}

@media (min-width: 48rem) {
  .mobile-cta-bar { display: none; }
}


/* ---------- Hero Aurora Orbs ---------- */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

.hero__orb--1 {
  width: 520px;
  height: 520px;
  top: -8%;
  left: -8%;
  background: radial-gradient(circle, rgba(95, 130, 54, 0.22) 0%, transparent 70%);
  filter: blur(70px);
  animation: orbFloat1 22s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 380px;
  height: 380px;
  top: 15%;
  right: -6%;
  background: radial-gradient(circle, rgba(61, 139, 122, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbFloat2 28s ease-in-out infinite alternate;
}

.hero__orb--3 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 35%;
  background: radial-gradient(circle, rgba(212, 160, 60, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  animation: orbFloat3 19s ease-in-out infinite alternate;
}

[data-theme="light"] .hero__orb--1 { background: radial-gradient(circle, rgba(95, 130, 54, 0.08) 0%, transparent 70%); }
[data-theme="light"] .hero__orb--2 { background: radial-gradient(circle, rgba(61, 139, 122, 0.05) 0%, transparent 70%); }
[data-theme="light"] .hero__orb--3 { background: radial-gradient(circle, rgba(212, 160, 60, 0.04) 0%, transparent 70%); }

@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(55px, 45px) scale(1.12); }
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-45px, 65px) scale(1); }
}
@keyframes orbFloat3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-35px, -40px) scale(1.18); }
}


/* ---------- Hero Scanner Beam ---------- */
.hero__scanner {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--cta) 50%,
    var(--accent) 85%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.5px);
  box-shadow: 0 0 12px var(--glow-color), 0 0 24px var(--cta-glow);
  animation: scanBeam 10s linear infinite;
}

@keyframes scanBeam {
  0%   { top: 8%;  opacity: 0; }
  4%   { opacity: 0.18; }
  92%  { opacity: 0.18; }
  100% { top: 90%; opacity: 0; }
}

[data-theme="light"] .hero__scanner { animation: scanBeamLight 10s linear infinite; }

@keyframes scanBeamLight {
  0%   { top: 8%;  opacity: 0; }
  4%   { opacity: 0.06; }
  92%  { opacity: 0.06; }
  100% { top: 90%; opacity: 0; }
}


/* ---------- 21st.dev Glowing Border Effect (vanilla port) ----------
   Mirrors the GlowingEffect component: a conic gradient border that
   rotates to face the mouse cursor via --start / --active CSS vars.
   Only active on hover-capable devices; hidden when disabled/reduced-motion.
   ------------------------------------------------------------------ */

/* Outer container — fills the card, pointer-events off */
.card-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  /* Custom props injected per-element by JS */
  --spread: 40;
  --start: 0;
  --active: 0;
  --glowingeffect-border-width: 1.5px;
}

/* Inner wrapper — just passes border-radius down to ::after */
.card-glow__inner {
  border-radius: inherit;
  height: 100%;
  width: 100%;
  position: relative;
}

/* The actual glowing border — all the magic is here */
.card-glow__inner::after {
  content: "";
  border-radius: inherit;
  position: absolute;
  inset: calc(-1 * var(--glowingeffect-border-width));

  /* Transparent border — defines the region the mask shows */
  border: var(--glowingeffect-border-width) solid transparent;

  /* Static multi-color gradient, viewport-fixed so it doesn't move with scroll */
  background:
    radial-gradient(circle, #d4a03c 10%, transparent 20%),
    radial-gradient(circle at 40% 40%, #739a42 5%,  transparent 15%),
    radial-gradient(circle at 60% 60%, #5f8236 10%, transparent 20%),
    radial-gradient(circle at 40% 60%, #3D8B7A 10%, transparent 20%),
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #d4a03c  0%,
      #739a42  calc(25% / 5),
      #5f8236  calc(50% / 5),
      #3D8B7A  calc(75% / 5),
      #d4a03c  calc(100% / 5)
    );
  background-attachment: fixed;

  /* --active (0 or 1) drives visibility; transitions smoothly */
  opacity: var(--active);
  transition: opacity 0.3s ease;

  /* Mask: intersection of a fully-transparent padding-box mask
     and a conic-gradient border-box mask centered on --start angle.
     Result: only the border strip is visible, only around the mouse. */
  -webkit-mask-clip: padding-box, border-box;
          mask-clip: padding-box, border-box;
  -webkit-mask-composite: xor;       /* Safari */
          mask-composite: intersect; /* Standard */
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
          mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
}

/* Light-mode: slightly reduced glow intensity */
[data-theme="light"] .card-glow__inner::after {
  opacity: calc(var(--active) * 0.7);
}


/* ---------- Spotlight Decorative Quote Mark ---------- */
.spotlight-deco-quote {
  position: absolute;
  top: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-size: 5rem;
  line-height: 1;
  color: var(--cta);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
