.page-home {
  --pad: 20px;
  --home-gap: 20px;
  color: var(--white);
  background: var(--ink);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  letter-spacing: -.01em;
}

.page-home .lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.page-home .figcap {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.page-home .btn--primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--white);
}

.page-home .btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding-top: 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(139, 92, 246, .20), transparent 62%),
    linear-gradient(180deg, var(--ink), #08182a 72%);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(29, 59, 85, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 59, 85, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.page-home .hero__ctx {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .hero__ver {
  padding: 3px 9px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .12em;
}

.page-home .hero__dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(98, 217, 138, .18);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.35rem, 11vw, 5.4rem);
  line-height: .96;
  text-wrap: balance;
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--cyan);
  background-image: linear-gradient(180deg, transparent 74%, rgba(46, 242, 200, .22) 74%);
}

.page-home .hero__deck {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .hero__visual::before,
.page-home .hero__visual::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}

.page-home .hero__visual::before {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.page-home .hero__visual::after {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.page-home .hero__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--orange);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.page-home .ticker {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(11, 30, 51, .8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .ticker__track {
  display: flex;
  min-width: max-content;
}

.page-home .ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .ticker__item b {
  color: var(--cyan);
  font-weight: 600;
}

/* ---------- section shell ---------- */
.page-home .section {
  padding: 56px 0;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-home .section-index {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
}

.page-home .section-title {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 5.2vw, 2.35rem);
  line-height: 1.15;
}

.page-home .section-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}

.page-home .section-more:hover,
.page-home .section-more:focus-visible {
  border-bottom-color: var(--cyan);
}

/* ---------- compare ---------- */
.page-home .compare-sec {
  background: linear-gradient(180deg, #071624, var(--ink));
}

.page-home .compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.page-home .cmp__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 62px;
  grid-template-areas:
    "label track value"
    "delta delta delta";
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .cmp__row:hover,
.page-home .cmp__row:focus-within {
  border-color: var(--cyan);
  background: #0d2438;
}

.page-home .cmp__label {
  grid-area: label;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--white);
}

.page-home .cmp__track {
  grid-area: track;
  height: 10px;
  border: 1px solid var(--line);
  background: #12293f;
  overflow: hidden;
}

.page-home .cmp__fill {
  display: block;
  height: 100%;
}

.page-home .cmp__fill--v4 {
  width: 46%;
  background: linear-gradient(90deg, var(--cyan), #17c9a6);
}

.page-home .cmp__fill--v3 {
  width: 100%;
  background: repeating-linear-gradient(135deg, #24405c 0 6px, #1a3149 6px 12px);
}

.page-home .cmp__fill--path {
  width: 63%;
  background: linear-gradient(90deg, var(--orange), #ff7f2a);
}

.page-home .cmp__value {
  grid-area: value;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.page-home .cmp__delta {
  grid-area: delta;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  transition: color .18s var(--ease);
}

.page-home .cmp__row:hover .cmp__delta {
  color: var(--orange);
}

.page-home .compare__note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--purple);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .compare__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .compare__figure img,
.page-home .ledger__figure img,
.page-home .cases__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- ledger ---------- */
.page-home .ledger {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #0B1E33, #071523 65%);
}

.page-home .ledger__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.page-home .stat {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.page-home .stat:last-child {
  border-right: 0;
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange);
}

.page-home .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .ledger__body {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .ledger__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.page-home .tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .tag--orange {
  border-color: var(--orange);
  color: var(--orange);
}

.page-home .tag--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .ledger__figure {
  margin: 0;
  border-top: 1px solid var(--line);
}

/* ---------- mobile pre-run ---------- */
.page-home .mobile-sec {
  background: linear-gradient(180deg, var(--ink), #071624);
}

.page-home .mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .mobile__lead .section-index {
  display: block;
  margin-bottom: 10px;
}

.page-home .mobile__lead .section-title {
  margin-bottom: 16px;
}

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

.page-home .steps__item {
  position: relative;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--panel);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .steps__item:hover {
  border-color: var(--cyan);
  transform: translateX(3px);
}

.page-home .steps__num {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .steps__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

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

/* ---------- cases ---------- */
.page-home .cases__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.page-home .cases__meta {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--orange);
}

.page-home .cases__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .cases__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .case {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: #09192a;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .case:hover {
  border-color: var(--orange);
  background: #0d2033;
}

.page-home .case__title {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

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

.page-home .case__fmt {
  display: inline-block;
  padding: 3px 8px;
  background: var(--paper);
  color: #2b2213;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* ---------- index ---------- */
.page-home .index-sec {
  background:
    linear-gradient(180deg, #071624, var(--ink)),
    var(--ink);
  padding-bottom: 72px;
}

.page-home .idx {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .idx__item {
  border-bottom: 1px solid var(--line);
}

.page-home .idx__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 16px 4px;
  color: var(--white);
  text-decoration: none;
  transition: background-color .18s var(--ease), padding-left .18s var(--ease);
}

.page-home .idx__link:hover,
.page-home .idx__link:focus-visible {
  background: rgba(46, 242, 200, .07);
  padding-left: 14px;
}

.page-home .idx__num {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.page-home .idx__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.page-home .idx__note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .idx__arrow {
  font-size: 18px;
  color: var(--line);
  transition: color .18s var(--ease);
}

.page-home .idx__link:hover .idx__arrow {
  color: var(--cyan);
}

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .page-home {
    --pad: 32px;
  }

  .page-home .section {
    padding: 80px 0;
  }

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

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

  .page-home .cmp__row {
    grid-template-columns: 60px minmax(0, 1fr) 78px;
    grid-template-areas: "label track value" "label delta delta";
    gap: 6px 16px;
  }

  .page-home .cmp__value {
    font-size: 17px;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding-top: 56px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
    padding-bottom: 52px;
  }

  .page-home .hero__visual {
    align-self: end;
  }

  .page-home .mobile {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .ledger {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "stats figure"
      "body figure";
  }

  .page-home .ledger__stats {
    grid-area: stats;
    border-right: 1px solid var(--line);
  }

  .page-home .ledger__body {
    grid-area: body;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 26px 24px;
  }

  .page-home .ledger__figure {
    grid-area: figure;
    border-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .page-home .compare {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .compare__figure {
    position: sticky;
    top: 24px;
  }

  .page-home .cases__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
  }

  .page-home .section {
    padding: 96px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .steps__item:hover {
    transform: none;
  }

  .page-home .idx__link:hover {
    padding-left: 4px;
  }

  .page-home .btn,
  .page-home .cmp__row,
  .page-home .case,
  .page-home .idx__link,
  .page-home .idx__arrow {
    transition: none;
  }
}
