.page-home {
  --home-card-radius: 22px;
  --home-cut: 14px;
  overflow-x: clip;
  background: var(--ink-800);
  color: var(--mist);
}

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

.page-home .hero-home {
  position: relative;
  padding: 20px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 229, 199, 0.15), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(123, 77, 255, 0.12), transparent 36%),
    var(--ink-800);
}

.page-home .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 166, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 196, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.page-home .hero-lead {
  max-width: 660px;
}

.page-home .hero-lead h1 {
  margin: 16px 0 18px;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0.035em;
  color: var(--mist);
  text-wrap: balance;
}

.page-home .hero-intro {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.9;
  color: rgba(230, 255, 251, 0.82);
}

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

.page-home .hero-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .ticker-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.12);
  animation: page-home-pulse 2.4s ease-out infinite;
}

.page-home .ticker-sep {
  color: rgba(143, 166, 196, 0.45);
}

.page-home .hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "visual"
    "dial"
    "stack";
  gap: 12px;
  padding-top: 8px;
}

.page-home .hero-visual {
  grid-area: visual;
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--home-card-radius) 4px var(--home-card-radius) 4px;
  background: var(--ink-900);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  filter: saturate(0.8) contrast(1.12);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.06), rgba(6, 18, 36, 0.78));
}

.page-home .hero-dial {
  grid-area: dial;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 230px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 229, 199, 0.08);
  backdrop-filter: blur(10px);
}

.page-home .dial {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  transform: rotate(-90deg);
}

.page-home .dial-track {
  fill: none;
  stroke: rgba(143, 166, 196, 0.16);
  stroke-width: 8;
}

.page-home .dial-progress {
  fill: none;
  stroke: url("#dial-gradient");
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 603;
  stroke-dashoffset: 178;
  filter: drop-shadow(0 0 8px rgba(0, 229, 199, 0.42));
}

.page-home .dial-center {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 16px;
  text-align: center;
}

.page-home .dial-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--slate);
}

.page-home .dial-time {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.page-home .dial-meta {
  font-size: 11px;
  color: var(--cyan);
}

.page-home .snap-stack {
  grid-area: stack;
  display: grid;
  gap: 10px;
  align-self: end;
}

.page-home .snap-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--ink-700);
}

.page-home .snap-card summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .snap-card[open] {
  border-color: var(--line-strong);
}

.page-home .snap-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .snap-title {
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .snap-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--slate);
}

.page-home .snap-card p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(230, 255, 251, 0.72);
}

.page-home .home-routes {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
}

.page-home .route-tabs {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-home .route-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "index name arrow"
    "desc desc desc";
  gap: 6px 12px;
  align-items: center;
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--mist);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.page-home .route-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.page-home .route-tab--cyan::before {
  background: var(--cyan);
}

.page-home .route-tab--violet::before {
  background: var(--violet);
}

.page-home .route-tab--orange::before {
  background: var(--orange);
}

.page-home .route-tab:hover,
.page-home .route-tab:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(16, 42, 76, 0.95);
}

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

.page-home .route-index {
  grid-area: index;
  font-size: 11px;
  color: var(--slate);
}

.page-home .route-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page-home .route-desc {
  grid-area: desc;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(230, 255, 251, 0.68);
}

.page-home .route-arrow {
  grid-area: arrow;
  font-size: 1.2rem;
  color: var(--cyan);
}

.page-home .route-strip {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-home .route-visual {
  position: relative;
  max-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 4px 22px 4px 22px;
  background: var(--ink-950);
}

.page-home .route-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.1);
}

.page-home .route-visual .media-caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(230, 255, 251, 0.78);
}

.page-home .route-note {
  padding: 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 229, 199, 0.06);
}

.page-home .route-note h3 {
  margin: 0 0 10px;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  color: var(--mist);
}

.page-home .route-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(230, 255, 251, 0.76);
}

.page-home .home-index {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
}

.page-home .index-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.page-home .index-head .section-note {
  max-width: 46ch;
}

.page-home .index-stage {
  position: relative;
  margin-top: 24px;
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px 28px 4px 28px;
  background: rgba(16, 42, 76, 0.72);
}

.page-home .index-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0.18;
  pointer-events: none;
}

.page-home .index-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .index-stage > *:not(.index-bg) {
  position: relative;
  z-index: 1;
}

.page-home .heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  max-width: 720px;
  margin-bottom: 14px;
}

.page-home .heat-cell,
.page-home .heat-swatch {
  display: block;
  border: 1px solid rgba(0, 229, 199, 0.08);
  border-radius: 3px;
}

.page-home .heat-cell {
  aspect-ratio: 1;
}

.page-home .heat-cell--1 {
  background: rgba(0, 229, 199, 0.1);
}

.page-home .heat-cell--2 {
  background: rgba(0, 229, 199, 0.22);
}

.page-home .heat-cell--3 {
  background: rgba(0, 229, 199, 0.42);
}

.page-home .heat-cell--4 {
  background: rgba(0, 229, 199, 0.78);
  box-shadow: 0 0 10px rgba(0, 229, 199, 0.18);
}

.page-home .heat-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--slate);
}

.page-home .heat-swatch {
  width: 14px;
  height: 14px;
  flex: none;
}

.page-home .index-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .index-foot p {
  max-width: 62ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(230, 255, 251, 0.76);
}

.page-home .index-foot strong {
  color: var(--cyan);
}

.page-home .deep-grid {
  display: grid;
  gap: 28px;
}

.page-home .deep-aside .section-title {
  max-width: 12ch;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.page-home .deep-visual {
  max-height: 260px;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 2px 20px 2px 20px;
}

.page-home .deep-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}

.page-home .deep-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--violet);
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .deep-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-home .deep-num {
  padding-top: 4px;
  font-size: 12px;
  color: var(--cyan);
}

.page-home .deep-item h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--mist);
}

.page-home .deep-item p {
  margin: 0;
  line-height: 1.85;
  color: rgba(230, 255, 251, 0.76);
}

.page-home .deep-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border-left: 3px solid var(--orange);
  background: var(--ink-700);
}

.page-home .deep-cta p {
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(230, 255, 251, 0.76);
}

.page-home .home-trust {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-950));
}

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

.page-home .trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.page-home .trust-stats > div {
  padding: 18px;
  background: var(--ink-700);
}

.page-home .trust-stats dt {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--slate);
}

.page-home .trust-stats dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mist);
}

.page-home .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.page-home .trust-links a {
  color: var(--cyan);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.page-home .trust-links a:hover,
.page-home .trust-links a:focus-visible {
  border-bottom-color: var(--cyan);
}

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

.page-home .mobile-copy {
  max-width: 62ch;
}

.page-home .mobile-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 18, 36, 0.72);
  backdrop-filter: blur(12px);
}

.page-home .dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 8px;
  color: var(--mist);
  font-size: 12px;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.page-home .dock-item:hover,
.page-home .dock-item:focus-visible {
  background: rgba(0, 229, 199, 0.1);
  color: var(--cyan);
}

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

.page-home .dock-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
}

@media (min-width: 760px) {
  .page-home .hero-home {
    padding: 28px 0 64px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .hero-collage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "visual dial"
      "visual stack";
    align-items: start;
    gap: 12px;
    min-height: 520px;
  }

  .page-home .hero-visual {
    height: 100%;
    min-height: 520px;
  }

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

  .page-home .route-strip {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

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

  .page-home .mobile-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 680px;
  }
}

@media (min-width: 1000px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }

  .page-home .hero-lead {
    padding-top: 26px;
  }

  .page-home .deep-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 48px;
  }

  .page-home .trust-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 48px;
  }
}

@media (max-width: 699px) {
  .page-home .home-mobile {
    padding-bottom: 104px;
  }

  .page-home .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 60;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

@keyframes page-home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.3);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ticker-dot {
    animation: none;
  }

  .page-home .route-tab,
  .page-home .trust-links a,
  .page-home .dock-item {
    transition: none;
  }
}
