:root {
  --home-bg: #fbfcff;
  --home-surface: #ffffff;
  --home-text: #1f2937;
  --home-muted: #667085;
  --home-border: #edf0f5;
  --home-accent: #2563eb;
  --home-accent-dark: #1d4ed8;
  --home-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

body.page-home {
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-home .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 255, 0.9);
  border-bottom: 1px solid rgba(237, 240, 245, 0.9);
}

.page-home .site-header.apple-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.page-home .logo {
  color: var(--home-text);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
}

.page-home .nav a {
  color: var(--home-muted);
}

.page-home .nav a:hover,
.page-home .nav a.active {
  color: var(--home-accent);
}

.apple-nav-cta {
  align-items: center;
  background: var(--home-accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apple-nav-cta:hover {
  background: var(--home-accent-dark);
  transform: translateY(-1px);
}

.page-home .mode-toggle-pill {
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  color: var(--home-muted);
  font-family: inherit;
  font-weight: 700;
  margin-left: 0.25rem;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.page-home .mode-toggle-pill:hover {
  background: #f8faff;
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--home-accent);
}

.page-home .mode-toggle-pill[data-mode="fresher"] {
  background: rgba(22, 163, 74, 0.07);
  border-color: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.page-home .mode-toggle-pill[data-mode="experienced"] {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--home-accent);
}

.page-home .mode-pill-caret {
  opacity: 0.55;
}

.page-home .sw-auth-container {
  margin-left: 0.25rem;
}

.page-home .sw-auth-user {
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  color: var(--home-text);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
}

.page-home .sw-auth-user:hover {
  border-color: rgba(37, 99, 235, 0.22);
}

.page-home .sw-auth-name {
  color: var(--home-text);
}

.page-home .sw-auth-chevron {
  color: var(--home-muted);
}

.page-home .sw-auth-dropdown,
.page-home .mode-qs {
  background: #ffffff;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  color: var(--home-text);
}

.page-home .sw-auth-dropdown-name,
.page-home .mode-qs-btn,
.page-home .mode-qs-name {
  color: var(--home-text);
}

.page-home .sw-auth-dropdown-email,
.page-home .sw-auth-dropdown-item,
.page-home .mode-qs-heading,
.page-home .mode-qs-sub {
  color: var(--home-muted);
}

.page-home .sw-auth-dropdown-divider {
  border-color: var(--home-border);
}

.page-home .sw-auth-dropdown-item:hover,
.page-home .mode-qs-btn:hover,
.page-home .mode-qs-btn:focus {
  background: #f8faff;
  color: var(--home-accent);
}

.page-home .mode-qs-btn.is-active {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.2);
}

.page-home .mode-qs-btn[data-mode="fresher"].is-active {
  background: rgba(22, 163, 74, 0.07);
  border-color: rgba(22, 163, 74, 0.2);
}

.page-home .mode-gate {
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: blur(10px);
}

.page-home .mode-gate-inner {
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 1.5rem;
  box-shadow: var(--home-shadow);
  max-width: 680px;
}

.page-home .mode-gate-close {
  background: #f8faff;
  border-color: var(--home-border);
  color: var(--home-muted);
}

.page-home .mode-gate-title,
.page-home .mode-gate-card-title {
  color: var(--home-text);
}

.page-home .mode-gate .page-kicker {
  color: var(--home-accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.page-home .mode-gate-title {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  letter-spacing: 0;
}

.page-home .mode-gate-sub,
.page-home .mode-gate-card-sub,
.page-home .mode-gate-benefits li,
.page-home .mode-gate-footer {
  color: var(--home-muted);
}

.page-home .mode-gate-card {
  background: #fbfcff;
  border-color: var(--home-border);
  color: var(--home-text);
  box-shadow: none;
}

.page-home .mode-gate-card:hover,
.page-home .mode-gate-card:focus {
  background: #f8faff;
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.page-home .mode-gate-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  outline-offset: 2px;
}

.page-home .mode-gate-card[data-mode="fresher"]:hover,
.page-home .mode-gate-card[data-mode="fresher"]:focus {
  border-color: rgba(37, 99, 235, 0.26);
  background: #f8faff;
}

.page-home .mode-gate-card[data-mode="fresher"] .mode-gate-icon,
.page-home .mode-gate-card[data-mode="experienced"] .mode-gate-icon,
.page-home .mode-gate-card[data-mode="fresher"] .mode-gate-cta,
.page-home .mode-gate-card[data-mode="experienced"] .mode-gate-cta {
  color: var(--home-accent);
}

.page-home .mode-gate-benefits .fa-check {
  color: #22c55e;
}

.home-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-hero {
  /* background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 34rem), linear-gradient(180deg, #ffffff 0%, var(--home-bg) 100%); */
  padding: clamp(2rem, 4vw, 3rem) 0 0.5rem;
}

.home-hero__inner {
  max-width: 900px;
  text-align: center;
}

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

@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.ai-skills-banner {
  animation: slideInFade 0.6s ease-out, softPulse 3s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: var(--home-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ai-skills-icon {
  font-size: 1.2rem;
}

.home-eyebrow {
  color: var(--home-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.home-hero h1 {
  color: var(--home-text);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.home-hero__lead {
  color: var(--home-muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  margin: 1.25rem auto 0;
  max-width: 520px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Hero segment links */
.home-hero__segment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.home-hero__segment .segment-label {
  font-size: 0.85rem;
  color: var(--home-muted);
}
.home-hero__segment .segment-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.home-hero__segment .segment-link:hover {
  text-decoration: underline;
}
.home-hero__segment .segment-divider {
  color: var(--home-border);
}

/* Social proof bar */
.home-social-proof {
  padding: 1rem 0;
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  background: var(--home-surface);
}
.social-proof-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--home-muted);
  flex-wrap: wrap;
}
.social-proof-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.social-proof-list i {
  color: var(--home-accent);
}

/* Feature card links */
.feature-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.feature-card-link:hover h3 {
  color: var(--home-accent);
}

.home-product-groups {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.product-groups-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.product-group {
  flex: 1;
}

.product-group--primary {
  flex: 1.2;
}

.product-group--secondary {
  flex: 0.9;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.group-icon {
  font-size: 1.4rem;
}

.group-label {
  color: var(--home-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.group-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.product-card--free {
  border-left: 3px solid var(--home-accent);
}

.product-card--paid {
  border-left: 3px solid #6366f1;
}

.product-card--free-tier {
  border-left: 3px solid #f59e0b;
}

.product-card--included {
  border-left: 3px solid #6366f1;
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-badge--free {
  background: rgba(37, 99, 235, 0.1);
  color: var(--home-accent);
}

.product-badge--paid {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.product-badge--free-tier {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.product-badge--included {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.product-title {
  color: var(--home-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.product-desc {
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.group-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--home-accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.group-cta:hover {
  gap: 0.6rem;
  color: var(--home-accent-dark);
}

.cta-arrow {
  display: inline-block;
}

.upskill-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
}

.upskill-courses {
  background: #fdfefe;
}

.upskill-card {
  display: flex;
  flex-direction: column;
}

.upskill-card-link {
  margin-top: auto;
  color: var(--home-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.upskill-card-link:hover {
  color: var(--home-accent-dark);
}

.upskill-cta-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.upskill-cta-card {
  background: var(--home-surface);
  border: 2px solid #cbd5e1 !important;
  border-radius: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.upskill-cta-card h2 {
  color: var(--home-text);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

.upskill-cta-card p {
  color: var(--home-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: var(--home-surface);
  border-radius: 1.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--home-muted);
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  color: var(--home-text);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--home-border);
}

.modal-icon {
  font-size: 2rem;
}

.modal-header h2 {
  color: var(--home-text);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.5rem;
  margin: 0;
}

.modal-body {
  padding: 2rem;
}

.modal-body > p {
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.modal-body strong {
  color: var(--home-text);
}

.modal-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.modal-step {
  display: flex;
  gap: 1rem;
}

.step-num {
  background: rgba(37, 99, 235, 0.1);
  color: var(--home-accent);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.modal-step h4 {
  color: var(--home-text);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.modal-step p {
  color: var(--home-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.modal-pricing {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.modal-pricing h4 {
  color: var(--home-text);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.modal-pricing p {
  color: var(--home-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem 2.5rem;
  border-top: 1px solid var(--home-border);
}

.modal-button {
  flex: 1;
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-button--primary {
  background: var(--home-accent);
  color: #ffffff;
}

.modal-button--primary:hover {
  background: var(--home-accent-dark);
  transform: translateY(-2px);
}

.modal-button--secondary {
  background: #ffffff;
  border: 1px solid var(--home-border);
  color: var(--home-text);
}

.modal-button--secondary:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--home-accent);
}

.home-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-button--primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25), 0 4px 10px rgba(37, 99, 235, 0.18);
  color: #ffffff;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}


.home-button--xl {
  font-size: 1.05rem;
  min-height: 3.25rem;
  padding: 1rem 1.75rem;
}

.home-button--ghost {
  background: transparent;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  color: var(--home-accent);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
}

.home-button--ghost:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--home-accent);
  transform: translateY(-1px);
}

.home-button--link {
  background: #ffffff;
  border: 1px solid var(--home-border);
  color: var(--home-text);
}

.home-button--link:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--home-accent);
  transform: translateY(-2px);
}

/* Result preview card */
.hero-result-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07);
  display: inline-block;
  margin-top: 1.75rem;
  padding: 1rem 1.5rem;
}

.hero-result-card__row {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.hero-result-divider {
  background: var(--home-border);
  height: 2rem;
  width: 1px;
  flex-shrink: 0;
}

.hero-result-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.hero-result-label {
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-result-value {
  color: var(--home-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.score-before {
  color: #ef4444;
  font-size: 1.05rem;
  opacity: 0.75;
}

.score-after {
  color: #16a34a;
  font-size: 1.45rem;
  font-weight: 900;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 0.4rem;
  padding: 0.05rem 0.45rem;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.hero-result-value--green {
  color: #16a34a;
}

.hero-result-value--amber {
  color: #d97706;
}

/* Trust microcopy */
.hero-trust-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.hero-trust-list li {
  align-items: center;
  color: var(--home-muted);
  display: flex;
  font-size: 0.875rem;
  gap: 0.4rem;
}

.hero-trust-list .fa-check {
  color: #16a34a;
  font-size: 0.8rem;
}

/* Analyzing interaction overlay */
.hero-analyzing {
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 340px;
  padding: 1rem 1.25rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-analyzing.is-visible {
  animation: fadeSlideIn 0.25s ease-out forwards;
  display: flex;
}

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

.hero-analyzing__text {
  color: var(--home-text);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-analyzing__bar {
  background: var(--home-border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.hero-analyzing__fill {
  background: linear-gradient(90deg, var(--home-accent), #6366f1);
  border-radius: 999px;
  height: 100%;
  transition: width 0.16s ease-out;
  width: 0%;
}

.home-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.home-section--steps {
  background: #fdfefe;
}

.home-section__header {
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-section__header h2 {
  color: var(--home-text);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.home-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-card,
.home-step {
  background: var(--home-surface);
  border: 2px solid #cbd5e1 !important;
  border-radius: 1rem;
  padding: 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-feature-card:hover,
.home-step:hover {
  border-color: #cbd5e1 !important;
  box-shadow: var(--home-shadow);
  transform: translateY(-4px);
}

.home-icon,
.home-step__icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 0.85rem;
  color: var(--home-accent);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.75rem;
}

.home-feature-card h3,
.home-step h3 {
  color: var(--home-text);
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
}

.home-feature-card p,
.home-step p {
  color: var(--home-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.home-steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-step {
  position: relative;
}

.home-step::before {
  color: #c7ced8;
  content: "0" counter(step);
  counter-increment: step;
  font-size: 0.85rem;
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
}

.page-home .site-footer {
  border-top: 2px solid #cbd5e1 !important;
  color: var(--home-muted);
}

.page-home .footer-links a,
.page-home .social-icons a,
.page-home .footer-hire-cta,
.page-home .footer-copy p {
  color: var(--home-muted);
}

.page-home .footer-hire-cta a {
  color: var(--home-accent);
}

@media (max-width: 900px) {
  .home-feature-grid,
  .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-home .header-inner {
    gap: 0.75rem;
  }

  .page-home .nav {
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

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

  .home-container {
    padding: 0 1rem;
  }

  .home-hero {
    padding-top: 1.5rem;
  }

  .home-hero__actions {
    align-items: center;
    flex-direction: column;
  }

  .home-hero__actions .home-button {
    width: 100%;
    min-width: 220px;
    max-width: 320px;
  }

  .hero-result-card {
    width: 100%;
    max-width: 340px;
    padding: 0.85rem 1rem;
  }

  .hero-result-card__row {
    gap: 0.6rem;
  }

  .hero-result-card .score-after {
    font-size: 1.2rem;
    padding: 0.05rem 0.3rem;
  }
  .hero-result-card .score-before {
    font-size: 0.95rem;
  }
  .hero-result-card .hero-result-value {
    font-size: 1rem;
  }
  .hero-result-card .hero-result-label {
    font-size: 0.62rem;
  }
  .hero-result-divider {
    height: 1.6rem;
  }

  /* CTA microcopy slightly smaller on mobile */
  .hero-cta-microcopy {
    font-size: 0.82rem;
  }

  /* Disable hover-scale on touch — primary button stays at rest */
  .home-button--primary:hover {
    transform: none;
  }

  .hero-trust-list {
    flex-direction: column;
    align-items: flex-start;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-feature-grid,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-hero__segment {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-proof-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Stack the two product-group columns vertically on mobile */
  .product-groups-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .product-group--primary,
  .product-group--secondary {
    flex: unset;
    width: 100%;
  }

  /* Hide mode pill in header on mobile — it breaks the header row */
  #sw-mode-pill {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   Hero additions — consolidated, no duplicates
   ═══════════════════════════════════════════════════════════════════ */

/* ── New button sizes / variants ──────────────────────────────────── */
.home-button--xl {
  font-size: 1.05rem;
  min-height: 3.25rem;
  padding: 1rem 1.75rem;
}

.home-button--ghost {
  background: transparent;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  color: var(--home-accent);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
}

/* ── CTA micro-interactions ───────────────────────────────────────── */
.home-button--primary {
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}
.home-button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35), 0 6px 14px rgba(37, 99, 235, 0.25);
}
.home-button--primary:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}
.home-button--ghost {
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.home-button--ghost:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--home-accent);
  transform: translateY(-2px);
}

/* ── Social proof line ────────────────────────────────────────────── */
.hero-social-proof-line {
  color: var(--home-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.85rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.hero-social-proof-line .fa-users {
  color: var(--home-accent);
  font-size: 0.78rem;
}

/* ── Result card ──────────────────────────────────────────────────── */
.hero-result-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07);
  display: inline-block;
  margin-top: 1.75rem;
  padding: 1rem 1.5rem;
}
.hero-result-card__row {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}
.hero-result-divider {
  background: var(--home-border);
  height: 2rem;
  width: 1px;
  flex-shrink: 0;
}
.hero-result-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}
.hero-result-label {
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-result-value {
  color: var(--home-text);
  font-size: 1.15rem;
  font-weight: 800;
}
.score-before { color: #ef4444; }
.score-after  { color: #16a34a; }
.hero-result-value--green { color: #16a34a; }
.hero-result-value--amber { color: #d97706; }

/* ── Animated metric fade-in ─────────────────────────────────────── */
.hero-metric-fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-metric-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Score glow ───────────────────────────────────────────────────── */
.score-after--glow {
  transition: text-shadow 0.5s ease, color 0.3s ease;
}
.score-after--lit {
  color: #16a34a;
  text-shadow: 0 0 14px rgba(22, 163, 74, 0.5);
}

/* ── Stats card scale-in pop ─────────────────────────────────────── */
.hero-card--pop {
  animation: cardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cardPop {
  from { transform: scale(0.94); opacity: 0.5; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Transformation card ──────────────────────────────────────────── */
.hero-transform-card {
  display: flex;
  align-items: stretch;
  margin-top: 1.25rem;
  border: 1px solid var(--home-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--home-surface);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero-transform-card:hover {
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}
.hero-transform-col {
  flex: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Before col: dims slightly when card in active state */
.hero-transform-col--before {
  background: #fff8f8;
  border-right: 1px solid var(--home-border);
  transition: opacity 0.6s ease;
}
.hero-transform-card.is-revealing .hero-transform-col--before {
  opacity: 0.55;
}
.hero-transform-col--after {
  background: #f0fdf4;
  position: relative;
}
.hero-transform-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  display: inline-block;
  width: fit-content;
}
.hero-transform-badge--before {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.hero-transform-badge--after {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  /* badge pops in */
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.7s;
  opacity: 0;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-transform-text {
  color: var(--home-text);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
/* After text reveals word by word via clip */
.hero-transform-col--after .hero-transform-text {
  opacity: 0;
  transform: translateY(6px);
  animation: afterTextIn 0.5s ease-out both;
  animation-delay: 0.85s;
}
@keyframes afterTextIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-transform-text mark {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
  border-radius: 0.2rem;
  padding: 0 0.15rem;
  /* highlight sweeps in */
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
}
.hero-transform-card.is-revealing .hero-transform-text mark {
  background-position: 0 0;
}
/* Arrow pulses then locks */
.hero-transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  font-size: 0.95rem;
  color: var(--home-accent);
  background: rgba(37,99,235,0.07);
  flex-shrink: 0;
  width: 1.75rem;
  animation: arrowPulse 1.8s ease-in-out 0.3s 3;
}
@keyframes arrowPulse {
  0%,100% { transform: translateX(0);   opacity: 1; }
  50%      { transform: translateX(3px); opacity: 0.6; }
}

/* ── Curiosity link ───────────────────────────────────────────────── */
.hero-curiosity-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  color: var(--home-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.hero-curiosity-link:hover {
  gap: 0.55rem;
  opacity: 0.85;
}
.hero-curiosity-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.hero-curiosity-link:hover .hero-curiosity-arrow {
  transform: translateX(4px);
}

/* ── Trust list ───────────────────────────────────────────────────── */
.hero-trust-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.hero-trust-list li {
  align-items: center;
  color: var(--home-muted);
  display: flex;
  font-size: 0.875rem;
  gap: 0.4rem;
}
.hero-trust-list .fa-check {
  color: #16a34a;
  font-size: 0.8rem;
}

/* ── Staggered hero element fade-in ──────────────────────────────── */
.hero-el {
  opacity: 0;
  transform: translateY(10px);
  animation: heroElIn 0.4s ease-out both;
}
@keyframes heroElIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-el--1  { animation-delay: 0.05s; }
.hero-el--2  { animation-delay: 0.10s; }
.hero-el--3  { animation-delay: 0.15s; }
.hero-el--4  { animation-delay: 0.20s; }
.hero-el--5  { animation-delay: 0.27s; }
.hero-el--6  { animation-delay: 0.33s; }
.hero-el--7  { animation-delay: 0.38s; }
.hero-el--8  { animation-delay: 0.43s; }
.hero-el--9  { animation-delay: 0.48s; }
.hero-el--10 { animation-delay: 0.53s; }

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-result-card { width: 100%; max-width: 320px; }
  .hero-result-card__row { gap: 0.75rem; }
  .hero-trust-list { flex-direction: column; align-items: flex-start; max-width: 220px; margin-left: auto; margin-right: auto; }
  .hero-transform-card { flex-direction: column; max-width: 320px; }
  .hero-transform-col--before { border-right: none; border-bottom: 1px solid var(--home-border); }
  .hero-transform-arrow { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Hero v3 polish: emotional trigger, auto-demo, CTA pulse, tight flow
   ═══════════════════════════════════════════════════════════════════ */

/* Emotional trigger line under headline */
.hero-emotion-trigger {
  color: #ea7e2f;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.4rem 0 0;
  text-align: center;
  opacity: 0.9;
}

/* Hero-el delay for the emotional trigger (between 4 and 5) */
.hero-el--4b { animation-delay: 0.23s; }

/* Tighten the curiosity link to sit close to the transformation card */
.hero-curiosity-link {
  margin-top: 0.55rem !important;
  font-size: 0.86rem;
  text-decoration: none;
}
.hero-curiosity-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tighten gap between transformation, curiosity, and stats card */
.hero-result-card {
  margin-top: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* CTA: subtle pulse glow on the primary button — runs 3 times then stops to keep scroll smooth */
@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16); }
  50%      { box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32), 0 0 0 4px rgba(37, 99, 235, 0.08); }
}
.home-button--primary {
  animation: ctaPulseGlow 2.6s ease-in-out 3;
}
.home-button--primary:hover {
  animation: none;
}

/* Stronger glow on the final 89 score */
.score-after--lit {
  color: #16a34a;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(22, 163, 74, 0.65), 0 0 6px rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.1);
  border-radius: 0.4rem;
  padding: 0 0.35rem;
  animation: scorePulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes scorePulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Mark highlight glow inside transform after-col */
.hero-transform-text mark {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
  border-radius: 0.2rem;
  padding: 0 0.15rem;
  transition: background 0.4s ease, text-shadow 0.4s ease;
}
.hero-transform-card.is-revealing .hero-transform-text mark {
  background: rgba(22, 163, 74, 0.28);
  text-shadow: 0 0 10px rgba(22, 163, 74, 0.45);
}

/* Arrow slide-in on card reveal */
.hero-transform-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 1.3rem;
  color: var(--home-accent);
  background: var(--home-surface);
  flex-shrink: 0;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.hero-transform-card.is-revealing .hero-transform-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* CTA microcopy */
.hero-cta-microcopy {
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0.6rem 0 0;
  text-align: center;
  width: 100%;
}

/* Auto-demo "Analyzing..." pre-state overlay (lives inside stats card) */
.hero-analyze-pre {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.4rem 0.25rem;
  min-width: 240px;
  transition: opacity 0.28s ease;
}
.hero-analyze-pre.is-fading {
  opacity: 0;
}
.hero-analyze-pre__text {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-analyze-pre__text .fa-circle-notch {
  color: var(--home-accent);
}
.hero-analyze-pre__bar {
  background: var(--home-border);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
  width: 100%;
}
.hero-analyze-pre__fill {
  background: linear-gradient(90deg, var(--home-accent), #6366f1);
  border-radius: 999px;
  height: 100%;
  width: 0%;
}

/* Hide the stats row until pre-state finishes */
.hero-result-card__row--hidden {
  display: none;
}
