.page-home {
  --home-glow-accent: rgba(255, 107, 53, 0.28);
  --home-glow-purple: rgba(123, 44, 191, 0.26);
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--home-glow-purple), transparent 60%),
    radial-gradient(900px 500px at -10% 35%, var(--home-glow-accent), transparent 55%),
    linear-gradient(180deg, #0b1e3a 0%, #0a0a1a 100%);
  color: var(--color-white);
}

.page-home .home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 28px) 0 48px;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .home-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  transform: scale(1.06);
}

.page-home .home-hero__glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.page-home .home-hero__glow--one {
  top: 12%;
  right: -120px;
  background: var(--home-glow-purple);
}

.page-home .home-hero__glow--two {
  bottom: 6%;
  left: -100px;
  background: var(--home-glow-accent);
}

.page-home .home-hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.page-home .home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-home .home-hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(255, 107, 53, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw + 1rem, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  max-width: 11em;
}

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

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .home-hero__title-accent {
    background: linear-gradient(120deg, var(--color-accent) 0%, #ffd166 60%, var(--color-purple-light) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.page-home .home-hero__lede {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 36em;
}

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

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 6px;
}

.page-home .home-hero__meta-coord {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.page-home .home-hero__scan {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.page-home .home-scan-card {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 41, 77, 0.85) 0%, rgba(10, 10, 26, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 107, 53, 0.08);
}

.page-home .home-scan-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 6px;
}

.page-home .home-scan-card__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 14px;
}

.page-home .home-scan-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.page-home .home-scan-card__pulse {
  position: absolute;
  inset: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 53, 0.5);
  animation: homePulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes homePulse {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.page-home .home-scan-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.page-home .home-scan-card__desc {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.page-home .home-scan-card__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.page-home .home-scan-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ok);
  box-shadow: 0 0 12px rgba(0, 212, 126, 0.6);
}

.page-home .home-v4,
.page-home .home-cases,
.page-home .home-library,
.page-home .home-network,
.page-home .home-news {
  position: relative;
  padding: 72px 0;
}

.page-home .home-v4 {
  background:
    radial-gradient(700px 420px at 90% 10%, rgba(123, 44, 191, 0.16), transparent 60%),
    radial-gradient(600px 360px at 5% 60%, rgba(255, 107, 53, 0.08), transparent 55%);
}

.page-home .home-v4__head,
.page-home .home-cases__head,
.page-home .home-library__content,
.page-home .home-news__head {
  margin-bottom: 32px;
}

.page-home .home-v4__eyebrow,
.page-home .home-cases__eyebrow,
.page-home .home-library__eyebrow,
.page-home .home-news__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-purple-light);
  margin: 0 0 8px;
}

.page-home .home-v4 .section-title,
.page-home .home-cases .section-title,
.page-home .home-library .section-title,
.page-home .home-news .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw + 0.8rem, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}

.page-home .home-v4 .section-subtitle,
.page-home .home-cases .section-subtitle,
.page-home .home-library .section-subtitle,
.page-home .home-news .section-subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42em;
}

.page-home .home-v4__compare {
  display: grid;
  gap: 18px;
  margin: 20px 0 40px;
}

.page-home .home-v4__compare-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .home-v4__compare-card--old {
  background: rgba(10, 10, 26, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.82;
}

.page-home .home-v4__compare-card--new {
  background: linear-gradient(150deg, rgba(123, 44, 191, 0.18) 0%, rgba(22, 41, 77, 0.8) 60%, rgba(255, 107, 53, 0.08) 130%);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 0 36px rgba(123, 44, 191, 0.12);
}

.page-home .home-v4__compare-version {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.page-home .home-v4__compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.page-home .home-v4__compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .home-v4__compare-card li {
  padding-left: 18px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-home .home-v4__compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple-light);
}

.page-home .home-v4__compare-card--new li::before {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.page-home .home-v4__compare-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  transform: rotate(90deg);
}

.page-home .home-v4__features {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 40px 0;
}

.page-home .home-v4__feature {
  position: relative;
  margin: 0;
  padding: 24px 22px;
  background: linear-gradient(150deg, rgba(22, 41, 77, 0.7), rgba(10, 10, 26, 0.85));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .home-v4__feature:hover {
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-4px);
}

.page-home .home-v4__feature-index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-home .home-v4__feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  padding-right: 40px;
}

.page-home .home-v4__feature p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.page-home .home-v4__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-v4__stat {
  text-align: center;
}

.page-home .home-v4__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--color-accent), var(--color-purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-v4__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.page-home .home-cases__cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0 20px;
}

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

.page-home .home-cases__cover-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  background: rgba(10, 10, 26, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.page-home .home-cases__cover-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.page-home .home-cases__cover-label {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.page-home .home-cases__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.page-home .home-cases__filter-title {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}

.page-home .home-cases__tag {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-home .home-cases__tag:hover {
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.1);
}

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

.page-home .home-cases__item {
  position: relative;
  padding: 24px 22px 22px;
  background: linear-gradient(150deg, rgba(22, 41, 77, 0.7), rgba(10, 10, 26, 0.85));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .home-cases__item:hover {
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-4px);
}

.page-home .home-cases__item-index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-home .home-cases__item-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(123, 44, 191, 0.24);
  border: 1px solid rgba(157, 78, 221, 0.35);
  color: #d5b3ff;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.page-home .home-cases__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.page-home .home-cases__item p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 0.92rem;
}

.page-home .home-cases__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.page-home .home-cases__cta-note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
}

.page-home .home-library {
  background:
    radial-gradient(680px 400px at 10% 20%, rgba(123, 44, 191, 0.14), transparent 60%),
    radial-gradient(500px 300px at 95% 80%, rgba(255, 107, 53, 0.08), transparent 55%);
}

.page-home .home-library__wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}

.page-home .home-library__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-home .home-library__points {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 14px;
  width: 100%;
}

.page-home .home-library__point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-library__point-num {
  flex: 0 0 auto;
  color: var(--color-accent);
  font-size: 0.85rem;
  padding-top: 3px;
}

.page-home .home-library__point h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.page-home .home-library__point p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .home-library__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-home .home-library__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .home-library__timeline {
  position: relative;
  border-left: 1px solid rgba(255, 107, 53, 0.35);
  margin-left: 8px;
  padding-left: 20px;
  display: grid;
  gap: 18px;
}

.page-home .home-library__timeline-item {
  display: grid;
  gap: 4px;
}

.page-home .home-library__timeline-mark {
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .home-library__timeline-item p {
  margin: 0;
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-home .home-library__rhythm {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(22, 41, 77, 0.55);
  border-left: 3px solid var(--color-purple-light);
}

.page-home .home-network {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(123, 44, 191, 0.1), transparent 60%),
    linear-gradient(180deg, transparent, rgba(10, 10, 26, 0.5) 30%, rgba(10, 10, 26, 0.5) 70%, transparent);
  padding: 48px 0;
}

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

.page-home .home-network__item {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.page-home .home-network__item span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.page-home .home-network__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.page-home .home-network__item p {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}

.page-home .home-network__note {
  grid-column: 1 / -1;
  padding: 18px 16px;
  border-left: 3px solid var(--color-accent);
  background: rgba(123, 44, 191, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-home .home-network__note p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--color-white);
}

.page-home .home-news {
  padding-bottom: 88px;
}

.page-home .home-news__list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.page-home .home-news__item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 22px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .home-news__item:hover {
  border-color: rgba(255, 107, 53, 0.45);
  transform: translateY(-3px);
}

.page-home .home-news__item-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-warning);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-home .home-news__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .home-news__item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-home .home-news__item h3 a:hover {
  color: var(--color-accent);
}

.page-home .home-news__item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-home .home-news__item-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  transition: color 0.3s ease;
}

.page-home .home-news__item-link:hover {
  color: var(--color-accent-light);
}

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

@media (min-width: 768px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 60px;
  }

  .page-home .home-hero__scan {
    transform: perspective(1000px) rotateY(-4deg) rotateZ(1.2deg) translateY(8px);
    transition: transform 0.4s ease;
  }

  .page-home .home-hero__scan:hover {
    transform: perspective(1000px) rotateY(-1deg) rotateZ(0deg) translateY(0);
  }

  .page-home .home-v4__compare {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
  }

  .page-home .home-v4__compare-arrow {
    transform: none;
  }

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

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

  .page-home .home-library__wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__title {
    font-size: 3.2rem;
  }

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

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

  .page-home .home-cases__grid .home-cases__item:nth-child(2) {
    transform: translateY(10px);
  }

  .page-home .home-cases__grid .home-cases__item:nth-child(5) {
    transform: translateY(10px);
  }

  .page-home .home-network__wrap {
    grid-template-columns: repeat(4, 1fr) 1.4fr;
  }

  .page-home .home-network__note {
    grid-column: auto;
  }

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