/* ═══ Global overflow guard (kills any rogue horizontal bar/scroll) ═══ */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ═══ Clean Glassmorphism Card ═══ */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.08);
}

/* ═══ Nexus 3D Background ═══ */
.nexus-3d-bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -10;
  pointer-events: none;
  border: none;
  outline: none;
  box-shadow: none;
  /* Never transformed by scroll JS — kept perfectly pinned to the viewport so
     no top-edge seam ("rogue bar") or bottom void can appear. */
  transform: none !important;
}
/* The WebGL <canvas> defaults to display:inline, which leaves a baseline gap
   that reads as a thin "rogue" horizontal bar. Force block to kill it. */
.nexus-3d-bg canvas {
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ═══ Pure Vanilla Navbar ═══ */
.minhz-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', system-ui, sans-serif;
}
.minhz-nav-logo {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em;
  background: linear-gradient(to right, #38bdf8, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.minhz-nav-links { display: flex; gap: 2rem; }
.minhz-nav-links a {
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.3s;
}
.minhz-nav-links a:hover { color: #ffffff; }
.minhz-nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.minhz-btn-signin {
  background: transparent; border: none; color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: color 0.3s;
}
.minhz-btn-signin:hover { color: #ffffff; }
.minhz-btn-getstarted {
  background: linear-gradient(to right, #38bdf8, #c084fc);
  color: #000000; border: none; padding: 0.6rem 1.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: filter 0.3s, transform 0.2s;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.minhz-btn-getstarted:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ═══ Main content wrapper ═══ */
.main-content-wrapper { padding-top: 8rem !important; }

/* ═══ Unified dark background ═══ */
body { background: #080810 !important; }

/* ═══ Dock clearance — keep footer/copyright above the fixed dock ═══ */
body { padding-bottom: 120px; }

/* ═══ 2. MAC DOCK ═══ */
.minhz-dock-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 0.75rem; padding: 0.5rem; border-radius: 1.25rem;
  background: rgba(18, 15, 23, 0.8); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1); z-index: 9999;
}
.minhz-dock-item {
  width: 40px; height: 40px; border-radius: 0.75rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: center; align-items: center; color: #38bdf8; font-size: 1.25rem; cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s;
  transform-origin: bottom; position: relative; text-decoration: none;
}
.minhz-dock-item:hover { background: rgba(56, 189, 248, 0.2); }
.minhz-dock-label {
  position: absolute; top: -35px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; font-size: 0.75rem; padding: 4px 8px; border-radius: 6px;
  border: 1px solid #333; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.minhz-dock-item:hover .minhz-dock-label { opacity: 1; transform: translateX(-50%) translateY(-5px); }

/* ═══ 3. PARALLAX SCROLL ═══ */
.parallax-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 4rem; overflow: hidden; padding: 0 2rem; position: relative;
}
.parallax-content { transition: transform 0.1s linear; z-index: 2; }
.parallax-image { transition: transform 0.1s linear, clip-path 0.5s ease-out; clip-path: inset(0 100% 0 0); z-index: 1; }
.parallax-section.in-view .parallax-image { clip-path: inset(0 0 0 0); }
.parallax-image img {
  width: 320px; height: 320px; object-fit: cover; border-radius: 2rem;
  border: 2px solid rgba(56, 189, 248, 0.5); box-shadow: 0 0 30px rgba(56,189,248,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM OVERHAUL  ·  Nexus Starfield · BlurText · Glass · Polish
   ═══════════════════════════════════════════════════════════════ */

/* ─── Animated star / ambient-particle field (sits BEHIND the 3D models) ─── */
.minhz-starfield {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -60;
  pointer-events: none;
  display: block;
  transform-origin: center center;
  will-change: transform, filter;
}

/* The fixed 3D background is driven by its own camera parallax — never
   translated by scroll. Keeping will-change hints GPU compositing only. */
.nexus-3d-bg { will-change: auto; }

/* Deep ambient gradient + vignette painted over the unified dark base */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -55;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(56,189,248,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 110%, rgba(192,132,252,0.11), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(99,102,241,0.08), transparent 60%),
    radial-gradient(circle at 50% 45%, transparent 52%, rgba(0,0,0,0.55) 100%);
}

/* ─── BlurText : per-word & whole-line scroll reveal ─── */
.blur-word {
  display: inline-block;
  white-space: pre;
  filter: blur(10px);
  opacity: 0;
  transform: translateY(-50px);
  transition:
    filter .85s cubic-bezier(.22,.8,.28,1),
    opacity .85s cubic-bezier(.22,.8,.28,1),
    transform .85s cubic-bezier(.22,.8,.28,1);
  will-change: filter, opacity, transform;
}
.blur-line {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(-50px);
  transition:
    filter .9s cubic-bezier(.22,.8,.28,1),
    opacity .9s cubic-bezier(.22,.8,.28,1),
    transform .9s cubic-bezier(.22,.8,.28,1);
  will-change: filter, opacity, transform;
}
.blur-revealed { filter: blur(0); opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .blur-word, .blur-line {
    filter: none !important; opacity: 1 !important;
    transform: none !important; transition: none !important;
  }
}

/* ─── Refined glassmorphism ─── */
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.glass-card:hover {
  border-color: rgba(56,189,248,0.45);
  box-shadow: 0 14px 44px rgba(56,189,248,0.14), inset 0 1px 0 rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

/* ─── Global premium polish · inputs & textareas ─── */
input, textarea, select {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}

/* ─── Global premium polish · buttons ─── */
button, .btn, a.btn {
  transition: transform .2s cubic-bezier(.34,1.56,.64,1),
              filter .25s ease, box-shadow .3s ease, background .3s ease, color .25s ease;
}
button:active, .btn:active, a.btn:active { transform: translateY(0) scale(.97); }

/* ─── Premium scrollbar ─── */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(#38bdf8, #c084fc);
  border-radius: 10px; border: 2px solid #080810;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(#7dd3fc, #d8b4fe); }

/* ─── Text selection ─── */
::selection { background: rgba(56,189,248,0.35); color: #fff; }

/* ─── Lenis momentum scroll (required base styles) ─── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ─── Scroll reveal · PAGE-SCOPED (landingpage.html & home.html only) ───
   Gated behind body[data-scroll-reveal] so the shared effects.js never
   reveals blocks on script.html or any other page. Headings/paragraphs are
   handled by BlurText; these target card/section blocks only. */
body[data-scroll-reveal] .sr-item {
  opacity: 0;
  transform: translateY(44px) scale(.97);
  transition:
    opacity .75s cubic-bezier(.22,.8,.28,1),
    transform .75s cubic-bezier(.22,.8,.28,1);
  will-change: opacity, transform;
}
body[data-scroll-reveal] .sr-fade {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.22,.8,.28,1);
  will-change: opacity;
}
body[data-scroll-reveal] .sr-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body[data-scroll-reveal] .sr-item,
  body[data-scroll-reveal] .sr-fade {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ═══ Premium glass hero/title area (script.html) ═══ */
.premium-hero {
  position: relative; z-index: 1;
  max-width: 820px; margin: 10vh auto 10px; padding: 48px 40px;
  text-align: center; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.08),
              0 0 50px rgba(56,189,248,0.10);
}
.premium-hero .premium-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 20px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #7dd3fc; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.28);
}
.premium-title {
  font-size: 3.1rem; font-weight: 800; line-height: 1.08; letter-spacing: -1.2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #38bdf8, #818cf8 55%, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(56,189,248,0.35));
}
.premium-subtitle {
  font-size: 1.12rem; color: rgba(255,255,255,0.62); max-width: 580px; margin: 0 auto;
  text-shadow: 0 0 22px rgba(56,189,248,0.25);
}
@media (max-width: 640px) {
  .premium-hero { margin-top: 7vh; padding: 34px 22px; }
  .premium-title { font-size: 2.1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM MOTION LAYER  ·  entrance stagger · neon glass hovers
   Additive polish shared by every page that loads effects.css.
   All entrance animations end fully visible (fill-mode: both) so a
   JS failure can never leave content hidden.
   ═══════════════════════════════════════════════════════════════ */

@keyframes minhzFadeUp {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── Dashboard load entrance · staggered fade-up cascade ─── */
.stat-card,
.section {
  animation: minhzFadeUp .7s cubic-bezier(.22,.8,.28,1) both;
}
.grid-3 .stat-card:nth-child(1) { animation-delay: .05s; }
.grid-3 .stat-card:nth-child(2) { animation-delay: .14s; }
.grid-3 .stat-card:nth-child(3) { animation-delay: .23s; }
.section:nth-of-type(1) { animation-delay: .30s; }
.section:nth-of-type(2) { animation-delay: .40s; }
.section:nth-of-type(3) { animation-delay: .50s; }

/* Newly rendered table rows drift in so lists never "pop" abruptly. */
tbody tr { animation: minhzFadeUp .5s cubic-bezier(.22,.8,.28,1) both; }

/* ─── Unified smooth transition on interactive elements ─── */
.stat-card, .section, .btn, button, a.btn,
.duration-chip, .nav-item, .badge, tbody tr,
.glass-card, .minhz-dock-item {
  transition: transform .3s ease-in-out,
              box-shadow .3s ease-in-out,
              border-color .3s ease-in-out,
              background .3s ease-in-out,
              filter .3s ease-in-out,
              color .3s ease-in-out;
}

/* ─── Neon glass hover · stat cards & sections ─── */
.stat-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(56,189,248,0.55) !important;
  box-shadow: 0 16px 44px rgba(56,189,248,0.20),
              0 0 22px rgba(56,189,248,0.14),
              inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ─── Neon buttons · lift + glow on hover, press on active ─── */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59,130,246,0.42),
              0 0 20px rgba(59,130,246,0.35);
  filter: brightness(1.08);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

/* ─── Interactive table rows (script / key lists) ─── */
tbody tr:hover {
  background: rgba(56,189,248,0.06);
  box-shadow: inset 3px 0 0 rgba(56,189,248,0.55);
}

/* ─── Dock icons: neon glow on hover ─── */
.minhz-dock-item:hover {
  box-shadow: 0 0 18px rgba(56,189,248,0.45);
}

@media (prefers-reduced-motion: reduce) {
  .stat-card, .section, tbody tr {
    animation: none !important;
  }
  .stat-card:hover, .btn:hover, .btn-primary:hover { transform: none !important; }
}
