:root {
  --night: #14122b;
  --dusk: #2a2050;
  --violet: #4b2f6e;
  --ember: #e88f3a;
  --gold: #f6c453;
  --stone: #1c1a36;
  --text: #ece6f5;
  --muted: #a99fc0;
  --line: rgba(246, 196, 83, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}
h1, h2, h3 { font-family: Cinzel, Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--gold); }
code {
  background: rgba(255, 255, 255, .08);
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .95em;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  background: rgba(20, 18, 43, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: Cinzel, serif; font-weight: 700; font-size: 1.2rem;
  color: var(--gold); text-decoration: none;
}
.brand img, footer img, .hero-icon { image-rendering: pixelated; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7em 1.4em;
  border: 0; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--night); font: 600 1rem Inter, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 143, 58, .35); }
.btn-small { padding: .4em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-ghost:hover { background: rgba(246, 196, 83, .1); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: grid; place-items: center;
  padding: 80px 16px 140px;
  text-align: center;
  background: linear-gradient(180deg, #1a1638 0%, var(--dusk) 35%, var(--violet) 65%, #b0533a 92%, var(--ember) 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; left: 50%; bottom: 40px;
  width: 420px; height: 420px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 196, 83, .55) 0%, rgba(232, 143, 58, .25) 40%, transparent 70%);
}
.hero-inner { position: relative; max-width: 720px; }
.hero-icon {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: .3em 0 .1em;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: 1.25rem; color: var(--text); margin: 0 0 1.2em; }
.facts { list-style: none; padding: 0; margin: 0 0 2em; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.facts li {
  padding: .25em .9em; border-radius: 999px;
  background: rgba(20, 18, 43, .5); border: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.ip-box {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px 8px 8px 18px;
  background: rgba(20, 18, 43, .7); border: 1px solid var(--line); border-radius: 10px;
}
.ip-box code { background: none; font-size: 1.15rem; color: var(--gold); padding: 0; }
.cta { margin-top: 1.4em; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; fill: var(--night); }

/* Sections */
.section { padding: 90px 16px; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; color: var(--gold); }
.lead { text-align: center; color: var(--muted); margin: -0.3em 0 2.5em; }
.alt { max-width: none; background: var(--stone); border-block: 1px solid var(--line); }
.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 2.5em; }
.pillars article {
  padding: 28px 24px; border-radius: 12px;
  background: linear-gradient(180deg, var(--dusk), var(--stone));
  border: 1px solid var(--line);
}
.num { font-family: Cinzel, serif; font-size: 2rem; color: var(--ember); }
.pillars p, .cards p, .steps p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards article {
  padding: 22px; border-radius: 10px;
  background: var(--night); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.cards article:hover { border-color: var(--ember); transform: translateY(-3px); }
.cards h3 { font-size: 1.1rem; color: var(--text); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.5em auto 0; max-width: 720px; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 28px 64px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; font: 700 1.1rem Cinzel, serif;
  background: linear-gradient(135deg, var(--gold), var(--ember)); color: var(--night);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .25em; }

.rules { max-width: 720px; padding: 0; list-style: none; }
.rules li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before { content: "\25C6"; position: absolute; left: 4px; color: var(--ember); }

.closing {
  text-align: center; padding: 100px 16px;
  background: linear-gradient(180deg, var(--night), var(--violet));
}
.closing h2 { font-size: clamp(1.8rem, 5vw, 3rem); }

footer {
  text-align: center; padding: 28px 16px;
  background: #0e0c20; color: var(--muted); font-size: .9rem;
}
footer p { margin: .3em 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fine { font-size: .8rem; opacity: .7; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 8px;
  background: var(--gold); color: var(--night); font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .nav { padding: 10px 16px; }
  .sun { width: 300px; height: 300px; }
}
