:root {
  --ink: #0a0c10;
  --ink-soft: #141820;
  --paper: #f4f6f8;
  --muted: #8b93a7;
  --line: rgba(244, 246, 248, 0.12);
  --gold: #e8a838;
  --gold-hot: #ffc857;
  --signal: #2f7cff;
  --signal-bright: #5a9bff;
  --font-display: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  z-index: 2;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:not(.nav-cta) {
  opacity: 0.75;
  transition: opacity 0.25s;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--signal);
  color: #fff;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--signal-bright);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

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

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

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.15) 35%, rgba(10, 12, 16, 0.75) 72%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 4rem) 5rem;
  max-width: 42rem;
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ticker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hot);
  margin-bottom: 1rem;
  animation: rise 1s 0.1s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
  animation: rise 1s 0.18s var(--ease) both;
}

.hero-desc {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: rgba(244, 246, 248, 0.88);
  max-width: 28rem;
  margin-bottom: 2rem;
  animation: rise 1s 0.28s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s 0.38s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 246, 248, 0.35);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 246, 248, 0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  right: clamp(1.25rem, 5vw, 4rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  animation: rise 1s 0.7s var(--ease) both;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--paper), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ——— Contract bar ——— */
.ca-bar {
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
}

.ca-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.ca-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ca-inner code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: var(--signal-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-copy:hover,
.btn-copy.copied {
  border-color: var(--gold);
  color: var(--gold-hot);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal-bright);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

/* ——— About ——— */
.about {
  max-width: none;
  padding-inline: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(47, 124, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(232, 168, 56, 0.08), transparent),
    var(--ink);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.about-copy p {
  color: rgba(244, 246, 248, 0.78);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1rem;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(1.05) contrast(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: float-y 6s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-visual figcaption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ——— Buy ——— */
.buy h2 {
  margin-bottom: 3rem;
}

.buy-steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: none;
}

.buy-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.buy-steps li.in-view {
  opacity: 1;
  transform: translateY(0);
}

.buy-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.2;
  min-width: 2.5rem;
}

.buy-steps h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.buy-steps p {
  color: var(--muted);
  font-size: 1rem;
}

.buy-steps a {
  color: var(--signal-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Tokenomics ——— */
.tokenomics {
  max-width: none;
  padding-inline: 0;
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(47, 124, 255, 0.06), transparent),
    var(--ink);
}

.tokenomics .eyebrow,
.tokenomics h2,
.tokenomics .tok-note {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.tokenomics h2 {
  margin-bottom: 3rem;
}

.tok-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  max-width: 1200px;
  margin: 0 auto;
}

.tok-grid article {
  background: var(--ink);
  padding: clamp(2rem, 4vw, 3rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.35s;
}

.tok-grid article:hover {
  background: var(--ink-soft);
}

.tok-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  color: var(--gold-hot);
  line-height: 1;
}

.tok-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tok-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Socials ——— */
.socials {
  text-align: center;
}

.socials-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: -0.75rem 0 2.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 11rem;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.social-links a:hover {
  border-color: var(--signal-bright);
  background: rgba(47, 124, 255, 0.08);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: left;
}

.footer-brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
}

.footer > p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    order: -1;
  }

  .about-visual img {
    max-width: 280px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(10, 12, 16, 0.96);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-scroll {
    display: none;
  }

  .ca-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-inner code {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tok-grid {
    grid-template-columns: 1fr;
  }

  .social-links a {
    width: 100%;
  }
}

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

  .hero-bg {
    transform: none;
  }
}
