.page-home {
  --home-green: #39FF14;
  --home-purple: #8A2BE2;
  --home-cyan: #00E5FF;
  --home-card-bg: rgba(31, 58, 95, 0.55);
  --home-border: rgba(57, 255, 20, 0.16);
  --home-gap: 24px;
  position: relative;
  background: var(--color-deep);
  color: var(--color-white);
  overflow-x: hidden;
}

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

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--color-white);
  isolation: isolate;
  padding-bottom: 64px;
}

.page-home .home-hero-media,
.page-home .home-hero-veil,
.page-home .home-hero-speed {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.08);
}

.page-home .home-hero-veil {
  background:
    linear-gradient(112deg, rgba(5, 10, 31, 0.94) 0%, rgba(11, 27, 61, 0.76) 46%, rgba(138, 43, 226, 0.28) 100%),
    linear-gradient(to top, var(--color-deep) 0%, rgba(11, 27, 61, 0.4) 55%, transparent 85%);
}

.page-home .home-hero-speed {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(0, 229, 255, 0.08) 0px,
    transparent 80px,
    rgba(57, 255, 20, 0.05) 160px,
    transparent 240px
  );
  animation: homeSpeedlines 18s linear infinite;
}

@keyframes homeSpeedlines {
  from { background-position: 0 0; }
  to { background-position: -240px 0; }
}

.page-home .home-hero-inner {
  position: relative;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 48px;
}

.page-home .home-hero .breadcrumb {
  margin-bottom: 18px;
  color: var(--color-gray);
  font-size: 13px;
}

.page-home .home-hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 999px;
  background: rgba(11, 27, 61, 0.5);
  color: var(--color-green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-home .home-hero-deco {
  position: absolute;
  top: 18%;
  right: 0.02em;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(72px, 12vw, 180px);
  line-height: 1;
  color: rgba(240, 244, 250, 0.05);
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-home .home-hero-title {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(54px, 8.6vw, 124px);
  font-weight: 900;
  line-height: 0.91;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-6deg);
  text-shadow: 0 12px 32px rgba(5, 10, 31, 0.8);
}

.page-home .home-hero-sub {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--color-gray);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .home-hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.page-home .home-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 0;
  background: rgba(5, 10, 31, 0.78);
  border-top: 1px solid rgba(57, 255, 20, 0.24);
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.page-home .home-ticker-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: homeTickerFlow 32s linear infinite;
  will-change: transform;
}

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

.page-home .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-white);
}

.page-home .ticker-item + .ticker-item::before {
  content: "";
  width: 1px;
  height: 20px;
  background: rgba(176, 184, 196, 0.24);
}

.page-home .ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-green);
  font-size: 11px;
}

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

.page-home .ticker-id {
  color: var(--color-gray);
}

.page-home .ticker-score {
  color: var(--color-green);
  font-size: 16px;
  font-weight: 800;
}

@keyframes homeTickerFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page-home .home-engine {
  padding: 64px 0 20px;
}

.page-home .home-engine-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
  padding: 22px;
  background: linear-gradient(140deg, rgba(31, 58, 95, 0.8), rgba(5, 10, 31, 0.5));
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-engine-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--color-green) 0%, var(--color-cyan) 50%, var(--color-purple) 100%);
  border-radius: 5px 0 0 5px;
}

.page-home .home-engine-media {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 229, 255, 0.18);
  position: relative;
}

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

.page-home .home-engine-body {
  padding: 6px 0 2px;
}

.page-home .home-engine-title {
  margin: 6px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(30px, 4.6vw, 50px);
  text-transform: uppercase;
  transform: skewX(-4deg);
}

.page-home .home-engine-text {
  color: var(--color-gray);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .home-engine-metrics {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-engine-metrics li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(5, 10, 31, 0.4);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: var(--radius-sm);
}

.page-home .metric-key {
  color: var(--color-gray);
  font-size: 14px;
}

.page-home .metric-val {
  font-family: var(--font-mono);
  color: var(--color-green);
  font-weight: 700;
}

.page-home .home-features {
  padding: 64px 0 24px;
}

.page-home .home-section-head {
  margin-bottom: 32px;
}

.page-home .home-section-head .section-title-accent,
.page-home .home-engine-body .section-title-accent {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--color-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-home .home-section-head h2 {
  margin: 6px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-4deg);
}

.page-home .home-section-head p {
  margin: 0;
  color: var(--color-gray);
  font-size: 15px;
  max-width: 560px;
}

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

.page-home .home-feature-card {
  position: relative;
  display: block;
  padding: 24px;
  background: linear-gradient(145deg, var(--home-card-bg), rgba(11, 27, 61, 0.6));
  border: 1px solid var(--home-border);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  overflow: hidden;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.page-home .home-feature-card:hover,
.page-home .home-feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.55);
  box-shadow: 0 18px 40px rgba(5, 10, 31, 0.5);
  outline: none;
}

.page-home .home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 28px solid rgba(138, 43, 226, 0.9);
  border-left: 28px solid transparent;
  transition: border-top-color 0.3s ease;
}

.page-home .home-feature-card:hover::before {
  border-top-color: var(--color-green);
}

.page-home .home-feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-green), var(--color-cyan), var(--color-purple));
}

.page-home .home-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-home .home-feature-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  color: rgba(245, 247, 250, 0.28);
  transform: rotate(-3deg);
}

.page-home .home-feature-card h3 {
  margin: 18px 0 8px;
  font-family: var(--font-head);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: skewX(-4deg);
}

.page-home .home-feature-card p {
  margin: 0 0 16px;
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-cyan);
  letter-spacing: 0.04em;
}

.page-home .home-feature-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.page-home .home-feature-card:hover .home-feature-link::after {
  transform: translateX(4px);
}

.page-home .home-feature-card-photo {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.page-home .home-feature-photo {
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  position: relative;
  background: var(--color-dark);
}

.page-home .home-feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.page-home .home-feature-card:hover .home-feature-photo img {
  transform: scale(1.06);
}

.page-home .home-feature-body {
  padding: 22px 22px 24px;
  flex: 1;
}

.page-home .home-feature-body h3 {
  margin-top: 10px;
}

.page-home .home-stats {
  padding: 64px 0 40px;
  background:
    radial-gradient(circle at 85% 8%, rgba(138, 43, 226, 0.16), transparent 42%),
    radial-gradient(circle at 8% 100%, rgba(0, 229, 255, 0.12), transparent 40%);
}

.page-home .home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page-home .home-stat-item {
  position: relative;
  padding: 18px 14px 16px;
  background: rgba(31, 58, 95, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .home-stat-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-green), var(--color-purple));
  opacity: 0.7;
}

.page-home .home-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
}

.page-home .home-stat-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-cyan);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.page-home .home-stat-label {
  margin: 12px 0 0;
  color: var(--color-gray);
  font-size: 13px;
  line-height: 1.4;
}

.page-home .home-stats-note {
  margin-top: 24px;
  color: var(--color-gray);
  font-size: 14px;
}

.page-home .home-updates {
  padding: 64px 0 24px;
}

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

.page-home .home-update-card {
  padding: 24px;
  background: linear-gradient(150deg, var(--home-card-bg), rgba(5, 10, 31, 0.5));
  border: 1px solid var(--home-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .home-update-card:hover {
  border-color: rgba(138, 43, 226, 0.55);
  transform: translateY(-4px);
}

.page-home .home-update-card h3 {
  margin: 14px 0 10px;
  font-family: var(--font-head);
  font-size: 21px;
  text-transform: uppercase;
  transform: skewX(-3deg);
}

.page-home .home-update-card p {
  margin: 0 0 16px;
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .home-update-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-green);
}

.page-home .home-update-more::after {
  content: "→";
}

.page-home .home-updates-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .home-updates-hint {
  color: var(--color-gray);
  font-size: 14px;
}

.page-home .home-updates-hint a {
  color: var(--color-cyan);
}

.page-home .home-cta-strip {
  margin: 56px 0 0;
  padding: 44px 0;
  background: linear-gradient(112deg, rgba(57, 255, 20, 0.13) 0%, rgba(0, 229, 255, 0.08) 48%, rgba(138, 43, 226, 0.18) 100%);
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  border-bottom: 1px solid rgba(138, 43, 226, 0.18);
}

.page-home .home-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-home .home-cta-inner p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
}

@media (min-width: 768px) {
  .page-home .home-feature-grid,
  .page-home .home-update-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .page-home .home-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

@media (min-width: 880px) {
  .page-home .home-engine-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    padding: 28px;
  }

  .page-home .home-engine-media {
    height: 100%;
    min-height: 420px;
  }

  .page-home .home-engine-media img {
    object-fit: cover;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-speed,
  .page-home .home-ticker-track {
    animation: none;
  }

  .page-home .home-ticker {
    overflow-x: auto;
  }

  .page-home .home-ticker-track {
    width: max-content;
    flex-wrap: nowrap;
  }

  .page-home .home-ticker-track .ticker-item:nth-child(n+7) {
    display: none;
  }

  .page-home .home-feature-card,
  .page-home .home-update-card,
  .page-home .home-feature-card:hover,
  .page-home .home-update-card:hover {
    transform: none;
    transition: none;
  }

  .page-home .home-feature-photo img {
    transition: none;
  }
}
