.page-home {
  --home-card-bg: rgba(255, 255, 255, 0.04);
  --home-card-border: rgba(245, 241, 232, 0.1);
  --home-neon-glow: rgba(0, 229, 160, 0.12);
  --home-carrot-glow: rgba(255, 122, 61, 0.14);
  color: var(--rice-white);
  background-color: var(--primary-deep-blue);
  overflow-x: hidden;
}

/* ===== Hero ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 24px) 24px 48px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(18, 58, 102, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(0, 229, 160, 0.08) 0%, transparent 70%);
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(0, 229, 160, 0.04) 55% 56%, transparent 56%),
    linear-gradient(155deg, transparent 0 70%, rgba(255, 122, 61, 0.05) 70% 71%, transparent 71%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(245, 241, 232, 0.025) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(245, 241, 232, 0.02) 79px 80px);
}

.page-home .home-hero__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.page-home .home-hero__content {
  max-width: 720px;
}

.page-home .home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--neon-green);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.page-home .home-hero__eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), transparent);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--rice-white);
}

.page-home .home-hero__title-main {
  display: block;
  background: linear-gradient(180deg, var(--rice-white) 30%, rgba(245, 241, 232, 0.82));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .home-hero__title-sub {
  display: block;
  font-size: 0.55em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 229, 160, 0.65);
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.page-home .home-hero__headline {
  display: inline-block;
  margin: 20px 0 12px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.22), rgba(255, 122, 61, 0.05));
  border-left: 3px solid var(--orange-accents);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--rice-white);
}

.page-home .home-hero__desc {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(245, 241, 232, 0.72);
  max-width: 540px;
  margin: 16px 0 0;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .home-hero__visual {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(3, 8, 22, 0.5);
  border: 1px solid rgba(0, 229, 160, 0.18);
}

.page-home .home-hero__float-card {
  position: absolute;
  right: -8px;
  bottom: 24px;
  width: 228px;
  padding: 18px 18px 14px;
  background: rgba(10, 22, 51, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(3, 8, 22, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .home-hero__float-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(3, 8, 22, 0.7), 0 0 20px rgba(0, 229, 160, 0.06);
}

.page-home .home-hero__float-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 12px;
}

.page-home .home-hero__float-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4); }
  50% { opacity: 0.75; box-shadow: 0 0 0 5px rgba(0, 229, 160, 0); }
}

.page-home .home-hero__float-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.07);
}

.page-home .home-hero__float-card-row:last-child {
  border-bottom: none;
}

.page-home .home-hero__float-card-label {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.6);
}

.page-home .home-hero__float-card-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--rice-white);
  letter-spacing: -0.01em;
}

.page-home .home-hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.35);
}

.page-home .home-hero__scroll-line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--neon-green), transparent);
}

/* ===== Update section ===== */
.page-home .home-update {
  padding: 80px 0 64px;
}

.page-home .home-update__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.page-home .home-update__intro .section-title {
  margin-top: 6px;
  font-size: clamp(26px, 4vw, 34px);
}

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

.page-home .home-update__stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 18px;
  padding: 22px 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.page-home .home-update__stat-card:hover {
  border-color: rgba(0, 229, 160, 0.4);
  box-shadow: 0 14px 32px rgba(3, 8, 22, 0.4);
  transform: translateY(-3px);
}

.page-home .home-update__stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.page-home .home-update__stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  line-height: 1;
  color: var(--neon-green);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-home .home-update__stat-unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--rice-white);
  margin-left: 4px;
  font-family: var(--font-body);
}

.page-home .home-update__stat-note {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.55);
  line-height: 1.5;
}

.page-home .home-update__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.1);
}

.page-home .home-update__media-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-update__media-caption {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(18, 58, 102, 0.4);
}

.page-home .home-update__media-tag {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-green);
}

.page-home .home-update__media-caption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.75);
}

/* ===== Cards section ===== */
.page-home .home-cards {
  padding: 72px 0;
  background:
    linear-gradient(140deg, rgba(18, 58, 102, 0.55) 0%, transparent 45%),
    linear-gradient(320deg, rgba(255, 122, 61, 0.06) 0%, transparent 40%);
}

.page-home .home-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}

.page-home .home-cards__item {
  position: relative;
  padding: 30px 26px 24px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.page-home .home-cards__item:hover {
  border-color: rgba(0, 229, 160, 0.35);
  box-shadow: 0 16px 36px rgba(3, 8, 22, 0.4);
  transform: translateY(-4px);
}

.page-home .home-cards__num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 160, 0.5);
  margin-bottom: 14px;
}

.page-home .home-cards__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.page-home .home-cards__text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245, 241, 232, 0.68);
  margin: 0 0 18px;
}

/* ===== Red card section ===== */
.page-home .home-cards-section {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
}

.page-home .home-cards-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-cards-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-home .home-cards-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 22, 51, 0.96) 15%, rgba(10, 22, 51, 0.82) 55%, rgba(10, 22, 51, 0.92) 100%);
}

.page-home .home-cards-section .container {
  position: relative;
  z-index: 1;
}

.page-home .home-cards-section__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.page-home .home-cards-section__main .section-title {
  margin-top: 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.page-home .home-cards-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .home-cards-section__list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-cards-section__list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-home .home-cards-section__list-mark {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--neon-green);
  margin-top: 7px;
}

.page-home .home-cards-section__list-mark--orange {
  background: var(--orange-accents);
}

.page-home .home-cards-section__list-mark--green {
  background: var(--moss-green);
}

.page-home .home-cards-section__list-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.78);
}

.page-home .home-cards-section__list-item strong {
  color: var(--rice-white);
  font-weight: 700;
}

.page-home .home-cards-section__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.page-home .home-cards-section__ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 58, 102, 0.6) 0%, rgba(10, 22, 51, 0.9) 100%);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.page-home .home-cards-section__ring-number {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: var(--neon-green);
}

.page-home .home-cards-section__ring-label {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.65);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.page-home .home-cards-section__ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .home-cards-section__ring-track,
.page-home .home-cards-section__ring-progress {
  fill: none;
  stroke-width: 2.5;
}

.page-home .home-cards-section__ring-track {
  stroke: rgba(245, 241, 232, 0.1);
}

.page-home .home-cards-section__ring-progress {
  stroke: var(--neon-green);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 36;
}

.page-home .home-cards-section__mini-chart {
  width: 100%;
  max-width: 300px;
  padding: 18px;
  background: rgba(10, 22, 51, 0.85);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 14px;
}

.page-home .home-cards-section__mini-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(245, 241, 232, 0.6);
  letter-spacing: 0.04em;
}

.page-home .chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
}

.page-home .chart-bars__bar {
  flex: 1;
  position: relative;
  height: var(--bar);
  min-height: 10px;
  background: linear-gradient(180deg, var(--neon-green) 0%, rgba(0, 229, 160, 0.15) 130%);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 23px;
  font-size: 11px;
  color: rgba(245, 241, 232, 0.45);
}

/* ===== Flow section ===== */
.page-home .home-flow {
  padding: 76px 0;
}

.page-home .home-flow__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 40px 0 32px;
}

.page-home .home-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: 18px;
  min-width: 0;
  max-width: 280px;
}

.page-home .home-flow__step:hover {
  border-color: rgba(0, 229, 160, 0.3);
}

.page-home .home-flow__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

.page-home .home-flow__step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-accents);
  margin-bottom: 8px;
}

.page-home .home-flow__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.72);
}

.page-home .home-flow__arrow {
  display: flex;
  justify-content: center;
  transform: rotate(90deg);
}

.page-home .home-flow__cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ===== League section ===== */
.page-home .home-league {
  padding: 84px 0 40px;
}

.page-home .home-league__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .home-league__visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 160, 0.16);
}

.page-home .home-league__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-league__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 22, 51, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 12px;
}

.page-home .home-league__badge-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--neon-green);
}

.page-home .home-league__badge-label {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.7);
}

.page-home .home-league__content .section-title {
  margin-top: 6px;
  font-size: clamp(24px, 3.6vw, 32px);
}

.page-home .home-league__list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .home-league__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(18, 58, 102, 0.35);
  border-left: 3px solid var(--neon-green);
  border-radius: 0 10px 10px 0;
}

.page-home .home-league__item:nth-child(even) {
  border-left-color: var(--orange-accents);
}

.page-home .home-league__item-name {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.8);
}

.page-home .home-league__item-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--rice-white);
  font-feature-settings: "tnum";
}

/* ===== Trust ===== */
.page-home .home-trust {
  padding: 30px 0 56px;
}

.page-home .home-trust__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.45);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Reveal states ===== */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-home [data-reveal="left"] {
  transform: translateX(-18px);
}

.page-home [data-reveal="right"] {
  transform: translateX(18px);
}

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

/* ===== Media queries ===== */
@media (min-width: 640px) {
  .page-home .home-update__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

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

  .page-home .home-league__list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

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

  .page-home .home-update__grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
  }

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

  .page-home .home-update__media-caption {
    padding: 24px;
    align-self: center;
  }

  .page-home .home-cards-section__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 64px;
  }

  .page-home .home-cards-section__aside {
    align-items: center;
  }

  .page-home .home-flow__steps {
    flex-direction: row;
    justify-content: center;
  }

  .page-home .home-flow__arrow {
    transform: none;
  }

  .page-home .home-league__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__float-card {
    right: -22px;
  }
}

.page-home {
  --bar: 1rem;
}
