.page-home {
  --home-space: clamp(24px, 5vw, 56px);
  --home-space-xl: clamp(64px, 10vw, 128px);
  --home-clip: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  position: relative;
  margin: 0 auto;
  padding: 24px 16px 64px;
  max-width: 1360px;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.page-home .breadcrumb {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0 0 0 16px;
  position: relative;
}

.page-home .breadcrumb::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.page-home .home-hero {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 16px 0 0;
}

.page-home .home-hero__kicker {
  margin: 0 0 16px;
  font-family: var(--font-data);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--data-color);
  text-transform: uppercase;
}

.page-home .home-hero__title {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .home-hero__dot {
  color: var(--accent);
}

.page-home .home-hero__round {
  display: block;
  font-family: var(--font-data);
  font-size: 0.4em;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.2em;
}

.page-home .home-hero__desc {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.page-home .home-hero__visual::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 107, 0, 0.35);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: 20px;
}

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

.page-home .home-hero__badge {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(8, 22, 38, 0.72);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  border: 1px solid var(--glass);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.page-home .home-hero__badge em {
  font-style: normal;
  color: var(--data-color);
}

.page-home .home-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
  animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-home .section-kicker {
  margin: 0 0 12px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.page-home .section-title {
  margin: 0 0 16px;
  font-family: var(--font-headline);
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--text-primary);
}

.page-home .section-desc {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.page-home .home-dashboard__plot {
  height: 140px;
  margin: 0 0 24px;
  padding: 8px 0;
  background: linear-gradient(180deg, transparent calc(100% - 2px), rgba(255, 107, 0, 0.6) calc(100% - 2px));
}

.page-home .home-dashboard__plot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .home-dashboard__grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.page-home .home-dashboard__line {
  fill: none;
  stroke: var(--data-color);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .home-dashboard__line--accent {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 4 6;
}

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

.page-home .home-stat {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  padding: 24px 20px;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-highlight));
  border: 1px solid var(--glass);
}

.page-home .home-stat__num {
  font-family: var(--font-data);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-home .home-stat__unit {
  color: var(--accent);
  font-size: 0.5em;
  margin-left: 2px;
}

.page-home .home-stat__label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.page-home .home-stat__meta {
  display: block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-home .home-features {
  padding-top: var(--home-space);
}

.page-home .home-features__grid {
  display: grid;
  gap: 56px;
}

.page-home .home-feature {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg-highlight));
  border: 1px solid var(--glass);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-home .home-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 107, 0, 0.3);
}

.page-home .home-feature__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-home .home-feature__media--portrait {
  aspect-ratio: 3 / 4;
}

.page-home .home-feature__media--wide {
  aspect-ratio: 3 / 2;
}

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

.page-home .home-feature:hover .home-feature__media img {
  transform: scale(1.04);
}

.page-home .home-feature__media--glass {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 107, 0, 0.35), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.2), transparent 40%),
    var(--bg-secondary);
}

.page-home .home-feature__pulse {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 16px);
}

.page-home .home-feature__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 22px 28px;
}

.page-home .home-feature__index {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--data-color);
  letter-spacing: 0.08em;
}

.page-home .home-feature__body h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.page-home .home-feature__body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-home .home-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.page-home .home-feature__link:hover {
  border-color: var(--accent);
}

.page-home .home-latest {
  padding-top: var(--home-space);
}

.page-home .home-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .home-latest__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--data-color));
}

.page-home .home-latest__item {
  position: relative;
  padding-left: 32px;
}

.page-home .home-latest__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.page-home .home-latest__item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 12px;
  padding: 20px 8px 20px 0;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--glass);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.page-home .home-latest__item a:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 8px;
}

.page-home .home-latest__tag {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--data-color);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

.page-home .home-latest__title {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
}

.page-home .home-latest__brief {
  grid-column: 2 / 3;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-home .home-latest__arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 1.25rem;
  align-self: center;
}

.page-home .home-latest__more {
  margin-top: 24px;
}

.page-home .home-cta {
  padding-top: var(--home-space-xl);
}

.page-home .home-cta__inner {
  position: relative;
  padding: 48px 24px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 0, 0.3), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(0, 212, 255, 0.15), transparent 40%),
    var(--bg-secondary);
  border: 1px solid var(--glass);
  overflow: hidden;
}

.page-home .home-cta__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-home .home-cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--text-primary);
}

.page-home .home-cta__desc {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.page-home .home-cta__link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
}

.page-home .home-cta__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .page-home {
    padding: 32px 32px 80px;
  }

  .page-home .home-hero {
    grid-template-columns: 5fr 5fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 16px;
  }

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

  .page-home .home-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .page-home .home-latest__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }

  .page-home .home-cta__inner {
    padding: 72px 40px;
  }
}

@media (min-width: 1024px) {
  .page-home {
    padding: 40px 40px 96px;
  }

  .page-home .home-hero {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    padding: 56px 0 24px;
  }

  .page-home .home-hero__title {
    font-size: clamp(3.6rem, 6.5vw, 6.5rem);
  }

  .page-home .home-features__grid {
    gap: 64px 32px;
    align-items: start;
  }

  .page-home .home-features__grid .home-feature:nth-child(even) {
    margin-top: 64px;
  }

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

  .page-home .home-cta__inner::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 50%;
    pointer-events: none;
  }
}

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

  .page-home .home-feature,
  .page-home .home-feature__media img,
  .page-home .home-latest__item a {
    transition: none;
  }
}
