:root {
  --bg-deep: #0d0a1a;
  --bg-section: #13102b;
  --bg-card: #1c1840;
  --text-primary: #f0edf7;
  --text-secondary: #b8b0d4;
  --accent: #a855f7;
  --accent-glow: #c084fc;
  --accent-warm: #e879a8;
  --gold: #fbbf24;
  --border: rgba(168, 85, 247, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-warm) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation: float 15s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  opacity: 0.2;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--accent-glow);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

/* REALMS */
.realms {
  padding: 6rem 2rem;
  background: var(--bg-section);
}

.realms-header {
  text-align: center;
  margin-bottom: 4rem;
}

.realms-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.realms-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.realm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.realm-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.realm-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.realm-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.realm-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* BENEFITS */
.benefits {
  padding: 6rem 2rem;
  background: var(--bg-deep);
}

.benefits-content {
  max-width: 1100px;
  margin: 0 auto;
}

.benefits-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

.benefit {
  position: relative;
  padding-left: 0;
}

.benefit-number {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.benefit h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* CLOSING */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-deep) 100%);
}

.closing-content {
  max-width: 650px;
  margin: 0 auto;
}

.closing-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.closing-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.closing-tagline {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-glow);
  font-style: italic;
}

/* FOOTER */
.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav__logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-nav__link:hover { color: var(--text-primary); }

.site-nav__cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.site-nav__cta:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

/* Push content below fixed nav */
body > section:first-of-type,
.page-hero,
.hero {
  padding-top: calc(4rem + 70px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.45);
}

.btn-ghost {
  display: inline-block;
  color: var(--accent-glow);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   HERO ACTIONS (landing page CTA row)
   ============================================================ */
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   REALM CARDS — clickable variant
   ============================================================ */
.realm-card--link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.realm-card--link h3, .realm-card--link p {
  color: inherit;
}

.realm-cta {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--accent-glow);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.realm-card--link:hover .realm-cta { color: var(--gold); }

/* ============================================================
   COLLECTIONS BROWSE PAGE
   ============================================================ */
.page-hero {
  position: relative;
  padding: 8rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-lede {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.collections-browse {
  padding: 4rem 2rem 6rem;
  background: var(--bg-section);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.collection-card__icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.collection-card__name {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.collection-card__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin: 0.5rem 0 1rem;
}

.collection-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.collection-card__count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(168, 85, 247, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.collection-card__price {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.collection-card__cta {
  margin-top: auto;
}

/* Per-collection accent borders on hover */
.collection-card--unicorns:hover  { border-color: #c084fc; box-shadow: 0 12px 40px rgba(192, 132, 252, 0.2); }
.collection-card--fairies:hover   { border-color: #e879a8; box-shadow: 0 12px 40px rgba(232, 121, 168, 0.2); }
.collection-card--sirens:hover    { border-color: #38bdf8; box-shadow: 0 12px 40px rgba(56, 189, 248, 0.2); }
.collection-card--gargoyles:hover { border-color: #fbbf24; box-shadow: 0 12px 40px rgba(251, 191, 36, 0.2); }

/* ============================================================
   BROWSE GUARANTEE STRIP
   ============================================================ */
.browse-guarantee {
  background: var(--bg-deep);
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.browse-guarantee__inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 240px;
}

.guarantee-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.guarantee-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.guarantee-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   COLLECTION DETAIL PAGE
   ============================================================ */
.detail-hero {
  position: relative;
  padding: 9rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-deep) 100%);
}

.detail-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text-primary); }

.detail-hero__icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.detail-hero__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-hero__tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.detail-hero__stats {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.stat-sep { opacity: 0.4; }

/* Detail body — description + purchase panel */
.detail-body {
  padding: 5rem 2rem;
  background: var(--bg-deep);
}

.detail-body__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.detail-description h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.detail-description p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
}

/* Purchase panel */
.detail-purchase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: sticky;
  top: 90px;
}

.detail-purchase__price {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.download-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
  margin-bottom: 1.5rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.purchase-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.purchase-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
}

.purchase-features li:last-child { border: none; }

/* Preview section */
.detail-previews {
  padding: 5rem 2rem;
  background: var(--bg-section);
}

.detail-previews__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-previews__heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.preview-card:hover { transform: translateY(-4px); }

.preview-card__image {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--bg-deep) 0%, rgba(168, 85, 247, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preview-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.6;
}

.preview-num {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-placeholder--locked .preview-lock {
  font-size: 2.5rem;
  opacity: 0.4;
}

.preview-card--locked .preview-card__image {
  background: linear-gradient(160deg, var(--bg-deep) 0%, rgba(30, 25, 60, 0.8) 100%);
}

.preview-card__info {
  padding: 1rem 1.2rem;
}

.preview-card__info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.preview-card__info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Bottom CTA */
.detail-cta {
  padding: 7rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-section) 100%);
}

.detail-cta__inner {
  max-width: 550px;
  margin: 0 auto;
}

.detail-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.detail-btn--lg {
  display: inline-block;
  width: auto;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
  margin-bottom: 1.5rem;
}

.detail-btn--lg:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cta-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.cta-sub a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Notice banner */
.notice-banner {
  background: rgba(168, 85, 247, 0.12);
  border-bottom: 1px solid var(--accent);
  padding: 1rem 2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.notice-banner a { color: var(--accent-glow); }

/* Error page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}

.error-page__content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

  .realms, .benefits {
    padding: 4rem 1.5rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

  .realms-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { width: 200px; height: 200px; }

  .site-nav { padding: 0.75rem 1.25rem; }
  .site-nav__logo { font-size: 0.85rem; }

  .collections-grid { grid-template-columns: 1fr; }

  .detail-body__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-purchase { position: static; }

  .browse-guarantee__inner { gap: 2rem; }

  .previews-grid { grid-template-columns: repeat(2, 1fr); }
}