.page-home {
  --home-orb: rgba(123, 47, 190, 0.35);
  --home-glow: rgba(255, 106, 0, 0.28);
  --home-space: clamp(64px, 8vw, 120px);
  --home-tilt: -3deg;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(123, 47, 190, 0.18), transparent 34%),
    radial-gradient(circle at 85% 40%, rgba(255, 106, 0, 0.08), transparent 28%),
    var(--night-bg);
  color: var(--lavender-text);
}

.page-home .home-breadcrumb {
  padding-block: 20px 0;
}

.page-home .home-breadcrumb .breadcrumb-list {
  margin: 0;
  padding: 0;
}

.page-home .home-hero {
  position: relative;
  padding: 48px 0 clamp(64px, 9vw, 120px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(123, 47, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 190, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

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

.page-home .home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(26, 20, 36, 0.72);
  color: var(--soft-orange);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-home .home-hero-eyebrow .live-dot {
  width: 8px;
  height: 8px;
  animation: homePulse 1.6s ease-in-out infinite;
}

.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  transform: skewX(var(--home-tilt));
  color: var(--lavender-text);
}

.page-home .home-hero-desc {
  max-width: 56ch;
  margin: 0;
  color: var(--lavender-text);
  font-size: 16px;
  line-height: 1.75;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .btn {
  border-radius: 2px;
  letter-spacing: 0.04em;
  transform: skewX(var(--home-tilt));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .btn:hover {
  transform: skewX(var(--home-tilt)) translateY(-2px);
  border-color: var(--neon-orange);
  box-shadow: 0 0 24px var(--home-glow);
}

.page-home .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}

.page-home .home-hero-stat {
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--primary-purple);
}

.page-home .home-hero-stat dt {
  margin-bottom: 4px;
  color: var(--muted-text);
  font-size: 13px;
}

.page-home .home-hero-stat dd {
  margin: 0;
  color: var(--lavender-text);
  font-size: 20px;
  font-weight: 800;
}

.page-home .home-hero-visual {
  position: relative;
}

.page-home .home-hero-visual::before,
.page-home .home-hero-visual::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero-visual::before {
  top: -20px;
  right: -20px;
  background: var(--primary-purple);
}

.page-home .home-hero-visual::after {
  bottom: -20px;
  left: -20px;
  background: var(--neon-orange);
}

.page-home .home-hero-visual-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--primary-purple);
  background: var(--surface-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(123, 47, 190, 0.3);
  animation: homeGlow 6s ease-in-out infinite alternate;
}

.page-home .home-hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 106, 0, 0.4);
  pointer-events: none;
}

.page-home .home-hero-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 100%;
}

.page-home .home-hero-float-num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--neon-orange);
  opacity: 0.65;
  transform: skewX(-8deg);
  pointer-events: none;
}

.page-home .home-updates,
.page-home .home-archive,
.page-home .home-categories,
.page-home .home-guide,
.page-home .home-info {
  position: relative;
  padding-block: var(--home-space);
}

.page-home .home-updates::before,
.page-home .home-archive::before,
.page-home .home-categories::before,
.page-home .home-guide::before,
.page-home .home-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--neon-orange), transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}

.page-home .home-archive {
  background: rgba(26, 20, 36, 0.55);
}

.page-home .home-guide {
  background: rgba(26, 20, 36, 0.4);
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.page-home .section-num {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-purple);
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}

.page-home .section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--lavender-text);
}

.page-home .section-meta {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-updates-strip {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-updates-track {
  display: flex;
  gap: 16px;
}

.page-home .home-update-card {
  flex: 0 0 86%;
  scroll-snap-align: start;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--neon-orange);
}

.page-home .home-update-card .tag {
  margin-bottom: 12px;
}

.page-home .home-update-card .card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--lavender-text);
}

.page-home .home-update-card .card-text {
  margin: 0 0 14px;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-update-card .card-meta {
  margin: 0;
  color: var(--soft-orange);
  font-size: 13px;
}

.page-home .home-archive-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .home-archive-figure {
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.page-home .home-archive-info h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--lavender-text);
}

.page-home .home-archive-info p {
  margin: 0;
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .home-archive-coverage {
  margin: 24px 0;
}

.page-home .home-archive-bar {
  height: 10px;
  background: var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .home-archive-bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--success));
  box-shadow: 0 0 18px rgba(49, 224, 160, 0.35);
}

.page-home .home-archive-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  color: var(--muted-text);
  font-size: 13px;
}

.page-home .home-archive-labels b {
  color: var(--success);
  font-size: 18px;
  font-weight: 800;
  margin-right: 4px;
}

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

.page-home .home-cat-card {
  position: relative;
  display: block;
  min-height: 168px;
  overflow: hidden;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .home-cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-orange);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 26px rgba(255, 106, 0, 0.15);
}

.page-home .home-cat-num {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-purple);
  transition: -webkit-text-stroke-color 0.3s var(--ease);
}

.page-home .home-cat-card:hover .home-cat-num {
  -webkit-text-stroke-color: var(--neon-orange);
}

.page-home .home-cat-card .card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--lavender-text);
}

.page-home .home-cat-card .card-text {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-cat-card--media {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-home .home-cat-card--media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.page-home .home-cat-card--media .card-body {
  padding: 16px;
}

.page-home .home-guide-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-guide-list {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .home-guide-step {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .home-guide-step-num {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--neon-orange);
}

.page-home .home-guide-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--lavender-text);
}

.page-home .home-guide-step p {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-guide-figure {
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .home-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-width: 100%;
}

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

.page-home .home-info-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary-purple);
  border-radius: var(--radius);
}

.page-home .home-info-card h3 {
  margin: 0 0 8px;
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .home-info-card p {
  margin: 0;
  color: var(--lavender-text);
  font-size: 16px;
  line-height: 1.5;
}

.page-home .home-info-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--soft-orange);
  background: rgba(255, 159, 28, 0.06);
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-info-note a {
  color: var(--soft-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-backtop {
  margin-top: 32px;
  text-align: right;
}

.page-home .home-backtop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-visual-frame,
  .page-home .home-hero-eyebrow .live-dot {
    animation: none;
  }
}

@media (min-width: 600px) {
  .page-home .home-update-card {
    flex-basis: 42%;
  }

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

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

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-top: 64px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

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

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

  .page-home .home-update-card {
    flex: initial;
  }

  .page-home .home-archive-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .home-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-home .home-guide-grid {
    grid-template-columns: 1fr 0.85fr;
  }

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

@keyframes homeGlow {
  from {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 20px rgba(123, 47, 190, 0.25);
  }
  to {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 42px rgba(123, 47, 190, 0.55), 0 0 18px rgba(255, 106, 0, 0.2);
  }
}

@keyframes homePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 12px 2px rgba(255, 106, 0, 0.4);
  }
}
