/* ============================================================
   NEBULA STATION — Marketing pages (static features + 404)
   Mirrors LandingPage.css palette (orange-copper on deep night)
   ============================================================ */

:root {
  --ns-bg:        #07070f;
  --ns-fg:        #e8e8f0;
  --ns-fg-dim:    rgba(232, 232, 240, 0.7);
  --ns-fg-faint:  rgba(232, 232, 240, 0.5);
  --ns-accent:    #ec7042;
  --ns-accent-lo: #d4782f;
  --ns-accent-hi: #ff8c5a;
  --ns-line:      rgba(212, 120, 47, 0.18);
  --ns-card-bg:   rgba(20, 14, 10, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ns-bg);
  color: var(--ns-fg);
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(236, 112, 66, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(180, 80, 40, 0.06), transparent 60%),
    var(--ns-bg);
}

.ns-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* ─────────────────────────────────────
   HEADER / NAV BANNER
   (unified with LandingPage .lp-nav)
───────────────────────────────────── */
.ns-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ns-line);
}

.ns-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ns-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--ns-accent);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(236, 112, 66, 0.25);
  flex-shrink: 0;
}

.ns-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
}
.ns-nav-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 240, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.ns-nav-link:hover { color: var(--ns-accent); }

/* ── Features dropdown menu ── */
.ns-nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.ns-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.ns-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}
.ns-nav-dropdown:hover .ns-nav-dropdown-trigger,
.ns-nav-dropdown:focus-within .ns-nav-dropdown-trigger {
  color: var(--ns-accent);
}
.ns-nav-dropdown:hover .ns-nav-caret,
.ns-nav-dropdown:focus-within .ns-nav-caret {
  transform: rotate(180deg);
}

.ns-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.7rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.ns-nav-dropdown:hover .ns-nav-dropdown-menu,
.ns-nav-dropdown:focus-within .ns-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.ns-nav-dropdown-panel {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 0.4rem;
  background: rgba(10, 9, 16, 0.97);
  border: 1px solid rgba(212, 120, 47, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ns-nav-dropdown-item {
  padding: 0.6rem 0.85rem;
  border-radius: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 232, 240, 0.7);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.ns-nav-dropdown-item:hover {
  background: rgba(236, 112, 66, 0.12);
  color: var(--ns-accent);
}

/* ── Holographic nav button (unified with LandingPage .lp-holo-btn--sm) ── */
.ns-holo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  min-height: 36px;
  color: var(--ns-accent);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid rgba(236, 112, 66, 0.6);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
}

.ns-holo-btn-text {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 8px rgba(236, 112, 66, 0.5);
}
.ns-holo-btn-text::before,
.ns-holo-btn-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  filter: blur(1px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.ns-holo-btn-text::before {
  color: var(--ns-accent-hi);
  animation: ns-glitch-subtle 4s infinite;
}
.ns-holo-btn-text::after {
  color: var(--ns-accent);
  animation: ns-glitch-subtle 4s infinite reverse;
}

.ns-holo-btn-scanline {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: rgba(236, 112, 66, 0.8);
  filter: blur(1px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ns-holo-btn:hover {
  background: rgba(236, 112, 66, 0.1);
  border: 2px solid rgba(236, 112, 66, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 25px rgba(236, 112, 66, 0.5);
}
.ns-holo-btn:hover .ns-holo-btn-scanline {
  opacity: 1;
  animation: ns-scan 2s linear infinite;
}
.ns-holo-btn:hover .ns-holo-btn-text::before,
.ns-holo-btn:hover .ns-holo-btn-text::after {
  opacity: 0.6;
  animation: ns-glitch 2s infinite;
}
.ns-holo-btn:hover .ns-holo-btn-text::after {
  animation: ns-glitch 2s infinite reverse;
}
.ns-holo-btn:active { transform: scale(0.95); }

@keyframes ns-glitch {
  0%, 100% { transform: translateX(0);    opacity: 0.3; }
  20%      { transform: translateX(-3px); opacity: 0.5; }
  40%      { transform: translateX(3px);  opacity: 0.7; }
  60%      { transform: translateX(-2px); opacity: 0.5; }
  80%      { transform: translateX(2px);  opacity: 0.3; }
}
@keyframes ns-glitch-subtle {
  0%, 100% { transform: translateX(0);      opacity: 0.1; }
  25%      { transform: translateX(-1px);   opacity: 0.15; }
  50%      { transform: translateX(1px);    opacity: 0.2; }
  75%      { transform: translateX(-0.5px); opacity: 0.15; }
}
@keyframes ns-scan {
  0%   { top: -10%; }
  100% { top: 110%; }
}

/* ── Typography ── */
.ns-eyebrow {
  color: var(--ns-accent-lo);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  margin: 2rem 0 0.5rem;
}
h1.ns-h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.25;
  color: var(--ns-fg);
  margin: 0 0 1rem;
}
h2.ns-h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  color: var(--ns-accent);
  margin-top: 2.5rem;
  letter-spacing: 0.05em;
}
h3.ns-h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: var(--ns-fg);
  margin: 1.4rem 0 0.4rem;
}
p { color: var(--ns-fg-dim); }

/* ── Hero figure ── */
.ns-figure { margin: 1.5rem 0 2rem; }
.ns-figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--ns-line);
  box-shadow: 0 0 40px rgba(236, 112, 66, 0.08);
}
.ns-figure figcaption {
  font-size: 0.8rem;
  color: var(--ns-fg-faint);
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

/* ── Holographic CTA (matches LandingPage .lp-holo-btn) ── */
.ns-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.8rem 0;
  padding: 14px 36px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ns-accent);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid rgba(236, 112, 66, 0.6);
  border-radius: 8px;
  text-shadow: 0 0 8px rgba(236, 112, 66, 0.5);
  transition: all 0.3s ease;
}
.ns-cta:hover {
  background: rgba(236, 112, 66, 0.08);
  border-color: rgba(236, 112, 66, 0.5);
  box-shadow: 0 0 20px rgba(236, 112, 66, 0.25);
  color: var(--ns-accent-hi);
}

/* ── Inline accent link (in body copy) ── */
a.ns-link {
  color: var(--ns-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 112, 66, 0.35);
  transition: all 0.2s;
}
a.ns-link:hover {
  color: var(--ns-accent-hi);
  border-bottom-color: var(--ns-accent-hi);
}

/* ── Playlist / feature grid cards ── */
.ns-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 2rem;
}
.ns-card {
  padding: 1rem 1.2rem;
  border: 1px solid var(--ns-line);
  border-radius: 6px;
  background: var(--ns-card-bg);
}
.ns-card h3 { margin: 0 0 0.4rem; }
.ns-card p  { margin: 0; font-size: 0.92rem; }

/* ── Keyboard hint ── */
kbd {
  background: rgba(236, 112, 66, 0.08);
  border: 1px solid rgba(236, 112, 66, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: 'Exo 2', monospace;
  font-size: 0.85rem;
  color: var(--ns-accent-hi);
}

/* ── Related links footer ── */
.ns-related {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--ns-line);
}
.ns-related ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem;
}
.ns-related a {
  color: var(--ns-fg-dim);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.ns-related a:hover { color: var(--ns-accent); }

/* ── Page footer (unified with LandingPage .lp-footer) ── */
.ns-footer {
  margin-top: 3rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--ns-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
}
.ns-footer-logo {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(212, 120, 47, 0.7);
}
.ns-footer-copy {
  font-size: 0.78rem;
  color: var(--ns-fg-faint);
}

/* ── 404 specifics ── */
.ns-404 {
  text-align: center;
  padding: 4rem 1.5rem;
}
.ns-404-code {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(6rem, 18vw, 12rem);
  letter-spacing: 0.05em;
  color: var(--ns-accent);
  text-shadow: 0 0 30px rgba(236, 112, 66, 0.4);
  margin: 0;
  line-height: 1;
}
.ns-404-nav {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ns-404-nav a {
  color: var(--ns-fg-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ns-404-nav a:hover { color: var(--ns-accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ns-nav-links { display: none; }
  .ns-footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
