.page-home {
  --home-mesh-glow: rgba(123,47,247,.18);
  --home-card-overlay: linear-gradient(150deg, rgba(35,43,82,.94), rgba(11,16,38,.92));
}

.page-home .hero-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(620px, calc(100vh - var(--header-mobile-h)));
  padding-bottom: 28px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.55);
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,26,.74) 0%, rgba(11,16,38,.6) 40%, rgba(11,16,38,.96) 100%),
    radial-gradient(1200px 480px at 85% 12%, var(--home-mesh-glow), transparent 60%);
}

.page-home .hero-flow {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .8;
}

.page-home .flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  animation: home-flow-dash 20s linear infinite;
}

.page-home .flow-1 {
  stroke: rgba(57,255,136,.5);
  stroke-width: 2;
}

.page-home .flow-2 {
  stroke: rgba(123,47,247,.55);
  stroke-width: 2.5;
  animation-duration: 28s;
}

.page-home .flow-3 {
  stroke: rgba(242,245,255,.2);
  stroke-width: 1.5;
  animation-duration: 36s;
}

@keyframes home-flow-dash {
  to {
    stroke-dashoffset: -600;
  }
}

.page-home .frame-corners {
  position: absolute;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
}

.page-home .fc {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: .85;
  filter: drop-shadow(0 0 6px rgba(57,255,136,.45));
}

.page-home .fc-tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 10px 0 0 0;
}

.page-home .fc-tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 10px 0 0;
}

.page-home .fc-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 10px;
}

.page-home .fc-br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 10px 0;
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 40px;
}

.page-home .hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.page-home .hero-lead {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-home .hero-title {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: clamp(30px, 5.5vw, 58px);
  line-height: 1.12;
  letter-spacing: .01em;
  max-width: 12em;
  text-shadow: 0 2px 28px rgba(7,10,26,.85);
}

.page-home .title-accent {
  display: block;
  margin-top: 2px;
  color: var(--color-accent);
  font-size: .62em;
  letter-spacing: .08em;
  text-shadow: 0 0 24px rgba(57,255,136,.35);
}

.page-home .hero-subtitle {
  margin: 0 0 26px;
  color: var(--color-text);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: .02em;
}

.page-home .hero-grid {
  display: grid;
  gap: 18px;
}

.page-home .preview-card {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
  border: 1px solid var(--glow-green);
  border-radius: 18px;
  background: var(--home-card-overlay);
  box-shadow: 0 20px 48px rgba(7,10,26,.55), 0 0 42px rgba(123,47,247,.16);
}

.page-home .preview-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  border-top: 32px solid var(--color-accent);
  border-left: 32px solid transparent;
  border-radius: 0 18px 0 0;
}

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

.page-home .preview-timing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-sub);
  font-size: 13px;
}

.page-home .preview-timing::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.page-home .preview-title {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 20px;
  line-height: 1.4;
}

.page-home .preview-desc {
  margin: 0 0 18px;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  color: var(--color-text-sub);
  font-size: 13px;
}

.page-home .preview-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .preview-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

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

.page-home .schedule-panel {
  padding: 20px;
  border: 1px solid rgba(123,47,247,.32);
  border-radius: 16px;
  background: rgba(26,33,64,.72);
  backdrop-filter: blur(10px);
}

.page-home .schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.page-home .schedule-head h2 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 18px;
}

.page-home .schedule-note {
  margin: 0 0 16px;
  color: var(--color-text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .schedule-track {
  display: flex;
  gap: 10px;
  padding: 2px 2px 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,47,247,.6) rgba(168,179,217,.12);
}

.page-home .schedule-track::-webkit-scrollbar {
  height: 4px;
}

.page-home .schedule-track::-webkit-scrollbar-track {
  background: rgba(168,179,217,.12);
  border-radius: 2px;
}

.page-home .schedule-track::-webkit-scrollbar-thumb {
  background: rgba(123,47,247,.6);
  border-radius: 2px;
}

.page-home .schedule-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 18px;
  border: 1px solid rgba(168,179,217,.18);
  border-radius: 14px;
  background: var(--color-bg-card);
  color: var(--color-text);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.page-home .schedule-chip:hover,
.page-home .schedule-chip:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--glow-green);
  transform: translateY(-2px);
  outline: none;
}

.page-home .chip-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
}

.page-home .chip-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-sub);
  font-size: 12px;
}

.page-home .chip-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

.page-home .schedule-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .schedule-more:hover {
  text-decoration: underline;
}

.page-home .data-panel {
  position: relative;
  padding: 64px 0 32px;
}

.page-home .data-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-purple-green);
  opacity: .45;
}

.page-home .section-eyebrow {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-home .section-title {
  margin: 8px 0 6px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.25;
}

.page-home .section-sub {
  margin: 0 0 28px;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

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

.page-home .stat-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--color-bg-card);
  border: 1px solid rgba(168,179,217,.13);
}

.page-home .stat-value {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
}

.page-home .stat-unit {
  font-size: .5em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--color-accent);
}

.page-home .standings-card,
.page-home .rhythm-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--color-bg-card);
  border: 1px solid rgba(168,179,217,.14);
}

.page-home .standings-card {
  border-color: rgba(123,47,247,.3);
}

.page-home .standings-card .card-head,
.page-home .rhythm-card .card-head {
  margin-bottom: 12px;
}

.page-home .standings-card .card-title,
.page-home .rhythm-card .card-title {
  font-size: 18px;
}

.page-home .standings-card .card-body {
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .rhythm-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .rhythm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-sub);
  font-size: 14px;
}

.page-home .rhythm-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.page-home .rhythm-item:nth-child(2) .rhythm-dot {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--glow-purple);
}

.page-home .rhythm-item:nth-child(4) .rhythm-dot {
  background: var(--color-danger);
  box-shadow: 0 0 10px rgba(227,66,52,.45);
}

.page-home .panel-visual .img-frame,
.page-home .terminal-visual .img-frame,
.page-home .news-feature .img-frame {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(168,179,217,.14);
  border-radius: 16px;
}

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

.page-home .panel-visual .img-frame {
  aspect-ratio: 4 / 3;
}

.page-home .panel-visual .img-frame img {
  height: 100%;
  object-fit: cover;
}

.page-home .visual-caption {
  margin: 10px 0 0;
  color: var(--color-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .terminal-nav {
  padding: 56px 0 48px;
}

.page-home .terminal-grid {
  display: grid;
  gap: 16px;
}

.page-home .terminal-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
  border: 1px solid rgba(168,179,217,.16);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(26,33,64,.94), rgba(11,16,38,.95));
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.page-home .terminal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.page-home .terminal-web::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.page-home .terminal-wap::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.page-home .terminal-apple::before {
  background: var(--grad-red-purple);
}

.page-home .terminal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57,255,136,.4);
  box-shadow: 0 18px 40px rgba(7,10,26,.5), 0 0 30px rgba(57,255,136,.12);
}

.page-home .terminal-index {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--color-text-dim);
}

.page-home .terminal-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-headline);
  font-size: 20px;
}

.page-home .terminal-card p {
  margin: 0 0 20px;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .terminal-visual {
  margin-top: 22px;
}

.page-home .terminal-visual .img-frame {
  aspect-ratio: 3 / 2;
  max-width: 860px;
}

.page-home .terminal-visual .img-frame img {
  height: 100%;
  object-fit: cover;
}

.page-home .latest-news {
  padding: 64px 0 48px;
}

.page-home .news-layout {
  display: grid;
  gap: 24px;
}

.page-home .news-feature .img-frame {
  aspect-ratio: 1 / 1;
  min-height: 240px;
}

.page-home .news-feature .img-frame img {
  height: 100%;
  object-fit: cover;
}

.page-home .news-list {
  display: grid;
  gap: 16px;
}

.page-home .news-item {
  padding: 20px 22px;
  border: 1px solid rgba(168,179,217,.13);
  border-radius: 16px;
  background: var(--color-bg-card);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.page-home .news-item:hover {
  border-color: rgba(57,255,136,.4);
  box-shadow: 0 0 24px rgba(57,255,136,.08);
}

.page-home .news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .news-time {
  color: var(--color-text-dim);
  font-size: 12px;
}

.page-home .news-item h3 {
  margin: 12px 0 8px;
  font-family: var(--font-headline);
  font-size: 17px;
  line-height: 1.45;
}

.page-home .news-item p {
  margin: 0 0 12px;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .news-link {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .news-link:hover {
  text-decoration: underline;
}

.page-home .news-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .trust-strip {
  position: relative;
  padding: 48px 0 64px;
}

.page-home .trust-strip::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-red-purple);
  opacity: .35;
}

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

.page-home .trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(168,179,217,.13);
  border-radius: 14px;
  background: rgba(26,33,64,.6);
  color: var(--color-text-sub);
  font-size: 13px;
  line-height: 1.55;
}

.page-home .trust-icon {
  flex: 0 0 auto;
  color: var(--color-accent);
}

.page-home .trust-item:nth-child(2) .trust-icon {
  color: var(--color-primary);
}

.page-home .trust-item:nth-child(3) .trust-icon {
  color: var(--color-accent);
}

.page-home .trust-item:nth-child(4) .trust-icon {
  color: var(--color-danger);
}

.page-home .trust-note {
  margin: 22px 0 0;
  color: var(--color-text-dim);
  font-size: 13px;
  line-height: 1.7;
  max-width: 820px;
}

.page-home .trust-more {
  margin-top: 20px;
}

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

  .page-home .panel-stat {
    grid-column: span 3;
  }

  .page-home .standings-card,
  .page-home .rhythm-card {
    grid-column: span 3;
  }

  .page-home .panel-visual {
    grid-column: span 6;
  }

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

  .page-home .news-layout {
    grid-template-columns: 280px 1fr;
  }

  .page-home .news-feature .img-frame {
    min-height: 100%;
  }

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

@media (min-width: 820px) {
  .page-home .hero-frame {
    min-height: 760px;
    align-items: center;
    padding-bottom: 40px;
  }

  .page-home .hero-content {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    align-items: end;
  }

  .page-home .hero-subtitle {
    margin-bottom: 32px;
  }
}

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

  .page-home .panel-stat {
    grid-column: span 3;
  }

  .page-home .standings-card,
  .page-home .rhythm-card,
  .page-home .panel-visual {
    grid-column: span 4;
  }

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

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

  .page-home .preview-card,
  .page-home .schedule-chip,
  .page-home .terminal-card,
  .page-home .news-item {
    transition: none;
  }
}
