.page-home {
  --ph-line-soft: rgba(30, 42, 66, .55);
  --ph-panel: rgba(16, 27, 46, .72);
  --ph-signal-soft: rgba(185, 242, 74, .1);
  --ph-aqua-soft: rgba(53, 224, 198, .1);
  --ph-orange-soft: rgba(255, 122, 47, .1);
  --ph-violet-soft: rgba(108, 124, 255, .1);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(125% 85% at 82% -10%, rgba(53, 224, 198, .08), transparent 58%),
    radial-gradient(90% 70% at 8% 18%, rgba(108, 124, 255, .07), transparent 62%),
    var(--ink-900);
  color: var(--text);
  overflow-x: clip;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--ph-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ph-line-soft) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(130% 62% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(130% 62% at 50% 0%, #000 0%, transparent 78%);
  opacity: .55;
}

.page-home .home-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.page-home .section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 10px 0 14px;
}

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

.page-home .lead {
  color: var(--text);
  font-size: clamp(16px, 2.1vw, 18px);
  line-height: 1.8;
  max-width: 46ch;
  margin: 18px 0 0;
}

.page-home .eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0;
}

/* ---------- hero ---------- */

.page-home .home-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px) clamp(52px, 9vw, 104px);
  border-bottom: 1px solid var(--line);
}

.page-home .hero-split {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.page-home .hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 16px 0 0;
}

.page-home .hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .hero-points li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 27, 46, .68);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .hero-points .mono {
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 700;
  color: var(--signal);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero-board {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(155deg, #0d1a2e 0%, #05070e 72%);
  isolation: isolate;
}

.page-home .hero-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(232, 238, 249, .028) 0 1px, transparent 1px 3px),
    radial-gradient(80% 55% at 50% 100%, rgba(5, 7, 14, .92), transparent 70%);
}

.page-home .hero-board img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(.72) contrast(1.08);
}

.page-home .board-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
}

.page-home .board-lines path {
  fill: none;
  stroke: rgba(53, 224, 198, .32);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.page-home .board-node circle {
  fill: rgba(16, 27, 46, .86);
  stroke: rgba(185, 242, 74, .5);
  stroke-width: 1;
}

.page-home .board-node:first-of-type circle {
  fill: var(--signal);
  stroke: var(--signal);
}

.page-home .board-idx {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  fill: var(--aqua);
  text-anchor: middle;
}

.page-home .board-name {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--muted);
  text-anchor: middle;
  letter-spacing: .08em;
}

.page-home .board-node:first-of-type .board-idx { fill: var(--on-signal); }
.page-home .board-node:first-of-type .board-name { fill: rgba(8, 19, 26, .72); }

.page-home .board-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 14, .72);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .board-hint span { color: var(--signal); }

/* ---------- leagues ---------- */

.page-home .home-leagues {
  padding-block: clamp(56px, 9vw, 112px);
}

.page-home .league-layout {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
}

.page-home .league-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--ph-panel);
  backdrop-filter: blur(10px);
  padding: 18px 20px 24px;
}

.page-home .league-side img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  filter: saturate(.6) contrast(1.05);
}

.page-home .league-side h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 18px 0 8px;
  color: var(--text);
}

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

.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .board-tab {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 27, 46, .6);
  color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.page-home .board-tab:hover {
  color: var(--text);
  border-color: rgba(53, 224, 198, .46);
}

.page-home .board-tab.is-active,
.page-home .board-tab[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
  font-weight: 700;
}

.page-home .board-tab:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.page-home .league-panels {
  min-height: 220px;
}

.page-home .league-panel {
  display: none;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    linear-gradient(160deg, rgba(53, 224, 198, .07), transparent 52%),
    var(--ph-panel);
  backdrop-filter: blur(10px);
}

.page-home .league-panel.is-active {
  display: block;
  animation: home-fade .22s var(--ease) both;
}

@keyframes home-fade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.page-home .league-panel h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
}

.page-home .league-idx {
  font-size: 13px;
  color: var(--aqua);
  letter-spacing: .1em;
}

.page-home .league-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 56ch;
}

.page-home .league-split {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.page-home .league-split li {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--aqua);
  border: 1px dashed rgba(53, 224, 198, .38);
  border-radius: var(--radius-s);
  padding: 5px 11px;
}

/* ---------- update axis ---------- */

.page-home .home-updates {
  padding-block: clamp(48px, 8vw, 96px);
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 32, .86), rgba(5, 7, 14, .96));
}

.page-home .axis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  position: relative;
}

.page-home .axis-node {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  position: relative;
}

.page-home .axis-idx {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 27, 46, .9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.page-home .axis-node.is-in .axis-idx {
  color: var(--on-signal);
  background: var(--signal);
  border-color: var(--signal);
}

.page-home .axis-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--ph-panel);
  backdrop-filter: blur(8px);
  padding: 18px 20px;
}

.page-home .axis-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.page-home .axis-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-home .tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.page-home .tag--signal { background: var(--ph-signal-soft); color: var(--signal); border-color: rgba(185, 242, 74, .36); }
.page-home .tag--aqua   { background: var(--ph-aqua-soft);   color: var(--aqua);   border-color: rgba(53, 224, 198, .34); }
.page-home .tag--orange { background: var(--ph-orange-soft); color: var(--orange); border-color: rgba(255, 122, 47, .36); }
.page-home .tag--violet { background: var(--ph-violet-soft); color: var(--violet); border-color: rgba(108, 124, 255, .36); }

/* ---------- preview ---------- */

.page-home .home-preview {
  padding-block: clamp(56px, 9vw, 112px);
}

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

.page-home .preview-card {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--ph-panel);
  backdrop-filter: blur(10px);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-home .preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 224, 198, .44);
}

.page-home .preview-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}

.page-home .preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-home .preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .preview-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .preview-metrics dt {
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
  margin: 0;
}

.page-home .preview-metrics dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.page-home .preview-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.page-home .preview-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.page-home .preview-list .mono {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--aqua);
}

.page-home .preview-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
}

.page-home .preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(.7) contrast(1.06);
}

.page-home .preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 14, .9));
}

.page-home .media-note {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--signal);
}

.page-home .preview-more {
  margin: 28px 0 0;
}

.page-home .link-arrow {
  color: var(--aqua);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 198, .34);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .link-arrow:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* ---------- tools ---------- */

.page-home .home-tools {
  padding-block: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 32, .7), rgba(5, 7, 14, .55));
}

.page-home .tools-grid {
  display: grid;
  gap: 20px;
}

.page-home .tool-card {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: clamp(20px, 3.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .tool-card--save {
  background:
    linear-gradient(150deg, rgba(53, 224, 198, .08), transparent 60%),
    var(--ph-panel);
  backdrop-filter: blur(10px);
}

.page-home .tool-card--ios {
  background:
    linear-gradient(150deg, rgba(255, 122, 47, .09), transparent 60%),
    var(--ph-panel);
  backdrop-filter: blur(10px);
}

.page-home .tool-media {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .tool-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.66) contrast(1.08);
}

.page-home .tool-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .tool-card h3 {
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.4;
  margin: 0;
}

.page-home .tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

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

.page-home .tool-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .tool-facts .mono {
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .tool-facts em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- team ---------- */

.page-home .home-team {
  padding-block: clamp(52px, 8vw, 100px);
}

.page-home .team-grid {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.page-home .team-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 12px 0 18px;
}

.page-home .team-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 58ch;
}

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

.page-home .team-stats li {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(16, 27, 46, .62);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .team-stats .stat-value {
  font-family: var(--font-data);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.page-home .team-stats li:nth-child(1) .stat-value { color: var(--signal); }
.page-home .team-stats li:nth-child(2) .stat-value { color: var(--aqua); }
.page-home .team-stats li:nth-child(3) .stat-value { color: var(--violet); }
.page-home .team-stats li:nth-child(4) .stat-value { color: var(--orange); }

.page-home .team-stats .stat-unit {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- cta ---------- */

.page-home .home-cta {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 10vw, 120px);
}

.page-home .cta-panel {
  border-radius: var(--radius-l);
  border: 1px solid rgba(185, 242, 74, .3);
  background:
    radial-gradient(110% 140% at 90% 0%, rgba(185, 242, 74, .14), transparent 58%),
    linear-gradient(140deg, #0e1a2c, #05070e 78%);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 26px;
  align-items: center;
}

.page-home .cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 10px 0 10px;
}

.page-home .cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

/* ---------- reveal ---------- */

.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.page-home [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.page-home .axis-node:nth-child(2)[data-reveal] { transition-delay: .06s; }
.page-home .axis-node:nth-child(3)[data-reveal] { transition-delay: .12s; }
.page-home .axis-node:nth-child(4)[data-reveal] { transition-delay: .18s; }
.page-home .axis-node:nth-child(5)[data-reveal] { transition-delay: .24s; }

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .page-home .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .preview-card--b { transform: translateY(22px); }
  .page-home .preview-card--b:hover { transform: translateY(18px); }

  .page-home .preview-media {
    grid-column: span 2;
    min-height: 280px;
  }

  .page-home .preview-media img { min-height: 280px; }

  .page-home .axis-node {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 20px;
  }

  .page-home .axis-idx { width: 60px; height: 60px; font-size: 14px; }

  .page-home .axis-card { padding: 22px 26px; }

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

@media (min-width: 960px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .hero-board {
    margin-top: -12px;
  }

  .page-home .league-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    align-items: start;
  }

  .page-home .league-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .tools-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .tool-card--save {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
  }

  .page-home .tool-body { gap: 14px; }

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

  .page-home .cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: clamp(36px, 4vw, 60px);
  }
}

@media (min-width: 1180px) {
  .page-home .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .preview-media {
    grid-column: span 3;
    min-height: 300px;
  }

  .page-home .preview-media img { min-height: 300px; }

  .page-home .preview-card--a { transform: translateY(0); }
  .page-home .preview-card--c { transform: translateY(34px); }
  .page-home .preview-card--c:hover { transform: translateY(28px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .page-home [data-reveal] { opacity: 1; transform: none; }
}
</main>
