/* ═══════════════════════════════════════════════
   BASE.CSS — Variables · Reset · Nav · Footer · Shared
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --obsidian:       #0A0A0F;
  --obsidian-mid:   #111118;
  --slate:          #1A1A28;
  --slate-light:    #252535;
  --gold:           #C9A84C;
  --gold-light:     #E4C875;
  --gold-dim:       #7A6230;
  --white:          #F0EDE8;
  --white-dim:      #9A9490;
  --cyan:           #00D4FF;
  --green:          #2ECC71;
  --border:         rgba(201,168,76,0.15);
  --border-strong:  rgba(201,168,76,0.35);
  --border-subtle:  rgba(255,255,255,0.06);

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Space Grotesk', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Mono', monospace;

  --nav-h: 76px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: none; font: inherit; }

/* ── BODY ── */
body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* ── NOISE LAYER ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.45;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.25s, height 0.25s;
  will-change: transform;
}
#cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s;
  will-change: left, top;
  opacity: 0.5;
}
#cursor.hovered { transform: translate(-50%,-50%) scale(2.5); }
#cursor-ring.hovered { width: 56px; height: 56px; opacity: 0.2; }

/* ── SVG ICON UTILITY ── */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  fill: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-stroke {
  fill: none;
  stroke: currentColor;
}

/* ── NAVIGATION ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  cursor: none;
}
.nav-logo .logo-icon {
  width: 18px; height: 18px; color: var(--gold);
}
.nav-logo .logo-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
}
.nav-logo em { color: var(--white); font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: 44px;
}
.nav-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white-dim);
  position: relative; padding-bottom: 4px;
  transition: color 0.2s; cursor: none;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  color: var(--gold); background: transparent;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--obsidian); }

.avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.5); }
}

.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  color: var(--white); cursor: none;
}
.mobile-menu-btn .icon { width: 20px; height: 20px; }

/* ── SOUND TOGGLE ── */
.sound-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border);
  background: transparent; color: var(--white-dim);
  cursor: none; transition: color 0.2s, border-color 0.2s;
}
.sound-toggle:hover { color: var(--gold); border-color: var(--border-strong); }
.sound-toggle .icon { width: 16px; height: 16px; }
.sound-toggle .icon-off { display: none; }
.sound-toggle.muted .icon-on  { display: none; }
.sound-toggle.muted .icon-off { display: block; }

/* ── MOBILE NAV DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  z-index: 199;
  flex-direction: column; gap: 24px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--white-dim); padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
}
.nav-drawer a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer {
  padding: 32px 56px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.footer-logo .icon { width: 14px; height: 14px; }
.footer-copy {
  font-size: 0.7rem; color: var(--white-dim);
  letter-spacing: 0.06em; text-align: center;
}
.footer-socials { display: flex; align-items: center; gap: 20px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  color: var(--white-dim);
  transition: border-color 0.2s, color 0.2s; cursor: none;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-socials .icon { width: 16px; height: 16px; }

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }

.section-pad { padding: 120px 56px; }
.section-pad-sm { padding: 80px 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--gold);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--white);
}
h2 em { color: var(--gold); font-style: italic; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  background: var(--gold); color: var(--obsidian);
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(201,168,76,0.28);
}
.btn-primary .icon { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  border: 1px solid var(--border-strong); color: var(--white);
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: none; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost .icon { width: 16px; height: 16px; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); cursor: none;
  transition: gap 0.2s;
}
.btn-text:hover { gap: 14px; }
.btn-text .icon { width: 14px; height: 14px; }

/* ── GOLD DIVIDER ── */
.gold-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MARQUEE ── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--obsidian-mid);
  padding: 16px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 52px; white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white-dim);
}
.marquee-sep { color: var(--gold); }
.marquee-sep .icon { width: 10px; height: 10px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  #nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  footer { flex-direction: column; text-align: center; padding: 28px 24px; }
  .section-pad { padding: 80px 24px; }
  .section-pad-sm { padding: 56px 24px; }
}
