/* ============================================================
   MIREILLE'S AI CREATIONS — Main Stylesheet
   ============================================================ */

:root {
  --bg:        #05040a;
  --bg-2:      #0d0b18;
  --bg-3:      #131021;
  --bg-4:      #1a1630;
  --border:    rgba(139,92,246,0.18);
  --border-2:  rgba(139,92,246,0.35);
  --purple:    #8b5cf6;
  --purple-2:  #a78bfa;
  --pink:      #f43f5e;
  --pink-2:    #fb7185;
  --cyan:      #22d3ee;
  --gold:      #f59e0b;
  --text:      #f5f0ff;
  --text-2:    #b8b0d0;
  --text-3:    #7a7090;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 30px 80px rgba(0,0,0,0.8);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* GRAIN OVERLAY */
#grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* TYPOGRAPHY */
h1,h2,h3,h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; background: linear-gradient(120deg, #c4b5fd, #f472b6, #f97373); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
a { color: inherit; text-decoration: none; }
p { color: var(--text-2); font-size: 1.05rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#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: linear-gradient(to bottom, rgba(5,4,10,0.97), rgba(5,4,10,0.82));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Cinzel', serif; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(120deg, #e5e7eb, #c4b5fd, #f97373);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-orb {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 190deg, #8b5cf6, #f43f5e, #22d3ee, #8b5cf6);
  padding: 2px;
  box-shadow: 0 0 20px rgba(139,92,246,0.6);
}
.brand-orb::after {
  content:''; display:block; width:100%; height:100%; border-radius:50%;
  background: radial-gradient(circle at 30% 20%, #1e1636, #05040a 70%);
}
.brand-orb.small { width: 22px; height: 22px; }

.nav-links {
  display: flex; align-items: center; gap: 0.2rem; list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); padding: 0.4rem 0.8rem; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4);
}
.nav-cta {
  background: linear-gradient(120deg, rgba(139,92,246,0.4), rgba(244,63,94,0.3)) !important;
  border: 1px solid rgba(139,92,246,0.6) !important;
  color: var(--text) !important;
  padding: 0.4rem 1rem !important;
  box-shadow: 0 0 16px rgba(139,92,246,0.4);
}

.nav-toggle {
  display: none; background: none; border: none; color: var(--text-2);
  font-size: 1.3rem; cursor: pointer; padding: 0.3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Cinzel', serif; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  background: linear-gradient(120deg, #8b5cf6, #f43f5e);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 0 30px rgba(139,92,246,0.5);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 40px rgba(244,63,94,0.6); }
.btn-primary.btn-large { font-size: 0.9rem; padding: 1rem 2.2rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Cinzel', serif; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  background: rgba(139,92,246,0.08);
  color: var(--text-2); border: 1px solid var(--border-2); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: rgba(139,92,246,0.18); color: var(--text); border-color: rgba(139,92,246,0.6); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--purple-2); margin-bottom: 0.8rem;
}
.section-title { margin-bottom: 3rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; padding: 8rem 4rem 4rem;
  position: relative; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.hero-orb-1 { width: 600px; height: 600px; background: #8b5cf6; top: -200px; left: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: #f43f5e; top: 100px; right: -100px; animation: floatOrb 8s ease-in-out infinite; }
.hero-orb-3 { width: 300px; height: 300px; background: #22d3ee; bottom: 0; left: 30%; animation: floatOrb 12s ease-in-out infinite reverse; }

@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--purple-2); margin-bottom: 1.2rem;
}
.hero-title { margin-bottom: 1.4rem; }
.hero-sub { font-size: 1.15rem; max-width: 520px; margin-bottom: 2rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; align-items: center; }

.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.stat-div { width: 1px; height: 32px; background: var(--border-2); }

.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero-frame {
  position: relative; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(244,63,94,0.4), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(34,211,238,0.3), transparent 50%),
              radial-gradient(circle, #0d0b18, #05040a 60%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 60px rgba(139,92,246,0.4), 0 0 120px rgba(139,92,246,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-frame-inner { position: relative; width: 240px; height: 240px; }
.frame-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.2);
  animation: spinRing 20s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.frame-sigil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 1.1rem; letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85); text-shadow: 0 0 20px rgba(139,92,246,0.8);
}
.frame-pulse {
  position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:0.4; transform:scale(1); } 50% { opacity:0.9; transform:scale(1.15); } }
.frame-caption {
  position: absolute; bottom: -2rem; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section { padding-top: 2rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem;
}
.feature-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content:''; position:absolute; inset:-60%;
  background: radial-gradient(circle at 0 0, rgba(139,92,246,0.08), transparent 60%);
  pointer-events:none;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.feature-card--primary {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,63,94,0.1));
  border-color: rgba(139,92,246,0.4);
}
.feature-icon { font-size: 1.4rem; color: var(--purple-2); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.feature-card p { font-size: 0.95rem; flex: 1; }
.feature-link { font-size: 0.8rem; color: var(--purple-2); font-family: 'Cinzel', serif; letter-spacing: 0.1em; margin-top: auto; }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-teaser { border-top: 1px solid var(--border); }
.about-teaser-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: center; }
.about-teaser-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.about-orb {
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(139,92,246,0.5), rgba(244,63,94,0.3) 50%, transparent 70%);
  filter: blur(40px); opacity: 0.6;
  position: absolute;
}
.about-sigil-box {
  width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle, #1a1630, #05040a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(139,92,246,0.3);
  position: relative; z-index: 1;
}
.about-sigil { font-family: 'Cinzel', serif; font-size: 3.5rem; font-weight: 900; background: linear-gradient(120deg, #c4b5fd, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-lead { font-size: 1.15rem; color: var(--text); margin-bottom: 1rem; font-style: italic; }
.about-teaser-text h2 { margin-bottom: 1.2rem; }

/* ============================================================
   DONATE SECTION
   ============================================================ */
.donate-section { padding: 3rem 2rem 6rem; max-width: 1200px; margin: 0 auto; }
.donate-card {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid rgba(139,92,246,0.35);
  background: radial-gradient(circle at 20% 50%, rgba(139,92,246,0.15), transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(244,63,94,0.12), transparent 60%),
              var(--bg-3);
  padding: 4rem 3rem; text-align: center; overflow: hidden;
}
.donate-glow {
  position: absolute; inset: -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 60%);
  pointer-events: none;
}
.donate-content { position: relative; z-index: 1; }
.donate-eyebrow { font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--purple-2); margin-bottom: 1rem; }
.donate-card h2 { margin-bottom: 1rem; }
.donate-card p { max-width: 500px; margin: 0 auto 2rem; }

/* ============================================================
   PAGE HEADER (shared across inner pages)
   ============================================================ */
.page-header {
  padding: 10rem 2rem 4rem; text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(139,92,246,0.2), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-header .section-label { justify-content: center; display: flex; margin: 0 auto 0.8rem; }
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem; padding: 3rem 2rem 6rem; max-width: 1400px; margin: 0 auto;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--bg-3);
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.7); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,4,10,0.9) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.gallery-overlay p { font-size: 0.8rem; color: var(--text-3); margin: 0; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(244,63,94,0.2), rgba(34,211,238,0.15));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-3); font-size: 0.8rem; letter-spacing: 0.1em;
}
.gallery-placeholder-icon { font-size: 2rem; opacity: 0.5; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; padding: 3rem 2rem 6rem; max-width: 1200px; margin: 0 auto;
}
.shop-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.shop-card-img {
  aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(244,63,94,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-3); overflow: hidden;
}
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 1.4rem; }
.shop-card-body h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.shop-card-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.shop-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.shop-price { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--purple-2); }
.shop-badge { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.4); color: var(--purple-2); }

/* ============================================================
   COMMUNITY PAGE
   ============================================================ */
.community-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem; padding: 3rem 2rem; max-width: 1200px; margin: 0 auto;
}
.community-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.6rem; text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.community-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.community-card .icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.community-card h3 { margin-bottom: 0.6rem; font-size: 1rem; }
.community-card p { font-size: 0.92rem; margin-bottom: 1.4rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  max-width: 760px; margin: 0 auto; padding: 4rem 2rem 6rem;
}
.about-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.about-content p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-content .highlight {
  border-left: 2px solid var(--purple); padding-left: 1.5rem;
  font-style: italic; color: var(--text); font-size: 1.1rem; margin: 2rem 0;
}
.socials-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--bg-3);
  font-size: 0.82rem; color: var(--text-2); letter-spacing: 0.08em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.social-link:hover { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.5); color: var(--text); }

/* ============================================================
   REALFANTOM PAGE
   ============================================================ */
.realfantom-embed {
  padding: 2rem; max-width: 1400px; margin: 0 auto;
}
.realfantom-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #05040a;
}
.realfantom-frame iframe {
  width: 100%; min-height: 900px; border: none; display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0, rgba(139,92,246,0.06), transparent 50%),
              var(--bg-2);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Cinzel', serif; font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--text-2); margin-bottom: 2rem;
}
.footer-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-heading { font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.8rem; }
footer a { display: block; font-size: 0.9rem; color: var(--text-3); margin-bottom: 0.4rem; transition: color 0.15s; }
footer a:hover { color: var(--purple-2); }
.footer-copy { font-size: 0.8rem; color: var(--text-3); text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; gap: 2rem; }
  .hero-visual { display: none; }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-teaser-visual { display: none; }
}

@media (max-width: 720px) {
  #nav { padding: 0.8rem 1.2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,4,10,0.98); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; border-radius: 8px; }
  .nav-toggle { display: block; }
  .section { padding: 4rem 1.2rem; }
  .donate-card { padding: 2.5rem 1.5rem; }
}

/* ============================================================
   PAGE LOAD ANIMATION
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.7s ease-out both; }
.hero-eyebrow  { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.2s; }
.hero-sub      { animation-delay: 0.3s; }
.hero-actions  { animation-delay: 0.4s; }
.hero-stats    { animation-delay: 0.5s; }
