.page-home {
  --card-tint: rgba(247, 243, 235, 0.05);
  --card-border: rgba(247, 243, 235, 0.12);
  --float-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.page-home .home-hero {
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(215, 177, 106, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(215, 177, 106, 0.055) 25%, transparent 25%);
  background-size: 48px 48px;
  background-position: 0 0, 24px 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 177, 106, 0.45);
  background: rgba(215, 177, 106, 0.08);
  color: var(--color-banner);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .home-hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-flame);
}

.page-home .home-hero h1 {
  margin: 1rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-snow);
}

.page-home .home-hero__lead {
  max-width: 34em;
  color: rgba(247, 243, 235, 0.8);
  font-size: 1rem;
  line-height: 1.75;
}

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

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-rock);
}

.page-home .home-hero__meta li {
  position: relative;
  padding-left: 1rem;
}

.page-home .home-hero__meta li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.6rem;
  color: var(--color-banner);
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--float-shadow);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 26, 42, 0.88), rgba(11, 26, 42, 0.2));
}

.page-home .home-hero__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
}

.page-home .home-hero__svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(11, 26, 42, 0.6));
}

.page-home .home-hero__sync {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 26, 42, 0.75);
  border: 1px solid rgba(47, 158, 99, 0.45);
  color: var(--color-snow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.page-home .home-hero__sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-grass);
  animation: page-home-pulse 1.8s ease-in-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.7);
  }
}

.page-home .home-hero__float-card {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25rem 1.1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 26, 42, 0.82);
  border: 1px solid rgba(247, 243, 235, 0.14);
  backdrop-filter: blur(6px);
  box-shadow: var(--float-shadow);
}

.page-home .home-stats {
  padding: 3.5rem 0;
}

.page-home .home-stats__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-home .home-stats__copy h2,
.page-home .home-legacy__content h2,
.page-home .home-screen__content h2,
.page-home .home-history__text h2,
.page-home .home-contact__card h2 {
  margin: 0.4rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  color: var(--color-snow);
}

.page-home .home-stats__copy .lead {
  color: rgba(247, 243, 235, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.page-home .home-stats__export {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--card-tint);
  border: 1px solid var(--card-border);
  color: rgba(247, 243, 235, 0.75);
  font-size: 0.9rem;
}

.page-home .home-stats__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-stats__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-home .home-stats__cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-home .home-stat-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card-tint);
  border: 1px solid var(--card-border);
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease);
}

.page-home .home-stat-card:hover,
.page-home .home-stat-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--color-flame);
  background: rgba(232, 97, 42, 0.06);
}

.page-home .home-stat-card__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-flame);
}

.page-home .home-stat-card__num span {
  margin-left: 0.25rem;
  font-size: 1rem;
  color: var(--color-rock);
}

.page-home .home-stat-card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-snow);
  font-size: 1.1rem;
  font-weight: 600;
}

.page-home .home-stat-card p {
  margin: 0;
  color: rgba(247, 243, 235, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .home-stat-card__delta {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-banner);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--ease), transform var(--ease);
}

.page-home .home-stat-card:hover .home-stat-card__delta,
.page-home .home-stat-card:focus-within .home-stat-card__delta {
  opacity: 1;
  transform: translateY(0);
}

.page-home .home-legacy {
  padding: 3.5rem 0;
  background: linear-gradient(160deg, rgba(79, 111, 82, 0.22), rgba(79, 111, 82, 0.05)), var(--color-night);
  border-top: 1px solid rgba(79, 111, 82, 0.8);
  border-bottom: 1px solid rgba(79, 111, 82, 0.3);
}

.page-home .home-legacy__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .home-legacy__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 240px;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(11, 26, 42, 0.35);
  border: 1px dashed rgba(215, 177, 106, 0.35);
}

.page-home .home-legacy__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-banner);
}

.page-home .home-legacy__visual p {
  color: rgba(247, 243, 235, 0.7);
  font-size: 0.82rem;
  text-align: center;
}

.page-home .home-legacy__content > p:not(.section-title) {
  color: rgba(247, 243, 235, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-legacy__list {
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  background: rgba(11, 26, 42, 0.3);
  border: 1px solid rgba(247, 243, 235, 0.12);
  transition: border-color var(--ease);
}

.page-home .home-legacy__list[open] {
  border-color: rgba(215, 177, 106, 0.45);
}

.page-home .home-legacy__list summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-snow);
  list-style: none;
}

.page-home .home-legacy__list summary::-webkit-details-marker {
  display: none;
}

.page-home .home-legacy__list summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--color-banner);
  color: var(--color-night);
  font-weight: 700;
  font-size: 0.9rem;
  flex: none;
}

.page-home .home-legacy__list[open] summary::before {
  content: "−";
}

.page-home .home-legacy__list ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  list-style: none;
}

.page-home .home-legacy__list li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(247, 243, 235, 0.8);
  font-size: 0.9rem;
}

.page-home .home-legacy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.55em;
  transform: rotate(45deg);
  background: var(--color-banner);
  border-radius: 2px;
}

.page-home .home-screen {
  padding: 3.5rem 0;
}

.page-home .home-screen__banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-screen__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.page-home .home-screen__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 26, 42, 0.92), rgba(11, 26, 42, 0.35) 70%, rgba(11, 26, 42, 0.1));
}

.page-home .home-screen__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
}

.page-home .home-screen__content > p:not(.section-title) {
  color: rgba(247, 243, 235, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-screen__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-screen__points li {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(247, 243, 235, 0.1);
  border: 1px solid rgba(247, 243, 235, 0.14);
  color: var(--color-snow);
  font-size: 0.82rem;
}

.page-home .home-history {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, rgba(79, 111, 82, 0.2), rgba(11, 26, 42, 0.4));
  border-top: 1px solid rgba(247, 243, 235, 0.06);
  border-bottom: 1px solid rgba(247, 243, 235, 0.06);
}

.page-home .home-history__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .home-history__text > p:not(.section-title) {
  color: rgba(247, 243, 235, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-history__timeline {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(11, 26, 42, 0.4);
  border: 1px solid rgba(215, 177, 106, 0.18);
}

.page-home .home-history__timeline ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-history__timeline li {
  position: relative;
  padding-left: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(247, 243, 235, 0.85);
}

.page-home .home-history__timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.8em;
  height: 0.8em;
  background: var(--color-banner);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .home-contact {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.page-home .home-contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-home .home-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 26, 42, 0.9), rgba(11, 26, 42, 0.5));
}

.page-home .home-contact__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-contact__card {
  max-width: 580px;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(11, 26, 42, 0.86);
  border: 1px solid rgba(215, 177, 106, 0.35);
  box-shadow: var(--float-shadow);
}

.page-home .home-contact__card > p:not(.section-title):not(.home-contact__note) {
  color: rgba(247, 243, 235, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-contact__list {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

.page-home .home-contact__list li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(247, 243, 235, 0.85);
  font-size: 0.95rem;
}

.page-home .home-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--color-flame);
}

.page-home .home-contact__note {
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-rock);
  font-size: 0.8rem;
  color: var(--color-rock);
}

@media (min-width: 768px) {
  .page-home .home-hero__visual {
    min-height: 420px;
  }

  .page-home .home-stats__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .page-home .home-stat-card:nth-child(2) {
    margin-top: 2rem;
  }

  .page-home .home-screen__banner {
    min-height: 480px;
  }

  .page-home .home-history__timeline ol {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 6rem 0 5rem;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

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

  .page-home .home-stats__layout {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }

  .page-home .home-stats__cards {
    margin-top: 3rem;
  }

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

  .page-home .home-legacy__grid {
    grid-template-columns: 4fr 6fr;
    gap: 3rem;
  }

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

  .page-home .home-screen__content {
    padding: 3rem;
  }

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

  .page-home .home-history__inner {
    grid-template-columns: 6fr 5fr;
    gap: 3rem;
  }

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

  .page-home .home-contact__card {
    padding: 2.5rem 3rem;
  }
}
