.page-home {
  background: var(--color-night);
  color: var(--color-text);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--color-night);
  color: var(--color-text);
  overflow: hidden;
}

@supports (min-height: 100svh) {
  .page-home .home-hero {
    min-height: 100svh;
  }
}

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

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 27, 61, 0.74) 0%, rgba(11, 27, 61, 0.32) 52%, rgba(11, 27, 61, 0.62) 100%),
    linear-gradient(0deg, rgba(11, 27, 61, 0.88) 0%, transparent 52%);
}

.page-home .home-hero__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 1;
  background:
    linear-gradient(152deg, transparent 0 66%, rgba(201, 162, 39, 0.34) 66% 66.4%, transparent 66.4% 78%, rgba(42, 157, 143, 0.28) 78% 78.4%, transparent 78.4% 90%, rgba(216, 92, 42, 0.24) 90% 90.4%, transparent 90.4%);
}

.page-home .home-hero__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.page-home .frame-line--top,
.page-home .frame-line--bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 12%, var(--color-gold) 88%, transparent);
}

.page-home .frame-line--top {
  top: 12px;
}

.page-home .frame-line--bottom {
  bottom: 12px;
}

.page-home .frame-line--scale {
  display: none;
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--color-gold) 0 2px, transparent 2px 12px);
  opacity: 0.72;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 120px;
}

.page-home .home-hero__content {
  width: 100%;
}

.page-home .home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3.5rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 20px 0 22px;
  color: var(--color-text);
  border-left: 4px solid var(--color-gold);
  padding-left: 16px;
}

.page-home .home-hero__lead {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(242, 245, 247, 0.88);
  margin-bottom: 28px;
}

.page-home .home-search {
  max-width: 560px;
}

.page-home .home-search__input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(11, 27, 61, 0.78);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--duration) var(--ease-power), background var(--duration) var(--ease-power);
}

.page-home .home-search__input::placeholder {
  color: rgba(242, 245, 247, 0.62);
}

.page-home .home-search__input:focus {
  border-color: var(--color-moon);
  outline: 2px dashed var(--color-gold);
  outline-offset: 2px;
  background: rgba(11, 27, 61, 0.92);
}

.page-home .home-search__empty {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-moon);
  background: rgba(216, 92, 42, 0.12);
  border: 1px solid rgba(216, 92, 42, 0.5);
  border-radius: 2px;
}

.page-home .home-snapshot {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
}

.page-home .home-snapshot li {
  margin: 0;
  padding: 0;
}

.page-home .home-snapshot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 999px;
  background: rgba(11, 27, 61, 0.54);
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease-power), color var(--duration) var(--ease-power), background var(--duration) var(--ease-power);
}

.page-home .home-snapshot a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--color-oasis);
  transform: rotate(45deg);
}

.page-home .home-snapshot a:hover {
  color: var(--color-moon);
  border-color: rgba(227, 200, 120, 0.68);
  background: rgba(11, 27, 61, 0.84);
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__cta .btn {
  min-height: 48px;
  border-radius: 2px;
}

.page-home .home-hero__meta {
  display: none;
}

.page-home .home-quad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 32px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.page-home .home-quad__download,
.page-home .home-quad__news,
.page-home .home-quad__guide,
.page-home .home-quad__subscribe {
  min-width: 0;
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin: 8px 0 0;
  color: var(--color-text);
}

.page-home .section-head__intro {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(242, 245, 247, 0.74);
  max-width: 46ch;
}

.page-home .home-download {
  display: flex;
  flex-direction: column;
}

.page-home .download-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.page-home .download-card {
  background: linear-gradient(145deg, rgba(20, 77, 89, 0.36), rgba(11, 27, 61, 0.66));
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}

.page-home .tabs__list {
  display: flex;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.24);
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(242, 245, 247, 0.72);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  min-height: 44px;
  padding: 13px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration) var(--ease-power), border-color var(--duration) var(--ease-power);
}

.page-home .tabs__tab[aria-selected="true"] {
  color: var(--color-moon);
  border-bottom-color: var(--color-gold);
}

.page-home .tabs__tab:focus-visible {
  outline: 2px dashed var(--color-gold);
  outline-offset: -2px;
}

.page-home .tabs__panel {
  padding: 24px 20px 26px;
  flex: 1;
}

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

.page-home .download-panel__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 247, 0.78);
}

.page-home .download-version {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-gold);
  margin: 8px 0 22px;
}

.page-home .download-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .download-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(242, 245, 247, 0.86);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-home .download-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 0.55em;
  background: var(--color-oasis);
  transform: rotate(45deg);
}

.page-home .download-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .download-aside__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.page-home .download-aside__note {
  padding: 18px;
  background: rgba(11, 27, 61, 0.56);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 2px;
}

.page-home .download-aside__note p:last-child {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(242, 245, 247, 0.78);
}

.page-home .home-news {
  display: flex;
  flex-direction: column;
}

.page-home .news-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.page-home .news-item {
  position: relative;
  flex: 0 0 82%;
  scroll-snap-align: start;
  padding: 18px 18px 16px 20px;
  background: rgba(20, 77, 89, 0.22);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-left: 3px solid var(--color-gold);
  transition: border-color var(--duration) var(--ease-power), background var(--duration) var(--ease-power);
}

.page-home .news-item:hover {
  background: rgba(20, 77, 89, 0.4);
  border-color: rgba(201, 162, 39, 0.5);
}

.page-home .news-item h3 {
  margin: 12px 0 8px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 700;
}

.page-home .news-item h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.page-home .news-item h3 a:hover {
  color: var(--color-moon);
}

.page-home .news-item p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(242, 245, 247, 0.76);
}

.page-home .news-item__meta {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(242, 245, 247, 0.56);
}

.page-home .guide-card {
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid rgba(26, 29, 35, 0.16);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 24px;
  align-items: center;
  height: 100%;
}

.page-home .guide-card .eyebrow {
  color: var(--color-ember);
}

.page-home .guide-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--color-ink);
  margin: 10px 0 12px;
}

.page-home .guide-card p {
  margin-bottom: 18px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(26, 29, 35, 0.78);
}

.page-home .guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.page-home .guide-tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(42, 157, 143, 0.32);
  border-radius: 2px;
  background: rgba(42, 157, 143, 0.12);
  color: var(--color-ink);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--duration) var(--ease-power), border-color var(--duration) var(--ease-power);
}

.page-home .guide-tags .tag:hover {
  background: rgba(42, 157, 143, 0.22);
  border-color: rgba(42, 157, 143, 0.56);
}

.page-home .guide-card .btn {
  min-height: 44px;
}

.page-home .guide-card__img {
  width: 100%;
  max-height: 240px;
  min-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(26, 29, 35, 0.14);
}

.page-home .subscribe-card {
  background: linear-gradient(155deg, rgba(20, 77, 89, 0.84), rgba(11, 27, 61, 0.96));
  border: 1px solid rgba(42, 157, 143, 0.44);
  color: var(--color-text);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-home .subscribe-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-bottom: 1px solid rgba(42, 157, 143, 0.5);
}

.page-home .subscribe-card__body {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home .subscribe-card .eyebrow {
  color: var(--color-oasis);
}

.page-home .subscribe-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text);
}

.page-home .subscribe-card p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(242, 245, 247, 0.78);
}

.page-home .subscribe-card .btn {
  min-height: 44px;
  margin-top: auto;
}

.page-home .trust-section {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  background: linear-gradient(180deg, var(--color-night) 0%, rgba(20, 77, 89, 0.9) 60%, var(--color-night) 100%);
  padding: 64px 0 76px;
}

.page-home .section-head--center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-home .trust-section .section-head__intro {
  margin-left: auto;
  margin-right: auto;
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 40px 0 30px;
}

.page-home .trust-item {
  padding: 22px 14px;
  text-align: center;
  background: rgba(11, 27, 61, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.24);
}

.page-home .trust-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5.5vw, 3rem);
  line-height: 1.1;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.page-home .trust-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 247, 0.8);
}

.page-home .trust-awards {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 20px;
  border: 1px solid rgba(42, 157, 143, 0.4);
  background: rgba(42, 157, 143, 0.08);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(242, 245, 247, 0.82);
}

@media (min-width: 768px) {
  .page-home .frame-line--top,
  .page-home .frame-line--bottom {
    left: 3%;
    right: 3%;
  }

  .page-home .frame-line--top {
    top: 20px;
  }

  .page-home .frame-line--bottom {
    bottom: 20px;
  }

  .page-home .frame-line--scale {
    display: block;
    left: 3%;
    top: 20px;
    bottom: 20px;
  }

  .page-home .home-hero__inner {
    padding-top: 112px;
    padding-bottom: 150px;
  }

  .page-home .home-hero__content {
    max-width: 560px;
    margin-left: auto;
  }

  .page-home .home-hero__meta {
    position: absolute;
    right: 3%;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: rgba(242, 245, 247, 0.72);
  }

  .page-home .home-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .page-home .home-hero__meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-oasis);
    transform: rotate(45deg);
  }

  .page-home .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .page-home .download-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .page-home .guide-card {
    grid-template-columns: minmax(0, 1fr) 240px;
    padding: 28px;
  }

  .page-home .guide-card__img {
    height: 100%;
    max-height: none;
  }

  .page-home .news-strip {
    flex-grow: 1;
    align-content: start;
  }

  .page-home .news-item {
    flex: 0 0 46%;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero h1 {
    font-size: clamp(2.375rem, 4.2vw, 3.75rem);
  }

  .page-home .home-hero__content {
    max-width: 680px;
  }

  .page-home .home-quad {
    grid-template-columns: 7fr 5fr;
    gap: 28px 40px;
    padding-top: 84px;
    padding-bottom: 88px;
  }

  .page-home .section-head__intro {
    max-width: 46ch;
  }

  .page-home .news-strip {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
  }

  .page-home .news-item {
    flex: auto;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .page-home .trust-section {
    padding: 72px 0 88px;
  }
}
