.page-home {
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(25px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
}

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

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 26px) 0 clamp(48px, 8vw, 88px);
}

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

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(255, 106, 26, 0.2), transparent 55%),
    radial-gradient(100% 80% at 92% 10%, rgba(43, 227, 240, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(6, 11, 26, 0.4) 0%, rgba(6, 11, 26, 0.88) 60%, var(--bg) 100%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 42%;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 26, 0.55), rgba(43, 227, 240, 0.5), transparent);
  transform: rotate(-5.5deg);
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.page-home .hero__rail h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 7.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.page-home .hero__rail h1 em {
  font-style: normal;
  color: var(--orange);
  text-shadow: 0 0 34px rgba(255, 106, 26, 0.45);
}

.page-home .hero__lede {
  max-width: 46ch;
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(233, 242, 255, 0.78);
}

.page-home .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.page-home .pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 35, 74, 0.38);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .pill:hover {
  color: var(--ice);
  border-color: rgba(43, 227, 240, 0.6);
  background: var(--cyan-soft);
}

.page-home .pill--on {
  color: var(--ice);
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 8px 24px -14px rgba(255, 106, 26, 0.9);
}

.page-home .hero__hint {
  margin: 12px 0 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- BOARD ---------- */
.page-home .board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(13, 23, 48, 0.94), rgba(22, 35, 74, 0.6));
  padding: clamp(18px, 3vw, 26px);
  position: relative;
  overflow: hidden;
}

.page-home .board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.page-home .board__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.page-home .board__refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .board__big {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(74px, 17vw, 148px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 106, 26, 0.42);
}

.page-home .board__unit {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-shadow: none;
}

.page-home .board__facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-home .board__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
}

.page-home .board__cap {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.5;
}

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

.page-home .mini__item {
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  border-left: 2px solid var(--pink);
  background: rgba(6, 11, 26, 0.6);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .mini__item:hover {
  background: rgba(255, 46, 134, 0.08);
}

.page-home .mini__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(233, 242, 255, 0.8);
}

/* ---------- QUIET BAND ---------- */
.page-home .quiet {
  padding: clamp(60px, 15vw, 168px) 0;
}

.page-home .quiet__inner {
  display: grid;
  gap: 18px;
  align-items: end;
}

.page-home .quiet__idx {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(86px, 24vw, 220px);
  line-height: 0.76;
  letter-spacing: -0.04em;
  color: rgba(233, 242, 255, 0.07);
  -webkit-text-stroke: 1px rgba(233, 242, 255, 0.24);
}

.page-home .quiet__line {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- SECTION SHELL ---------- */
.page-home .sec {
  padding: clamp(40px, 8vw, 96px) 0;
}

.page-home .sec__head {
  max-width: 760px;
}

.page-home .sec__lede {
  max-width: 62ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(233, 242, 255, 0.74);
}

.page-home .sec__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

/* ---------- EQUITY ---------- */
.page-home .equity__grid {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.page-home .equity__cards {
  display: grid;
  gap: 12px;
}

.page-home .seg {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.96), rgba(13, 23, 48, 0.72));
  padding: 18px 18px 14px;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .seg::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.28s var(--ease);
}

.page-home .seg:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.page-home .seg:hover::before {
  width: 46px;
}

.page-home .seg h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .seg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(233, 242, 255, 0.7);
}

.page-home .seg details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-home .seg summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

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

.page-home .seg summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.page-home .seg details[open] summary::after {
  content: "–";
}

.page-home .seg ul {
  margin: 10px 0 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(233, 242, 255, 0.66);
}

.page-home .equity__figure,
.page-home .shot {
  margin: 0;
}

.page-home .equity__figure img,
.page-home .shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  object-fit: cover;
}

.page-home .equity__figure figcaption,
.page-home .shot figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- TAGS / STEPS ---------- */
.page-home .steps {
  display: grid;
  gap: 10px;
  margin: 30px 0 26px;
}

.page-home .step {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(13, 23, 48, 0.62);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.page-home .step:hover {
  border-color: var(--line-strong);
  background: rgba(22, 35, 74, 0.7);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.page-home .step h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.page-home .step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(233, 242, 255, 0.7);
}

.page-home .shot {
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

/* ---------- V3 ---------- */
.page-home .v3__grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}

.page-home .v3__list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .v3__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 242, 255, 0.78);
}

.page-home .v3__list .status-dot {
  flex: 0 0 auto;
  margin-top: 7px;
}

.page-home .shot--v3 {
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: none;
}

/* ---------- DATA ROWS ---------- */
.page-home .rows {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  background: rgba(13, 23, 48, 0.66);
  padding: 4px 16px;
}

.page-home .rows .data-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .rows .data-row:last-child {
  border-bottom: 0;
}

.page-home .rows .data-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .rows .data-row__label {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(233, 242, 255, 0.82);
}

.page-home .rows .data-row__val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  white-space: nowrap;
}

/* ---------- NEXT LIST ---------- */
.page-home .next {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .next__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ice);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.page-home .next__link:hover {
  background: var(--cyan-soft);
  color: var(--cyan);
  padding-left: 12px;
}

.page-home .next__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .next__body {
  display: grid;
  gap: 5px;
}

.page-home .next__body strong {
  font-size: 16px;
  font-weight: 600;
}

.page-home .next__body span {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(233, 242, 255, 0.66);
}

.page-home .next__go {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
}

.page-home .totop {
  display: inline-flex;
  margin-top: 40px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .totop:hover {
  color: var(--cyan);
  border-color: rgba(43, 227, 240, 0.6);
}

/* ---------- BREAKPOINTS ---------- */
@media (min-width: 640px) {
  .page-home .equity__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .seg:nth-child(2) {
    margin-top: 28px;
  }

  .page-home .seg:nth-child(4) {
    margin-top: 20px;
  }

  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
  }

  .page-home .mini__item:nth-child(2) {
    margin-left: 16px;
  }

  .page-home .mini__item:nth-child(3) {
    margin-left: 32px;
  }

  .page-home .mini__item:nth-child(4) {
    margin-left: 48px;
  }

  .page-home .quiet__inner {
    grid-template-columns: auto 1fr;
    gap: 56px;
  }

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

  .page-home .v3__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .page-home .shot--v3 {
    transform: rotate(-3deg) translateY(-6px);
    border-radius: var(--radius);
  }

  .page-home .next__body {
    grid-template-columns: 180px 1fr;
    align-items: baseline;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .pill,
  .page-home .seg,
  .page-home .seg::before,
  .page-home .step,
  .page-home .mini__item,
  .page-home .next__link,
  .page-home .shot--v3,
  .page-home .totop {
    transition: none;
  }

  .page-home .seg:hover,
  .page-home .shot--v3 {
    transform: none;
  }
}
