:root {
  --night: #08111c;
  --ink: #102033;
  --slate: #1a314c;
  --sky: #8eb6d4;
  --gold: #f0d48a;
  --gold-deep: #c8963e;
  --gold-dark: #7a5424;
  --cream: #f6efe0;
  --wine: #8d3040;
  --line: rgba(240, 212, 138, 0.35);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--night);
  font-family: Spectral, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3, .brand span, .symbol, .kicker, .btn, .nav-links, .step-no, .chart-bar {
  font-family: Cinzel, Palatino, serif;
}

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(240, 180, 80, 0.28), transparent 60%),
    radial-gradient(700px 480px at 12% 80%, rgba(90, 130, 180, 0.18), transparent 65%),
    linear-gradient(180deg, #16324d 0%, #0d1c30 42%, #0a1422 100%);
  overflow: hidden;
}
.rays {
  position: absolute;
  width: 140%;
  height: 140%;
  left: 20%;
  top: -40%;
  background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 220, 150, 0.07) 0 8deg, transparent 8deg 22deg);
  animation: spin 80s linear infinite;
  mask-image: radial-gradient(circle at 60% 30%, #000 0 20%, transparent 62%);
}
.cloud {
  position: absolute;
  height: 90px;
  border-radius: 80px;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 70%);
  filter: blur(2px);
  animation: drift 48s linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-a { width: 280px; top: 12%; left: -10%; }
.cloud-a::before { width: 120px; height: 90px; top: -40px; left: 40px; }
.cloud-a::after { width: 160px; height: 100px; top: -20px; left: 110px; }
.cloud-b { width: 340px; top: 28%; left: 40%; animation-duration: 70s; opacity: 0.7; }
.cloud-c { width: 220px; top: 8%; left: 70%; animation-duration: 56s; animation-delay: -20s; }
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(196, 130, 50, 0.16) 40%, rgba(8, 14, 24, 0.2));
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 8, 14, 0.55) 100%);
  pointer-events: none;
}

.nav, main, .footer { position: relative; z-index: 2; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.88), rgba(8, 16, 28, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.nav::after {
  content: "";
  position: absolute;
  left: 6vw; right: 6vw; bottom: 0;
  height: 10px;
  background:
    linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep)) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(240, 212, 138, 0.85) 18px 34px, transparent 34px 36px);
  opacity: 0.7;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.82rem;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px rgba(240, 212, 138, 0.45);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a:not(.nav-x)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-x {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 32, 51, 0.7);
}
.nav-x img { width: 14px; height: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.6);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--gold);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 6vh 8vw 12vh;
  position: relative;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
  margin: 0 0 0.8rem;
}
.fleur {
  width: 14px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'><path fill='%23f0d48a' d='M20 2c2 8 6 12 12 14-6 2-8 6-8 12 4-1 8 0 12 3-6 2-9 7-9 13h-4c0-6-2-10-7-13 5-1 8-5 8-12C18 16 14 12 8 10c6-1 10-5 12-8z'/></svg>") center / contain no-repeat;
  animation: pulse 2.8s ease-in-out infinite;
}
h1 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.95;
  margin: 0;
  background: linear-gradient(180deg, #fff6dd 10%, #f0d48a 40%, #c8963e 78%, #f6efe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  animation: shimmer 7s linear infinite;
  background-size: 100% 220%;
}
.symbol {
  display: inline-block;
  margin: 1rem 0 0.4rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line);
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(16, 32, 51, 0.45);
}
.tagline {
  font-size: 1.35rem;
  font-style: italic;
  max-width: 34rem;
  color: #efe6d4;
}
.cta-row, .join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn img { width: 20px; height: 20px; object-fit: contain; }
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, #fff1c9, #e2b45a 45%, #b8863a);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-line {
  color: var(--cream);
  border: 1px solid var(--line);
  background: rgba(10, 20, 34, 0.45);
}
.btn:hover { transform: translateY(-3px); }

.crest {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.crest img {
  width: min(460px, 80vw);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  animation: float 6.5s ease-in-out infinite;
}
.beam {
  position: absolute;
  width: 46px;
  height: 78%;
  top: 0;
  left: 46%;
  background: linear-gradient(180deg, rgba(255, 244, 210, 0.95), rgba(240, 212, 138, 0.15) 70%, transparent);
  filter: blur(6px);
  animation: beam 3.4s ease-in-out infinite;
  z-index: 1;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(240, 212, 138, 0.55);
  z-index: 1;
}
.ring-outer { width: 520px; height: 520px; animation: spin 36s linear infinite; }
.ring-inner { width: 390px; height: 390px; animation: spin 24s linear infinite reverse; border-style: solid; opacity: 0.4; }
.crest-caption {
  position: absolute;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: MedievalSharp, Cinzel, serif;
  font-size: 1rem;
  color: var(--gold);
}
.castle {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 150px;
  z-index: 2;
  pointer-events: none;
}

.oath {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.55);
  position: relative;
  z-index: 3;
}
.oath-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: marquee 28s linear infinite;
  font-family: Cinzel, serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}
.oath-track i {
  width: 8px; height: 8px;
  align-self: center;
  background: var(--gold);
  transform: rotate(45deg);
}

section { padding: 6.5rem 8vw; }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head h2, .about-lead, .pillar h3, .step h3 {
  font-family: "Cinzel Decorative", Cinzel, serif;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
}
.lede { color: #d9d0bf; margin: 0.6rem 0 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}
.about-lead, .pillar, .step, .chart-frame, .banner-frame {
  background: linear-gradient(180deg, rgba(22, 40, 62, 0.72), rgba(10, 18, 30, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-lead {
  padding: 2rem 2rem 1.4rem;
  position: relative;
}
.about-lead::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 212, 138, 0.18);
  pointer-events: none;
}
.about-lead p { margin-top: 0; }
.stat-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0;
  margin: 1.4rem 0 0;
}
.stat-row li {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.stat-row strong {
  display: block;
  font-family: Cinzel, serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.pillars { display: grid; gap: 1rem; }
.pillar { padding: 1.3rem 1.3rem 1.2rem 1.3rem; }
.pillar h3 { margin: 0.4rem 0; font-size: 1.25rem; }
.pillar p { margin: 0; color: #e6dcc8; }
.candle {
  width: 18px; height: 28px;
  margin-left: 4px;
  background: linear-gradient(#f6efe0, #c8963e);
  border-radius: 2px 2px 4px 4px;
  position: relative;
}
.candle span {
  position: absolute;
  left: 4px; top: -14px;
  width: 10px; height: 16px;
  background: radial-gradient(circle at 50% 70%, #fff6d2, #f0a030 50%, transparent 72%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flame 0.8s ease-in-out infinite alternate;
  filter: blur(0.3px);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.step {
  padding: 1.4rem 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  top: 2.2rem; right: -0.6rem;
  width: 1.2rem; height: 1px;
  background: var(--gold);
}
.step:last-child::after { display: none; }
.step img {
  width: 54px; height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.45);
  padding: 6px;
}
.step-no {
  position: absolute;
  top: 1rem; right: 1rem;
  color: rgba(240, 212, 138, 0.45);
  letter-spacing: 0.14em;
}
.step h3 { margin: 0.8rem 0 0.3rem; font-size: 1.2rem; }
.step p { margin: 0 0 0.6rem; color: #e6dcc8; }
.step a { font-family: Cinzel, serif; font-size: 0.78rem; letter-spacing: 0.08em; }

.chart-frame { padding: 0.7rem; }
.chart-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.8rem 0.8rem;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.chart-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.chart-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b121c;
  border-radius: 6px;
}

.banner-frame {
  margin: 0;
  padding: 0.55rem;
  overflow: hidden;
}
.banner-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: banner-drift 18s ease-in-out infinite alternate;
}
.join-actions { justify-content: center; }

.footer {
  text-align: center;
  padding: 2.5rem 8vw 3rem;
  color: #cbbfa8;
  border-top: 1px solid var(--line);
}
.footer span { color: var(--gold); margin: 0 0.4rem; }
.footer a { font-family: Cinzel, serif; letter-spacing: 0.12em; font-size: 0.85rem; }
.fine { font-size: 0.85rem; opacity: 0.75; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.22s; }
.pillar:nth-child(2) { animation-delay: 0.15s; }
.pillar:nth-child(3) { animation-delay: 0.28s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(4) { animation-delay: 0.3s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(110vw); }
}
@keyframes beam {
  0%, 100% { opacity: 0.45; transform: scaleY(0.92); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 0 200%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes flame {
  from { transform: scale(0.85) translateY(2px); opacity: 0.8; }
  to { transform: scale(1.15) translateY(-2px); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
@keyframes banner-drift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.06) translateX(-1.2%); }
}

@media (max-width: 980px) {
  .hero, .about-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; min-height: auto; }
  .crest { min-height: 440px; }
  .ring-outer { width: 340px; height: 340px; }
  .ring-inner { width: 260px; height: 260px; }
  .step::after { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 6vw;
    left: 6vw;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem 1.2rem;
    background: rgba(8, 16, 28, 0.96);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .chart-frame iframe { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
