/* ═══════════════════════════════════════════════════
   AURAL ALCHEMY — Shared Stylesheet
   All pages import this file
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

:root {
  --bg:        #080e10;
  --bg2:       #0d1618;
  --bg3:       #111d20;
  --border:    #1e3035;
  --teal:      #2dd4bf;
  --teal-dim:  #1a8a7a;
  --gold:      #d4a843;
  --gold-dim:  #8a6a25;
  --purple:    #a78bfa;
  --text:      #c8ddd8;
  --text-dim:  #5a7a78;
  --text-muted:#3a5550;
  --red:       #e05555;
  --nav-h:     64px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND AMBIENCE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(45,212,191,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 85%, rgba(212,168,67,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── SACRED GEOMETRY BACKGROUND ──
   Perfect equilateral triangle: circumradius R, center (250,250).
   Vertices (R=220): top=(250,30), right=(440.5,360), left=(59.5,360)
   Using: top = (cx, cy-R), right = (cx + R·sin60, cy + R·cos60·... )
   Exact: top=(250,30) right=(440.44,360) left=(59.56,360)
   Verified: all sides = 380, all angles = 60°
── */
.aa-geometry {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin-left: -250px;
  margin-top: -250px;
  pointer-events: none;
  z-index: 0;
  animation: aa-spin 90s linear infinite;
  opacity: 1;
}
@keyframes aa-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,14,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-brand-text {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #2dd4bf 0%, #d4a843 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: all .2s;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--teal);
  border-color: var(--border);
}
.nav-links a.active {
  color: var(--teal);
  border-color: var(--teal-dim);
  background: rgba(45,212,191,0.05);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dim);
  transition: all .2s;
}

/* Page content offset for fixed nav */
.page-wrap {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #2dd4bf, #d4a843);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════ */

/* Section label */
.label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Gradient title */
.grad-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #2dd4bf 0%, #d4a843 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,212,191,0.03), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover { border-color: var(--teal-dim); }
.card:hover::before { opacity: 1; }

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  border: 1px solid;
}
.btn-primary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-primary:hover {
  background: rgba(45,212,191,0.1);
  box-shadow: 0 0 20px rgba(45,212,191,0.15);
}
.btn-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold:hover {
  background: rgba(212,168,67,0.1);
  box-shadow: 0 0 20px rgba(212,168,67,0.15);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover {
  border-color: var(--teal-dim);
  color: var(--teal);
}

/* Alchemical divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-symbol {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(45,212,191,0.2); }
  50%       { box-shadow: 0 0 24px rgba(45,212,191,0.4); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.anim-fade-up   { animation: fadeUp .6s ease both; }
.anim-fade-in   { animation: fadeIn .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,14,16,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 1rem; }
  .nav-toggle { display: flex; }
  footer { flex-direction: column; align-items: flex-start; }
}
