.page-home {
  --page-lime-soft: rgba(57, 255, 20, 0.12);
  --page-orange-soft: rgba(255, 122, 0, 0.14);
  --page-deep-soft: rgba(13, 27, 62, 0.08);
  background: var(--c-light);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

.page-home .hero {
  position: relative;
  color: var(--c-white);
  background:
    radial-gradient(circle at 84% 12%, rgba(57, 255, 20, 0.14), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255, 122, 0, 0.24), transparent 46%),
    linear-gradient(135deg, var(--c-deep) 0%, #142a55 100%);
  padding: 40px 0 72px;
  overflow: hidden;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(135deg, var(--c-orange) 0 14px, var(--c-deep) 14px 28px);
  z-index: 4;
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .hero-copy .breadcrumbs {
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .hero-copy .breadcrumbs ol {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.page-home .hero .section-label {
  color: var(--c-lime);
  border-color: var(--c-lime);
  margin-bottom: 12px;
}

.page-home .hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.page-home .hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 0 26px;
}

.page-home .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .btn-on-deep {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.page-home .btn-on-deep:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-white);
}

.page-home .hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 2px solid rgba(255, 255, 255, 0.14);
}

.page-home .hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-stats strong {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--c-orange);
}

.page-home .hero-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-home .demo-card {
  background: var(--c-white);
  color: var(--c-text);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.page-home .demo-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 12px;
  border-bottom: 2px solid var(--c-deep);
}

.page-home .demo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--c-deep);
}

.page-home .demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-gray);
}

.page-home .demo-live .status-dot {
  width: 8px;
  height: 8px;
  background: var(--c-lime);
  border-radius: 50%;
}

.page-home .demo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px 0;
}

.page-home .demo-tab {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border: 2px solid var(--c-deep);
  background: var(--c-white);
  color: var(--c-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.page-home .demo-tab:hover {
  transform: translateY(-2px);
}

.page-home .demo-tab-new {
  background: var(--c-deep);
  color: var(--c-white);
  border-color: var(--c-deep);
}

.page-home .demo-stage {
  margin: 0 18px 18px;
  border: 2px solid var(--c-deep);
  border-radius: 0 0 10px 10px;
  background: var(--c-light);
  overflow: hidden;
  min-height: 300px;
}

.page-home .demo-panel {
  display: none;
  padding: 22px 18px;
  min-height: 280px;
}

.page-home .demo-panel.demo-legacy {
  display: block;
}

.page-home .demo-panel.demo-new:target {
  display: block;
}

.page-home .demo-panel.demo-new:target ~ .demo-panel.demo-legacy {
  display: none;
}

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

.page-home .demo-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-deep);
  background: var(--c-white);
  border: 2px solid var(--c-deep);
  padding: 4px 10px;
  border-radius: 999px;
}

.page-home .demo-badge-lime {
  background: var(--c-lime);
  color: var(--c-deep);
  border-color: var(--c-deep);
}

.page-home .demo-version {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-orange);
}

.page-home .demo-panel h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 8px 0 8px;
  color: var(--c-deep);
}

.page-home .demo-panel p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-gray);
  margin-bottom: 14px;
}

.page-home .demo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.page-home .demo-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text);
}

.page-home .demo-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-orange);
  font-size: 11px;
}

.page-home .btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.page-home .hero-photo {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 18px auto 0;
  border-radius: 12px;
  border: 4px solid var(--c-white);
  box-shadow: 8px 8px 0 var(--c-orange);
  object-fit: cover;
  aspect-ratio: 1;
}

.page-home .hero-particles {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 260px;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.page-home .version-section {
  background: var(--c-white);
  padding: 64px 0 72px;
}

.page-home .section-heading {
  margin-bottom: 40px;
  max-width: 780px;
}

.page-home .section-heading h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.2;
  margin: 10px 0 14px;
}

.page-home .section-heading .section-desc {
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

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

.page-home .version-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-home .version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--c-deep);
}

.page-home .new-card::before {
  background: var(--c-orange);
}

.page-home .version-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.page-home .version-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--c-deep);
}

.page-home .version-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-deep);
  background: var(--page-orange-soft);
  border: 1px solid var(--c-orange);
  border-radius: 999px;
  padding: 4px 10px;
}

.page-home .version-badge-lime {
  background: var(--page-lime-soft);
  border-color: var(--c-orange);
}

.page-home .version-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.page-home .version-card > p {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.65;
  margin-bottom: 16px;
}

.page-home .version-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.page-home .version-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
}

.page-home .version-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-orange);
  font-weight: 900;
}

.page-home .new-card .version-list li::before {
  color: var(--c-deep);
}

.page-home .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.page-home .journal-section {
  position: relative;
  color: var(--c-white);
  background:
    radial-gradient(circle at 88% 18%, rgba(57, 255, 20, 0.1), transparent 44%),
    var(--c-deep);
  padding: 72px 0 88px;
  overflow: hidden;
}

.page-home .journal-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: repeating-linear-gradient(135deg, var(--c-orange) 0 16px, var(--c-deep) 16px 32px);
}

.page-home .journal-section .section-heading h2 {
  color: var(--c-white);
}

.page-home .journal-section .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .section-link {
  margin-top: 20px;
}

.page-home .journal-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.page-home .journal-item {
  background: var(--c-white);
  color: var(--c-text);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.page-home .journal-thumb {
  overflow: hidden;
  background: var(--c-deep);
}

.page-home .journal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .journal-content {
  padding: 20px;
}

.page-home .journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-home .journal-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-white);
  background: var(--c-orange);
  border-radius: 999px;
  padding: 4px 12px;
}

.page-home .journal-time {
  font-size: 12px;
  color: var(--c-gray);
}

.page-home .journal-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 8px;
}

.page-home .journal-excerpt {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.65;
  margin: 0 0 14px;
}

.page-home .journal-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--c-deep);
  text-decoration: none;
}

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

.page-home .tags-section {
  background: var(--c-light);
  padding: 64px 0 72px;
}

.page-home .tags-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .tags-wordwall {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--c-deep);
  background: var(--c-white);
  color: var(--c-deep);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .tag-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.page-home .tag-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 4px 4px 0 var(--c-deep);
}

.page-home .tag-pill--football {
  background: rgba(255, 122, 0, 0.08);
}

.page-home .tag-pill--basketball {
  background: rgba(13, 27, 62, 0.06);
}

.page-home .tag-pill--tennis {
  background: var(--page-lime-soft);
}

.page-home .tag-pill--esports {
  background: var(--c-deep);
  color: var(--c-white);
  border-color: var(--c-deep);
}

.page-home .tag-pill--multi {
  background: var(--c-white);
}

.page-home .tag-note {
  flex: 0 0 100%;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-gray);
  margin: 6px 0 0;
}

.page-home .tags-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--c-deep);
  box-shadow: 8px 8px 0 rgba(13, 27, 62, 0.16);
}

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

.page-home .tags-media-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(13, 27, 62, 0.84);
  color: var(--c-white);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border-left: 4px solid var(--c-lime);
}

.page-home .tags-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--c-border);
}

.page-home .tags-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .tags-stat strong {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-deep);
}

.page-home .tags-stat span {
  font-size: 13px;
  color: var(--c-gray);
}

.page-home .mobile-section {
  background: var(--c-white);
  padding: 64px 0 72px;
}

.page-home .mobile-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid var(--c-deep);
  box-shadow: 10px 10px 0 rgba(13, 27, 62, 0.18);
}

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

.page-home .mobile-content {
  position: relative;
  padding: 26px 20px 30px;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.8), rgba(13, 27, 62, 0.97));
}

.page-home .mobile-content .section-label {
  color: var(--c-lime);
  border-color: var(--c-lime);
}

.page-home .mobile-content h2 {
  font-family: var(--font-heading);
  color: var(--c-white);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin: 10px 0 12px;
}

.page-home .mobile-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 18px;
}

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

@media (min-width: 700px) {
  .page-home .journal-item--media {
    grid-template-columns: 220px 1fr;
  }

  .page-home .journal-thumb img {
    aspect-ratio: auto;
    height: 200px;
  }
}

@media (min-width: 860px) {
  .page-home .tags-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .mobile-banner {
    min-height: 360px;
  }

  .page-home .mobile-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(13, 27, 62, 0.94) 0%, rgba(13, 27, 62, 0.62) 55%, rgba(13, 27, 62, 0.1) 100%);
    padding: 48px 5% 48px 60px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding: 64px 0 88px;
  }

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

  .page-home .hero-demo {
    padding-bottom: 44px;
  }

  .page-home .hero-photo {
    position: absolute;
    right: -14px;
    bottom: 0;
    width: 180px;
    margin: 0;
    z-index: 4;
  }

  .page-home .version-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .page-home .journal-list {
    gap: 20px;
  }
}
