/* ═══════════════════════════════════════════════════════════════
   NIGHTBOX LLC — Cyber Golden Dome brand system v1.0
   Premium dark theme · gold-gradient accents · glassmorphism
   Inter variable + JetBrains Mono · scroll-reveal · hover lift
   2026-05-09
═══════════════════════════════════════════════════════════════ */

@import url('https://rsms.me/inter/inter.css');

:root {
  --c-bg-deep:        #07080d;
  --c-bg-1:           #0a0c12;
  --c-bg-2:           #0f1117;
  --c-bg-3:           #15171d;
  --c-bg-elevated:    #1a1d24;
  --c-border:         #1f2128;
  --c-border-strong:  #2a2d35;
  --c-text:           #f0f1f5;
  --c-text-soft:      #cfd2d7;
  --c-text-muted:     #8a8f9b;
  --c-text-faint:     #5c606a;

  --c-gold-100:       #ffe9a8;
  --c-gold-200:       #ffd76a;
  --c-gold-400:       #f0c14a;
  --c-gold-600:       #d8a836;
  --c-gold-800:       #8a6817;

  --c-violet:         #6b5bff;
  --c-emerald:        #22c55e;
  --c-rose:           #ff7a7a;
  --c-sky:            #4ec3ff;

  --grad-gold:        linear-gradient(135deg, var(--c-gold-200) 0%, var(--c-gold-400) 50%, var(--c-gold-600) 100%);
  --grad-gold-soft:   linear-gradient(135deg, rgba(255,215,106,0.18) 0%, rgba(216,168,54,0.05) 100%);
  --grad-gold-text:   linear-gradient(180deg, var(--c-gold-100) 0%, var(--c-gold-400) 100%);
  --grad-mesh:        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(240,193,74,0.15) 0%, transparent 50%),
                      radial-gradient(ellipse 80% 60% at 80% 80%, rgba(107,91,255,0.10) 0%, transparent 50%),
                      radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34,197,94,0.05) 0%, transparent 60%);

  --shadow-sm:        0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:        0 8px 24px rgba(0,0,0,0.4);
  --shadow-gold:      0 8px 32px rgba(240,193,74,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  --shadow-gold-lg:   0 16px 48px rgba(240,193,74,0.4),  inset 0 1px 0 rgba(255,255,255,0.15);

  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-pill:      999px;

  --tx-display:       'Inter var', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --tx-mono:          'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease-fluid:       cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background: var(--c-bg-deep);
  color: var(--c-text);
  font-family: var(--tx-display);
  font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv11', 'ss01', 'ss03';
  font-variation-settings: 'wght' 400, 'opsz' 14;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--c-gold-400); color: #1a1410; }

a { color: var(--c-gold-400); text-decoration: none; transition: color 120ms var(--ease-fluid); }
a:hover { color: var(--c-gold-200); }

code {
  font-family: var(--tx-mono);
  font-size: 0.92em;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--c-gold-400);
}

/* Mesh background — subtle animated gold + violet glow */
.brand-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--c-bg-deep);
  pointer-events: none;
}
.brand-mesh::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--grad-mesh);
  filter: blur(60px);
  opacity: 0.7;
  animation: meshDrift 30s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0)     scale(1); }
  50%  { transform: translate(2%, -1%)  scale(1.04); }
  100% { transform: translate(-1%, 1%)  scale(1.02); }
}

/* Subtle dotted overlay for texture */
.brand-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

/* ─── Navigation ─────────────────────────────────────────────── */

.brand-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}
.brand-nav .brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--c-text);
  text-decoration: none;
}
.brand-nav .brand-mark .glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--grad-gold);
  border-radius: 8px;
  color: #1a1410;
  font-weight: 900; font-size: 1rem;
  box-shadow: var(--shadow-gold);
}
.brand-nav .brand-mark .accent { color: var(--c-gold-400); }
.brand-nav .links { display: flex; gap: 28px; font-size: 0.94rem; font-weight: 500; }
.brand-nav .links a { color: var(--c-text-soft); }
.brand-nav .links a:hover { color: var(--c-gold-400); }
.brand-nav .links a.active { color: var(--c-gold-400); }

/* ─── Hero ────────────────────────────────────────────────────── */

.brand-hero {
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
  z-index: 1;
}
.brand-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-400);
  background: var(--grad-gold-soft);
  border: 1px solid rgba(240, 193, 74, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.brand-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-variation-settings: 'wght' 900, 'opsz' 32;
  margin-bottom: 24px;
  color: var(--c-text);
}
.brand-hero h1 .gold {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(240, 193, 74, 0.3));
}
.brand-hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--c-text-soft);
  max-width: 760px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.5;
  font-variation-settings: 'wght' 400, 'opsz' 18;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--tx-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms var(--ease-spring), box-shadow 200ms var(--ease-fluid);
  font-variation-settings: 'wght' 700;
}
.btn-gold {
  background: var(--grad-gold);
  color: #1a1410;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
  color: #1a1410;
}
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--c-gold-400);
  color: var(--c-gold-400);
  background: rgba(240, 193, 74, 0.05);
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ─── Sections ───────────────────────────────────────────────── */

section.brand {
  padding: 88px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
section.brand h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--c-text);
  font-variation-settings: 'wght' 800, 'opsz' 24;
}
section.brand h2 .gold {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
section.brand .lead {
  font-size: 1.08rem;
  color: var(--c-text-muted);
  margin-bottom: 44px;
  max-width: 720px;
  line-height: 1.55;
}
section.brand .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-400);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── Glass cards ─────────────────────────────────────────────── */

.glass {
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.7) 0%, rgba(15, 17, 23, 0.8) 100%);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-fluid), box-shadow 240ms var(--ease-fluid);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 193, 74, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 193, 74, 0.08);
}
.glass.gold-hi {
  border-color: rgba(240, 193, 74, 0.35);
  box-shadow: 0 0 0 1px rgba(240, 193, 74, 0.15);
}
.glass.gold-hi::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 193, 74, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.glass h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: 'wght' 700;
}
.glass p { color: var(--c-text-muted); font-size: 0.96rem; line-height: 1.55; }
.glass .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(240, 193, 74, 0.2));
}
.glass .tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold-400);
  font-weight: 700;
  margin-bottom: 14px;
}
.glass .meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 0.84rem;
  color: var(--c-text-faint);
}

/* ─── Grids ──────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-auto-260 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.grid-auto-220 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ─── Stats ──────────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(15, 17, 23, 0.6));
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease-out);
}
.stat:hover { transform: translateY(-2px); }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold-400), transparent);
  transform: translateX(-50%);
  opacity: 0.6;
}
.stat .num {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: 'wght' 900, 'opsz' 32;
}
.stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-text-muted);
  margin-top: 10px;
  font-weight: 600;
}

/* ─── Tables ─────────────────────────────────────────────────── */

table.brand {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(15, 17, 23, 0.6));
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.brand th, table.brand td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
table.brand th { color: var(--c-text-muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(0,0,0,0.2); }
table.brand td { color: var(--c-text-soft); }
table.brand tr:last-child td { border-bottom: 0; }
table.brand tr:hover td { background: rgba(240, 193, 74, 0.03); }
table.brand td.dns { color: var(--c-gold-400); font-family: var(--tx-mono); font-size: 0.84rem; }

/* ─── Footer ─────────────────────────────────────────────────── */

footer.brand {
  padding: 56px 24px 40px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--c-border);
  margin-top: 64px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 13, 0.6) 100%);
}
footer.brand a { color: var(--c-text-soft); }
footer.brand a:hover { color: var(--c-gold-400); }
footer.brand .tagline {
  display: block;
  margin-top: 10px;
  color: var(--c-gold-400);
  font-style: italic;
  font-weight: 500;
}

/* ─── Scroll-reveal animation (CSS-only via @starting-style fallback to Intersection Observer JS) ─── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reduce motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .brand-mesh::before { animation: none; }
}
