/* ================================================================
   Evident Homepage v4.0 — Design System
   ================================================================
   
   Principles:
   - Mobile-first responsive (320px → 1440px+)
   - WCAG 2.1 AA color contrast
   - BEM naming (ev- prefix)
   - CSS custom properties for theming
   - System font stack for fast rendering
   - Reduced motion support
   - Dark-on-light default with dark accents
   
   Breakpoints:
   - sm: 640px   (large phone)
   - md: 768px   (tablet)
   - lg: 1024px  (desktop)
   - xl: 1280px  (wide desktop)
   ================================================================ */

/* ── Design Tokens — Gemstone-Aligned ───────────────────────── */
:root {
  /* Brand colors — mapped from Gemstone palette (tokens.css) */
  --ev-navy: var(--color-obsidian, #0e1528);
  --ev-navy-light: var(--color-nuummite, #141e30);
  --ev-navy-lighter: var(--color-labradorite, #2d3f6e);
  --ev-slate: #334155;
  --ev-slate-light: var(--color-text-muted, #5a6080);
  --ev-slate-lighter: #94a3b8;
  
  /* Accent — Sapphire primary */
  --ev-accent: var(--color-primary, #1f3a99);
  --ev-accent-hover: var(--color-primary-dark, #0a1a6e);
  --ev-accent-light: var(--color-primary-light, #3d64cc);
  --ev-accent-bg: color-mix(in srgb, var(--color-primary, #1f3a99) 8%, transparent);
  
  /* Gold authority accent */
  --ev-gold: var(--color-accent, #c88c00);
  --ev-gold-light: var(--color-accent-light, #e6a817);
  
  /* Tier colors */
  --ev-tier-demo: #6b7280;
  --ev-tier-starter: var(--color-primary, #1f3a99);
  --ev-tier-essentials: var(--color-accent, #c88c00);
  --ev-tier-professional: var(--color-tanzanite, #4a2db5);
  --ev-tier-enterprise: var(--color-ruby, #9b0020);
  
  /* Phase colors */
  --ev-phase-emerald: var(--color-emerald, #0a6840);
  --ev-phase-blue: var(--color-primary, #1f3a99);
  --ev-phase-amber: var(--color-accent, #c88c00);
  --ev-phase-ruby: var(--color-ruby, #9b0020);
  
  /* Surfaces — warm gemstone tones, not flat white */
  --ev-bg: var(--color-bg, #faf9f7);
  --ev-bg-alt: var(--color-neutral, #f2f0ec);
  --ev-bg-warm: var(--color-selenite, #eeeee8);
  --ev-bg-dark: var(--ev-navy);
  --ev-bg-card: var(--surface-card-solid, #fff);
  --ev-border: var(--border-default, color-mix(in srgb, #2d3f6e 20%, white));
  --ev-border-hover: var(--border-strong, color-mix(in srgb, #2d3f6e 32%, white));
  
  /* Text */
  --ev-text: var(--color-text, #1a2040);
  --ev-text-secondary: var(--color-text-muted, #5a6080);
  --ev-text-muted: #94a3b8;
  --ev-text-inverse: #f0ece8;
  
  /* Typography */
  --ev-font: var(--font-sans, "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif);
  --ev-font-display: var(--font-sans, "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif);
  --ev-font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  
  /* Spacing scale */
  --ev-space-xs: var(--space-xs, 0.25rem);
  --ev-space-sm: var(--space-sm, 0.5rem);
  --ev-space-md: var(--space-md, 1rem);
  --ev-space-lg: var(--space-lg, 1.5rem);
  --ev-space-xl: var(--space-xl, 2.5rem);
  --ev-space-2xl: var(--space-2xl, 4rem);
  --ev-space-3xl: var(--space-3xl, 6rem);
  --ev-space-4xl: 8rem;
  
  /* Radius */
  --ev-radius-sm: var(--radius-sm, 0.5rem);
  --ev-radius-md: var(--radius-md, 0.75rem);
  --ev-radius-lg: var(--radius-lg, 1rem);
  --ev-radius-xl: var(--radius-xl, 1.25rem);
  --ev-radius-full: var(--radius-full, 9999px);
  
  /* Shadows — from gemstone shadow scale */
  --ev-shadow-sm: var(--shadow-sm, 0 2px 8px rgb(14 21 40 / 6%));
  --ev-shadow-md: var(--shadow-md, 0 4px 24px rgb(14 21 40 / 8%));
  --ev-shadow-lg: var(--shadow-lg, 0 12px 40px rgb(14 21 40 / 10%));
  --ev-shadow-xl: var(--shadow-xl, 0 24px 64px rgb(14 21 40 / 14%));
  
  /* Transitions */
  --ev-transition: var(--duration-fast, 150ms) var(--ease-out, ease);
  --ev-transition-slow: var(--duration-slow, 400ms) var(--ease-in-out, ease);
  
  /* ── Section Palette — alternating backgrounds ───────────── */
  /* Light sections alternate between warm selenite and cool moonstone */
  --ev-section-light-a: var(--color-bg, #faf9f7);
  --ev-section-light-b: var(--color-neutral, #f2f0ec);
  --ev-section-light-c: var(--color-moonstone, #e8eef5);

  /* Dark sections use labradorite and sapphire depths */
  --ev-section-dark-a: var(--section-dark-a, linear-gradient(140deg, #0e1528 0%, #1b2f57 52%, #2d3f6e 100%));
  --ev-section-dark-b: var(--section-dark-b, linear-gradient(145deg, #0a1a6e 0%, #1f3a99 55%, #4a2db5 100%));
  
  /* ── Contrast-Safe Text Pairs ────────────────────────────── */
  /* Each background gets a pre-calculated text color (WCAG AA 4.5:1+) */
  --ev-on-light-a: var(--color-text, #1a2040);
  --ev-on-light-b: var(--color-text, #1a2040);
  --ev-on-light-c: var(--color-text, #1a2040);

  --ev-on-dark-a: var(--gem-labradorite-text, #c8e6f9);
  --ev-on-dark-b: var(--gem-sapphire-text, #d0dcff);
  --ev-on-dark-muted: var(--color-on-dark-muted, #cbd5e1);
}


/* ── Base container ─────────────────────────────────────────── */
.ev-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ev-space-lg);
}

.ev-homepage {
  font-family: var(--ev-font);
  color: var(--ev-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ── Typography ─────────────────────────────────────────────── */
.ev-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-accent);
  margin-bottom: var(--ev-space-sm);
}

.ev-eyebrow--light {
  color: rgb(255 255 255 / 70%);
}

.ev-section h2 {
  font-family: var(--ev-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ev-text);
  margin: 0 0 var(--ev-space-md);
}

.ev-subtitle {
  font-size: 1.0625rem;
  color: var(--ev-text-secondary);
  max-width: 640px;
  margin: 0 0 var(--ev-space-2xl);
}

.ev-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ev-space-xs);
  color: var(--ev-accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ev-transition);
}

.ev-link:hover,
.ev-link:focus-visible {
  color: var(--ev-accent-hover);
  text-decoration: underline;
}

.ev-link .ev-icon {
  transition: transform var(--ev-transition);
}

.ev-link:hover .ev-icon {
  transform: translateX(3px);
}


/* ── Buttons ────────────────────────────────────────────────── */
.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ev-space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--ev-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--ev-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ev-transition);
  white-space: nowrap;
}

.ev-btn:focus-visible {
  outline: 3px solid var(--ev-accent-light);
  outline-offset: 2px;
}

.ev-btn--primary {
  background: var(--ev-accent);
  color: #fff;
  border-color: var(--ev-accent);
}

.ev-btn--primary:hover {
  background: var(--ev-accent-hover);
  border-color: var(--ev-accent-hover);
  box-shadow: var(--ev-shadow-md);
}

.ev-btn--ghost {
  background: transparent;
  color: var(--ev-text);
  border-color: var(--ev-border);
}

.ev-btn--ghost:hover {
  border-color: var(--ev-accent);
  color: var(--ev-accent);
}

.ev-btn--light {
  color: var(--ev-text-inverse);
  border-color: rgb(255 255 255 / 30%);
}

.ev-btn--light:hover {
  border-color: #fff;
  color: #fff;
}

.ev-btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.ev-btn--block {
  width: 100%;
}


/* ── Section spacing ────────────────────────────────────────── */
.ev-section {
  padding: var(--ev-space-3xl) 0;
  position: relative;
  isolation: isolate;
  overflow: clip;

  --ev-seam-top: transparent;
  --ev-seam-bottom: transparent;
}

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

.ev-section::before,
.ev-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: var(--section-seam-size, clamp(2.5rem, 6vw, 4.5rem));
  pointer-events: none;
  z-index: 0;
}

.ev-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--ev-seam-top), transparent);
}

.ev-section::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--ev-seam-bottom));
}

@media (width >= 768px) {
  .ev-section {
    padding: var(--ev-space-4xl) 0;
  }
}


/* ── Icons ──────────────────────────────────────────────────── */
.ev-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   Section 1: Trust Metrics Bar  [DARK-A — labradorite depth]
   ════════════════════════════════════════════════════════════ */
.ev-trust-bar {
  background: var(--ev-section-dark-a);
  color: var(--ev-on-dark-a);
  padding: var(--ev-space-lg) 0;
  position: relative;
}

.ev-trust-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--section-seam-size, clamp(2.5rem, 6vw, 4.5rem));
  background: linear-gradient(to bottom, transparent, var(--ev-section-light-a));
  pointer-events: none;
}

.ev-trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ev-space-lg);
  margin: 0;
  padding: 0;
  text-align: center;
}

@media (width >= 640px) {
  .ev-trust-row {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ev-space-xl);
  }
}

.ev-trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ev-space-xs);
}

.ev-trust-num {
  font-family: var(--ev-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ev-gold-light), var(--ev-gold));
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-trust-label {
  font-size: 0.8125rem;
  color: var(--ev-on-dark-muted);
  letter-spacing: 0.02em;
}


/* ════════════════════════════════════════════════════════════
   Section 2: Value Proposition  [LIGHT-A — selenite warmth]
   ════════════════════════════════════════════════════════════ */
.ev-value {
  background: var(--ev-section-light-a);
  color: var(--ev-on-light-a);

  --ev-seam-top: color-mix(in srgb, var(--color-obsidian, #0e1528) 40%, var(--ev-section-light-a));
  --ev-seam-bottom: var(--ev-section-light-b);
}

.ev-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-space-2xl);
  align-items: start;
}

@media (width >= 1024px) {
  .ev-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--ev-space-3xl);
  }
}

.ev-split__content h2 {
  margin-bottom: var(--ev-space-lg);
}

.ev-split__content p {
  color: var(--ev-text-secondary);
  margin-bottom: var(--ev-space-md);
}

.ev-split__features {
  display: flex;
  flex-direction: column;
  gap: var(--ev-space-lg);
}

.ev-feature-card {
  display: flex;
  gap: var(--ev-space-md);
  padding: var(--ev-space-lg);
  background: linear-gradient(to bottom right, rgb(59 130 246 / 4%), rgb(6 182 212 / 2%));
  border-radius: var(--ev-radius-lg);
  border: 1px solid var(--ev-border);
  transition: border-color var(--ev-transition), box-shadow var(--ev-transition);
}

.ev-feature-card:hover {
  border-color: var(--ev-accent);
  box-shadow: var(--ev-shadow-sm);
}

.ev-feature-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ev-accent-bg);
  color: var(--ev-accent);
  border-radius: var(--ev-radius-md);
}

.ev-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-xs);
}

.ev-feature-card p {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* ════════════════════════════════════════════════════════════
   Section 3: How It Works  [LIGHT-B — pearl tint]
   ════════════════════════════════════════════════════════════ */
.ev-workflow {
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 4%, transparent), transparent),
    var(--ev-section-light-b);
  color: var(--ev-on-light-b);
  text-align: center;

  --ev-seam-top: var(--ev-section-light-a);
  --ev-seam-bottom: var(--ev-section-dark-b);
}

.ev-workflow .ev-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.ev-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ev-space-lg);
  list-style: none;
  padding: 0;
  margin: var(--ev-space-2xl) 0 0;
}

@media (width >= 768px) {
  .ev-steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--ev-space-md);
  }
}

.ev-step {
  flex: 0 1 280px;
  text-align: center;
  padding: var(--ev-space-xl) var(--ev-space-lg);
  background: linear-gradient(135deg, rgb(59 130 246 / 3%), rgb(6 182 212 / 2%));
  border-radius: var(--ev-radius-xl);
  border: 1px solid var(--ev-border);
  box-shadow: var(--ev-shadow-sm);
  position: relative;
}

.ev-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--ev-space-md);
  background: var(--ev-accent-bg);
  color: var(--ev-accent);
  border-radius: var(--ev-radius-full);
}

.ev-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ev-accent);
  background: var(--ev-accent-bg);
  border-radius: var(--ev-radius-full);
  margin-bottom: var(--ev-space-sm);
}

.ev-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-sm);
}

.ev-step__desc {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.ev-step__connector {
  color: var(--ev-slate-lighter);
  display: none;
}

@media (width >= 768px) {
  .ev-step__connector {
    display: flex;
    align-items: center;
    padding-top: 3rem;
  }
}


/* ════════════════════════════════════════════════════════════
   Section 4: Pipeline  [DARK-B — sapphire→tanzanite depth]
   ════════════════════════════════════════════════════════════ */
.ev-pipeline {
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, color-mix(in srgb, var(--gem-tanzanite-flat, #4a2db5) 20%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, color-mix(in srgb, var(--gem-emerald-flat, #0a6840) 8%, transparent), transparent),
    var(--ev-section-dark-b);
  color: var(--ev-on-dark-b);

  --ev-seam-top: var(--ev-section-light-b);
  --ev-seam-bottom: var(--ev-section-light-a);
}

.ev-pipeline h2 {
  color: var(--ev-on-dark-b);
}

.ev-pipeline .ev-subtitle {
  color: var(--ev-on-dark-muted);
}

/* Phase tabs */
.ev-pipeline__phases {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ev-space-sm);
  margin-bottom: var(--ev-space-2xl);
}

.ev-phase-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--ev-space-sm) var(--ev-space-md);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--ev-radius-md);
  color: var(--ev-on-dark-muted);
  cursor: pointer;
  transition: all var(--ev-transition);
  font-family: var(--ev-font);
  font-size: 0.875rem;
}

.ev-phase-tab:hover,
.ev-phase-tab:focus-visible {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 20%);
  color: var(--ev-on-dark-b);
}

.ev-phase-tab--active {
  background: rgb(255 255 255 / 12%);
  border-color: var(--ev-accent);
  color: var(--ev-on-dark-b);
}

.ev-phase-tab:focus-visible {
  outline: 3px solid var(--ev-accent-light);
  outline-offset: 2px;
}

.ev-phase-tab__stages {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Phase label badges */
.ev-phase {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-phase--emerald { color: var(--ev-phase-emerald); }
.ev-phase--blue    { color: var(--ev-phase-blue); }
.ev-phase--amber   { color: var(--ev-phase-amber); }
.ev-phase--ruby    { color: var(--ev-phase-ruby); }
.ev-phase--all     { color: var(--ev-accent-light); }

/* Pipeline stage grid */
.ev-pipeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-space-md);
}

@media (width >= 640px) {
  .ev-pipeline__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1024px) {
  .ev-pipeline__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width >= 1280px) {
  .ev-pipeline__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Stage card */
.ev-stage-card {
  background: linear-gradient(135deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--ev-radius-lg);
  padding: var(--ev-space-lg);
  transition: all var(--ev-transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.ev-stage-card:hover,
.ev-stage-card:focus-visible {
  background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(59 130 246 / 6%));
  border-color: rgb(59 130 246 / 40%);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgb(59 130 246 / 20%), 0 8px 24px rgb(0 0 0 / 30%);
}

.ev-stage-card:focus-visible {
  outline: 3px solid var(--ev-accent-light);
  outline-offset: 2px;
}

.ev-stage-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ev-space-md);
}

.ev-stage-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ev-accent-light);
  background: rgb(59 130 246 / 15%);
  border-radius: var(--ev-radius-full);
}

.ev-stage-card__icon {
  color: var(--ev-on-dark-muted);
}

.ev-stage-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-xs);
  color: var(--ev-on-dark-b);
}

.ev-stage-card__short {
  font-size: 0.8125rem;
  color: var(--ev-on-dark-muted);
  margin: 0 0 var(--ev-space-md);
  line-height: 1.5;
}

.ev-stage-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ev-space-sm);
}

.ev-stage-card__tool {
  font-family: var(--ev-font-mono);
  font-size: 0.6875rem;
  color: var(--ev-on-dark-muted);
  opacity: 0.7;
}

/* Stage card expandable detail (hover / focus) */
.ev-stage-card__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--ev-transition-slow), opacity var(--ev-transition), margin var(--ev-transition);
  margin-top: 0;
}

.ev-stage-card:hover .ev-stage-card__detail,
.ev-stage-card:focus-within .ev-stage-card__detail,
.ev-stage-card[aria-expanded="true"] .ev-stage-card__detail {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--ev-space-md);
}

.ev-stage-card__detail p {
  font-size: 0.8125rem;
  color: var(--ev-on-dark-muted);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--ev-space-sm);
  border-top: 1px solid rgb(255 255 255 / 8%);
}

/* Tier badges */
.ev-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ev-radius-full);
}

.ev-badge--demo         { background: rgb(107 114 128 / 20%); color: #d1d5db; }
.ev-badge--starter      { background: rgb(59 130 246 / 20%);  color: var(--ev-accent-light); }
.ev-badge--essentials   { background: rgb(245 158 11 / 20%);  color: #fbbf24; }
.ev-badge--professional { background: rgb(139 92 246 / 20%);  color: #a78bfa; }
.ev-badge--enterprise   { background: rgb(236 72 153 / 20%);  color: #f472b6; }

/* Pipeline CTA */
.ev-pipeline__cta {
  text-align: center;
  margin-top: var(--ev-space-2xl);
}

.ev-pipeline__note {
  font-size: 0.8125rem;
  color: var(--ev-on-dark-muted);
  margin-top: var(--ev-space-sm);
}

/* Phase filter animation */
.ev-stage-card[data-hidden="true"] {
  display: none;
}


/* ════════════════════════════════════════════════════════════
   Section 5: Technology Stack  [LIGHT-A — selenite warmth]
   ════════════════════════════════════════════════════════════ */
.ev-tech {
  background:
    radial-gradient(ellipse 500px 350px at 80% 20%, color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 4%, transparent), transparent),
    var(--ev-section-light-a);
  color: var(--ev-on-light-a);

  --ev-seam-top: var(--ev-section-dark-b);
  --ev-seam-bottom: var(--ev-section-light-b);
}

.ev-tech__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-space-lg);
}

@media (width >= 640px) {
  .ev-tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1024px) {
  .ev-tech__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ev-tech-card {
  padding: var(--ev-space-xl);
  background: linear-gradient(135deg, rgb(59 130 246 / 3%), rgb(139 92 246 / 3%));
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  transition: border-color var(--ev-transition), box-shadow var(--ev-transition);
}

.ev-tech-card:hover {
  border-color: var(--ev-accent);
  box-shadow: var(--ev-shadow-md);
}

.ev-tech-card h3 {
  font-family: var(--ev-font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-sm);
  color: var(--ev-text);
}

.ev-tech-card p {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  margin: 0 0 var(--ev-space-md);
  line-height: 1.5;
}

.ev-tech-card__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ev-accent);
  text-decoration: none;
}

.ev-tech-card__link:hover {
  text-decoration: underline;
}


/* ════════════════════════════════════════════════════════════
   Section 6: Use Cases  [LIGHT-B — pearl tint + emerald hint]
   ════════════════════════════════════════════════════════════ */
.ev-usecases {
  background:
    radial-gradient(ellipse 600px 400px at 70% 60%, color-mix(in srgb, var(--gem-emerald-flat, #0a6840) 3%, transparent), transparent),
    var(--ev-section-light-b);
  color: var(--ev-on-light-b);
  text-align: center;

  --ev-seam-top: var(--ev-section-light-a);
  --ev-seam-bottom: var(--ev-section-light-c);
}

.ev-usecases .ev-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.ev-usecases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-space-lg);
  text-align: left;
}

@media (width >= 640px) {
  .ev-usecases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ev-usecase-card {
  padding: var(--ev-space-xl);
  background: linear-gradient(135deg, rgb(59 130 246 / 5%), rgb(16 185 129 / 3%));
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  transition: border-color var(--ev-transition), box-shadow var(--ev-transition);
}

.ev-usecase-card:hover {
  border-color: var(--ev-accent);
  box-shadow: var(--ev-shadow-md);
}

.ev-usecase-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--ev-accent-bg);
  color: var(--ev-accent);
  border-radius: var(--ev-radius-lg);
  margin-bottom: var(--ev-space-md);
}

.ev-usecase-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-sm);
}

.ev-usecase-card p {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  margin: 0;
  line-height: 1.6;
}


/* ════════════════════════════════════════════════════════════
   Section 7: Pricing  [LIGHT-A — selenite warmth]
   ════════════════════════════════════════════════════════════ */
.ev-pricing {
  background:
    radial-gradient(ellipse 500px 400px at 50% 30%, color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 4%, transparent), transparent),
    var(--ev-section-light-c);
  color: var(--ev-on-light-c);

  --ev-seam-top: var(--ev-section-light-b);
  --ev-seam-bottom: var(--ev-section-dark-a);
}

.ev-pricing .ev-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.ev-pricing {
  text-align: center;
}

.ev-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-space-lg);
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

@media (width >= 768px) {
  .ev-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1024px) {
  .ev-pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ev-pricing-card {
  padding: var(--ev-space-xl);
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--ev-transition);
}

.ev-pricing-card:hover {
  box-shadow: var(--ev-shadow-lg);
}

.ev-pricing-card--featured {
  border-color: var(--ev-accent);
  box-shadow: 0 0 32px rgb(59 130 246 / 15%), var(--ev-shadow-md);
  background: linear-gradient(135deg, rgb(59 130 246 / 8%), rgb(59 130 246 / 2%));
}

.ev-pricing-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--ev-accent);
  color: #fff;
  border-radius: var(--ev-radius-full);
  white-space: nowrap;
}

.ev-pricing-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 var(--ev-space-sm);
}

.ev-pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 var(--ev-space-xs);
  color: var(--ev-text);
}

.ev-pricing-card__period {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ev-text-secondary);
}

.ev-pricing-card__detail {
  font-size: 0.8125rem;
  color: var(--ev-text-muted);
  margin: 0 0 var(--ev-space-lg);
}

.ev-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--ev-space-xl);
  flex: 1;
}

.ev-pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--ev-space-sm);
  padding: var(--ev-space-xs) 0;
  font-size: 0.8125rem;
  color: var(--ev-text-secondary);
  border-bottom: 1px solid var(--ev-border);
}

.ev-pricing-card__features li:last-child {
  border-bottom: none;
}

.ev-pricing-card__features .ev-icon {
  color: var(--ev-phase-emerald);
  flex-shrink: 0;
}

.ev-pricing__foot {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  margin-top: var(--ev-space-2xl);
  text-align: center;
}

.ev-pricing__foot a {
  color: var(--ev-accent);
  font-weight: 500;
}


/* ════════════════════════════════════════════════════════════
   Section 8: Final CTA  [DARK-A — labradorite + gold glow]
   ════════════════════════════════════════════════════════════ */
.ev-final-cta {
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 18%, transparent), transparent),
    radial-gradient(ellipse 40% 50% at 80% 50%, color-mix(in srgb, var(--gem-gold-native-flat, #c88c00) 10%, transparent), transparent),
    var(--ev-section-dark-a);
  color: var(--ev-on-dark-a);
  text-align: center;
  overflow: hidden;

  --ev-seam-top: var(--ev-section-light-c);
  --ev-seam-bottom: transparent;
}

.ev-final-cta__inner {
  position: relative;
  z-index: 1;
}

.ev-final-cta h2 {
  color: var(--ev-on-dark-a);
}

.ev-final-cta p {
  color: var(--ev-on-dark-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ev-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ev-space-md);
  margin-top: var(--ev-space-xl);
}

.ev-final-cta__note {
  font-size: 0.8125rem;
  color: var(--ev-on-dark-muted);
  margin-top: var(--ev-space-lg);
}


/* ════════════════════════════════════════════════════════════
   Reduced Motion
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .ev-stage-card:hover {
    transform: none;
  }
  
  .ev-stage-card__detail {
    transition: none;
  }
}


/* ════════════════════════════════════════════════════════════
   Print
   ════════════════════════════════════════════════════════════ */
@media print {
  .ev-trust-bar,
  .ev-final-cta,
  .ev-pipeline__phases,
  .ev-pipeline__cta {
    display: none;
  }
  
  .ev-pipeline {
    background: #fff;
    color: #000;
  }
  
  .ev-pipeline h2,
  .ev-stage-card__name {
    color: #000;
  }
  
  .ev-stage-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: #fff;
  }
  
  .ev-stage-card__detail {
    max-height: none;
    opacity: 1;
  }
}
