.page-home {
  --home-gold: #FFD54A;
  --home-green: #00E5B0;
  --home-violet: #9A7BC7;
  --home-panel-bg: rgba(27, 58, 92, 0.9);
  --home-line: rgba(244, 233, 216, 0.14);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(242, 201, 76, 0.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(0, 212, 170, 0.1), transparent 32%),
    radial-gradient(circle at 45% 78%, rgba(123, 94, 167, 0.16), transparent 36%),
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1.6px),
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1.6px),
    radial-gradient(circle at 74% 12%, rgba(0, 212, 170, 0.1) 0, rgba(0, 212, 170, 0.1) 1px, transparent 1.8px),
    radial-gradient(circle at 88% 42%, rgba(242, 201, 76, 0.08) 0, rgba(242, 201, 76, 0.08) 1px, transparent 1.8px),
    radial-gradient(circle at 62% 86%, rgba(160, 170, 181, 0.1) 0, rgba(160, 170, 181, 0.1) 1px, transparent 1.6px),
    radial-gradient(circle at 28% 68%, rgba(242, 201, 76, 0.06) 0, rgba(242, 201, 76, 0.06) 1px, transparent 1.6px);
  color: var(--warm-paper);
  font-family: var(--font-body);
  line-height: 1.6;
}

.page-home > section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.page-home .hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.page-home .hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-home .hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .hero-version-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--home-gold);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
}

.page-home .hero-ready {
  position: absolute;
  right: 1rem;
  bottom: 1.6rem;
  background: rgba(10, 22, 40, 0.74);
  border: 1px solid var(--home-gold);
  color: var(--home-gold);
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.page-home .hero-main {
  padding: 0.5rem 0.25rem;
}

.page-home .hero-eyebrow,
.page-home .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--home-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--warm-paper);
  margin: 0 0 1.25rem;
}

.page-home .hero-title-accent {
  color: var(--home-gold);
}

.page-home .hero-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, 0.86);
  max-width: 34em;
}

.page-home .hero-line-index {
  font-family: var(--font-mono);
  color: var(--home-green);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-home .btn-primary {
  background: linear-gradient(135deg, var(--home-gold), #E8B64C);
  color: var(--ink-black);
  border: 0;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 201, 76, 0.28);
}

.page-home .btn-secondary {
  background: transparent;
  border: 1px solid rgba(244, 233, 216, 0.4);
  color: var(--warm-paper);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.page-home .btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--home-green);
  background: rgba(0, 212, 170, 0.08);
}

.page-home .hero-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.page-home .hero-data-card {
  background: var(--home-panel-bg);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--home-gold);
  backdrop-filter: blur(6px);
}

.page-home .hero-data-card-green {
  border-left-color: var(--home-green);
}

.page-home .hero-data-card-glass {
  border-left-color: var(--cosmic-violet);
}

.page-home .hero-data-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--iron-gray);
  display: block;
}

.page-home .hero-data-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--home-gold);
  display: block;
  line-height: 1.2;
}

.page-home .hero-data-card-green .hero-data-value {
  color: var(--home-green);
}

.page-home .hero-data-card-glass .hero-data-value {
  color: var(--warm-paper);
}

.page-home .hero-data-note {
  font-size: 0.75rem;
  color: var(--iron-gray);
  display: block;
  margin-top: 0.2rem;
}

.page-home .hero-platform-desc {
  margin: 2.5rem 0 0;
  max-width: 56rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--home-green);
  background: rgba(0, 212, 170, 0.07);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(244, 233, 216, 0.8);
}

.page-home .section-head {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--warm-paper);
  margin: 0 0 0.6rem;
}

.page-home .section-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, 0.7);
  margin: 0;
}

.page-home .entry-sec {
  padding-top: 2rem;
}

.page-home .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
}

.page-home .entry-item {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  border: 1px solid rgba(244, 233, 216, 0.08);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.page-home .entry-item:hover {
  border-color: var(--home-gold);
  background: rgba(27, 58, 92, 0.6);
}

.page-home .entry-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--home-green);
  display: block;
  margin-bottom: 0.4rem;
}

.page-home .entry-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--warm-paper);
}

.page-home .entry-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(244, 233, 216, 0.75);
  margin: 0 0 1rem;
}

.page-home .live-sec {
  padding-top: 3.5rem;
}

.page-home .live-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.page-home .live-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .live-chart {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 92%);
}

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

.page-home .live-chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 17, 31, 0.82) 100%);
}

.page-home .live-chart-badge {
  align-self: flex-start;
  background: var(--home-green);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.page-home .live-chart-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--home-gold);
  line-height: 1;
}

.page-home .live-chart-caption {
  font-size: 0.8rem;
  color: var(--iron-gray);
}

.page-home .live-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.page-home .stat {
  background: rgba(27, 58, 92, 0.72);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--home-green);
}

.page-home .stat-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--home-green);
  display: block;
  line-height: 1.2;
}

.page-home .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--iron-gray);
  display: block;
  margin-top: 0.25rem;
}

.page-home .live-bars {
  background: rgba(10, 22, 40, 0.72);
  border: 1px solid rgba(244, 233, 216, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}

.page-home .live-bars-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--warm-paper);
}

.page-home .live-bar-row {
  display: grid;
  grid-template-columns: 5.5em 1fr 3em;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.page-home .live-bar-label {
  font-size: 0.8rem;
  color: rgba(244, 233, 216, 0.78);
}

.page-home .live-bar-track {
  height: 0.55rem;
  background: rgba(244, 233, 216, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.page-home .live-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--home-green), var(--home-gold));
  border-radius: 4px;
  animation: page-home-live-fill 0.9s ease-out both;
}

.page-home .live-bar-fill-58 { width: 58%; }
.page-home .live-bar-fill-81 { width: 81%; }
.page-home .live-bar-fill-66 { width: 66%; }
.page-home .live-bar-fill-72 { width: 72%; }

.page-home .live-bar-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--home-gold);
  text-align: right;
}

.page-home .spark-svg {
  width: 100%;
  height: auto;
  margin-top: 0.8rem;
  display: block;
}

.page-home .live-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--iron-gray);
}

.page-home .compare-sec {
  padding-top: 3.5rem;
}

.page-home .compare-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 2%, 100% 0, 96% 100%, 2% 96%);
  background: var(--bg-deep);
}

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

.page-home .compare-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 170, 181, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 170, 181, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-home .compare-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--home-gold);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

.page-home .compare-copy {
  padding-top: 1.5rem;
}

.page-home .compare-copy .section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, 0.88);
  margin: 0 0 0.75rem;
}

.page-home .compare-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, 0.7);
  max-width: 34em;
}

.page-home .tab-list {
  display: flex;
  gap: 0.3rem;
  margin: 1.5rem 0 1rem;
}

.page-home .tab-btn {
  background: rgba(244, 233, 216, 0.08);
  border: 1px solid rgba(244, 233, 216, 0.18);
  color: var(--iron-gray);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-home .tab-btn:hover {
  border-color: var(--home-gold);
  color: var(--warm-paper);
}

.page-home .tab-btn:focus-visible {
  outline: 2px solid var(--home-green);
  outline-offset: 2px;
}

.page-home .tab-btn[aria-selected="true"] {
  background: var(--home-gold);
  border-color: var(--home-gold);
  color: var(--ink-black);
  font-weight: 700;
}

.page-home .compare-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .tab-panel {
  background: rgba(27, 58, 92, 0.66);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.page-home .version-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .version-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, 0.78);
}

.page-home .version-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  top: 0.45em;
  color: var(--home-green);
}

.page-home .version-list-v3 li::before {
  color: var(--home-gold);
}

.page-home .news-sec {
  padding-top: 3.5rem;
}

.page-home .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.page-home .news-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(244, 233, 216, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.page-home .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-green);
}

.page-home .news-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-home .news-card:hover .news-img {
  transform: scale(1.03);
}

.page-home .news-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--home-gold);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

.page-home .news-media-violet {
  background:
    radial-gradient(circle at 60% 40%, rgba(123, 94, 167, 0.55), transparent 65%),
    var(--bg-secondary);
}

.page-home .news-media-gold {
  background:
    radial-gradient(circle at 30% 60%, rgba(242, 201, 76, 0.28), transparent 60%),
    var(--bg-secondary);
}

.page-home .news-symbol {
  font-size: 2.4rem;
  color: var(--warm-paper);
  opacity: 0.9;
}

.page-home .news-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-home .news-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--warm-paper);
}

.page-home .news-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(244, 233, 216, 0.7);
  margin: 0 0 1rem;
  flex: 1;
}

.page-home .news-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--home-green);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.page-home .news-link:hover {
  color: var(--home-gold);
}

.page-home .site-meta {
  max-width: none;
  width: 100%;
  border-top: 1px solid rgba(244, 233, 216, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--bg-deep);
}

.page-home .site-meta-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .site-meta p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--iron-gray);
  margin: 0 0 0.35rem;
}

@keyframes page-home-live-fill {
  from { width: 0; }
}

@media (min-width: 768px) {
  .page-home > section {
    padding: 3.5rem 2rem;
  }

  .page-home .hero {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

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

  .page-home .entry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

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

  .page-home .compare-panels {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .news-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .entry-item-offset-a { transform: translateY(0); }
  .page-home .entry-item-offset-b { transform: translateY(24px); }
  .page-home .entry-item-offset-c { transform: translateY(8px); }
  .page-home .entry-item-offset-d { transform: translateY(20px); }

  .page-home .compare-sec {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .page-home .compare-copy {
    padding-top: 0.5rem;
  }

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

  .page-home .news-card:first-child {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-stage {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
    gap: 0 2.5rem;
  }

  .page-home .hero-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    min-height: 26rem;
  }

  .page-home .hero-main {
    grid-column: 2;
    grid-row: 1;
    padding: 0.5rem 0 1rem;
  }

  .page-home .hero-data {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
  }

  .page-home .hero-title {
    font-size: 2.75rem;
  }

  .page-home .live-grid {
    grid-template-columns: 1fr 0.9fr 1.1fr;
    align-items: stretch;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
