/* ===========================
   Hood Potter — Global Styles
   =========================== */

:root {
  --forest: #0f2818;
  --forest-dark: #081810;
  --forest-light: #1c4a2c;
  --gold: #d4af37;
  --gold-bright: #f5cf5b;
  --maroon: #7a0c0c;
  --maroon-light: #a5162e;
  --bg-dark: #0a1510;
  --bg-darker: #060d09;
  --bg-card: #101f16;
  --text-main: #f3ead2;
  --text-muted: #a9bdac;
  --border-glow: rgba(212, 175, 55, 0.35);
  --font-display: "Harry Potter", "Cinzel", serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(122, 12, 12, 0.12) 0%, transparent 50%),
    var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  animation: page-fade-in 0.5s ease both;
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* ---------- Sparkles (Lumos motes) ---------- */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px 2px rgba(245, 207, 91, 0.7);
  opacity: 0;
  animation: spark-float linear infinite;
}

@keyframes spark-float {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  10% { opacity: 0.9; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; display: none; }
  body { opacity: 1; animation: none; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 13, 9, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-main);
}
.brand-name span { color: var(--gold-bright); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); }

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-social { display: flex; gap: 0.7rem; }
.nav-social-link {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-bright);
  transition: background 0.2s, transform 0.2s;
}
.nav-social-link:hover { background: rgba(212, 175, 55, 0.25); transform: translateY(-2px); }

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-dark);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-glow);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.08); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--gold-bright); }

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats { display: flex; gap: 2.2rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; color: var(--gold-bright); font-family: var(--font-display); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(122, 12, 12, 0.25), 0 30px 70px rgba(0,0,0,0.5);
  background: var(--forest-light);
  animation: hero-float 4.5s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.badge-float {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 13, 9, 0.9);
  border: 1px solid var(--border-glow);
  font-size: 0.8rem;
  font-weight: 600;
  animation: badge-bob 3.5s ease-in-out infinite;
}
.badge-1 { top: 6%; left: -4%; }
.badge-2 { bottom: 8%; right: -6%; animation-delay: 1.2s; }

@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame, .badge-float { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 5rem 0; position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 0.9rem; }
.section-head p { color: var(--text-muted); }

/* ---------- Cards / grids ---------- */
.grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--text-main); font-family: var(--font-body); font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.tokenomics-grid .card { text-align: center; }
.tokenomics-grid .card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}

/* ---------- Icon system ---------- */
.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.4em;
  flex-shrink: 0;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { border-color: var(--gold); background: rgba(212, 175, 55, 0.18); }

.crest {
  width: 60px;
  height: 60px;
  color: var(--gold-bright);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.crest svg { width: 100%; height: 100%; }
.house { text-align: center; }
.house p { text-align: left; }

.comic-frame {
  margin-top: 3rem;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ---------- Contract box ---------- */
.contract-box {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-glow);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
}
.contract-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}
.contract-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.contract-value code {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.copy-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(212, 175, 55, 0.12); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-dark);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-card h3 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "✦ "; color: var(--gold-bright); }
.faq-item p { margin-top: 0.8rem; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glow);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.9rem; color: var(--gold-bright); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-col a:hover { color: var(--text-main); }
.disclaimer {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-actions, .hero-stats { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .burger { display: block; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
