.page-home {
  --home-radius-xl: 32px;
  --home-radius-lg: 24px;
  --home-radius-md: 16px;
  --home-gap: 16px;
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2 {
  font-family: var(--font-headline);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 14px;
}

.page-home h3 {
  font-family: var(--font-headline);
  color: var(--text);
}

.page-home .section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--speed);
  margin: 0 0 12px;
}

.page-home .chip {
  display: inline-block;
  background: rgba(77, 201, 246, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.page-home .chip--live {
  background: rgba(182, 255, 0, 0.12);
  border-color: rgba(182, 255, 0, 0.45);
  color: var(--speed);
}

.page-home .chip--warn {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.45);
  color: var(--amber);
}

.page-home .home-context {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-context__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.page-home .home-hero {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 201, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 201, 246, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 26%, rgba(0, 0, 0, 0.8), transparent 62%);
  mask-image: radial-gradient(ellipse at 72% 26%, rgba(0, 0, 0, 0.8), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .hero-title {
  font-size: clamp(40px, 9vw, 78px);
  line-height: 1.02;
  margin-bottom: 18px;
}

.page-home .hero-title__line {
  display: block;
}

.page-home .hero-title__line--accent {
  color: var(--speed);
}

.page-home .hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 22px;
}

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

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-lg);
}

.page-home .hero-stats__item {
  min-width: 0;
}

.page-home .hero-stats__item dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-home .hero-stats__item dd {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--speed);
  margin: 0;
}

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

.page-home .hero-img-wrap {
  position: relative;
  border-radius: var(--home-radius-xl);
  overflow: hidden;
  background: var(--bg-panel);
}

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

.page-home .hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 20, 40, 0.08), rgba(10, 20, 40, 0.58) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-home .speed-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--text-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(182, 255, 0, 0.16);
}

.page-home .speed-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .speed-badge__ring-track {
  fill: none;
  stroke: rgba(28, 28, 26, 0.14);
  stroke-width: 3;
}

.page-home .speed-badge__ring-progress {
  fill: none;
  stroke: var(--speed);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: pagehome-ring 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.page-home .speed-badge__bignum {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}

.page-home .speed-badge__unit {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.page-home .speed-badge__note {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--speed);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
}

.page-home .hero-ticker {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 12px 14px;
  background: rgba(10, 20, 40, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-lg);
  backdrop-filter: blur(8px);
}

.page-home .hero-ticker__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.page-home .hero-ticker__head .live-dot {
  width: 8px;
  height: 8px;
  background: var(--speed);
  border-radius: 50%;
  animation: pagehome-pulse 1.6s ease-in-out infinite;
}

.page-home .hero-ticker__viewport {
  overflow: hidden;
}

.page-home .hero-ticker__track {
  display: flex;
  width: max-content;
  animation: pagehome-ticker 26s linear infinite;
}

.page-home .hero-ticker:hover .hero-ticker__track {
  animation-play-state: paused;
}

.page-home .ticker-group {
  display: flex;
  flex-shrink: 0;
  gap: 26px;
  padding-right: 26px;
}

.page-home .ticker-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text);
}

.page-home .ticker-row b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--speed);
  font-size: 15px;
}

.page-home .ticker-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

.page-home .home-mobile {
  padding: 60px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 12%, rgba(77, 201, 246, 0.14), transparent 38%),
    linear-gradient(12deg, transparent 0 78%, rgba(18, 44, 77, 0.7) 78%);
}

.page-home .home-mobile__copy {
  max-width: 640px;
}

.page-home .home-mobile__copy > p {
  color: var(--muted);
}

.page-home .mobile-feature-list {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .mobile-feature-list li {
  position: relative;
  padding-left: 42px;
  font-size: 15px;
  color: var(--text);
}

.page-home .mobile-feature-list__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(77, 201, 246, 0.14);
  border-radius: 999px;
}

.page-home .home-mobile__device {
  max-width: 250px;
  margin: 30px auto 0;
  border-radius: 38px;
  overflow: hidden;
  border: 10px solid var(--bg-panel);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  transform: rotate(2deg);
}

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

.page-home .home-venues {
  padding: 60px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-home .home-venues__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.page-home .home-venues__head p:not(.section-kicker) {
  color: var(--muted);
}

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

.page-home .venue-map {
  border-radius: var(--home-radius-xl);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  position: relative;
}

.page-home .venue-map img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-home .venue-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-xl);
  padding: 22px;
}

.page-home .venue-panel h3 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.3;
}

.page-home .venue-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .venue-city-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: var(--home-radius-md);
  font-size: 14px;
  color: var(--muted);
}

.page-home .venue-city-list .stat-number {
  color: var(--speed);
  font-weight: 700;
  font-size: 17px;
}

.page-home .home-tags {
  padding: 60px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.page-home .home-tags__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.page-home .home-tags__head p:not(.section-kicker) {
  color: var(--muted);
}

.page-home .tag-groups {
  display: grid;
  gap: 14px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-home .tag-group {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-lg);
  padding: 18px 20px;
}

.page-home .tag-group h3 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: 17px;
  color: var(--speed);
}

.page-home .tag-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-changelog {
  padding: 60px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-home .home-changelog__head {
  max-width: 780px;
  margin-bottom: 28px;
}

.page-home .home-changelog__head p:not(.section-kicker) {
  color: var(--muted);
}

.page-home .home-changelog__head .btn {
  margin-top: 16px;
}

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

.page-home .changelog-calendar {
  background: var(--bg-cream);
  color: var(--text-ink);
  border-radius: var(--home-radius-xl);
  padding: 22px;
}

.page-home .changelog-calendar__month {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}

.page-home .changelog-calendar__list {
  display: grid;
  gap: 8px;
}

.page-home .cal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(28, 28, 26, 0.06);
  padding: 10px 12px;
  border-radius: var(--home-radius-md);
}

.page-home .cal-item__day {
  min-width: 44px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}

.page-home .cal-item__label {
  font-size: 14px;
  line-height: 1.4;
}

.page-home .cal-item--highlight .cal-item__day {
  min-width: auto;
  color: var(--text-ink);
  background: var(--speed);
  border-radius: 8px;
  padding: 3px 8px;
  text-align: center;
}

.page-home .changelog-note-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: var(--home-radius-lg);
}

.page-home .changelog-note-card__badge {
  flex: 0 0 auto;
  background: var(--amber);
  color: var(--text-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-home .changelog-note-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .changelog-note-card strong {
  color: var(--amber);
}

.page-home .changelog-img {
  grid-column: 1 / -1;
  border-radius: var(--home-radius-xl);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

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

.page-home .home-reports {
  padding: 60px 20px;
}

.page-home .home-reports__head {
  max-width: var(--container-width);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-reports__head p:not(.section-kicker) {
  color: var(--muted);
  max-width: 680px;
}

.page-home .reports-grid {
  display: grid;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-home .report-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-xl);
}

.page-home .report-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(182, 255, 0, 0.08), transparent 70%);
  pointer-events: none;
}

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

.page-home .report-card h3 .stat-number {
  color: var(--speed);
}

.page-home .report-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .report-card__round {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-home .report-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 13px;
}

.page-home .report-card__state {
  font-family: var(--font-mono);
  color: var(--speed);
}

.page-home .report-card__read {
  color: var(--muted);
}

.page-home .home-favorites {
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-panel));
}

.page-home .home-favorites__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-home .home-favorites__copy {
  max-width: 640px;
  margin-bottom: 28px;
}

.page-home .home-favorites__copy p:not(.section-kicker) {
  color: var(--muted);
}

.page-home .home-favorites__copy .btn {
  margin-top: 16px;
}

.page-home .favorites-grid {
  display: grid;
  gap: 14px;
}

.page-home .fav-card {
  display: block;
  padding: 22px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--home-radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.page-home .fav-card:hover,
.page-home .fav-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--speed);
  background: rgba(18, 44, 77, 0.6);
  outline: none;
}

.page-home .fav-card__icon {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.page-home .fav-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.page-home .fav-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes pagehome-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes pagehome-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes pagehome-ring {
  0% {
    stroke-dashoffset: 289;
  }

  50% {
    stroke-dashoffset: 48;
  }

  100% {
    stroke-dashoffset: 48;
  }
}

@media (max-width: 559px) {
  .page-home .home-context__note {
    display: none;
  }

  .page-home .speed-badge {
    width: 96px;
    height: 96px;
    top: 10px;
    right: 10px;
  }

  .page-home .speed-badge__bignum {
    font-size: 30px;
  }

  .page-home .hero-ticker {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
  }

  .page-home .ticker-row {
    font-size: 13px;
  }

  .page-home .ticker-row b {
    font-size: 14px;
  }
}

@media (min-width: 640px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-mobile__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 36px;
    max-width: var(--container-width);
    margin: 0 auto;
  }

  .page-home .home-mobile__device {
    margin: 0 0 0 auto;
    transform: rotate(0deg);
  }

  .page-home .home-venues__body {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: stretch;
  }

  .page-home .venue-map {
    min-height: 320px;
  }

  .page-home .venue-map img {
    height: 100%;
    min-height: 320px;
  }

  .page-home .tag-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .page-home .home-changelog__body {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

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

  .page-home .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 36px 20px 80px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .hero-stats__item dd {
    font-size: 28px;
  }

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

  .page-home .favorites-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-ticker__track,
  .page-home .hero-ticker__head .live-dot,
  .page-home .speed-badge__ring-progress {
    animation: none;
  }
}
