/* Homepage — Course Blueprint landing */

.home-page {
  --home-ink: #0a0a0a;
  --home-hero-text: #f4f7fb;
  --home-hero-muted: #b8c5d4;
  --home-glow: #5eb3ff;
  --home-card-shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
  --home-card-shadow-hover: 0 16px 48px rgba(0, 87, 184, 0.14);
}

/* —— Hero —— */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--home-ink);
  color: var(--home-hero-text);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2.75rem, 5vw, 4rem);
  text-align: center;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: min(900px, 120vw);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(94, 179, 255, 0.28) 0%, transparent 68%);
  opacity: 0.9;
}

.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 179, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 179, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 85%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.home-hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  height: 2rem;
  width: auto;
}

.home-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-glow);
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.home-headline-accent {
  display: inline-block;
  background: linear-gradient(120deg, #7ec8ff 0%, #5eb3ff 45%, #a8d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--home-hero-muted);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.home-btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #0057b8 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 87, 184, 0.45);
}

.home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 87, 184, 0.5);
}

.home-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-hero-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.home-btn-light {
  background: #fff;
  color: var(--accent-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.home-btn-compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.home-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.home-proof li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.home-proof-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-proof-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--home-hero-muted);
}

/* —— Main layout —— */
.home-main {
  flex: 1;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem 3.5rem;
}

.home-section-head {
  margin-bottom: 1.75rem;
}

.home-section-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}

.home-section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

/* —— Continue card —— */
.home-continue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  background: linear-gradient(135deg, #e8f2fc 0%, #f0f6ff 100%);
  border: 2px solid var(--tip-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--home-card-shadow);
}

.home-continue-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-continue-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.home-continue-body {
  flex: 1;
  min-width: 12rem;
}

.home-continue-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.home-continue h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-text);
}

.home-continue-body > p:last-of-type {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-continue-progress {
  height: 4px;
  background: rgba(0, 87, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
  max-width: 16rem;
}

.home-continue-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--home-glow));
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* —— DIY value (Phases 1–3) —— */
.home-diy {
  margin-bottom: 3rem;
}

.home-diy-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f2fc 0%, #f6faff 48%, #eef6ff 100%);
  border: 2px solid var(--tip-border);
  box-shadow: var(--home-card-shadow);
}

@media (min-width: 900px) {
  .home-diy-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 2rem;
  }
}

.home-diy-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  line-height: 1.2;
}

.home-diy-lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 40rem;
}

.home-diy-stats {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.home-diy-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-diy-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: -0.02em;
}

.home-diy-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 11rem;
  line-height: 1.3;
}

.home-diy-stat-vs {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.home-diy-phases {
  display: grid;
  gap: 0.65rem;
}

.home-diy-phase {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.9rem 3rem;
  box-shadow: 0 2px 12px rgba(15, 20, 25, 0.04);
}

.home-diy-phase-num {
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-diy-phase h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-text);
}

.home-diy-phase p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* —— Path cards —— */
.home-path {
  position: relative;
  margin-bottom: 3rem;
}

.home-path-track {
  display: none;
}

.home-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--home-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}

.home-path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--home-glow));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
  border-color: rgba(0, 87, 184, 0.35);
}

.home-path-card:hover::before {
  opacity: 1;
}

.home-path-card-featured {
  border-color: rgba(0, 87, 184, 0.3);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.home-path-card-featured::before {
  opacity: 1;
}

.home-path-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.home-path-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.home-path-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-path-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-text);
}

.home-path-card p {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-path-cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

/* —— Bento grid —— */
.home-bento {
  margin-bottom: 3rem;
}

.home-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.home-bento-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--home-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.home-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-card-shadow-hover);
  border-color: rgba(0, 87, 184, 0.3);
}

.home-bento-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.home-bento-content {
  flex: 1;
  min-width: 0;
}

.home-bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-text);
}

.home-bento-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-bento-visual {
  flex-shrink: 0;
  width: min(100%, 300px);
}

.home-bento-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1.15rem 0.65rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.home-bento-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 6.5rem;
}

.home-bento-bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 7.5rem;
}

.home-bento-bar-fill {
  width: 100%;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
}

.home-bento-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--accent-text);
}

.home-bento-bar-value {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
}

.home-bento-chart-compare .home-bento-bar-fill.is-diy {
  background: linear-gradient(180deg, var(--home-glow), var(--accent));
}

.home-bento-chart-compare .home-bento-bar-fill.is-vendor {
  background: #cbd5e1;
}

.home-bento-chart-caption {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.home-tag-row {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.home-tag-row li {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--tip-border);
}

.home-bento-accent {
  background: linear-gradient(145deg, var(--accent-text) 0%, #004080 100%);
  border-color: transparent;
  color: #fff;
}

.home-bento-accent h3,
.home-bento-accent .home-path-cta {
  color: #fff;
}

.home-bento-accent p {
  color: rgba(255, 255, 255, 0.82);
}

.home-bento-accent .home-path-cta {
  opacity: 0.95;
}

/* —— CTA band —— */
.home-cta-band {
  text-align: center;
  background: linear-gradient(135deg, #003366 0%, #0057b8 55%, #0066cc 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.25);
}

.home-cta-band h2 {
  margin: 0 auto 0.65rem;
  max-width: 28rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.home-cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

/* —— Footer —— */
.home-footer {
  padding-inline: 1.25rem;
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-bento-grid {
    grid-template-columns: 1fr;
  }

  .home-bento-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .home-bento-visual {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .home-bento-bar {
    max-width: none;
  }

  .home-bento-bar-track {
    height: 8.5rem;
  }
}

@media (max-width: 520px) {
  .home-continue {
    flex-direction: column;
    align-items: stretch;
  }

  .home-continue .home-btn-compact {
    width: 100%;
  }

  .home-proof {
    gap: 1rem 1.5rem;
  }

  .home-proof-value {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-path-card:hover,
  .home-bento-card:hover,
  .home-btn-primary:hover,
  .home-btn-light:hover {
    transform: none;
  }
}

/* —— High contrast —— */
html[data-contrast="high"] .home-hero {
  background: #000;
}

html[data-contrast="high"] .home-headline-accent {
  background: none;
  -webkit-background-clip: unset;
  color: #ffff00;
}

html[data-contrast="high"] .home-path-card,
html[data-contrast="high"] .home-bento-card {
  border: 2px solid #000;
}

html[data-contrast="high"] .home-path-card:hover,
html[data-contrast="high"] .home-bento-card:hover {
  transform: none;
  box-shadow: none;
}

html[data-contrast="high"] .home-path-num {
  color: #666;
}

html[data-contrast="high"] .home-path-icon {
  background: #000;
  color: #fff;
  border-color: #000;
}

html[data-contrast="high"] .home-bento-accent {
  background: #000;
  border: 2px solid #fff;
}

html[data-contrast="high"] .home-cta-band {
  background: #000;
  border: 2px solid #fff;
}
