/* ══════════════════════════════════════════════════════════════
   PRIV98 — Stylesheet
   Palette: #080A08 ground, #C5F014 chartreuse, #6B8E23 olive
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --ground:           #080A08;
  --surface:          #0D0F0D;
  --elevated:         #1A1C1A;
  --border:           #1E201E;
  --accent:           #C5F014;
  --accent-dim:       #6B8E23;
  --accent-glow:      rgba(197, 240, 20, 0.15);
  --accent-glow-strong: rgba(197, 240, 20, 0.35);
  --text:             #E8E8E8;
  --text-dim:         #888E88;
  --font-display:     Impact, 'Arial Black', sans-serif;
  --font-body:        Verdana, Geneva, 'DejaVu Sans', sans-serif;
  --font-mono:        'Cascadia Code', 'Fira Code', Consolas, monospace;
}

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--ground);
}

/* An author `display` rule outranks the UA stylesheet's [hidden], so any
   element toggled via the hidden attribute stays visible without this. */
[hidden] { display: none !important; }

/* Anchors land below the fixed nav instead of under it. */
[id] { scroll-margin-top: 76px; }

/* Every button gets a visible keyboard focus ring, not just links. */
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Soft page-in, so navigating between pages doesn't flash. */
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

body > nav,
body > section,
body > footer,
body > div.breadcrumb {
  animation: page-in 0.35s ease both;
}

/* ── NAV ───────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  /* Explicit gap + an auto margin on the cart, rather than space-between:
     the brand and the links were ending up flush against each other. */
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 56px;
  background: rgba(8, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow-strong);
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Pushes the cart to the far right; everything before it stays left-packed. */
.nav-cart {
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active-link {
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 12px var(--accent-glow);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile.active span:nth-child(2) { opacity: 0; }
.nav-mobile.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 56px 1.5rem 4rem;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow:
    0 0 40px var(--accent-glow-strong),
    0 0 80px var(--accent-glow),
    0 0 120px rgba(197, 240, 20, 0.08);
  line-height: 1;
  user-select: none;
  animation: wordmark-in 1s ease-out;
}

@keyframes wordmark-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* glitch — same accent color, horizontal slice jitter */
.hero-wordmark {
  position: relative;
}

.hero-wordmark::before,
.hero-wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  pointer-events: none;
  text-shadow:
    0 0 40px var(--accent-glow-strong),
    0 0 80px var(--accent-glow);
  opacity: 0.8;
}

.hero-wordmark::before {
  animation: glitch-1 4s infinite step-end;
}

.hero-wordmark::after {
  animation: glitch-2 4s infinite step-end;
}

@keyframes glitch-1 {
  0%, 100%  { clip-path: inset(0 0 100% 0); transform: translate(0); }
  4%        { clip-path: inset(15% 0 60% 0); transform: translate(-3px, 0); }
  5%        { clip-path: inset(65% 0 10% 0); transform: translate(2px, 0); }
  6%        { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  40%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  42%       { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
  43%       { clip-path: inset(10% 0 70% 0); transform: translate(4px, 0); }
  44%       { clip-path: inset(75% 0 5% 0);  transform: translate(-1px, 0); }
  45%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  80%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  82%       { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
  83%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 100%  { clip-path: inset(0 0 100% 0); transform: translate(0); }
  4%        { clip-path: inset(60% 0 15% 0); transform: translate(3px, 0); }
  5%        { clip-path: inset(5% 0 70% 0);  transform: translate(-2px, 0); }
  6%        { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  41%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  42%       { clip-path: inset(20% 0 50% 0); transform: translate(2px, 0); }
  43%       { clip-path: inset(70% 0 10% 0); transform: translate(-3px, 0); }
  44%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  81%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  82%       { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
  83%       { clip-path: inset(80% 0 5% 0);  transform: translate(1px, 0); }
  84%       { clip-path: inset(0 0 100% 0);  transform: translate(0); }
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 40ch;
  text-wrap: balance;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.hero-sub strong { color: var(--text); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.8s ease-out 0.5s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: var(--ground);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.15s, background 0.2s, color 0.2s;
}

.hero-cta:hover {
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ground);
}

.hero-cta-outline {
  background: transparent;
  color: var(--accent);
}

.hero-cta-outline svg {
  flex-shrink: 0;
}

.hero-cta-outline:hover {
  background: var(--accent);
  color: var(--ground);
}

.hero-stripe {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* ── FEATURES ──────────────────────────────────────────────── */

.features {
  padding: 5rem clamp(1rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

.features-header p {
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 20px rgba(197, 240, 20, 0.06);
  transform: translateY(-2px);
}

.feature-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ── STATUS BAR ────────────────────────────────────────────── */

.status-bar {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

.status-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-item strong { color: var(--text); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow-strong);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ── DISCORD SECTION ───────────────────────────────────────── */

.discord-section {
  padding: 4rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.discord-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.discord-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.06em;
}

.discord-inner p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.discord-btn {
  animation: none;
}

/* ── FOOTER ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 5vw, 4rem);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 10, 8, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { font-size: 0.9rem; }

  .nav-mobile { display: flex; }

  .features-grid { grid-template-columns: 1fr; }

  .status-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
