.page-home {
  --home-hero-line: rgba(201, 162, 39, 0.4);
  --home-hero-soft: rgba(255, 255, 255, 0.06);
  --home-module-gap: 1.5rem;
  font-family: var(--font-body);
  background: var(--c-bg-light);
  color: var(--c-text-dark);
}

/* ===== Hero ===== */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-top: 1.5rem;
  color: var(--c-text-light);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 107, 53, 0.16), transparent 34%),
    linear-gradient(118deg, rgba(201, 162, 39, 0.1) 0%, transparent 42%),
    linear-gradient(158deg, var(--c-primary) 0%, #0F3A5F 100%);
}

.page-home .hero::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-accent) 62%, rgba(255, 107, 53, 0) 100%);
}

.page-home .hero__inner {
  padding-bottom: 2.75rem;
}

.page-home .hero__breadcrumb {
  margin-bottom: 2rem;
}

.page-home .hero__breadcrumb .breadcrumb__item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.page-home .hero__grid {
  display: grid;
  gap: 2.25rem;
}

.page-home .hero__left {
  position: relative;
}

.page-home .hero__mark {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(84px, 18vw, 200px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.page-home .hero__left > *:not(.hero__mark) {
  position: relative;
  z-index: 1;
}

.page-home .hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--c-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-gold);
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.page-home .hero__title-accent {
  display: block;
  color: var(--c-gold);
}

.page-home .hero__lead {
  max-width: 34em;
  margin: 1.4rem 0 2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.page-home .hero__actions .site-btn--primary {
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.28);
}

@media (hover: hover) {
  .page-home .hero__actions .site-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.5), 0 12px 34px rgba(255, 107, 53, 0.4);
  }
}

.page-home .hero__visual {
  margin: 0;
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-hero-line);
  box-shadow: 0 22px 48px rgba(2, 18, 33, 0.34);
}

.page-home .hero__visual-caption {
  margin-top: 0.6rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.page-home .hero__panel {
  min-width: 0;
}

.page-home .console-panel--home {
  overflow: hidden;
  border: 1px solid var(--home-hero-line);
  border-radius: var(--radius-md);
  background: var(--home-hero-soft);
  box-shadow: 0 18px 44px rgba(2, 18, 33, 0.3);
}

.page-home .console-panel--home .console-panel__header {
  background: rgba(10, 37, 64, 0.55);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.page-home .console-panel--home .console-panel__title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .console-panel--home .console-panel__status {
  padding: 0.14rem 0.6rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  white-space: nowrap;
}

.page-home .console-panel--home .console-panel__body {
  padding: 0.75rem 0.5rem 1rem;
}

.page-home .hero__index {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hero__index-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 0.5rem;
  text-decoration: none;
  color: var(--c-text-light);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: background-color var(--dur-fast), padding-left var(--dur-fast);
}

.page-home .hero__index-link:hover,
.page-home .hero__index-link:focus-visible {
  padding-left: 0.8rem;
  background: rgba(201, 162, 39, 0.1);
  outline: none;
}

.page-home .hero__index-num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--c-gold);
}

.page-home .hero__index-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hero__index-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--c-accent);
}

.page-home .hero__query {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
}

.page-home .hero__query-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text-dark);
}

.page-home .hero__query-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.72);
}

.page-home .hero__query-link {
  flex: 0 0 auto;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text-dark);
  text-decoration: none;
  border-bottom: 2px solid rgba(17, 24, 39, 0.45);
  transition: border-color var(--dur-fast);
}

.page-home .hero__query-link:hover {
  border-color: var(--c-text-dark);
}

.page-home .hero__meta {
  margin-top: 1rem;
  padding: 0.7rem 0.75rem;
  border-left: 2px solid var(--c-gold);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* ===== Shared section heading adjustments ===== */
.page-home .section-heading__eyebrow {
  margin-bottom: 0.5rem;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}

.page-home .section-heading__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  line-height: 1.22;
  color: var(--c-text-dark);
}

.page-home .section-heading__desc {
  margin: 0;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* ===== Modules ===== */
.page-home .modules {
  padding: 4.5rem 0 3.5rem;
}

.page-home .modules .section-heading,
.page-home .updates .section-heading,
.page-home .trust__intro {
  max-width: 760px;
}

.page-home .modules__grid {
  display: grid;
  gap: var(--home-module-gap);
  margin-top: 2.5rem;
}

.page-home .module-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--c-text-light);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}

.page-home .module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.page-home .module-card--export {
  border-top: 4px solid var(--c-primary);
}

.page-home .module-card--favorite {
  border-top: 4px solid var(--c-gold);
}

.page-home .module-card--feedback {
  border-top: 4px solid var(--c-teal);
}

.page-home .module-card__icon {
  display: block;
  width: 100%;
  max-width: 184px;
  flex: 0 0 auto;
  height: auto;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  border: var(--border-gold);
}

.page-home .module-card__tag {
  margin: 0 0 0.4rem;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-gold);
}

.page-home .module-card__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.4;
}

.page-home .module-card__text {
  margin: 0 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-muted);
}

.page-home .module-card__link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 1.15rem;
  padding-bottom: 0.15rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--c-gold);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.page-home .module-card__link:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.page-home .modules__tabs {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--c-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
  color: var(--c-text-light);
}

.page-home .modules__tabs .tabs__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.page-home .modules__tabs .tabs__tab {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.page-home .modules__tabs .tabs__tab:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--c-text-light);
}

.page-home .modules__tabs .tabs__tab[aria-selected="true"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-text-dark);
}

.page-home .modules__tabs .tabs__tab:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.page-home .modules__tabs .tabs__panel[hidden] {
  display: none;
}

.page-home .modules__tabs .tabs__panel:not([hidden]) {
  display: block;
  animation: pagehome-panel-in 0.3s ease;
}

.page-home .modules__tabs .tabs__panel {
  padding-top: 0.4rem;
  line-height: 1.8;
}

.page-home .modules__tabs .tabs__panel-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-gold);
}

.page-home .modules__tabs .tabs__panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .modules__tabs .tabs__panel .site-btn--outline {
  margin-top: 1.1rem;
}

@keyframes pagehome-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Updates ===== */
.page-home .updates {
  padding: 4rem 0;
  background: var(--c-text-light);
  border-top: 1px solid rgba(10, 37, 64, 0.06);
}

.page-home .updates__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .updates__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(10, 37, 64, 0.18);
  border-radius: 999px;
  background: var(--c-bg-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-primary);
}

.page-home .updates__stamp::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.page-home .updates__panel {
  margin-top: 2.25rem;
  padding: 1.6rem;
  background: var(--c-bg-light);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.page-home .updates__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(10, 37, 64, 0.16);
}

.page-home .updates__badge {
  padding: 0.3rem 0.7rem;
  background: var(--c-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-text-light);
}

.page-home .updates__summary-text {
  font-size: 14px;
  color: var(--c-text-muted);
}

.page-home .updates__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .updates__item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.page-home .updates__item:last-child {
  padding-bottom: 0.35rem;
  border-bottom: none;
}

.page-home .updates__label {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-accent);
}

.page-home .updates__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-dark);
}

.page-home .updates__all {
  display: inline-block;
  margin-top: 1.1rem;
  padding-bottom: 0.15rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--c-gold);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.page-home .updates__all:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

/* ===== Guide ===== */
.page-home .guide {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 162, 39, 0.16), transparent 40%),
    var(--c-teal);
  color: var(--c-text-light);
}

.page-home .guide::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 162, 39, 0.2) 50%);
  pointer-events: none;
}

.page-home .guide__inner {
  position: relative;
}

.page-home .guide__number {
  position: absolute;
  right: -1rem;
  bottom: -4rem;
  font-family: var(--font-heading);
  font-size: clamp(150px, 26vw, 360px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.page-home .guide__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-home .guide__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--c-gold);
}

.page-home .guide__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900;
  line-height: 1.22;
}

.page-home .guide__desc {
  margin: 0;
  max-width: 40em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .guide__list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
}

.page-home .guide__list li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .guide__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--c-gold);
  transform: rotate(45deg);
}

.page-home .guide .site-btn--outline {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

@media (hover: hover) {
  .page-home .guide .site-btn--outline:hover {
    background: rgba(201, 162, 39, 0.12);
    color: var(--c-gold);
  }
}

.page-home .guide__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.page-home .guide__link {
  padding-bottom: 0.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 2px solid var(--c-gold);
  transition: color var(--dur-fast);
}

.page-home .guide__link:hover {
  color: var(--c-gold);
}

/* ===== Trust ===== */
.page-home .trust {
  padding: 5rem 0;
}

.page-home .trust__desc {
  margin: 0;
  line-height: 1.8;
  color: var(--c-text-muted);
}

.page-home .trust__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2.75rem 0;
}

.page-home .trust__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--c-primary);
  border-top: 3px solid var(--c-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lifted);
  text-align: center;
}

.page-home .trust__stat dd {
  order: -1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-gold);
}

.page-home .trust__stat dt {
  order: 2;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .trust__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.page-home .trust__promises li {
  padding: 0.5rem 1.1rem;
  background: var(--c-text-light);
  border: var(--border-gold);
  border-radius: 999px;
  box-shadow: var(--shadow-subtle);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
}

.page-home .trust__extra {
  max-width: 760px;
  line-height: 1.8;
  color: var(--c-text-muted);
}

.page-home .trust__extra p {
  margin: 0;
}

.page-home .trust__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ===== Media Queries ===== */
@media (min-width: 640px) {
  .page-home .hero__grid {
    gap: 3rem;
  }

  .page-home .modules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .module-card--feedback {
    grid-column: 1 / -1;
  }

  .page-home .trust__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    padding-bottom: 3.25rem;
  }

  .page-home .hero__grid {
    grid-template-columns: 65fr 35fr;
    align-items: center;
  }

  .page-home .modules {
    padding: 5.5rem 0 4rem;
  }

  .page-home .modules__grid {
    grid-template-columns: 1.3fr 1fr 1.05fr;
  }

  .page-home .module-card--feedback {
    grid-column: auto;
  }

  .page-home .updates {
    padding: 5rem 0;
  }

  .page-home .guide {
    padding: 5.5rem 0;
  }

  .page-home .trust {
    padding: 6rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .modules__tabs .tabs__panel:not([hidden]) {
    animation: none;
  }
}
