/* Home page: the 3D stage behind the sections, and the Light / Dark modes.
   Dark is the site's own look; Light re-colours the same components (the variables of styles.css / dashboard.css). */

body.nh { background: #07080b; }
.nh .page-glow, .nh .sand { display: none; }
.nh-stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.nh-ready .nh-stage { opacity: 1; }
.nh-no3d .nh-stage { display: none; }
.nh main { position: relative; z-index: 1; }

/* Sections: the 3D object stands beside each panel (data-side on the section says which side it is on). */
.nh-sec { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 56px; }
.nh-sec > .wrap { max-width: none; padding-left: clamp(20px, 3.2vw, 56px); padding-right: clamp(20px, 3.2vw, 56px); }
.nh-panel {
  position: relative; width: min(560px, 46%); padding: 30px 32px; border-radius: 28px;
  background: linear-gradient(150deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.nh-panel.nh-wide { width: min(1000px, 66%); }
.nh-panel.nh-right { margin-left: auto; }
.nh-panel.nh-center { margin: 0 auto; text-align: center; width: min(760px, 92%); }
.nh-panel.nh-center .btn { margin-top: 8px; }
.nh-panel.nh-center .ps { justify-content: center; }
.nh-plain { position: relative; z-index: 1; }

/* The existing components, fitted to a panel. */
.nh-panel .mega { font-size: clamp(34px, 4.3vw, 64px); margin-bottom: 18px; }
.nh-panel .lead { max-width: none; }
.nh-panel .hero-actions { margin-bottom: 8px; }
.nh-panel .dash-stats { margin: 26px -32px -30px; padding: 20px 32px; border-radius: 0 0 28px 28px; }
.nh-panel .doc-title { font-size: clamp(30px, 3.4vw, 52px); }
.nh-panel .doc-lead { max-width: none; }
.nh-panel .specs, .nh-panel .downloads { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 700px) and (max-width: 1199px) { .nh-panel .specs, .nh-panel .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) and (max-width: 1499px) { .nh-panel .specs, .nh-panel .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nh-panel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nh-panel .stat-v { font-size: clamp(40px, 4.4vw, 60px); }
.nh-panel .promises { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.nh-panel .promise h3 { margin-top: 26px; font-size: 19px; }
.nh-panel .plans { margin-top: 6px; }

@media (max-width: 980px) {
  .nh-sec { align-items: flex-end; padding-top: 48vh; padding-bottom: 36px; }
  .nh-panel, .nh-panel.nh-wide { width: 100%; padding: 24px 20px; }
  .nh-panel .dash-stats { margin: 22px -20px -24px; padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .nh-stage { transition: none; } .theme-btn { transition: none; } }

/* The plan cards (free, promo, six Premium packages) wrap inside the panel. */
.nh-panel .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.nh-panel .pkg-big { font-size: clamp(34px, 3.6vw, 48px); }
.nh-panel .plan-sheet { padding: 20px; min-width: 0; }

/* Five platform cards in one row when the panel is wide enough. */
@media (min-width: 1500px) { .nh-panel .specs, .nh-panel .downloads { grid-template-columns: repeat(5, minmax(0, 1fr)); } }


/* Plans: a wider panel, the cards in 2 rows of 4 (free, promo, then the six Premium packages). */
.nh-panel.nh-wide.nh-right { width: min(1180px, 80%); }
@media (min-width: 1400px) { .nh-panel .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
