:root {
  --navy: #07152f;
  --navy-2: #0b2045;
  --blue: #1246a4;
  --gold: #f8c64f;
  --gold-deep: #e6a627;
  --red: #dc3039;
  --cream: #f4f0e5;
  --white: #fffdf7;
  --muted: #a8b9d5;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(100% - 2.25rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

section {
  scroll-margin-top: 5rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(6, 18, 41, 0.96);
  border-bottom: 1px solid rgba(248, 198, 79, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.85rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.brand img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.45rem rgba(248, 198, 79, 0.23));
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 0.78;
}

.brand__name strong {
  color: var(--gold);
  font: inherit;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  padding: 0.65rem 1.15rem 1.15rem;
  background: #07152f;
  border-bottom: 1px solid rgba(248, 198, 79, 0.3);
  box-shadow: 0 1.25rem 1.8rem rgba(0, 0, 0, 0.22);
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
}

.main-nav a {
  padding: 0.75rem 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem 0.35rem 0.4rem;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid #ffe18d;
  border-radius: 0.3rem;
  box-shadow: 0.2rem 0.2rem 0 var(--red);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-buy:hover,
.action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0.35rem 0.35rem 0 var(--red);
}

.header-buy img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.header-buy__ticker,
.header-buy .external-arrow {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  gap: 0.32rem;
  padding: 0;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.3rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.43rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.43rem) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 38%, rgba(21, 76, 174, 0.45), transparent 35rem),
    radial-gradient(circle at 10% 92%, rgba(151, 22, 37, 0.21), transparent 28rem),
    var(--navy);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.7px, transparent 0.7px);
  background-size: 0.7rem 0.7rem;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
  opacity: 0.23;
}

.hero__texture {
  position: absolute;
  z-index: -1;
  top: -13rem;
  right: -15rem;
  width: 45rem;
  height: 45rem;
  border: 1px solid rgba(248, 198, 79, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(248, 198, 79, 0.024), 0 0 0 10rem rgba(248, 198, 79, 0.018);
}

.hero__layout {
  display: grid;
  align-items: center;
  gap: 2.25rem;
  padding-block: 3.8rem 4.2rem;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.eyebrow--light {
  color: var(--gold);
}

.eyebrow--dark {
  color: #ba2633;
}

.eyebrow__dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(248, 198, 79, 0.13);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(6.2rem, 25vw, 9rem);
  line-height: 0.7;
  text-shadow: 0.3rem 0.35rem 0 rgba(9, 30, 68, 0.9);
}

.hero h1 span:not(.hero__period) {
  color: var(--gold);
}

.hero__period {
  color: var(--red);
}

.hero__tagline {
  display: inline-block;
  margin: 2.3rem 0 0;
  padding: 0.2rem 0.65rem 0.25rem;
  background: var(--red);
  font-family: var(--display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.1;
  transform: rotate(-1.5deg);
}

.hero__intro {
  max-width: 32rem;
  margin: 1.65rem 0 0;
  color: #c9d5e8;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.65;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 35rem;
  margin-top: 2rem;
}

.action {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 4.3rem;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.28rem;
  box-shadow: 0.2rem 0.2rem 0 rgba(0, 0, 0, 0.3);
  font-family: var(--display);
  font-size: clamp(1rem, 3vw, 1.27rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.action img {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.action__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.action__label-compact {
  display: none;
}

.action__arrow {
  margin-left: auto;
  font-size: 1.25rem;
}

.action--buy {
  background: var(--gold);
  color: var(--navy);
  border-color: #ffe5a2;
}

.action--x {
  background: #05090f;
  color: #fff;
}

.action--x img {
  width: 1.55rem;
  height: 1.55rem;
  margin-inline: 0.2rem;
}

.action--dex {
  background: #164ba6;
  color: var(--white);
}

.action--telegram {
  background: #f7f9fc;
  color: var(--navy);
}

.hero__note {
  margin: 1.6rem 0 0;
  color: #b3c3dc;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.hero__note span {
  margin-right: 0.4rem;
  color: var(--gold);
}

.hero__visual {
  position: relative;
  width: min(100%, 39rem);
  margin-inline: auto;
}

.hero__visual::before {
  position: absolute;
  z-index: -1;
  inset: 7% -5% -5% 5%;
  background: var(--red);
  border-radius: 2rem 0 2rem 0;
  content: "";
  transform: rotate(4deg);
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #24457f;
  border: 0.45rem solid var(--gold);
  border-radius: 1.85rem 0.25rem 1.85rem 0.25rem;
  box-shadow: 0 1.5rem 3.8rem rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}

.hero__image-wrap::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(3, 13, 33, 0.28));
  content: "";
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035) rotate(2deg);
}

.hero__seal {
  position: absolute;
  right: -0.45rem;
  bottom: -0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6.1rem;
  height: 6.1rem;
  background: var(--gold);
  color: var(--navy);
  border: 0.25rem solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-align: center;
  transform: rotate(10deg);
}

.hero__seal strong {
  margin-top: 0.1rem;
  font-size: 1.45rem;
  line-height: 0.9;
}

.hero__visual-index {
  position: absolute;
  top: 1.5rem;
  left: -1.45rem;
  padding: 0.25rem 0.7rem;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-6deg);
}

.hero__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 3.8rem;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding-inline: 1rem;
  background: var(--red);
  color: var(--white);
  border-block: 2px solid var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero__ribbon span:nth-child(even) {
  color: var(--gold);
}

.section-pad {
  padding-block: clamp(5rem, 8vw, 8rem);
}

.roadmap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 5%, rgba(220, 48, 57, 0.08), transparent 22rem),
    var(--cream);
  color: var(--navy);
}

.roadmap::before {
  position: absolute;
  top: -11rem;
  right: -8rem;
  width: 23rem;
  height: 23rem;
  border: 3rem solid rgba(220, 48, 57, 0.045);
  border-radius: 50%;
  content: "";
}

.section-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.65rem;
}

.section-heading h2 {
  margin-top: 0.95rem;
  font-size: clamp(4.2rem, 13vw, 7.8rem);
  line-height: 0.82;
}

.section-heading h2 em {
  font-style: normal;
}

.roadmap .section-heading h2 em {
  color: var(--red);
}

.section-heading > p {
  max-width: 28rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.roadmap .section-heading > p {
  color: #505d70;
}

.roadmap__grid {
  display: grid;
  gap: 1rem;
}

.phase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 19rem;
  padding: 1.55rem;
  background: var(--navy);
  color: var(--white);
  border-top: 0.35rem solid var(--gold);
  box-shadow: 0.3rem 0.3rem 0 #d9d3c5;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.phase:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0.3rem 0.65rem 0 #d9d3c5;
}

.phase--two {
  border-top-color: var(--red);
}

.phase--three {
  border-top-color: #326be0;
}

.phase--four {
  border-top-color: #e2a236;
}

.phase__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.phase--two .phase__top {
  color: #ff6d71;
}

.phase--three .phase__top {
  color: #8ab2ff;
}

.phase__symbol {
  font-size: 2rem;
  line-height: 1;
}

.phase h3 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 2.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.95;
}

.phase p {
  position: relative;
  z-index: 1;
  max-width: 25rem;
  margin: 0.9rem 0 0;
  color: #bbc9dd;
  font-size: 0.95rem;
  line-height: 1.55;
}

.roadmap__footnote {
  margin: 2rem 0 0;
  color: #72727a;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}

.chart-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 15%, rgba(30, 81, 179, 0.22), transparent 30rem),
    linear-gradient(160deg, #07152f, #0c1e3d 60%, #07152f);
}

.chart-section::after {
  position: absolute;
  z-index: 0;
  right: -11rem;
  bottom: -13rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(248, 198, 79, 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.chart-section .container {
  position: relative;
  z-index: 1;
}

.chart-section .section-heading h2 em {
  color: var(--gold);
}

.chart-section .section-heading > p {
  color: var(--muted);
}

.chart-window {
  overflow: hidden;
  background: #071327;
  border: 1px solid rgba(248, 198, 79, 0.4);
  border-radius: 0.45rem;
  box-shadow: 0.55rem 0.55rem 0 var(--red), 0 2rem 4rem rgba(0, 0, 0, 0.28);
}

.chart-window__bar,
.chart-window__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.chart-window__bar {
  min-height: 3.6rem;
  background: #0e254b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-window__identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  white-space: nowrap;
}

.chart-window__identity strong {
  color: var(--gold);
}

.chart-window__identity > span:not(.chart-window__live-dot) {
  color: #b8c7de;
}

.chart-window__live-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(220, 48, 57, 0.17);
}

.chart-window__status {
  display: none;
  color: #9fb2d1;
}

.chart-window__content {
  min-height: 27rem;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 27rem;
  padding: 2rem 1.25rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at center, #16345f 0, #09182f 55%, #071327 100%);
  background-size: 3rem 3rem, 3rem 3rem, auto;
  text-align: center;
}

.chart-placeholder img {
  width: 6.8rem;
  height: 6.8rem;
  object-fit: contain;
  filter: drop-shadow(0 0.9rem 1.2rem rgba(0, 0, 0, 0.35));
}

.chart-placeholder h3 {
  margin: 1.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.9;
}

.chart-placeholder p {
  max-width: 27rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

#dex-iframe {
  display: block;
  width: 100%;
  height: clamp(30rem, 58vw, 44rem);
  background: #071327;
  border: 0;
}

.chart-window__footer {
  flex-wrap: wrap;
  min-height: 3.6rem;
  background: #0e254b;
  color: #9fb2d1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-window__footer a {
  color: var(--gold);
  transition: color 180ms ease;
}

.chart-window__footer a:hover {
  color: #fff;
}

.site-footer {
  background: #050e20;
  border-top: 1px solid rgba(248, 198, 79, 0.22);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 7rem;
  padding-block: 1.25rem;
}

.brand--footer img {
  width: 3rem;
  height: 3rem;
}

.site-footer p,
.site-footer__inner > a:last-child {
  margin: 0;
  color: #a5b5cf;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-footer__inner > a:last-child:hover {
  color: var(--gold);
}

.toast {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1.15rem;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 0.3rem;
  box-shadow: 0.25rem 0.25rem 0 var(--red);
  font-weight: 700;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 3rem, 78rem);
  }

  .header-buy {
    gap: 0.35rem;
    padding-right: 0.85rem;
  }

  .header-buy__ticker,
  .header-buy .external-arrow {
    display: inline;
  }

  .hero__layout {
    padding-block: 5rem;
  }

  .hero__actions {
    gap: 0.9rem;
  }

  .action {
    padding-inline: 0.9rem;
  }

  .hero__seal {
    right: -1.5rem;
    bottom: -1.3rem;
    width: 7.2rem;
    height: 7.2rem;
    font-size: 1.15rem;
  }
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 5.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav,
  .main-nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: clamp(1rem, 2.4vw, 2.6rem);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav a {
    padding: 0.5rem 0;
    font-size: 1.18rem;
  }

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

  .chart-window__status {
    display: inline;
  }

  .chart-placeholder,
  .chart-window__content {
    min-height: 33rem;
  }
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    min-height: min(50rem, calc(100svh - 5.25rem));
    gap: clamp(2rem, 4vw, 5rem);
    padding-block: 3.25rem 4.75rem;
  }

  .hero h1 {
    font-size: clamp(7.4rem, 11vw, 10.6rem);
  }

  .hero__visual {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.5fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 3.1rem;
  }

  .section-heading > p {
    padding-bottom: 0.3rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .action--buy .action__label-wide {
    display: none;
  }

  .action--buy .action__label-compact {
    display: inline;
  }
}

@media (min-width: 1200px) {
  .roadmap__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phase {
    min-height: 22rem;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 3rem;
    height: 3rem;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .hero h1 {
    font-size: 5.55rem;
  }

  .hero__tagline {
    font-size: 1.14rem;
    white-space: nowrap;
  }

  .action {
    gap: 0.35rem;
    font-size: 0.97rem;
  }

  .action img {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (max-width: 639px) {
  .action__arrow,
  .action__label-wide {
    display: none;
  }

  .action__label-compact {
    display: inline;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: hero-enter 700ms both ease-out;
  }

  .hero__visual {
    animation: visual-enter 900ms 100ms both ease-out;
  }

  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(1.2rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes visual-enter {
    from { opacity: 0; transform: translate(1.2rem, 1rem) scale(0.97); }
    to { opacity: 1; transform: translate(0, 0) scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] { display: none !important; }
