:root {
  --night: #1a0f24;
  --night-2: #241634;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f6f1fb;
  --muted: #b9adc9;
  --orange: #ff6a2b;
  --orange-2: #ff8a4c;
  --rust: #c8462a;
  --teal: #36d6c2;
  --lav: #e8e2f4;
  --radius: 22px;
  --display: "Rubik", system-ui, sans-serif;
  --hud: "Chakra Petch", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 43, 0.12), transparent 60%),
                    radial-gradient(900px 500px at -10% 40%, rgba(150, 90, 220, 0.10), transparent 60%);
  color: var(--ink);
  font: 400 17px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.5em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.01em;
  box-shadow: 0 6px 0 #b8421a, 0 14px 30px rgba(255, 106, 43, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b8421a, 0 18px 36px rgba(255, 106, 43, 0.45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8421a, 0 8px 18px rgba(255, 106, 43, 0.3); }
.btn-ghost { background: rgba(26, 15, 36, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; box-shadow: 0 4px 0 #b8421a; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
body.no-discord .discord-only { display: none; }
body:not(.no-discord) .fallback { display: none; }

/* ---------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.solid { background: rgba(26, 15, 36, 0.96); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--hud); letter-spacing: 0.14em; }
.brand svg { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; font: 600 14px var(--hud); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.nav nav a:hover { opacity: 1; color: var(--teal); }

/* ---------- hero */
.hero { position: relative; min-height: clamp(640px, 100svh, 1000px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 18% 72%, rgba(26, 15, 36, 0.86) 0%, rgba(26, 15, 36, 0.55) 45%, rgba(26, 15, 36, 0) 75%),
                                                   linear-gradient(0deg, var(--night) 0%, rgba(26, 15, 36, 0) 32%); }
.hero-inner { position: relative; padding: 140px clamp(16px, 6vw, 80px) clamp(60px, 10vh, 110px); max-width: 720px; }
.eyebrow, .kicker { font: 600 13px var(--hud); letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(76px, 13vw, 168px); font-weight: 900; line-height: 0.86; letter-spacing: -0.02em; margin: 0 0 18px;
  color: var(--lav);
  text-shadow: 0 6px 0 var(--rust), 0 12px 0 rgba(0, 0, 0, 0.25), 0 30px 60px rgba(0, 0, 0, 0.4);
}
.tagline { font: 700 clamp(22px, 2.6vw, 30px) var(--display); color: var(--orange-2); margin-bottom: 12px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: #eadff3; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 26px; }
.hero .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 12px; background: rgba(26, 15, 36, 0.72); }
.status { font: 500 14px var(--hud); letter-spacing: 0.06em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(54, 214, 194, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(54, 214, 194, 0); } 100% { box-shadow: 0 0 0 0 rgba(54, 214, 194, 0); } }

/* ---------- M.A.R.S. memo */
.memo-band { padding: 0 clamp(16px, 4vw, 40px); margin-top: -10px; position: relative; z-index: 2; }
.memo {
  max-width: 860px; margin: 0 auto; display: flex; gap: 20px; align-items: center;
  padding: 20px 26px; border-radius: var(--radius);
  background: #241634;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mars-face { flex: none; width: 58px; height: 58px; border-radius: 18px; background: #2b1d3d; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; gap: 10px; }
.mars-face span { width: 9px; height: 16px; border-radius: 5px; background: var(--teal); animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.memo-from { font: 600 12px var(--hud); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.memo-text { font: 500 18px/1.45 var(--display); margin: 0; display: grid; }
.memo-text span { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s ease; }
.memo-text span.on { opacity: 1; }
.memo > div:last-child { flex: 1; min-width: 0; }

/* ---------- sections */
.section { padding: clamp(70px, 11vw, 130px) clamp(16px, 5vw, 60px); max-width: 1220px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-text p { color: #e2d8ec; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: var(--teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.split-img { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line); }
.tilt { transform: rotate(1.6deg); transition: transform 0.4s ease; }
.tilt:hover { transform: rotate(0deg) scale(1.01); }

/* ---------- feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.card {
  padding: 28px 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  transition: transform 0.25s ease-out, border-color 0.25s ease-out;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 76, 0.5); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center; font: 700 22px var(--hud); color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 4px 0 #b8421a;
}

/* ---------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.shot { transform: translateZ(0); }
.shot:hover img { transform: scale(1.04); }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(10, 5, 16, 0.88); backdrop-filter: blur(4px); }
.lightbox img { border-radius: 14px; width: min(1280px, 94vw, calc(88vh * 16 / 9)); aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #241634; }
.lightbox .close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- roadmap */
.road { list-style: none; padding: 0; margin: 46px auto 0; max-width: 760px; position: relative; }
.road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.road li { position: relative; padding: 0 0 30px 64px; }
.road li::before { content: ""; position: absolute; left: 12px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--night-2); border: 2px solid var(--muted); }
.road li.done::before { background: var(--teal); border-color: var(--teal); }
.road li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 106, 43, 0.25); }
.road h3 { margin-bottom: 4px; }
.road p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font: 700 11px var(--hud); letter-spacing: 0.18em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.done .tag { background: rgba(54, 214, 194, 0.16); color: var(--teal); }
.now .tag { background: rgba(255, 106, 43, 0.2); color: var(--orange-2); }

/* ---------- join */
.join { position: relative; border-radius: 34px; overflow: hidden; padding: 0; margin-bottom: 80px; max-width: 1160px; }
.join-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 15, 36, 0.92), rgba(26, 15, 36, 0.55)); }
.join-inner { position: relative; z-index: 1; padding: clamp(46px, 8vw, 90px) clamp(24px, 6vw, 80px); max-width: 640px; }
.join-inner p { color: #e2d8ec; margin-bottom: 26px; }

/* ---------- footer */
.foot { text-align: center; padding: 40px 16px 50px; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 8%, rgba(26, 15, 36, 0.6) 55%, rgba(26, 15, 36, 0.25) 100%); }
  .hero-img { object-position: 70% 50%; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .memo { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
