/* -----------------------------
   Theme Variables (Light default)
------------------------------ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;
  --color-card-bg: #ffffff;
  --color-text: #23262b;
  --color-text-light: #5a6472;
  --color-border: #e3e7ec;

  --color-primary: #1f3a5f;
  --color-primary-dark: #14273f;
  --color-primary-light: #2f5488;
  --color-accent: #2f7a63;
  --color-accent-light: #6fc9a8;

  --nav-bg: rgba(255, 255, 255, 0.75);
  --shadow-color: rgba(20, 30, 45, 0.12);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Sora', var(--font-main);
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --nav-height: 73px;
  color-scheme: light;
}

html:has(.theme-toggle-input:checked) {
  --color-bg: #0d1420;
  --color-bg-alt: #121b29;
  --color-card-bg: #17212f;
  --color-text: #e9edf3;
  --color-text-light: #a7b2c1;
  --color-border: #253143;

  --color-primary: #2c5386;
  --color-primary-dark: #0a1119;
  --color-primary-light: #3c6ba3;
  --color-accent: #44cb9d;
  --color-accent-light: #7fe0bd;

  --nav-bg: rgba(13, 20, 32, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* -----------------------------
   Reset & Base
------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }

*, *::before, *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

h2 { font-size: 2.1rem; margin-bottom: 14px; color: var(--color-text); }
h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--color-text); }
h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--color-text); }
p { color: var(--color-text-light); }

section[id] { scroll-margin-top: 88px; }

.section { padding: 88px 0; }
.section-alt { background-color: var(--color-bg-alt); }
.section-intro { max-width: 640px; margin-bottom: 40px; }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* -----------------------------
   Scroll-Triggered Reveal
   (JS adds .in-view via IntersectionObserver; the html.js-enabled
   scope means content stays visible by default if JS never runs.)
------------------------------ */
.reveal { opacity: 1; transform: none; }

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-enabled .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-visual.reveal { transition-delay: 0.15s; }

.feature-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-grid .feature-card:nth-child(2) { transition-delay: 0.15s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 0.25s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 0.35s; }

.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.19s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.26s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.33s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.4s; }

.process-track .process-step:nth-child(1) { transition-delay: 0.05s; }
.process-track .process-step:nth-child(2) { transition-delay: 0.15s; }
.process-track .process-step:nth-child(3) { transition-delay: 0.25s; }
.process-track .process-step:nth-child(4) { transition-delay: 0.35s; }

.testimonial-grid .testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-grid .testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-grid .testimonial-card:nth-child(3) { transition-delay: 0.25s; }

/* -----------------------------
   Scroll Progress Bar
------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

/* Native CSS scroll-driven animation where supported; script.js provides
   a scroll-event fallback for browsers that don't support it yet. */
@supports (animation-timeline: scroll()) {
  .scroll-progress-bar {
    animation: growProgress auto linear;
    animation-timeline: scroll(root block);
  }
}

@keyframes growProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* -----------------------------
   Keyframe Animations
------------------------------ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes dashSlide { to { stroke-dashoffset: -24; } }
@keyframes dashFlow { to { background-position: 40px 0; } }
@keyframes dashFlowVertical { to { background-position: 0 40px; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blobMove1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.15); } }
@keyframes blobMove2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-35px, 25px) scale(1.1); } }
@keyframes blobMove3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, 35px) scale(0.9); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-position 0.4s ease,
    background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  background-size: 160% 160%;
  color: #ffffff;
  box-shadow: 0 6px 16px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 12px 26px rgba(47, 122, 99, 0.35);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: #ffffff;
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.08);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -----------------------------
   Theme Toggle Switch
------------------------------ */
.theme-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

body:has(.theme-toggle-input:focus-visible) .theme-toggle-label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

body:has(.theme-toggle-input:checked) .toggle-thumb {
  transform: translateX(28px);
}

.theme-toggle-label .icon-sun,
.theme-toggle-label .icon-moon {
  position: absolute;
  top: 50%;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-text-light);
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.3s ease;
}

.theme-toggle-label .icon-sun {
  left: 6px;
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: spinSlow 12s linear infinite;
}
.theme-toggle-label .icon-moon { right: 6px; opacity: 0.35; fill: var(--color-text-light); stroke: none; }

body:has(.theme-toggle-input:checked) .theme-toggle-label .icon-sun { opacity: 0.3; }
body:has(.theme-toggle-input:checked) .theme-toggle-label .icon-moon { opacity: 1; }

/* -----------------------------
   Sticky Glass Nav
------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo-dot { color: var(--color-accent); font-weight: 600; }

.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }

.nav-links a {
  position: relative;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 4px 2px;
  display: inline-block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }

/* -----------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 0;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary) 65%);
}

.hero-fade-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000000;
  pointer-events: none;
  animation: heroFadeFromDark 1.4s ease forwards;
}

@keyframes heroFadeFromDark {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.blob-1 { width: 320px; height: 320px; background: var(--color-accent); top: -100px; left: -60px; animation: blobMove1 16s ease-in-out infinite; }
.blob-2 { width: 280px; height: 280px; background: var(--color-primary-light); bottom: -80px; right: 5%; animation: blobMove2 18s ease-in-out infinite; }
.blob-3 { width: 200px; height: 200px; background: var(--color-accent-light); top: 30%; right: 30%; opacity: 0.25; animation: blobMove3 14s ease-in-out infinite; }

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  animation: heroContentEmerge 1.6s ease both;
}

@keyframes heroContentEmerge {
  0% { filter: brightness(0.25); }
  100% { filter: brightness(1); }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.4s both, bounceCue 2s ease-in-out 2.2s infinite;
  transform: translateX(-50%);
}

.hero-scroll-cue:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.hero-scroll-cue svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounceCue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.55s both;
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-accent-light), #ffffff, var(--color-accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}

.hero-text .tagline {
  font-size: 1.05rem;
  color: #d7dee8;
  max-width: 520px;
  margin-bottom: 12px;
  animation: fadeUp 0.8s ease 0.7s both;
}

.hero-text .trust-signal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #aebccd;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease 0.85s both;
}

.hero-text .hero-actions { animation: fadeUp 0.8s ease 1s both; }
.hero-visual { position: relative; z-index: 2; animation: fadeIn 1.1s ease 0.6s both; }

.hero-visual-caption { text-align: center; font-size: 0.8rem; color: #9fb0c3; margin-top: 4px; }

.hero-graphic { width: 100%; height: auto; overflow: visible; }

.conn-line { fill: none; stroke: #42648f; stroke-width: 2; stroke-dasharray: 6 6; animation: dashSlide 2s linear infinite; }
.node { stroke: #ffffff; stroke-width: 2; }
.node-prospect { fill: var(--color-accent-light); animation: floatY 3.4s ease-in-out infinite; }
.node-pros .node-pro { fill: #ffffff; fill-opacity: 0.92; animation: floatY 3.8s ease-in-out infinite; }
.node-pros .node-pro:nth-child(2) { animation-delay: 0.3s; }
.node-pros .node-pro:nth-child(3) { animation-delay: 0.6s; }

.node-hub {
  fill: var(--color-accent);
  stroke: #ffffff;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseScale 2.6s ease-in-out infinite;
}

.node-hub-ring {
  fill: none;
  stroke: var(--color-accent-light);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseRing 2.6s ease-out infinite;
}

.hub-label { fill: #ffffff; font-size: 13px; font-weight: 700; font-family: var(--font-heading); }
.lead-dot { fill: #ffe9b0; }

/* -----------------------------
   Stats Bar
------------------------------ */
.stats-bar { background-color: var(--color-primary-dark); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #ffffff; }
.stat-label { font-size: 0.78rem; color: #a9b7c8; text-transform: uppercase; letter-spacing: 0.06em; }

/* -----------------------------
   About Section
------------------------------ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }

.about-visual {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.timeline-graphic { width: 100%; height: auto; }
.timeline-track { stroke: var(--color-border); stroke-width: 3; }
.timeline-track-fill {
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawLine 1.8s ease forwards 0.3s;
}

.timeline-point { fill: var(--color-accent); stroke: var(--color-card-bg); stroke-width: 2; }
.timeline-point-start, .timeline-point-end { fill: var(--color-primary); }
.timeline-text { font-size: 11px; fill: var(--color-text-light); font-family: var(--font-mono); font-weight: 700; }

/* -----------------------------
   Feature Grid (Why Us)
------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px var(--shadow-color);
  border-color: var(--color-accent-light);
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.35s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -----------------------------
   Services Grid
------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--color-accent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px var(--shadow-color); border-color: var(--color-accent-light); }
.service-card:hover::before { opacity: 0.06; }

.service-icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--color-accent); transition: transform 0.3s ease; }
.service-card:hover .service-icon { transform: scale(1.12) rotate(-5deg); }

.service-icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.placeholder-card { border-style: dashed; }
.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* -----------------------------
   Results / Growth Chart
------------------------------ */
.chart-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.growth-canvas { width: 100%; height: 260px; display: block; }

.chart-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 14px;
  text-align: center;
}

/* -----------------------------
   How It Works / Process
------------------------------ */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }

.process-track::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 3px;
  background-image: repeating-linear-gradient(to right, var(--color-accent-light) 0, var(--color-accent-light) 10px, transparent 10px, transparent 20px);
  background-size: 40px 3px;
  animation: dashFlow 1.4s linear infinite;
  z-index: 0;
}

.process-step { position: relative; z-index: 1; text-align: center; }

.process-icon-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover .process-icon-wrap {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.process-icon-wrap svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.process-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 { font-size: 1rem; }
.process-step p { font-size: 0.9rem; }

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

.testimonial-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px var(--shadow-color); }

.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; fill: #e8b13b; }

.testimonial-quote { font-size: 0.95rem; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--color-text); }
.author-role { display: block; font-size: 0.78rem; color: var(--color-text-light); }

/* -----------------------------
   FAQ Accordion
------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--color-accent); }

.faq-item p { padding-bottom: 18px; font-size: 0.92rem; }

/* -----------------------------
   Contact Section
------------------------------ */
.contact-wrapper { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 0.9rem; font-weight: 600; margin-top: 12px; color: var(--color-text); }

.contact-form input,
.contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-card-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.35s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 122, 99, 0.15);
}

.contact-form button { margin-top: 20px; align-self: flex-start; }

.contact-info {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: fit-content;
}

.contact-info h3 { margin-bottom: 14px; }
.contact-info p { margin-bottom: 10px; font-size: 0.95rem; }
.contact-info strong { color: var(--color-text); }

/* -----------------------------
   Footer
------------------------------ */
.site-footer { background-color: var(--color-primary-dark); color: #cfd6de; padding: 56px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p { color: #a9b7c8; font-size: 0.88rem; margin-top: 10px; max-width: 260px; }
.footer-logo { color: #ffffff; }

.footer-col h4 { color: #ffffff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li { color: #a9b7c8; font-size: 0.88rem; }
.footer-col a { color: #a9b7c8; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  font-size: 0.82rem;
}

.footer-bottom p { color: #93a1b3; }

/* -----------------------------
   Reduced Motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .process-track { grid-template-columns: 1fr; gap: 40px; }
  .process-track::before {
    top: 0; bottom: 0; left: 30px; right: auto; width: 3px; height: auto;
    background-image: repeating-linear-gradient(to bottom, var(--color-accent-light) 0, var(--color-accent-light) 10px, transparent 10px, transparent 20px);
    background-size: 3px 40px;
    animation: dashFlowVertical 1.4s linear infinite;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 118px; }
  .navbar { gap: 14px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 18px; }
  .hero-text h1 { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.6rem; }
  .section { padding: 64px 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
