.page-home {
  --home-grid: rgba(107, 123, 140, 0.18);
  --home-glow-green: rgba(57, 255, 20, 0.08);
  --home-glow-orange: rgba(255, 107, 53, 0.08);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  overflow-x: hidden;
}

/* ===== Hero ===== */
.page-home .home-hero {
  position: relative;
  padding: 40px 0 0;
  background-image:
    linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center center;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--home-glow-green) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-green) 0%, transparent 40%, var(--accent-orange) 100%);
  opacity: 0.6;
}

.page-home .hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 56px;
}

.page-home .hero-content h1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
  color: var(--text-white);
  margin: 16px 0 20px;
  letter-spacing: 0.02em;
}

.page-home .hero-key {
  color: var(--accent-green);
}

.page-home .hero-description {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

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

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

.page-home .stat-cell {
  padding: 14px 16px;
  background: rgba(245, 240, 230, 0.03);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-home .stat-value {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-green);
}

.page-home .stat-cell dd {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

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

.page-home .hero-frame {
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #102A4A 100%);
  transform: rotate(1.2deg) translateY(4px);
  box-shadow: var(--glow-green);
}

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

.page-home .hero-float {
  position: absolute;
  right: 8px;
  bottom: 16px;
  min-width: 120px;
  padding: 12px 16px;
  text-align: center;
  background: rgba(11, 29, 58, 0.88);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.page-home .hero-float .float-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.page-home .hero-float .float-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-green);
}

/* ===== Section head ===== */
.page-home .section-head {
  margin-bottom: 32px;
}

.page-home .section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-white);
}

.page-home .section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* ===== Version ===== */
.page-home .home-version {
  position: relative;
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-home .home-version::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 50%;
  background: linear-gradient(90deg, transparent 0%, var(--accent-orange) 100%);
  opacity: 0.8;
}

.page-home .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.page-home .version-frame {
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-primary);
}

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

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

.page-home .version-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(245, 240, 230, 0.03);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent-orange);
  transition: background var(--transition), transform var(--transition);
}

.page-home .version-item:hover {
  background: rgba(255, 107, 53, 0.07);
  transform: translateX(4px);
}

.page-home .item-index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent-orange);
}

.page-home .item-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-light);
}

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

/* ===== Features ===== */
.page-home .home-features {
  padding: 64px 0;
}

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

.page-home .feature-card {
  position: relative;
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--accent-green);
  border-right: 2px solid var(--accent-green);
  border-radius: 0 var(--radius-md) 0 0;
  opacity: 0.6;
  pointer-events: none;
}

.page-home .feature-card:hover,
.page-home .feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.page-home .feature-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.page-home .feature-bg {
  height: 96px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-home .feature-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
}

.page-home .feature-card:hover .feature-bg img {
  opacity: 0.72;
  transform: scale(1.03);
}

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

.page-home .feature-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-light);
  transition: color var(--transition);
}

.page-home .feature-card:hover .feature-content h3 {
  color: var(--accent-green);
}

.page-home .feature-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== Philosophy ===== */
.page-home .home-philosophy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-color);
}

.page-home .philosophy-texture {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 200px;
  z-index: 1;
}

.page-home .philosophy-texture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .philosophy-panel {
  position: relative;
  z-index: 2;
  padding: 64px 20px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(11, 29, 58, 0.92) 55%, rgba(13, 42, 74, 0.85) 100%);
}

.page-home .philosophy-panel h2 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.25;
  color: var(--text-white);
}

.page-home .philosophy-quote {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .philosophy-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.page-home .meta-cell {
  padding: 18px 16px;
  background: rgba(245, 240, 230, 0.03);
  border-radius: var(--radius-md);
  border-top: 1px solid rgba(57, 255, 20, 0.3);
}

.page-home .meta-cell .mono {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-green);
}

.page-home .meta-cell p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Updates ===== */
.page-home .home-updates {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

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

.page-home .update-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 14px;
  background: rgba(245, 240, 230, 0.03);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--border-color);
}

.page-home .update-type {
  flex-shrink: 0;
  padding: 4px 12px;
  margin-top: 4px;
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
}

.page-home .update-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-light);
  transition: color var(--transition);
}

.page-home .update-item:hover .update-body h3 {
  color: var(--accent-green);
}

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

/* ===== Contact ===== */
.page-home .home-contact {
  padding: 64px 0;
}

.page-home .contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-xl);
}

.page-home .contact-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-white);
}

.page-home .contact-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ===== Desktop / Tablet ===== */
@media (min-width: 768px) {
  .page-home .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 80px;
  }

  .page-home .hero-content h1 {
    font-size: 42px;
    line-height: 1.18;
  }

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

  .page-home .hero-float {
    right: 24px;
    bottom: 32px;
  }

  .page-home .version-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

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

  .page-home .feature-bg {
    height: 120px;
  }

  .page-home .section-head h2,
  .page-home .philosophy-panel h2 {
    font-size: 30px;
  }

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

@media (min-width: 1024px) {
  .page-home .hero-content h1 {
    font-size: 46px;
  }

  .page-home .feature-grid {
    gap: 28px;
  }
}
