:root {
  --black: #070302;
  --stone: #15100d;
  --stone-2: #21140b;
  --gold: #ffb739;
  --gold-soft: #ffe4a1;
  --orange: #ff711c;
  --ember: #9d2f0d;
  --text: #fff2d5;
  --muted: #c9aa78;
  --line: rgba(255, 183, 57, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 113, 28, .17), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(255, 183, 57, .10), transparent 28%),
    linear-gradient(130deg, #070302, #170905 48%, #050202);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: .45;
  z-index: -3;
}

.fog-layer {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(130, 55, 15, .26), transparent 34%),
    radial-gradient(ellipse at 80% 65%, rgba(255, 150, 40, .12), transparent 32%);
  filter: blur(24px);
  animation: fogMove 16s ease-in-out infinite alternate;
}

@keyframes fogMove {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -1%, 0) scale(1.03); }
}

.spark-field span {
  position: fixed;
  bottom: -20px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffe8ad, #ff7a1e 55%, transparent 72%);
  pointer-events: none;
  z-index: 1;
  animation: sparkRise linear infinite;
}

@keyframes sparkRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: .85; }
  100% { transform: translateY(-110vh) translateX(55px); opacity: 0; }
}

.side-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  background: linear-gradient(180deg, rgba(9, 4, 2, .96), rgba(27, 13, 6, .84));
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 60px rgba(0,0,0,.28);
}

.rail-brand {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #271006;
  background: linear-gradient(160deg, #ffe39b, #ff9c25 50%, #9d2f0d);
  border-radius: 18px 18px 8px 18px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(255, 113, 28, .34);
}

.side-rail nav {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.side-rail nav a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .25s ease;
}

.side-rail nav a span {
  color: var(--orange);
  font-weight: 900;
}

.side-rail nav a:hover,
.side-rail nav a.active {
  color: var(--gold-soft);
  text-shadow: 0 0 15px rgba(255,183,57,.5);
}

.mobile-menu,
.mobile-nav { display: none; }

.site-shell {
  width: calc(100% - 156px);
  max-width: 1220px;
  margin-left: 126px;
  margin-right: 30px;
  padding: 34px 0 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 1360px) {
  .site-shell {
    width: 1220px;
    margin-left: calc(96px + ((100vw - 96px - 1220px) / 2));
    margin-right: auto;
  }
}

.hero-board {
  min-height: calc(100vh - 34px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  padding: 38px 0 72px;
}

.hero-copy {
  position: relative;
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(26, 13, 7, .92), rgba(9, 4, 2, .74)),
    radial-gradient(circle at 12% 12%, rgba(255,183,57,.13), transparent 30%);
  border-radius: 34px 10px 34px 10px;
  box-shadow: 0 28px 100px rgba(0,0,0,.42);
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,183,57,.2);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(255,113,28,.08);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.label::before {
  content: '';
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

h1, h2, h3 { font-family: 'Cinzel', serif; margin: 0; }
h1 {
  margin-top: 18px;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: .88;
  color: var(--gold-soft);
  text-shadow: 0 5px 0 #55200c, 0 0 36px rgba(255,113,28,.28);
}
h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  color: var(--gold-soft);
}
h3 { color: var(--gold-soft); }
p {
  color: #dfc398;
  line-height: 1.8;
}
.hero-copy p {
  max-width: 620px;
  font-size: 17px;
  margin: 24px 0 0;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  min-width: 119px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px 18px 7px 18px;
  font-weight: 900;
  text-decoration: none;
  transition: .25s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-18deg);
  background: rgba(255,255,255,.24);
  transition: .35s ease;
}
.btn:hover::before { transform: translateX(110%) skewX(-18deg); }
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  color: #2b1005;
  background: linear-gradient(180deg, #ffe5a2, #ff9b24 48%, #a9340d);
  box-shadow: 0 18px 38px rgba(255,113,28,.22);
}
.btn-dark {
  color: var(--gold-soft);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(39,20,10,.88), rgba(11,5,2,.88));
}

.launch-meter {
  margin-top: 36px;
  padding: 18px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,183,57,.16);
  border-radius: 18px;
}
.meter-title {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.countdown div {
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,183,57,.11), rgba(0,0,0,.18));
  border: 1px solid rgba(255,183,57,.15);
}
.countdown strong {
  display: block;
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 30px;
}
.countdown small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}

.hero-art {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(500px, 88vw);
  border-radius: 24px;
  position: relative;
  z-index: 3;
  transform: rotate(2deg);
  box-shadow: 0 34px 110px rgba(0,0,0,.62), 0 0 85px rgba(255,113,28,.2);
  border: 1px solid rgba(255,183,57,.25);
}
.portal-ring {
  position: absolute;
  width: min(560px, 95vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 52%, rgba(255,183,57,.18) 53%, transparent 58%),
    conic-gradient(from 40deg, transparent, rgba(255,113,28,.22), transparent, rgba(255,228,161,.25), transparent);
  filter: drop-shadow(0 0 36px rgba(255,113,28,.25));
  animation: rotatePortal 24s linear infinite;
}
@keyframes rotatePortal { to { transform: rotate(360deg); } }
.stone-card {
  position: absolute;
  z-index: 4;
  min-width: 120px;
  padding: 16px 18px;
  background: linear-gradient(160deg, rgba(44,22,10,.96), rgba(8,4,2,.88));
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}
.stone-card strong {
  display: block;
  font-family: 'Cinzel', serif;
  color: var(--gold-soft);
  font-size: 24px;
}
.stone-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.card-a { left: 20px; top: 120px; }
.card-b { right: 5px; bottom: 135px; }

.server-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -30px 0 80px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 85px rgba(0,0,0,.34);
}
.server-strip article {
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(35,18,9,.94), rgba(9,4,2,.96));
}
.server-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.server-strip strong {
  display: block;
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  color: var(--gold-soft);
  font-size: 20px;
}

.section { padding: 78px 0; }
.two-columns {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}
.lore-panel,
.download-panel {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23,11,5,.90), rgba(7,3,2,.78));
  border-radius: 10px 34px 10px 34px;
  box-shadow: 0 25px 80px rgba(0,0,0,.30);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card,
.timeline-item {
  padding: 24px;
  border: 1px solid rgba(255,183,57,.17);
  background: rgba(13,7,4,.72);
  border-radius: 24px 8px 24px 8px;
  transition: .25s ease;
}
.feature-card:hover,
.timeline-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,183,57,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.26);
}
.feature-card b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255,113,28,.14);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 740px; margin: 0 auto 44px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe4a1, #ff8b20);
  color: #2a0f05;
  font-weight: 900;
  margin-bottom: 18px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 70px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,113,28,.18), transparent 28%),
    linear-gradient(145deg, rgba(34,16,8,.94), rgba(8,4,2,.84));
}
.download-panel p { margin-bottom: 0; }
.download-actions { justify-content: flex-end; margin-top: 0; }

.footer {
  margin-left: 96px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,183,57,.12);
  background: rgba(7,3,2,.72);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .side-rail { display: none; }
  .mobile-menu {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 60;
    display: block;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10,4,2,.88);
  }
  .mobile-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 6px auto;
  }
  .mobile-nav {
    position: fixed;
    right: 20px;
    top: 78px;
    z-index: 59;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10,4,2,.95);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: var(--gold-soft); text-decoration: none; padding: 8px 26px; }
  .site-shell { width: min(1120px, calc(100% - 34px)); margin: 0 auto; }
  .hero-board { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-art { min-height: auto; padding: 40px 0; }
  .server-strip { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .two-columns, .download-panel { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer { margin-left: 0; }
}

@media (max-width: 640px) {
  .hero-copy { padding: 28px 20px; }
  .hero-actions, .download-actions { flex-direction: column; }
  .btn { width: 100%; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .timeline, .server-strip { grid-template-columns: 1fr; }
  .card-a, .card-b { display: none; }
  .hero-art img { transform: rotate(0); }
}
