.page-home {
  --home-grid-line: rgba(0, 229, 255, 0.08);
  --home-ring: rgba(255, 255, 255, 0.1);
  --home-blue-glow: rgba(0, 229, 255, 0.14);
  --home-green-glow: rgba(200, 255, 0, 0.12);
  --home-orange-glow: rgba(255, 107, 0, 0.12);
  background: var(--bg-dark);
  overflow-x: clip;
}

.page-home .container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.page-home__section {
  padding: 64px 0;
}

.page-home__hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 6%, var(--home-blue-glow), transparent 48%),
    radial-gradient(ellipse at 14% 90%, var(--home-green-glow), transparent 42%),
    var(--bg-panel);
  color: var(--text-high);
}

.page-home__hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.32;
}

.page-home__hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-home__hero-dash {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 18px;
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
  opacity: 0.55;
  pointer-events: none;
}

.page-home__hero-inner {
  position: relative;
  z-index: 3;
  padding: 44px 0 52px;
}

.page-home__crumb {
  margin: 0 0 22px;
  opacity: 0.85;
}

.page-home__hero-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0.5px;
}

.page-home__hero-title-sep {
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-low);
}

.page-home__hero-slogan {
  display: block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: 0.5px;
  color: var(--accent-green);
  text-shadow: 0 0 30px rgba(200, 255, 0, 0.3);
}

.page-home__hero-lead {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home__hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px 16px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home__hero-stats li span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-low);
}

.page-home__hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-blue);
}

.page-home__quick-wrap {
  margin-top: 40px;
}

.page-home__quick-heading {
  margin-bottom: 14px;
}

.page-home__quick-heading h2 {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-high);
}

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

.page-home__quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 20px;
  border: 1px solid var(--home-ring);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(26, 26, 31, 0.86));
  color: var(--text-high);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-home__quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 229, 255, 0.12);
}

.page-home__quick-card:active {
  transform: translateY(0);
}

.page-home__quick-card--blue {
  border-top: 3px solid var(--primary-blue);
}

.page-home__quick-card--green {
  border-top: 3px solid var(--accent-green);
}

.page-home__quick-card--orange {
  border-top: 3px solid var(--accent-orange);
}

.page-home__quick-card--wine {
  border-top: 3px solid var(--accent-orange);
}

.page-home__quick-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-low);
}

.page-home__quick-title {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
}

.page-home__quick-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

.page-home__quick-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--primary-blue);
  transition: transform 0.18s ease;
}

.page-home__quick-card:hover .page-home__quick-arrow {
  transform: translateX(4px);
}

.page-home__hero-cal {
  margin-top: 44px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(13, 13, 15, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.page-home__hero-cal-copy {
  margin-bottom: 20px;
}

.page-home__hero-cal-copy h2 {
  margin: 8px 0 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-high);
}

.page-home__hero-cal-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-low);
}

.page-home__calendar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-home__tl-base {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.page-home__tl-progress {
  stroke: var(--primary-blue);
  stroke-width: 2;
  stroke-linecap: round;
}

.page-home__tl-tick line {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
}

.page-home__tl-tick--hot line {
  stroke: var(--accent-orange);
  stroke-width: 2.5;
}

.page-home__tl-dot circle {
  fill: rgba(255, 255, 255, 0.5);
}

.page-home__tl-dot--green circle {
  fill: var(--accent-green);
  filter: drop-shadow(0 0 6px rgba(200, 255, 0, 0.75));
}

.page-home__tl-dot--orange circle {
  fill: var(--accent-orange);
  filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.75));
}

.page-home__tl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-low);
}

.page-home__calendar {
  position: relative;
  background: linear-gradient(130deg, #06231E, var(--jewel-deep) 46%, #0A3D33);
  color: var(--text-high);
}

.page-home__calendar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

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

.page-home__calendar-desc {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home__calendar-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.page-home__cal-filter {
  margin-top: 28px;
}

.page-home .collapsible__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--primary-blue);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

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

.page-home .collapsible__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
}

.page-home__cal-filter-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-home__calendar-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.page-home__leagues {
  background: var(--bg-panel);
  color: var(--text-high);
}

.page-home__leagues-head {
  max-width: 720px;
}

.page-home__leagues-head p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home__league-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.page-home__league-block {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 13, 15, 0.5);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-home__league-block:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.35);
}

.page-home__league-block--deep {
  background: linear-gradient(135deg, var(--jewel-deep), rgba(13, 13, 15, 0.72));
  border-top: 3px solid var(--accent-green);
}

.page-home__league-block--blue {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(13, 13, 15, 0.72));
  border-top: 3px solid var(--primary-blue);
}

.page-home__league-block--wine {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(13, 13, 15, 0.72));
  border-top: 3px solid var(--accent-orange);
}

.page-home__league-block--green {
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.08), rgba(13, 13, 15, 0.72));
  border-top: 3px solid var(--accent-green);
}

.page-home__league-icon {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.page-home__league-info h3 {
  margin: 6px 0 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  color: var(--text-high);
}

.page-home__league-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

.page-home__league-count {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--primary-blue);
}

.page-home__league-total {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-low);
}

.page-home__updates {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3B0A16, var(--jewel-wine) 55%, #5C1626);
  color: var(--text-high);
}

.page-home__updates::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-6deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 30px);
  pointer-events: none;
}

.page-home__updates-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-home__updates-desc {
  margin: 14px 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home__update-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text-high);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-home__update-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.5);
}

.page-home__update-feature strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
}

.page-home__update-feature span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

.page-home__update-cta {
  font-weight: 700;
  color: var(--accent-orange) !important;
}

.page-home__updates-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.page-home__update-item {
  padding: 22px;
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(13, 13, 15, 0.4);
}

.page-home__update-item h3 {
  margin: 10px 0 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-high);
}

.page-home__update-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

.page-home__update-time {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}

.page-home__sync {
  background: var(--bg-dark);
  color: var(--text-high);
}

.page-home__sync-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home__sync-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.page-home__sync-content p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home .route-path {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 26px 0 28px;
  padding: 0;
}

.page-home .route-path__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.page-home .route-path__step-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--accent-green);
}

.page-home .route-path__step strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  color: var(--text-high);
}

.page-home .route-path__step span:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

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

.page-home__trust {
  padding: 32px 0 56px;
  background: var(--bg-panel);
}

.page-home__trust-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.page-home__trust-copy {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-home__trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home__section h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

@media (min-width: 640px) {
  .page-home__quickgrid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home__hero-slogan {
    font-size: 46px;
  }

  .page-home__league-icon {
    width: 112px;
    height: 112px;
  }

  .page-home__trust-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .page-home__section {
    padding: 88px 0;
  }

  .page-home__hero-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-home__hero-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: start;
  }

  .page-home__quick-wrap {
    margin-top: 0;
  }

  .page-home__hero-cal {
    display: grid;
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: 28px;
    align-items: center;
  }

  .page-home__hero-cal-copy {
    margin-bottom: 0;
  }

  .page-home__section h2 {
    font-size: 38px;
  }

  .page-home__calendar-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

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

  .page-home__updates-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .page-home__sync-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .page-home__hero-cols {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home__hero-slogan {
    font-size: 54px;
  }
}
