/* ════════════════════════════════════════════════════════════════
   Virraly — shared base styles (loaded on every page)
   Tokens · reset · generic utilities · nav · mobile menu · footer
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:       #070808;
  --bg-1:     #0D100C;
  --bg-2:     #111411;
  --line:     #1C1F1A;
  --line-2:   #252820;
  --fg:       #F5F5F2;
  --fg-2:     #C7C7C2;
  --fg-3:     #8A8A85;
  --fg-4:     #5A5A55;
  --accent:   #D8FF3D;
  --accent-dk:#BFE336;
  --cool:     #6BA8FF;
  --hot:      #FF5C2E;
  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;
  --r-sm:     10px;
  --r-md:     14px;
  --r-lg:     20px;
  --r-xl:     28px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }

/* ─── Generic utilities ─────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.label-accent { color: var(--accent); }

@keyframes vpulse {
  0%,100% { transform: scale(1);   opacity: .5; }
  50%     { transform: scale(1.7); opacity: 1;  }
}
.dot-live {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: vpulse 1.5s ease-in-out infinite;
}

/* ─── Nav ───────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,8,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: -0.025em; }
.nav-wordmark em { color: var(--accent); font-style: italic; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--accent);
  color: #0A0A0A;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent-dk); }

/* ─── Footer ────────────────────────────────────────────────────── */
footer { background: #050606; color: var(--fg); font-family: var(--sans); }
.footer-grid {
  padding: 60px 60px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-name { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand-wordmark { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; }
.footer-brand-wordmark em { color: var(--accent); font-style: italic; }
.footer-brand-desc { font-size: 14px; line-height: 1.6; color: #A8A8A3; max-width: 300px; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-social {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  transition: border-color .15s;
}
.footer-social:hover { border-color: var(--fg-3); }
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a { color: var(--fg-2); font-size: 14px; transition: color .15s; }
.footer-col-links a:hover { color: var(--fg); }
.footer-bottom {
  padding: 22px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footer-bottom-right { display: flex; gap: 24px; }

/* ─── Shared responsive (nav + footer) ──────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  footer .footer-grid { padding: 40px 24px 32px; grid-template-columns: 1fr; }
  footer .footer-bottom { padding: 18px 24px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
