/* ============================================
   THE SANCTUM - Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg-primary: #08080f;
  --bg-surface: #10101a;
  --bg-card: #14141f;
  --purple-deep: #2d1b69;
  --purple-mid: #5b21b6;
  --purple-accent: #7c3aed;
  --purple-glow: #a855f7;
  --text-primary: #f0e6ff;
  --text-secondary: #9b87bc;
  --text-muted: #5c4f7a;
  --border: rgba(124, 58, 237, 0.15);
  --border-hover: rgba(168, 85, 247, 0.35);

  /* Character Colors */
  --victoria: #4c1d95;
  --victoria-glow: #7c3aed;

  /* Locked portal / hover accents */
  --portal-victoria: #7c3aed;
  --portal-kira: #d88ba5;
  --portal-jenna: #ff6b57;
  --portal-kandace: #d6b36a;
  --portal-mayra: #c94b4b;
  --portal-belle: #9f93c9;
  --portal-ember: #4f8a5b;
  --portal-temi: #ff6ec7;
  --portal-arwyn: #c084fc;
  --portal-rei: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { 
  font-size: 0.95rem; 
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--purple-glow);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--text-primary); }

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--purple-mid);
  border-radius: 2px;
  color: var(--purple-glow) !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--purple-mid) !important;
  color: white !important;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--purple-glow);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: none;
}

.hero-desc {
  max-width: 55ch;
  margin: 0 auto 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-accent));
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--purple-accent);
  color: var(--purple-glow);
}

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding: 6rem 0;
  background: var(--bg-surface);
}

.section-full .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ============================================
   CHARACTER GRID
   ============================================ */

#characters {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.3s;
  background: var(--bg-card);
}

.character-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
  transform: translateY(-4px);
}

.character-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.1);
}

.character-card:hover .character-icon {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* Individual character icon colors */
.icon-victoria { background: radial-gradient(135deg, #1a0533, #4c1d95); box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
.icon-jenna    { background: radial-gradient(135deg, #3d1200, #b45309); box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); }
.icon-kira     { background: radial-gradient(135deg, #3d0020, #be185d); box-shadow: 0 0 20px rgba(244, 114, 182, 0.25); }
.icon-kandace  { background: radial-gradient(135deg, #022c22, #065f46); box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
.icon-mayra    { background: radial-gradient(135deg, #3d0000, #991b1b); box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }
.icon-belle    { background: radial-gradient(135deg, #0a0a0a, #1e293b); box-shadow: 0 0 20px rgba(148, 163, 184, 0.2); border: 2px solid rgba(148,163,184,0.2) !important; }
.icon-ember    { background: radial-gradient(135deg, #0a2010, #14532d); box-shadow: 0 0 20px rgba(74, 222, 128, 0.2); }
.icon-arwyn    { background: radial-gradient(135deg, #1a1060, #4338ca); box-shadow: 0 0 20px rgba(129, 140, 248, 0.3); }
.icon-temi     { background: radial-gradient(135deg, #3d0050, #701a75); box-shadow: 0 0 20px rgba(232, 121, 249, 0.3); }
.icon-rei      { background: radial-gradient(135deg, #050508, #1a0a0a); box-shadow: 0 0 20px rgba(190, 18, 60, 0.2); border: 2px solid rgba(190,18,60,0.2) !important; }

.character-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.character-tier {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tier-mythic { color: var(--purple-glow); }
.tier-aspirational { color: #d4af37; }
.tier-grounded { color: #78a882; }

/* ============================================
   TIERS SECTION
   ============================================ */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.tier-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.tier-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.tier-card .tier-number {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.tier-card p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.tier-card .tier-names {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.tier-mythic-card { border-color: rgba(124, 58, 237, 0.3); }
.tier-aspirational-card { border-color: rgba(212, 175, 55, 0.2); }
.tier-grounded-card { border-color: rgba(120, 168, 130, 0.2); }

/* ============================================
   PHILOSOPHY / ABOUT SECTION
   ============================================ */

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.philosophy-text p {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.philosophy-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  padding: 1.25rem;
  background: var(--bg-card);
  border-left: 2px solid var(--purple-accent);
  border-radius: 0 4px 4px 0;
}

.pillar h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: none;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin: 0 auto 2.5rem; }
.cta-section .hero-actions { margin-top: 0; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: none;
}

/* ============================================
   CHARACTER PAGE SPECIFIC
   ============================================ */

.char-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.char-hero-content {
  position: relative;
  z-index: 1;
}

.char-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  border: 2px solid rgba(255,255,255,0.15);
}

.char-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--purple-mid);
  border-radius: 2px;
  color: var(--purple-glow);
  margin-bottom: 1rem;
}

.char-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 0.5rem;
}

.char-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: none;
}

.char-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.char-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.char-main > * + * { margin-top: 3rem; }

.char-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.75rem;
}

.char-section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.char-section p + p { margin-top: 1rem; }

.char-themes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.char-themes li {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
}

.char-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 1.25rem;
}

.sensory-item {
  margin-bottom: 1rem;
}

.sensory-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.sensory-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-cta a {
  display: block;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
}

.cta-patreon {
  background: linear-gradient(135deg, #FF424D, #cc1a24);
  color: white !important;
}

.cta-twitter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
}

.cta-twitter:hover {
  border-color: var(--border-hover);
  color: var(--text-primary) !important;
}

/* Easy launch gating: add/remove `vt-link-card--coming-soon` on a character CTA. */
.vt-link-card.vt-link-card--coming-soon {
  cursor: not-allowed;
  filter: grayscale(1) saturate(0.12);
  opacity: 0.58;
  pointer-events: none;
}

.vt-link-card.vt-link-card--coming-soon:hover {
  transform: none;
}

.vt-link-card.vt-link-card--coming-soon::after {
  content: attr(data-coming-soon);
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 18, 18, 0.48);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(1px);
}

.vt-link-card.vt-link-card--coming-soon::before {
  z-index: 2;
  display: block;
  background: rgba(40, 40, 40, 0.38);
}

.char-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--border);
}

.char-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.char-nav a:hover { color: var(--text-primary); }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.about-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.about-body h2 {
  margin: 3rem 0 1rem;
  font-size: 1.8rem;
}

.about-body p {
  margin-bottom: 1.25rem;
  max-width: none;
}

.about-body .highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 2px solid var(--purple-accent);
  max-width: none;
}

.dual-layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.layer-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.layer-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.5rem;
}

.layer-card p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .character-grid { grid-template-columns: repeat(3, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 2rem; }
  .char-body { grid-template-columns: 1fr; }
  .char-sidebar { position: static; }
  .dual-layer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 1rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; }
  .char-meta { flex-direction: column; gap: 0.5rem; }
}
