:root {
  --ink: #fff4df;
  --muted: #e8cfaa;
  --void: #080605;
  --obsidian: #120d0b;
  --bronze: #a46231;
  --gold: #ffc66d;
  --bone: #fff0c8;
  --lime: #b8ff26;
  --cyan: #4ce7ff;
  --pink: #ff4fbd;
  --glass: rgba(18, 12, 9, 0.6);
  --glass-strong: rgba(14, 9, 7, 0.82);
  --line: rgba(255, 204, 126, 0.25);
  --shadow: 0 28px 90px rgba(6, 4, 2, 0.66);
  --pointer-x: 0;
  --pointer-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(6, 4, 3, 0.7), rgba(6, 4, 3, 0.96)),
    url("../images/nasansem-background.png") center / cover fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background: url("../images/nasansem-background.png") center / cover fixed;
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.08);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at calc(62% + var(--pointer-x) * 18%) calc(18% + var(--pointer-y) * 14%), rgba(255, 198, 109, 0.2), transparent 28%),
    radial-gradient(circle at 20% 76%, rgba(184, 255, 38, 0.12), transparent 24%),
    radial-gradient(circle at 84% 76%, rgba(255, 79, 189, 0.13), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 92px);
  mix-blend-mode: screen;
  animation: auraShift 12s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.background-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 3, 2, 0.94), rgba(66, 33, 13, 0.42) 45%, rgba(5, 3, 2, 0.88)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(1.5px);
}

.top-panel {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: clamp(92px, 10vw, 142px);
  padding: 14px clamp(12px, 3vw, 34px);
  isolation: isolate;
}

.top-panel::after {
  position: absolute;
  inset: auto 0 -22px;
  height: 48px;
  content: "";
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.78), transparent);
  pointer-events: none;
}

.temple-panel {
  position: relative;
  width: min(1540px, 94vw);
  min-height: clamp(72px, 7.4vw, 108px);
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(150px, 0.72fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: clamp(8px, 1.25vw, 18px);
  align-items: center;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(255, 205, 126, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    linear-gradient(90deg, rgba(16, 10, 8, 0.88), rgba(72, 38, 16, 0.78), rgba(16, 10, 8, 0.88));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.52),
    0 0 44px rgba(255, 198, 109, 0.15),
    inset 0 1px 0 rgba(255, 241, 202, 0.2),
    inset 0 -12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.temple-panel::before,
.temple-panel::after {
  position: absolute;
  left: clamp(18px, 2vw, 36px);
  right: clamp(18px, 2vw, 36px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 220, 151, 0.9), rgba(184, 255, 38, 0.62), rgba(255, 220, 151, 0.9), transparent);
}

.temple-panel::before {
  top: 8px;
}

.temple-panel::after {
  bottom: 8px;
}

.temple-panel__horn {
  position: absolute;
  top: 50%;
  width: clamp(32px, 4vw, 64px);
  height: clamp(32px, 4vw, 64px);
  border: 2px solid rgba(255, 221, 151, 0.78);
  border-bottom-color: transparent;
  border-radius: 999px 999px 0 0;
  filter: drop-shadow(0 0 16px rgba(255, 198, 109, 0.45));
}

.temple-panel__horn--left {
  left: clamp(12px, 1.4vw, 26px);
  transform: translateY(-45%) rotate(-34deg);
}

.temple-panel__horn--right {
  right: clamp(12px, 1.4vw, 26px);
  transform: translateY(-45%) rotate(34deg);
}

.panel-brand {
  position: relative;
  min-height: clamp(54px, 5.2vw, 82px);
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 221, 142, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(184, 255, 38, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 198, 109, 0.3), rgba(48, 22, 10, 0.82));
  color: #fff5c7;
  text-align: center;
  box-shadow: 0 0 34px rgba(255, 198, 109, 0.22), inset 0 0 24px rgba(255, 255, 255, 0.1);
}

.panel-brand span {
  font-size: clamp(1.02rem, 1.7vw, 1.7rem);
  font-weight: 1000;
  line-height: 1;
  text-transform: lowercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.82), 0 0 14px rgba(255, 198, 109, 0.88), 0 0 28px rgba(184, 255, 38, 0.25);
}

.panel-brand small {
  color: var(--lime);
  font-size: clamp(0.54rem, 0.7vw, 0.72rem);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(184, 255, 38, 0.42);
}

.panel-link,
.neon-button,
.mini-link,
.footer-links a {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.panel-link {
  width: 100%;
  min-height: clamp(42px, 3.7vw, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 216, 138, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(18, 10, 7, 0.68);
  color: #fff9e8;
  font-size: clamp(0.78rem, 1.04vw, 1rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.98), 0 0 10px rgba(255, 198, 109, 0.92), 0 0 24px rgba(184, 255, 38, 0.22);
  box-shadow: 0 0 18px rgba(255, 198, 109, 0.14), inset 0 0 20px rgba(255, 198, 109, 0.07);
  backdrop-filter: blur(10px);
}

.panel-link:hover,
.panel-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 38, 0.82);
  box-shadow: 0 0 26px rgba(184, 255, 38, 0.32), inset 0 0 22px rgba(255, 198, 109, 0.11);
  outline: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0 28px;
}

.section {
  position: relative;
  margin: clamp(44px, 7vw, 92px) 0;
}

.hero {
  min-height: calc(100vh - clamp(92px, 10vw, 142px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  margin-top: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(184, 255, 38, 0.4);
  border-radius: 8px;
  color: var(--lime);
  background: rgba(28, 50, 12, 0.42);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(184, 255, 38, 0.15);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  color: #fff1bd;
  font-size: clamp(3.25rem, 8.6vw, 8.3rem);
  line-height: 0.86;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 9px rgba(255, 198, 109, 0.85), 0 0 30px rgba(184, 255, 38, 0.3), 0 0 56px rgba(76, 231, 255, 0.2);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4.8vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.58), 0 0 26px rgba(255, 198, 109, 0.36);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.neon-button,
.mini-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid var(--button-color, rgba(255, 255, 255, 0.24));
  border-radius: 8px;
  background: rgba(18, 10, 7, 0.74);
  color: #fffdf5;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95), 0 0 12px color-mix(in srgb, var(--button-color, white) 76%, transparent), 0 0 24px rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 26px color-mix(in srgb, var(--button-color, white) 22%, transparent), inset 0 0 20px rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

.neon-button::before,
.mini-link::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.24), transparent);
  transform: translateX(-115%);
  transition: transform 520ms ease;
}

.neon-button:hover,
.neon-button:focus-visible,
.mini-link:hover,
.mini-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-3px) scale(1.02);
  outline: none;
  box-shadow: 0 0 30px color-mix(in srgb, var(--button-color, var(--cyan)) 48%, transparent), inset 0 0 24px rgba(255,255,255,0.08);
}

.neon-button:hover::before,
.neon-button:focus-visible::before,
.mini-link:hover::before,
.mini-link:focus-visible::before {
  transform: translateX(115%);
}

.neon-button--cyan { --button-color: var(--cyan); }
.neon-button--lime { --button-color: var(--lime); }
.neon-button--pink { --button-color: var(--pink); }
.neon-button--gold { --button-color: var(--gold); }

.is-placeholder {
  opacity: 1;
  cursor: default;
}

.character-stage {
  position: relative;
  margin: 0;
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid rgba(255, 204, 126, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03)), rgba(18, 10, 7, 0.58);
  box-shadow: var(--shadow), 0 0 72px rgba(184, 255, 38, 0.14);
  backdrop-filter: blur(14px);
  transform: translate3d(calc(var(--pointer-x) * -14px), calc(var(--pointer-y) * -12px), 0);
  animation: floatCharacter 5.4s ease-in-out infinite;
}

.character-stage::after {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 8px;
  content: "";
  background: conic-gradient(from 180deg, var(--cyan), var(--pink), var(--gold), var(--lime), var(--cyan));
  filter: blur(24px);
  opacity: 0.18;
}

.character-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.character-stage figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 36px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 198, 109, 0.36);
  border-radius: 8px;
  color: #fff4cc;
  background: rgba(14, 8, 5, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.orbit {
  position: absolute;
  inset: auto;
  z-index: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(76, 231, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.orbit--one {
  top: -10%;
  right: -9%;
  box-shadow: 0 0 50px rgba(76, 231, 255, 0.2);
  animation: rotateSlow 18s linear infinite;
}

.orbit--two {
  left: -11%;
  bottom: -8%;
  border-color: rgba(184, 255, 38, 0.24);
  box-shadow: 0 0 50px rgba(184, 255, 38, 0.16);
  animation: rotateSlow 22s linear infinite reverse;
}

.ticker-strip {
  overflow: hidden;
  padding: 14px 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(18, 10, 7, 0.58);
  box-shadow: inset 0 0 26px rgba(255, 198, 109, 0.11), 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.ticker-strip__track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 18s linear infinite;
}

.ticker-strip:hover .ticker-strip__track {
  animation-play-state: paused;
}

.ticker-strip__group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  align-items: center;
  padding-right: 14px;
}

.ticker-strip span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fffbe8;
  background: rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 79, 189, 0.1);
}

.section-heading {
  max-width: 820px;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)), var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.13);
  backdrop-filter: blur(18px);
}

.lore__card {
  max-width: 900px;
  padding: clamp(22px, 4vw, 40px);
  color: #f8eddb;
  font-size: clamp(1rem, 1.8vw, 1.17rem);
}

.lore__card p:last-child,
.site-footer p,
.site-footer small {
  margin-bottom: 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-card {
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.roadmap-card::before {
  width: 54px;
  height: 3px;
  margin-bottom: 24px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--gold));
  box-shadow: 0 0 20px rgba(184, 255, 38, 0.32);
}

.roadmap-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.phase-mark {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(76, 231, 255, 0.24);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(76, 231, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dex-card {
  padding: clamp(12px, 2.4vw, 20px);
}

.dex-card__topline {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #fff4cc;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-link {
  min-height: 36px;
  padding: 9px 12px;
  --button-color: var(--gold);
  color: #fffdf5;
  font-size: 0.8rem;
  background: rgba(18, 10, 7, 0.74);
}

.chart-frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(76, 231, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(76, 231, 255, 0.07), transparent), linear-gradient(225deg, rgba(184, 255, 38, 0.08), transparent), var(--glass-strong);
  box-shadow: inset 0 0 42px rgba(255, 198, 109, 0.07);
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.chart-placeholder strong {
  color: white;
  font-size: clamp(1.7rem, 5vw, 4.5rem);
  line-height: 0.95;
  text-shadow: 0 0 34px rgba(76, 231, 255, 0.46);
}

.chart-placeholder span {
  max-width: 440px;
}

.chart-placeholder.is-hidden {
  display: none;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-links a {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-weight: 850;
  --button-color: var(--cyan);
}

.site-footer p {
  margin-bottom: 6px;
  color: #fff3c9;
  font-weight: 850;
}

.site-footer small {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCharacter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -13px; }
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

@keyframes auraShift {
  0% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-1.5%); }
}

@keyframes tickerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .temple-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .temple-panel .panel-link {
    grid-row: 2;
  }

  .panel-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 42px;
  }

  .site-shell {
    width: min(720px, calc(100% - 28px));
    padding-top: 34px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy .eyebrow,
  .section-heading .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-panel {
    min-height: 132px;
    padding: 10px 10px;
  }

  .temple-panel {
    width: min(100%, 430px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .temple-panel .panel-link {
    grid-row: auto;
  }

  .panel-brand {
    min-height: 38px;
  }

  .panel-link {
    min-height: 32px;
    padding: 6px 5px;
    font-size: clamp(0.68rem, 3vw, 0.82rem);
  }

  .site-shell {
    width: min(100% - 24px, 430px);
    padding-top: 18px;
  }

  .section {
    margin: 48px 0;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.35rem);
  }

  .neon-button {
    width: 100%;
  }

  .character-stage {
    padding: 9px;
  }

  .character-stage figcaption {
    right: 12px;
    bottom: 12px;
    font-size: 0.68rem;
  }

  .ticker-strip span {
    flex: 0 0 auto;
    text-align: center;
    font-size: 0.74rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    min-height: 170px;
  }

  .dex-card__topline {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-link {
    width: 100%;
  }

  .chart-frame {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
