.page-home {
  --home-bg: var(--deep-blue);
  --home-gold-soft: var(--gold-soft);
  background: var(--white);
  color: var(--graphite);
  overflow-x: hidden;
}

.page-home .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-home .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-home .btn-primary {
  background: var(--gold);
  color: var(--deep-blue);
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.page-home .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-home .btn-secondary:hover,
.page-home .btn-secondary:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-home .eyebrow {
  display: block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-home .section-head {
  text-align: left;
  max-width: 680px;
  margin-bottom: 32px;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--deep-blue);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-home .section-head .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

.page-home img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .breadcrumb {
  margin-bottom: 24px;
}

.page-home .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.page-home .breadcrumb-link:hover,
.page-home .breadcrumb-link:focus {
  color: var(--gold-soft);
}

.page-home .breadcrumb-current {
  color: var(--gold-soft);
  font-weight: 500;
}

/* ========== Hero ========== */
.page-home-hero {
  background: var(--deep-blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
}

.page-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.14) 0%, transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.page-home-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  color: var(--gold-soft);
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero-copy .lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  max-width: 56ch;
}

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

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  display: block;
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11, 27, 61, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  gap: 4px;
}

.hero-badge-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-badge-value {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}

/* ========== Metrics ========== */
.page-home-metrics {
  background: var(--deep-blue-2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 32px 0;
}

.page-home-metrics .stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: left;
}

.page-home-metrics .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 8px;
}

.page-home-metrics .stat-value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.page-home-metrics .stat-delta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Compare ========== */
.page-home-compare {
  background: var(--mist);
  padding: 64px 0;
}

.compare-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.compare-card {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  border-top: 4px solid var(--gray);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.compare-new {
  border-top-color: var(--gold);
}

.compare-sketch {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.sketch-old {
  background: rgba(107, 114, 128, 0.08);
}

.sketch-old span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.4);
}

.sketch-old span:nth-child(1) { width: 100%; }
.sketch-old span:nth-child(2) { width: 80%; }
.sketch-old span:nth-child(3) { width: 65%; }
.sketch-old span:nth-child(4) { width: 90%; }

.sketch-new {
  background: rgba(212, 175, 55, 0.1);
  grid-template-columns: 1fr 1fr;
}

.sketch-new .sketch-hero {
  grid-column: 1 / -1;
  height: 28px;
  background: var(--deep-blue);
  border-radius: 4px;
}

.sketch-new .sketch-col {
  height: 36px;
  background: var(--gold);
  border-radius: 4px;
}

.compare-version {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(107, 114, 128, 0.12);
  color: var(--gray);
  margin-bottom: 12px;
}

.compare-new .compare-version {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange-deep);
}

.compare-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--graphite);
  margin: 0 0 8px;
}

.compare-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

.compare-footer {
  background: var(--deep-blue);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.compare-footer p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ========== Score ========== */
.page-home-score {
  background: var(--white);
  padding: 64px 0;
}

.score-layout {
  display: grid;
  gap: 32px;
}

.score-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.score-copy h2,
.category-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--deep-blue);
  margin: 0 0 12px;
  line-height: 1.25;
}

.score-live-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 8px;
  vertical-align: middle;
}

.score-copy .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0 0 24px;
}

.score-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.score-features li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite);
}

.score-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
}

/* ========== Category ========== */
.page-home-category {
  background: var(--mist);
  padding: 64px 0;
}

.category-layout {
  display: grid;
  gap: 32px;
}

.category-copy .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0 0 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(11, 27, 61, 0.08);
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 500;
}

.page-home .tag:hover {
  background: rgba(11, 27, 61, 0.14);
}

.category-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 20px;
}

.page-home-category .btn-secondary {
  background: rgba(11, 27, 61, 0.08);
  color: var(--deep-blue);
  border: 1px solid rgba(11, 27, 61, 0.25);
}

.page-home-category .btn-secondary:hover,
.page-home-category .btn-secondary:focus {
  background: rgba(11, 27, 61, 0.14);
  transform: translateY(-2px);
}

.category-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== Help ========== */
.page-home-help {
  background: var(--deep-blue);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-home-help::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: radial-gradient(circle at 100% 12%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-home-help .container {
  position: relative;
  z-index: 1;
}

.page-home-help .section-head .lead {
  color: rgba(255, 255, 255, 0.7);
}

.page-home-help .section-head h2 {
  color: var(--white);
}

.page-home-help .eyebrow {
  color: var(--gold-soft);
}

.help-layout {
  display: grid;
  gap: 32px;
}

.help-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.help-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.help-links {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.page-home .help-links .index-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-home .help-links .index-item:hover,
.page-home .help-links .index-item:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.page-home .index-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  min-width: 32px;
}

.page-home .index-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ========== Desktop ========== */
@media (min-width: 768px) {
  .page-home .container {
    padding: 0 32px;
  }

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

  .hero-inner {
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 5vw, 64px);
  }

  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
  }

  .compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .compare-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .score-layout {
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 48px;
  }

  .category-layout {
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 48px;
  }

  .help-layout {
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 48px;
  }
}
