/* ZeroCrew — Obsidian Intelligence Design System v2 */

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg:              #08090F;
  --bg-elevated-1:   #0D0F1C;
  --bg-elevated-2:   #121527;
  --bg-elevated-3:   #181C32;

  /* Borders */
  --border-subtle:   #141826;
  --border:          #1F2640;
  --border-strong:   #2E3758;

  /* Text */
  --text:            #F0F2FF;
  --text-secondary:  #8B98BD;
  --text-tertiary:   #50597A;

  /* Accent: Electric Indigo */
  --accent:          #7C74F6;
  --accent-light:    #A09BF8;
  --accent-dark:     #5A52DC;
  --accent-dim:      rgba(124, 116, 246, 0.10);
  --accent-dim-border: rgba(124, 116, 246, 0.22);

  /* Secondary: Electric Teal */
  --teal:            #00D4A8;
  --teal-dim:        rgba(0, 212, 168, 0.10);
  --teal-dim-border: rgba(0, 212, 168, 0.22);

  /* Functional */
  --warning:         #F59E0B;
  --danger:          #F87171;
  --white:           #FFFFFF;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border radius */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.5);
  --shadow:      0 4px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(124,116,246,0.3), 0 4px 20px rgba(124,116,246,0.28), 0 0 60px rgba(124,116,246,0.10);

  /* Easing */
  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.6, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" on, "liga" on;
  overflow-x: hidden;
}

/* Subtle grain noise for premium depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

/* ─── Layout ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 15, 0.70);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(20, 24, 38, 0.6);
  transition: border-color 200ms ease, background 200ms ease;
}

.nav.nav-scrolled {
  background: rgba(8, 9, 15, 0.92);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #7C74F6 0%, #5A52DC 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(124,116,246,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease;
  letter-spacing: -0.005em;
}

.nav-links a:hover { color: var(--text); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

/* ─── Buttons ─── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 160ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 80ms var(--ease-out);
}

/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.14) 50%, transparent 65%);
  background-size: 240% 100%;
  background-position: -100% center;
  transition: background-position 500ms var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  background-position: 200% center;
}

.btn:hover {
  background: #6D65E8;
  box-shadow: 0 4px 20px rgba(124,116,246,0.40);
}

.btn:active {
  background: var(--accent-dark);
  transform: scale(0.982);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-xl { padding: 16px 32px; font-size: 16px; }

.btn-glow:hover {
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline::after { display: none; }

.btn-outline:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  box-shadow: none;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 136px;
  text-align: center;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      circle,
      rgba(148, 164, 196, 0.06) 1px,
      transparent 1px
    );
  background-size: 28px 28px;
}

/* Radial gradient glow orbs */
.hero-glow-1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(124, 116, 246, 0.18) 0%,
    rgba(124, 116, 246, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 168, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: rgba(124, 116, 246, 0.08);
  border: 1px solid rgba(124, 116, 246, 0.28);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,168,0.5); }
  50% { opacity: 0.75; box-shadow: 0 0 0 5px rgba(0,212,168,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
  background: linear-gradient(170deg, #FFFFFF 0%, #E8EBFF 38%, rgba(160, 155, 248, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (-webkit-background-clip: text) {
  .hero h1 { color: var(--text); }
}

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Hero inline trust stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Client Trust Strip ─── */
.client-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
}

.client-strip .container {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.client-strip-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.client-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
  transition: color 200ms ease;
  cursor: default;
  user-select: none;
}

.client-logo:hover { color: var(--text-secondary); }

.client-logo-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ─── Section Headings ─── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: var(--space-16);
  line-height: 1.15;
}

.section-heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  margin: var(--space-4) auto 0;
  border-radius: 1px;
}

/* ─── Services ─── */
.services {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.service-card {
  position: relative;
  background: var(--bg-elevated-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all 240ms var(--ease-spring);
  overflow: hidden;
}

/* Gradient border glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: linear-gradient(135deg, rgba(124,116,246,0.55) 0%, transparent 45%, rgba(0,212,168,0.35) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.service-card:hover {
  background: var(--bg-elevated-2);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.service-card:hover::before {
  opacity: 1;
}

/* Icon variants */
.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card-icon--violet {
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim-border);
  color: var(--accent);
}

.card-icon--teal {
  background: var(--teal-dim);
  border: 1px solid var(--teal-dim-border);
  color: var(--teal);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-card ul li {
  font-size: 12.5px;
  color: var(--text-tertiary);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(124,116,246,0.4) 0%,
    rgba(0,212,168,0.4) 100%
  );
  z-index: 0;
}

.step-card {
  position: relative;
  background: var(--bg-elevated-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all 220ms var(--ease-out);
  z-index: 1;
}

.step-card:hover {
  border-color: var(--border);
  background: var(--bg-elevated-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  background-image: linear-gradient(135deg, rgba(124,116,246,0.15) 0%, rgba(124,116,246,0.04) 100%);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Case Studies ─── */
.cases {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.case-card {
  background: rgba(13, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all 240ms var(--ease-spring);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

/* Ambient corner glow */
.case-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}

.case-card--violet::after {
  background: radial-gradient(circle, rgba(124,116,246,0.20) 0%, transparent 70%);
}

.case-card--teal::after {
  background: radial-gradient(circle, rgba(0,212,168,0.16) 0%, transparent 70%);
}

.case-card:hover::after {
  opacity: 1;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
}

.case-card--violet {
  background: linear-gradient(160deg, rgba(124,116,246,0.12) 0%, rgba(13,15,28,0.88) 50%);
}

.case-card--teal {
  background: linear-gradient(160deg, rgba(0,212,168,0.09) 0%, rgba(13,15,28,0.88) 50%);
}

.case-card--violet::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 16px rgba(124,116,246,0.55);
}

.case-card--teal::before {
  background: linear-gradient(90deg, var(--teal), #33E0C0);
  box-shadow: 0 0 16px rgba(0,212,168,0.45);
}

.case-card--violet:hover {
  border-color: rgba(124,116,246,0.30);
  box-shadow: var(--shadow-md), 0 0 60px rgba(124,116,246,0.10);
  transform: translateY(-4px);
}

.case-card--teal:hover {
  border-color: rgba(0,212,168,0.24);
  box-shadow: var(--shadow-md), 0 0 60px rgba(0,212,168,0.09);
  transform: translateY(-4px);
}

.case-card--violet:hover {
  background: linear-gradient(160deg, rgba(124,116,246,0.18) 0%, rgba(18,21,39,0.92) 55%);
}

.case-card--teal:hover {
  background: linear-gradient(160deg, rgba(0,212,168,0.14) 0%, rgba(18,21,39,0.92) 55%);
}

.case-card .case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.case-card .case-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.case-card--teal .case-tag svg {
  color: var(--teal);
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.case-card .case-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  flex: 1;
}

/* Abstract data visualization panel inside case cards */
.case-chart {
  margin: var(--space-4) 0 var(--space-3);
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.04);
}

.case-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Metric stat callout — big number treatment */
.case-card .case-metric {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(124,116,246,0.13) 0%, rgba(124,116,246,0.05) 100%);
  border: 1px solid rgba(124,116,246,0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 0 32px rgba(124,116,246,0.10), inset 0 1px 0 rgba(255,255,255,0.06);
  margin-top: auto;
}

.case-metric .metric-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-light);
  flex-shrink: 0;
}

.case-metric .metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
  padding-bottom: 3px;
}

.case-card--teal .case-metric {
  background: linear-gradient(135deg, rgba(0,212,168,0.11) 0%, rgba(0,212,168,0.04) 100%);
  border-color: rgba(0, 212, 168, 0.22);
  box-shadow: 0 0 32px rgba(0,212,168,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

.case-card--teal .metric-num {
  color: var(--teal);
}

/* ─── Testimonials ─── */
.testimonials {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial-card {
  position: relative;
  background: var(--bg-elevated-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all 240ms var(--ease-spring);
  overflow: hidden;
}

/* Gradient border glow on hover */
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: linear-gradient(135deg, rgba(124,116,246,0.45) 0%, transparent 50%, rgba(0,212,168,0.30) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.testimonial-card:hover {
  background: var(--bg-elevated-2);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.50);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-stars {
  display: block;
  line-height: 1;
}

.testimonial-quote {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  letter-spacing: -0.005em;
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
  font-family: var(--font-display);
  margin-right: 2px;
  vertical-align: -2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.testimonial-avatar--violet {
  background: linear-gradient(135deg, rgba(124,116,246,0.25) 0%, rgba(124,116,246,0.10) 100%);
  border: 1px solid rgba(124,116,246,0.35);
  color: var(--accent-light);
}

.testimonial-avatar--teal {
  background: linear-gradient(135deg, rgba(0,212,168,0.22) 0%, rgba(0,212,168,0.08) 100%);
  border: 1px solid rgba(0,212,168,0.32);
  color: var(--teal);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.testimonial-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.testimonial-meta span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── About / Stats ─── */
.about {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(124,116,246,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(0,212,168,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.about-lead {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: -44px auto var(--space-12);
  line-height: 1.80;
  letter-spacing: -0.01em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

.stat-card {
  background: var(--bg-elevated-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 220ms var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border);
  background: var(--bg-elevated-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* ─── Contact ─── */
.contact {
  padding: 108px 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-desc {
  text-align: center;
  color: var(--text-secondary);
  margin: -44px auto var(--space-10);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-elevated-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--bg-elevated-2);
  box-shadow: 0 0 0 3px rgba(124,116,246,0.14);
}

/* Custom select */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  padding-right: 40px;
  cursor: pointer;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-tertiary);
  pointer-events: none;
}

.select-wrapper select option {
  background: var(--bg-elevated-2);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── Goal Icon Cards (multi-select) ─── */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.goal-option {
  position: relative;
}

.goal-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.goal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 10px 12px;
  background: var(--bg-elevated-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
  user-select: none;
  text-align: center;
}

.goal-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
  color: var(--text);
}

.goal-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text-tertiary);
  transition: all 160ms var(--ease-out);
  flex-shrink: 0;
}

.goal-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.goal-option input[type="checkbox"]:checked + .goal-card {
  background: linear-gradient(135deg, rgba(124,116,246,0.18) 0%, rgba(124,116,246,0.08) 100%);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 0 1px rgba(124,116,246,0.22), 0 0 20px rgba(124,116,246,0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

.goal-option input[type="checkbox"]:checked + .goal-card .goal-icon {
  background: rgba(124,116,246,0.18);
  color: var(--accent-light);
}

.goal-option input[type="checkbox"]:focus-visible + .goal-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.form-label-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}


.contact-form .btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 14px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: 40px 24px;
  background: rgba(0, 212, 168, 0.05);
  border: 1px solid rgba(0, 212, 168, 0.18);
  border-radius: var(--radius-md);
  max-width: 540px;
  margin: 0 auto;
}

.form-success p {
  color: var(--teal);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-16) 0 var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 280px;
}

.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-col ul li a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 150ms ease;
}

.footer-nav-col ul li a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-email {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-email:hover { color: var(--text-secondary); }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1)  { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2)  { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3)  { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4)  { transition-delay: 240ms; }

/* Hero entrance animation */
.hero-enter {
  opacity: 0;
  transform: translateY(16px);
}

.hero-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .hero-badge   { transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring); transition-delay: 80ms; }
.hero h1            { transition: opacity 700ms var(--ease-spring), transform 700ms var(--ease-spring); transition-delay: 200ms; }
.hero .hero-sub     { transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring); transition-delay: 360ms; }
.hero .hero-cta     { transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring); transition-delay: 490ms; }
.hero .hero-stats   { transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring); transition-delay: 600ms; }

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

/* ─── Responsive: 1024px ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* Mobile nav open state */
.nav.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(8,9,15,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4) var(--space-5) var(--space-5);
  gap: var(--space-1);
  align-items: stretch;
}

.nav.nav-open .nav-links a:not(.btn) {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav.nav-open .nav-links .btn {
  margin-top: var(--space-3);
  text-align: center;
}

/* ─── Responsive: 768px ─── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links a:not(.btn) { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 120px 0 88px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-5);
    padding: 14px 24px;
  }
  .hero-stat-sep { display: none; }

  .client-strip .container {
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
  }
  .client-logos { justify-content: center; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .how-it-works { padding: 72px 0; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .steps-grid::before { display: none; }

  .cases { padding: 72px 0; }
  .cases-grid { grid-template-columns: 1fr; }

  .testimonials { padding: 72px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .about { padding: 72px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact { padding: 72px 0; }

  .section-heading { font-size: 28px; margin-bottom: var(--space-10); }

  .hero-cta { flex-direction: column; align-items: center; }

  .form-row { grid-template-columns: 1fr; }

  .footer { padding: var(--space-12) 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ─── Responsive: 480px ─── */
@media (max-width: 480px) {
  .stats-grid    { grid-template-columns: 1fr; }
  .stat-number   { font-size: 40px; }
  .goals-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero-stats    { gap: var(--space-4); padding: 12px 20px; }
  .hero-stat-num { font-size: 16px; }
}
