/* ================================================
   SPINOZAAI · GLOBAL STYLES
   ================================================ */

:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --cream: #F0E8D8;
  --muted: #8A8070;
  --faint: #3A3428;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,.35);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-sc: 'Cormorant SC', 'Georgia', serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --margin: clamp(1.5rem, 6vw, 7rem);
  --radius: 0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: .5;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--margin);
  border-bottom: 1px solid rgba(201,168,76,.1);
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav-icon { opacity: .85; }

.nav-name {
  font-family: var(--font-sc);
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--cream);
}
.nav-name em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Spacer for fixed nav */
body > section:first-of-type,
body > .hero:first-child {
  padding-top: calc(60px + 4rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  padding: .85rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .22s ease;
  border: none;
  outline: none;
  white-space: nowrap;
  font-weight: 700;
}

.btn-primary {
  background: var(--gold);
  color: #080808;
}
.btn-primary:hover {
  background: #B8932A;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover {
  background: rgba(201,168,76,.08);
  border-color: var(--gold);
}

.btn-sm {
  padding: .55rem 1.25rem;
  font-size: .58rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(201,168,76,.15);
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(201,168,76,.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 0; }

/* ---- Animations ---- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse3 {
  0%, 80%, 100% { opacity: .25; transform: scale(.75); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* ---- Selection ---- */
::selection {
  background: rgba(201,168,76,.25);
  color: var(--cream);
}
