/* ===== DESIGN TOKENS ===== */
:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-650: #475569;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-500: #10b981;
  --spruce-dark: #00a04d;
  --spruce-bright: #2cbf53;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --lime-200: #d9f99d;
  --amber-200: #fde68a;
  --white: #fff;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--slate-950);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald-700);
  outline-offset: 2px;
}

h1, h2, h3, p {
  margin: 0;
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  fill: none;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  border-radius: 8px;
  background: var(--emerald-700);
  padding: 12px 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ===== LAYOUT ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  border-radius: 12px;
  object-fit: contain;
}

.brand-logo-sm {
  border-radius: 10px;
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  display: block;
  margin-top: 1px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 650;
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 73px; /* header height */
  z-index: 39;
  background: rgba(250, 250, 249, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav[aria-hidden="false"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px;
  gap: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-700);
  transition: background 120ms ease;
}

.mobile-nav a:hover {
  background: var(--slate-200);
  color: var(--slate-950);
}

.mobile-nav .button {
  margin-top: 16px;
  max-width: 400px;
  width: 100%;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 28px;
  background: var(--spruce-dark);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition: background 120ms ease;
}

.button:hover {
  background: var(--spruce-bright);
}

.button.small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.button.outline {
  border-color: var(--slate-300);
  background: var(--white);
  color: var(--slate-950);
}

.button.outline:hover {
  background: var(--slate-100);
}

.button.light {
  background: var(--spruce-dark);
  color: var(--white);
}

.button.light:hover {
  background: var(--spruce-bright);
}

.button.dark-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
}

.button.dark-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.08), transparent 35%);
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
  padding: 80px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--spruce-dark);
  border-radius: 999px;
  background: var(--white);
  padding: 10px 16px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

h1 {
  max-width: 780px;
  color: var(--slate-950);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-copy {
  margin-top: 24px;
  max-width: 672px;
  color: var(--slate-650);
  font-size: 20px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 20px;
  color: var(--slate-500);
  font-size: 14px;
}

/* ===== PRODUCT CARD / REPORT PREVIEW ===== */
.product-card {
  border: 1px solid var(--slate-200);
  border-radius: 32px;
  background: var(--white);
  padding: 16px;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 8px 16px -8px rgba(15, 23, 42, 0.12);
}

.report {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--slate-950);
  padding: 16px;
  color: var(--white);
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.report-kicker {
  color: var(--spruce-bright);
  font-size: 16px;
  font-weight: 750;
}

.report-meta {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 12px;
}

.status {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  color: var(--spruce-bright);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.issue-grid {
  display: grid;
  gap: 12px;
}

.issue {
  border-radius: 16px;
  background: var(--slate-800);
  padding: 12px;
}

.issue-image {
  height: 144px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.issue-image.first {
  background: url("../assets/egEnhancement.jpg") center / cover no-repeat;
}

.issue-image.second {
  background: url("../assets/egIssue.jpg") center / cover no-repeat;
}

.issue-title {
  font-size: 15px;
  font-weight: 750;
}

.issue-copy {
  margin-top: 4px;
  color: var(--slate-400);
  font-size: 12px;
  line-height: 1.35;
}

.metrics {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: #f1f5f9;
  text-align: center;
}

.metric-number {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-400);
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 672px;
  margin-bottom: 40px;
}

h2 {
  color: var(--slate-950);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.14;
}

.section-heading p,
.split-copy p {
  margin-top: 16px;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.6;
}

/* ===== BENEFITS ===== */
.benefit-grid {
  display: grid;
  gap: 20px;
}

.benefit-card {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  background: var(--emerald-100);
  color: var(--spruce-dark);
}

h3 {
  color: var(--slate-950);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.benefit-card p {
  margin-top: 12px;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== HOW IT WORKS (SPLIT) ===== */
.white-band {
  background: var(--white);
  scroll-margin-top: 96px;
}

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.label {
  margin-bottom: 16px;
  color: var(--spruce-dark);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--stone-50);
  padding: 16px;
  color: var(--slate-800);
  font-size: 16px;
  font-weight: 750;
}

.check-item svg {
  flex: 0 0 auto;
  color: var(--spruce-dark);
}

/* ===== PILOT CTA ===== */
.pilot {
  border-radius: 32px;
  background: var(--slate-950);
  padding: 32px;
  color: var(--white);
}

.pilot-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.pilot h2 {
  color: var(--white);
}

.pilot p {
  margin-top: 16px;
  max-width: 672px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-950);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--slate-950);
}

.footer-copy {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
  margin-top: 16px;
  color: var(--slate-400);
  font-size: 13px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
}

.modal-overlay[aria-hidden="false"] {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--white);
  padding: 32px;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 8px 16px -8px rgba(15, 23, 42, 0.12);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 24px;
}

.modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--slate-950);
}

.modal-description {
  margin-bottom: 24px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== FORM ===== */
.pilot-form {
  display: grid;
  gap: 20px;
}

.pilot-form[hidden] {
  display: none;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label,
.form-field legend {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  background: var(--white);
  padding: 0 14px;
  color: var(--slate-950);
  font: inherit;
  font-size: 16px;
  transition: border-color 120ms ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--spruce-dark);
  box-shadow: 0 0 0 3px rgba(0, 160, 77, 0.15);
}

.form-field input.invalid {
  border-color: #ef4444;
}

.form-field .error-msg {
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
}

.required {
  color: #ef4444;
}

.optional {
  color: var(--slate-400);
  font-weight: 500;
}

.form-radio-group {
  border: none;
  padding: 0;
  margin: 0;
}

.form-radio-group legend {
  margin-bottom: 8px;
}

.radio-options {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 600;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--spruce-dark);
  cursor: pointer;
}

.pilot-form .button {
  margin-top: 4px;
  width: 100%;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--spruce-dark);
  margin-bottom: 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-success .button {
  width: 100%;
}

/* ===== RESPONSIVE: TABLET (768px+) ===== */
@media (min-width: 768px) {
  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pilot {
    padding: 48px;
  }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .pilot-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

/* ===== RESPONSIVE: MOBILE (< 768px) ===== */
@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .nav-links {
    display: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-subtitle {
    display: none;
  }

  .button.small {
    padding: 0 16px;
  }

  .hero-grid {
    padding: 48px 0 64px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .actions,
  .pilot-actions {
    flex-direction: column;
  }

  .actions .button,
  .pilot-actions .button {
    width: 100%;
  }

  .product-card {
    border-radius: 24px;
    padding: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .benefit-card {
    padding: 20px;
  }

  .split {
    gap: 32px;
  }

  .pilot {
    padding: 24px;
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE (< 400px) ===== */
@media (max-width: 399px) {
  h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .eyebrow {
    font-size: 13px;
    padding: 8px 12px;
  }

  .issue-image {
    height: 100px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .benefit-card {
    transition: none;
  }

  .benefit-card:hover {
    transform: none;
  }
}
