.page-home {
  --home-accent-line: rgba(245, 169, 75, .45);
  --home-pad: 18px;
  position: relative;
  overflow-x: clip;
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home a:focus-visible,
.page-home summary:focus-visible,
.page-home [tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: 24px 0 42px;
  isolation: isolate;
}

.page-home .home-hero__glow {
  position: absolute;
  inset: -90px -30px auto -30px;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(47, 227, 214, .18) 0%, rgba(47, 227, 214, 0) 44%),
    linear-gradient(295deg, rgba(245, 169, 75, .2) 0%, rgba(245, 169, 75, 0) 48%),
    radial-gradient(120% 84% at 78% 0%, rgba(122, 110, 150, .26), transparent 62%);
}

.page-home .home-hero__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 10.6vw, 92px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--white);
}

.page-home .home-hero__lede {
  margin: 18px 0 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .home-hero__actions .btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}

.page-home .home-hero__hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--violet);
  border-left: 2px solid var(--line-strong);
  padding-left: 10px;
}

.page-home .home-hero__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .home-hero__figure img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.page-home .home-hero__period {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .home-hero__ring {
  position: absolute;
  left: -26px;
  bottom: -34px;
  width: 148px;
  height: 148px;
  z-index: 0;
  opacity: .8;
  pointer-events: none;
}

/* ---------- Entry cards ---------- */
.page-home .home-entries {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 41, 74, .94), rgba(13, 30, 56, .94));
  box-shadow: var(--shadow-card);
  transition: border-color .22s ease-out, transform .22s ease-out;
}

.page-home .home-entry--cyan {
  box-shadow: inset 3px 0 0 var(--cyan), var(--shadow-card);
}

.page-home .home-entry--amber {
  box-shadow: inset 3px 0 0 var(--amber), var(--shadow-card);
}

.page-home .home-entry__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--violet);
}

.page-home .home-entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .home-entry__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-entry__link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 214, .4);
  padding-bottom: 2px;
}

.page-home .home-entry--amber .home-entry__link {
  color: var(--amber);
  border-bottom-color: rgba(245, 169, 75, .45);
}

/* ---------- Activity band ---------- */
.page-home .home-band {
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 41, 74, .62), rgba(7, 19, 37, 0) 78%);
}

.page-home .home-band__head {
  display: grid;
  gap: 18px;
}

.page-home .home-band__title,
.page-home .home-mobile__title,
.page-home .home-rules__title,
.page-home .home-numbers__title,
.page-home .home-service__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .home-band__desc,
.page-home .home-mobile__lede,
.page-home .home-rules__desc,
.page-home .home-numbers__desc,
.page-home .home-service__lede {
  margin: 12px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-band__figure {
  margin: 0;
  border: 1px solid var(--home-accent-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-1);
}

.page-home .home-band__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .home-band__figure .media-frame__caption {
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-home .home-band__rail {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dark) transparent;
}

.page-home .home-band__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-band__rail::-webkit-scrollbar-thumb {
  background: var(--cyan-dark);
  border-radius: 99px;
}

.page-home .act-card {
  flex: 0 0 auto;
  width: min(78vw, 292px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 16px;
  border: 1px solid var(--home-accent-line);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .22s ease-out;
}

.page-home .act-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}

.page-home .act-card__tag {
  margin: 14px 16px 0;
  align-self: flex-start;
}

.page-home .act-card__title {
  margin: 0;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.page-home .act-card__meta {
  margin: 0;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .act-card__pre {
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--amber-pale);
  background: rgba(245, 169, 75, .08);
  border-top: 1px solid rgba(245, 169, 75, .22);
  border-bottom: 1px solid rgba(245, 169, 75, .22);
}

.page-home .act-card__link {
  margin: 0 16px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 169, 75, .45);
  padding-bottom: 2px;
}

.page-home .home-band__dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.page-home .home-band__dot {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: rgba(157, 178, 203, .3);
}

.page-home .home-band__dot.is-on {
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}

.page-home .home-band__foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-band__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 214, .4);
}

/* ---------- Mobile preview ---------- */
.page-home .home-mobile {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.page-home .home-mobile__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-mobile__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-home .phone {
  width: min(100%, 240px);
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(170deg, #13294A, #0a1729);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}

.page-home .phone__bar {
  display: flex;
  gap: 4px;
  padding: 2px 6px 8px;
}

.page-home .phone__bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(157, 178, 203, .35);
}

.page-home .phone__screen {
  padding: 12px 10px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink);
  overflow: hidden;
}

.page-home .phone__row {
  height: 8px;
  width: 72%;
  margin-bottom: 8px;
  border-radius: 99px;
  background: rgba(157, 178, 203, .18);
}

.page-home .phone__row--wide {
  width: 92%;
  height: 12px;
  background: rgba(47, 227, 214, .26);
}

.page-home .phone__row--short {
  width: 48%;
}

.page-home .phone__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 16px;
  padding: 10px 4px 8px;
  border-top: 1px solid var(--line);
}

.page-home .phone__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .phone__icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(157, 178, 203, .5);
}

.page-home .phone__tab--on {
  color: var(--cyan);
  font-weight: 700;
}

.page-home .phone__tab--on .phone__icon {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 214, .18);
}

.page-home .home-mobile__figure {
  margin: 0;
  width: min(100%, 300px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-mobile__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-home .home-mobile__steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: none;
}

.page-home .step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan-dark);
  border-radius: var(--radius-sm);
  background: rgba(13, 30, 56, .8);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.5;
}

.page-home .step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .step__text strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 2px;
}

.page-home .home-mobile__tail {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-mobile__tail a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 214, .4);
}

/* ---------- Wide image band ---------- */
.page-home .home-wide {
  margin: 0;
  padding: 8px 0 34px;
}

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

.page-home .home-wide__inner img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(.9) brightness(.86);
}

.page-home .home-wide__cap {
  margin-top: 12px;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  border-left: 2px solid var(--home-accent-line);
  padding-left: 12px;
}

/* ---------- Rules ---------- */
.page-home .home-rules {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.page-home .home-rules__list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.page-home .rule-line {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color .26s ease-out, background-color .26s ease-out;
}

.page-home .rule-line[open] {
  border-color: var(--cyan-dark);
  background: var(--surface-2);
}

.page-home .rule-line__sum {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page-home .rule-line__sum::-webkit-details-marker {
  display: none;
}

.page-home .rule-line__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber);
  padding-top: 4px;
}

.page-home .rule-line__text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--white);
}

.page-home .rule-line__body {
  padding: 0 16px 16px 60px;
}

.page-home .rule-line__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Numbers ---------- */
.page-home .home-numbers {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(47, 227, 214, .08), transparent 60%),
    linear-gradient(180deg, rgba(19, 41, 74, .5), rgba(7, 19, 37, 0));
}

.page-home .home-stats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 30, 56, .86);
  box-shadow: var(--shadow-card);
}

.page-home .stat--cyan {
  border-top: 2px solid var(--cyan-dark);
}

.page-home .stat--amber {
  border-top: 2px solid var(--amber);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--white);
}

.page-home .stat--amber .stat__num {
  color: var(--amber);
}

.page-home .stat--cyan .stat__num {
  color: var(--cyan);
}

.page-home .stat__unit {
  font-size: .5em;
  margin-left: 2px;
  letter-spacing: 0;
}

.page-home .stat__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

.page-home .stat__note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Service ---------- */
.page-home .home-service {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.page-home .home-service__grid {
  display: grid;
  gap: 24px;
}

.page-home .home-service__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-service__item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
}

.page-home .home-service__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}

.page-home .home-service__v {
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.page-home .home-service__side {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 41, 74, .9), rgba(13, 30, 56, .9));
}

.page-home .home-service__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-service__links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .service-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(7, 19, 37, .5);
  transition: border-color .22s ease-out, background-color .22s ease-out;
}

.page-home .service-link span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.page-home .home-service__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Hover (pointer devices) ---------- */
@media (hover: hover) and (pointer: fine) {
  .page-home .home-entry:hover {
    border-color: var(--cyan-dark);
    transform: translateY(-2px);
  }

  .page-home .act-card:hover {
    border-color: var(--amber);
  }

  .page-home .service-link:hover {
    border-color: var(--cyan);
    background: rgba(47, 227, 214, .08);
  }
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 36px 0 52px;
  }

  .page-home .home-hero__aside {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 14px;
  }

  .page-home .home-hero__period {
    writing-mode: vertical-rl;
    letter-spacing: .24em;
    padding-top: 6px;
  }

  .page-home .home-hero__ring {
    left: -40px;
    bottom: -44px;
    width: 190px;
    height: 190px;
  }

  .page-home .home-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .page-home .home-entry:nth-child(2) {
    transform: translateY(-16px);
  }

  .page-home .home-entry:nth-child(3) {
    transform: translateY(10px);
  }

  .page-home .home-band__head {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 36px;
  }

  .page-home .home-mobile__preview {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
  }

  .page-home .phone {
    width: 190px;
  }

  .page-home .home-mobile__figure {
    width: 220px;
  }

  .page-home .home-wide__inner img {
    aspect-ratio: 21 / 9;
  }

  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .stat:nth-child(2) {
    transform: translateY(-14px);
  }

  .page-home .stat:nth-child(4) {
    transform: translateY(12px);
  }

  .page-home .home-service__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    align-items: start;
    gap: 44px;
  }

  .page-home .home-hero__actions .btn {
    flex: 0 0 auto;
  }

  .page-home .home-band__rail {
    gap: 16px;
  }

  .page-home .act-card {
    width: 300px;
  }

  .page-home .rule-line__text {
    font-size: 16px;
  }

  .page-home .home-band,
  .page-home .home-mobile,
  .page-home .home-rules,
  .page-home .home-numbers {
    padding-top: 46px;
    padding-bottom: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .act-card,
  .page-home .rule-line,
  .page-home .service-link {
    transition: none;
  }

  .page-home .home-band__rail {
    scroll-behavior: auto;
  }
}
