/* ============================================================
   NitroStream — shared design system (dark neon-tech)
   One source of truth for color, type, space, motion + the
   primitives every page reuses (container, buttons, pills,
   cards, ambient background, footer).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,100,400;0,100,500;0,100,600;0,100,700;0,125,700;0,125,800;0,125,900;1,100,600;1,125,700;1,125,800;1,125,900&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;700&display=swap");

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

:root {
  /* ---- Surfaces ---- */
  --bg: #060b18;
  --bg-2: #0a1122;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* ---- Text ---- */
  --text: #eaf0ff;
  --text-dim: rgba(234, 240, 255, 0.66);
  --text-mute: rgba(234, 240, 255, 0.42);

  /* ---- Accents ---- */
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --nitro: #e8b24a; /* gold — pairs with the navy background */
  --accent: var(--cyan);
  --good: #34d399;
  --warn: #fbbf24;

  /* ---- Glows ---- */
  --glow-cyan: 0 0 44px -6px rgba(34, 211, 238, 0.5);
  --glow-violet: 0 0 44px -6px rgba(139, 92, 246, 0.5);
  --glow-nitro: 0 0 40px -8px rgba(29, 120, 255, 0.65);
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.65);

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* ---- Type ---- */
  --font-display: "Archivo", "Archivo Expanded", "Bahnschrift", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-display: clamp(2.75rem, 8vw, 6rem);
  --fs-h1: clamp(2.25rem, 5.5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1rem, 1.4vw, 1.25rem);

  /* ---- Rhythm ---- */
  --section-y: clamp(64px, 10vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Ambient background — one reusable animated layer.
   Replaces the per-page star-field <script> + inline orbs.
   Add <div class="ns-bg" aria-hidden="true"></div> after <body>.
   ============================================================ */
.ns-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% 8%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(55vw 55vw at 90% 20%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(70vw 70vw at 50% 110%, rgba(236, 72, 153, 0.1), transparent 60%),
    var(--bg);
}

.ns-bg::after {
  /* slow drifting neon-blue glow */
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: -20vmax;
  left: -10vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 120, 255, 0.22), transparent 70%);
  filter: blur(40px);
  animation: ns-drift 24s var(--ease) infinite alternate;
}

@keyframes ns-drift {
  to {
    transform: translate(40vw, 30vh) scale(1.25);
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */
.ns-container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.ns-section {
  padding-block: var(--section-y);
}

.ns-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

body :is(
  h1, h2, h3, .ns-display,
  .hero-pen__title, .gallery__title, .feature-card__title,
  .platforms__title, .platforms__subtitle, .counter__title, .merch__title,
  .partner__headline-sm, .partner__headline-lg,
  .hero-title, .section-title,
  .roadmap-title, .roadmap-subtitle, .quarter-name, .cta-title
) {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%; /* Archivo Expanded */
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ============================================================
   Pill / tag
   ============================================================ */
.ns-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.ns-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: ns-pulse 2.4s ease-in-out infinite;
}

@keyframes ns-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.35);
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.ns-btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ns-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.ns-btn:active {
  transform: translateY(0);
}

.ns-btn--primary {
  --btn-bg: var(--nitro);
  --btn-fg: #1c1408;
  --btn-line: transparent;
  box-shadow: var(--glow-nitro);
}

.ns-btn--primary:hover {
  background: #f4cc7c;
  box-shadow: 0 0 52px -6px rgba(29, 120, 255, 0.8);
}

.ns-btn--cyan {
  --btn-bg: var(--cyan);
  --btn-fg: #04121a;
  --btn-line: transparent;
  box-shadow: var(--glow-cyan);
}

.ns-btn--cyan:hover {
  background: #5fe3f5;
}

.ns-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Card
   ============================================================ */
.ns-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.ns-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

/* ============================================================
   Section heading block
   ============================================================ */
.ns-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.ns-head h2 {
  font-size: var(--fs-h2);
}

.ns-head p {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: var(--fs-lead);
}

/* ============================================================
   Unified footer — styles the .footer-* markup shared by
   pricing / roadmap / terms / privacy.
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vw, 80px) var(--gutter);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.footer-inner {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.footer-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-brand {
  flex: 0 0 auto;
  min-width: 0;
  align-self: center;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.footer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-term {
  font-size: 0.8rem;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-term:hover {
  color: #fff;
}

.footer-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
