/* ── UNIVERSE DESIGN SYSTEM ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #C9A96E;
  --gold-dim: rgba(201,169,110,.15);
  --gold-glow: rgba(201,169,110,.08);
  --black: #00000a;
  --dark: #05050f;
  --white: #eeeaf3;
  --gray: #555570;
  --gray-light: #8888aa;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ── STARFIELD CANVAS ── */
#starfield {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ── NEBULA OVERLAY ── */
.nebula {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(80,40,160,.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 15%, rgba(30,60,180,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(100,30,120,.06) 0%, transparent 50%);
}

/* ── FILM GRAIN ── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .03; z-index: 2;
  animation: grain .35s steps(1) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)}
  40%{transform:translate(2%,-3%)} 60%{transform:translate(-1%,4%)} 80%{transform:translate(3%,-1%)}
}

/* ── CURSOR ── */
#cursor {
  width: 8px; height: 8px; background: var(--gold);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s, border .25s;
}
#cursor.big {
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--gold);
}
#cursor-glow {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,169,110,.06) 0%, transparent 70%);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9998; transform: translate(-50%,-50%);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,10,.85) 0%, transparent 100%);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; letter-spacing: .2em; color: var(--gold);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo::before {
  content: '✦'; font-size: 10px; color: var(--gold); opacity: .6;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .45; transition: opacity .3s, color .3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }

/* ── PAGE WRAPPER ── */
.page-content { position: relative; z-index: 10; }

/* ── TYPOGRAPHY ── */
.section-label {
  font-size: 10px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.gold { color: var(--gold); }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ── CELESTIAL ELEMENTS ── */
.sun {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 1;
}
.sun-gold {
  width: 700px; height: 700px; top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(201,169,110,.22) 0%, rgba(201,100,30,.06) 35%, transparent 70%);
  animation: sunPulse 8s ease-in-out infinite;
}
.sun-blue {
  width: 500px; height: 500px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(80,120,255,.18) 0%, rgba(40,60,200,.05) 35%, transparent 70%);
  animation: sunPulse 10s ease-in-out infinite reverse;
}
.sun-teal {
  width: 600px; height: 600px; top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(30,180,160,.18) 0%, rgba(20,100,120,.05) 35%, transparent 70%);
  animation: sunPulse 9s ease-in-out infinite;
}
.sun-purple {
  width: 600px; height: 600px; bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(140,60,200,.18) 0%, rgba(80,30,140,.05) 35%, transparent 70%);
  animation: sunPulse 11s ease-in-out infinite;
}
.sun-amber {
  width: 500px; height: 500px; top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(220,140,40,.2) 0%, rgba(180,80,20,.06) 35%, transparent 70%);
  animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .8; }
}

.moon {
  position: fixed; z-index: 1; pointer-events: none;
  border-radius: 50%; animation: moonDrift 20s ease-in-out infinite;
}
@keyframes moonDrift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Star ring decorations */
.star-ring {
  position: fixed; border-radius: 50%; border: 1px solid rgba(201,169,110,.06);
  pointer-events: none; z-index: 1; animation: ringPulse 15s linear infinite;
}
@keyframes ringPulse {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid #0e0e1e; padding: 36px 56px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 10;
}
footer p { font-size: 11px; color: #1e1e2e; letter-spacing: .1em; }
footer a { color: #1e1e2e; text-decoration: none; transition: color .3s; }
footer a:hover { color: var(--gold); }

/* ── PAGE TRANSITIONS ── */
body { animation: pageFadeIn .6s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
a { transition: color .3s; }

/* ── DIVIDER ── */
.divider {
  width: 48px; height: 1px; background: var(--gold);
  margin: 28px 0; transform: scaleX(0); transform-origin: left;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 10px; letter-spacing: .12em; }
  footer { flex-direction: column; gap: 8px; padding: 24px; text-align: center; }
}
