:root {
  --bg: #0d0a05;
  --bg-2: #161006;
  --sand: #e8d5a3;
  --sand-dim: #c2a25a;
  --gold: #d4af37;
  --gold-light: #f9e08a;
  --gold-dark: #8a6d1f;
  --ink: #f5ecd4;
  --muted: #b7a877;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 50% -100px, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #1a1206 100%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #000; }

/* ══════════ GATE ══════════ */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #080603;
  transition: opacity 1.4s ease, visibility 1.4s;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .45; filter: saturate(.85);
}
.gate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 50% 42%, rgba(8,6,3,.25), rgba(8,6,3,.82) 75%);
  pointer-events: none;
}

.gate-inner { position: relative; z-index: 2; text-align: center; padding: 2rem; }

.gate-ankh {
  width: 118px; height: 118px; display: block; margin: 0 auto .8rem;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.gate-title {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900; letter-spacing: .25em;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .5rem 0 0;
}
.gate-sub {
  font-family: var(--display); letter-spacing: .45em;
  color: var(--muted); font-size: .85rem; margin-top: .6rem;
}
.gate-divider {
  color: var(--sand-dim); margin: 1.8rem 0 2.4rem;
  display: flex; justify-content: center; align-items: center; gap: 1.1rem;
}
.gate-divider svg { width: 17px; height: 17px; color: var(--sand-dim); }

.gate-btn {
  font-family: var(--display); font-weight: 700;
  font-size: 1rem; letter-spacing: .35em;
  padding: 1rem 3.2rem 1rem 3.55rem;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(212,175,55,.16), rgba(212,175,55,.04));
  border: 1px solid var(--gold-dark);
  outline: 1px solid rgba(212,175,55,.25); outline-offset: 5px;
  cursor: pointer;
  transition: all .35s ease;
}
.gate-btn:hover {
  background: linear-gradient(180deg, rgba(212,175,55,.4), rgba(212,175,55,.15));
  color: #fff; box-shadow: 0 0 40px rgba(212,175,55,.35);
  letter-spacing: .42em;
}
.gate-note { color: var(--muted); font-style: italic; margin-top: 1.6rem; font-size: .95rem; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2.2rem;
  background: rgba(13,10,5,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,.22);
}
.nav-logo {
  font-family: var(--display); font-weight: 700; letter-spacing: .2em;
  color: var(--gold); text-decoration: none; font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.nav-logo svg { width: 19px; height: 19px; color: var(--gold); }
.nav-links a {
  color: var(--sand); text-decoration: none; margin-left: 2rem;
  font-family: var(--display); font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; transition: color .25s;
}
.nav-links a:hover { color: var(--gold-light); text-shadow: 0 0 12px rgba(212,175,55,.6); }
.music-toggle {
  margin-left: 2rem; background: none; border: 1px solid var(--gold-dark);
  color: var(--gold); font-size: 1.1rem; width: 2.4rem; height: 2.4rem;
  cursor: pointer; border-radius: 50%; transition: all .25s;
}
.music-toggle:hover { box-shadow: 0 0 15px rgba(212,175,55,.5); }
.music-toggle.off { color: var(--muted); border-color: #443c22; text-decoration: line-through; }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  padding: 7rem 6vw 5rem;
}
.scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 1; pointer-events: none;
}
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.dust {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: radial-gradient(circle, #ffd98f, rgba(255,170,80,0) 70%);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .35; }
  100% { transform: translateY(-110vh) translateX(4vw); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
}
.brand-row { display: flex; align-items: center; gap: 1rem; }
.hero-logo {
  width: 84px; height: 84px; flex-shrink: 0;
  padding: 9px;
  background: linear-gradient(180deg, #241a08, #120d05);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 16px;
  filter: drop-shadow(0 0 14px rgba(255,170,60,.3));
}
.brand-name {
  font-family: var(--display); font-weight: 700;
  letter-spacing: .3em; font-size: 1.35rem;
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(255,170,60,.55);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700; line-height: 1.18; letter-spacing: .01em;
  color: #f7ecd2;
  text-shadow: 0 2px 22px rgba(20,8,2,.55);
  margin: 1.6rem 0 1rem;
}
.hero-tagline {
  max-width: 560px; color: #f3ddbd; font-size: 1.2rem;
  margin: 0 0 2.2rem;
  text-shadow: 0 1px 14px rgba(20,8,2,.5);
}
.hero-buttons { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.btn {
  font-family: var(--display); font-weight: 700; letter-spacing: .18em;
  font-size: .95rem; text-decoration: none;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--gold);
  transition: all .3s ease; display: inline-block;
}
.btn-primary {
  color: #2a1602;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 25px rgba(255,180,70,.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 40px rgba(255,180,70,.55);
  color: #000;
}
.btn-secondary {
  color: #fff;
  background: #5865F2;
  border: 1px solid #5865F2;
  box-shadow: 0 4px 22px rgba(88,101,242,.4);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: #6d78ff;
  box-shadow: 0 8px 34px rgba(88,101,242,.6);
  color: #fff;
}
.hero-version { color: #f0d9b0; opacity: .85; margin-top: 1.8rem; letter-spacing: .06em; font-size: .98rem; text-shadow: 0 1px 10px rgba(20,8,2,.6); }
.hero-glyphs {
  color: var(--gold-dark); margin-top: 2.5rem;
  display: flex; justify-content: center; align-items: center; gap: 1.4rem;
}
.hero-glyphs svg { width: 18px; height: 18px; }

/* ══════════ SECTIONS ══════════ */
.section { max-width: 1150px; margin: 0 auto; padding: 6rem 1.5rem 3rem; }
.section-alt { max-width: none; background: linear-gradient(180deg, rgba(212,175,55,.045), transparent); }
.section-alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.glyph-line {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  color: var(--gold); margin-bottom: 1rem;
}
.glyph-line svg { width: 16px; height: 16px; }
.glyph-line.small { color: var(--gold-dark); gap: .7rem; margin-bottom: .4rem; }
.glyph-line.small svg { width: 12px; height: 12px; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: .22em;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { color: var(--muted); max-width: 640px; margin: .8rem auto 0; }

/* panels */
.panels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.6rem;
}
.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(212,175,55,.09), rgba(212,175,55,.02) 55%);
  border: 1px solid rgba(212,175,55,.28);
  padding: 1.8rem 1.8rem 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.panel::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(212,175,55,.12); pointer-events: none;
}
.panel:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212,175,55,.18);
}
.panel h3 {
  font-family: var(--display); color: var(--gold-light);
  letter-spacing: .12em; font-size: 1.15rem; margin-bottom: .3rem;
}
.panel-icon { color: var(--gold); margin-right: .5rem; }
.panel-desc { color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.panel ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .45rem; }
.panel li {
  font-size: .92rem; color: var(--sand);
  border: 1px solid rgba(212,175,55,.25);
  padding: .22rem .7rem;
  background: rgba(212,175,55,.05);
}
.panel li:hover { border-color: var(--gold); color: var(--gold-light); }

.presets {
  text-align: center; margin-top: 3rem; padding: 2rem;
  border: 1px dashed rgba(212,175,55,.35);
  color: var(--muted);
}
.presets h3 {
  font-family: var(--display); color: var(--gold-light);
  letter-spacing: .2em; margin: .4rem 0 .3rem;
}

/* steps */
.steps { list-style: none; max-width: 760px; margin: 0 auto 2.5rem; }
.steps li {
  display: flex; gap: 1.6rem; align-items: flex-start;
  padding: 1.4rem 1.6rem; margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(212,175,55,.08), rgba(212,175,55,.02));
  border: 1px solid rgba(212,175,55,.25);
  border-left: 3px solid var(--gold);
}
.step-num {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--gold); min-width: 2.2rem; text-align: center;
  text-shadow: 0 0 15px rgba(212,175,55,.5);
}
.steps h4 { font-family: var(--display); color: var(--gold-light); letter-spacing: .1em; }
.steps p { color: var(--sand); }
code {
  font-family: "Consolas", monospace; font-size: .92em;
  color: var(--gold-light); background: rgba(212,175,55,.12);
  padding: .1rem .45rem; border: 1px solid rgba(212,175,55,.25);
}
.note {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 1.4rem; border: 1px dashed rgba(212,175,55,.35); color: var(--muted);
}
.note strong { font-family: var(--display); color: var(--gold); letter-spacing: .15em; }

/* requirements */
.req-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem; max-width: 850px; margin: 0 auto 2.5rem;
}
.req-card {
  text-align: center; padding: 2rem 1.4rem;
  border: 1px solid rgba(212,175,55,.3);
  background: linear-gradient(180deg, rgba(212,175,55,.08), transparent);
}
.req-card h4 {
  font-family: var(--display); color: var(--gold); letter-spacing: .2em;
  text-transform: uppercase; font-size: .9rem; margin-bottom: .5rem;
}
.req-card p { color: var(--ink); font-size: 1.2rem; }
.warning {
  max-width: 850px; margin: 0 auto; text-align: center;
  padding: 1.5rem; border: 1px solid #6e2b2b;
  background: rgba(110,43,43,.12);
}
.warning h4 { font-family: var(--display); color: #e08a7a; letter-spacing: .15em; margin-bottom: .4rem; }
.warning p { color: var(--sand); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid rgba(212,175,55,.28);
  background: linear-gradient(160deg, rgba(212,175,55,.07), transparent);
  margin-bottom: 1rem;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.5rem;
  font-family: var(--display); color: var(--gold-light);
  letter-spacing: .08em; list-style: none; position: relative;
  transition: background .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.4rem; color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: rgba(212,175,55,.08); }
.faq details p { padding: 0 1.5rem 1.3rem; color: var(--sand); }

/* footer */
.footer {
  text-align: center; padding: 4rem 1.5rem 3rem;
  border-top: 1px solid rgba(212,175,55,.22);
  margin-top: 3rem;
}
.footer-buttons { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.footer p { color: var(--muted); font-size: .95rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .nav-links a { margin-left: 1rem; font-size: .72rem; }
  .btn { padding: .9rem 1.8rem; letter-spacing: .14em; }
}

/* ══════════ SKIP LINK ══════════ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #d4af37; color: #221503;
  padding: .7rem 1.4rem; border-radius: 0 0 10px 0;
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .08em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ══════════ TUTORIAL VIDEO ══════════ */
.video-wrap { max-width: 860px; margin: 2.6rem auto 0; text-align: center; }
.video-facade {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(212,175,55,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  cursor: pointer; background: #161006;
}
.video-facade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.video-facade:hover img { transform: scale(1.03); filter: brightness(1.08); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade.playing { cursor: default; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.video-play::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,10,5,0) 40%, rgba(13,10,5,.55));
}
.video-play::after {
  content: "\25B6";
  display: grid; place-items: center;
  width: 84px; height: 58px; border-radius: 16px;
  font-size: 24px; padding-left: 5px; color: #221503;
  background: linear-gradient(180deg, #f9e08a, #d4af37 60%, #8a6d1f);
  box-shadow: 0 10px 40px rgba(212,175,55,.45), 0 0 0 1px rgba(249,224,138,.5);
}
.video-facade:hover .video-play::after { box-shadow: 0 14px 50px rgba(212,175,55,.65), 0 0 0 1px #f9e08a; }
.video-facade.playing .video-play { display: none; }
.video-credit { margin-top: 1.2rem; font-size: .95rem; color: #b7a877; }
.video-credit a { color: #d4af37; text-decoration: none; }
.video-credit a:hover { color: #f9e08a; text-decoration: underline; }
@media (max-width: 640px) {
  .video-play::after { width: 62px; height: 44px; font-size: 18px; }
}
