@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #15130f;
  --ink-soft: #211e18;
  --paper: #f2eddf;
  --paper-dim: #d8d0bd;
  --signal: #e8612d;
  --signal-light: #ff986c;
  --acid: #d8e84e;
  --line: rgba(242, 237, 223, 0.18);
  --line-dark: rgba(21, 19, 15, 0.16);
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}
body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  content: "";
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }

nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, border-color 250ms ease;
}
nav.is-scrolled {
  border-color: var(--line);
  background: rgba(21, 19, 15, 0.88);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(1400px, calc(100% - 64px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.brand::before {
  width: 9px;
  height: 9px;
  background: var(--signal);
  border-radius: 50%;
  content: "";
}
.brand span { color: var(--signal-light); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(242, 237, 223, 0.66);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); }
.nav-links .nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--signal);
  color: var(--signal-light);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  width: min(1400px, calc(100% - 64px));
  min-height: 790px;
  margin: auto;
  padding: 140px 0 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 14%;
  left: -8%;
  width: 44vw;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 97, 45, 0.18);
  border-radius: 50%;
  content: "";
}
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.logo-wrap {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 610px);
  justify-self: end;
}
.logo-wrap::before {
  position: absolute;
  z-index: -1;
  inset: 5%;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  filter: blur(70px);
  opacity: 0.2;
}
.logo-wrap::after {
  position: absolute;
  right: -2%;
  bottom: 7%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(21, 19, 15, 0.9);
  content: "1T MAX SUPPLY / NO MORE";
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}
.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: mascot-in 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.kicker, .section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--signal-light);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(216, 232, 78, 0.1);
  animation: pulse 1.8s ease-in-out infinite;
}
h1 {
  max-width: 710px;
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(5.2rem, 8vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.74;
  animation: title-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
h1 span { display: block; margin-left: 0.25em; color: var(--signal); font-style: italic; }
.ticker {
  margin-top: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.ticker span { padding: 7px 11px; border: 1px solid var(--signal); color: var(--signal-light); font-family: var(--mono); font-size: 0.7rem; }
.ticker small { color: rgba(242, 237, 223, 0.5); font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-copy > p { max-width: 560px; margin: 26px 0 0; color: rgba(242, 237, 223, 0.68); font-size: 1.06rem; }
.buttons { margin-top: 32px; display: flex; gap: 11px; }
.btn {
  min-width: 155px;
  padding: 14px 19px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}
.btn.primary { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.btn.secondary { background: rgba(242, 237, 223, 0.03); }
.btn:hover, .btn:focus-visible { transform: translateY(-3px); }

section { padding: 120px 0; }
.presale-section { background: var(--paper); color: var(--ink); }
.presale-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.section-index { color: var(--signal); }
.sale-intro h2, .section-heading h2 {
  margin: 24px 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 7.4vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}
.sale-intro h2 em, .section-heading h2 em { color: var(--signal); font-weight: 400; }
.sale-intro > p, .section-heading > p { max-width: 570px; color: rgba(21, 19, 15, 0.62); }
.sale-facts { margin-top: 44px; border-top: 1px solid var(--line-dark); }
.sale-facts div { padding: 16px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.sale-facts span { color: rgba(21, 19, 15, 0.54); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.sale-facts strong { font-family: var(--mono); font-size: 0.78rem; }
.buy-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--ink); background: #e9e3d3; box-shadow: 18px 18px 0 var(--signal); }
.card-topline, .progress-meta, .raised-row { display: flex; align-items: center; justify-content: space-between; }
.card-topline { padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 7px; color: #587000; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: #779200; content: ""; }
.status-pending { color: #8b4c20; }
.status-pending::before { background: var(--signal); }
.raised-row { margin-top: 28px; align-items: baseline; }
.raised-row > span { color: rgba(21, 19, 15, 0.55); font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; }
.raised-row strong { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.raised-row small { color: rgba(21, 19, 15, 0.45); font-size: 0.72rem; font-weight: 500; }
.progress-track { height: 8px; margin-top: 13px; overflow: hidden; background: rgba(21, 19, 15, 0.12); }
.progress-track span { display: block; width: var(--progress); height: 100%; background: var(--signal); animation: progress-in 1.2s 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.progress-meta { margin: 8px 0 28px; color: rgba(21, 19, 15, 0.55); font-family: var(--mono); font-size: 0.56rem; }
.buy-card label { display: block; margin: 16px 0 7px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.input-shell { min-height: 64px; padding: 0 16px; display: flex; align-items: center; border: 1px solid rgba(21, 19, 15, 0.25); background: var(--paper); }
.currency-mark { margin-right: 5px; font-family: var(--mono); }
.input-shell input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 1.05rem; }
.asset-pill { padding: 8px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.67rem; }
.swap-line { height: 24px; display: flex; align-items: center; gap: 10px; color: var(--signal); }
.swap-line span { height: 1px; flex: 1; background: rgba(21, 19, 15, 0.12); }
.output-shell { justify-content: space-between; }
.output-shell output { font-family: var(--mono); font-size: 1rem; }
.output-shell strong { color: var(--signal); font-family: var(--mono); font-size: 0.72rem; }
.buy-button { width: 100%; margin-top: 20px; padding: 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background 180ms ease, color 180ms ease; }
.buy-button:hover, .buy-button:focus-visible { background: var(--signal); color: var(--ink); }
.buy-button:disabled { cursor: not-allowed; background: rgba(21, 19, 15, 0.18); color: rgba(21, 19, 15, 0.5); }
.form-message { min-height: 1.3em; margin: 12px 0 0; color: rgba(21, 19, 15, 0.52); font-family: var(--mono); font-size: 0.55rem; text-align: center; }
.form-message.is-error { color: #a62f17; }

.tokenomics-section { background: var(--ink); }
.tokenomics-section .section-heading { display: grid; grid-template-columns: 0.6fr 1.3fr 0.8fr; gap: 40px; align-items: end; }
.tokenomics-section .section-heading h2 { margin: 0; }
.tokenomics-section .section-heading > p { color: rgba(242, 237, 223, 0.58); }
.allocation-grid { margin-top: 70px; display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.allocation { min-height: 230px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.allocation-main { grid-row: span 2; min-height: 460px; background: var(--signal); color: var(--ink); }
.allocation-percent { font-family: var(--display); font-size: clamp(3.4rem, 5vw, 5.8rem); line-height: 1; }
.allocation h3 { margin: 0; font-size: 1rem; }
.allocation p { margin: 5px 0 0; color: rgba(242, 237, 223, 0.48); font-size: 0.8rem; }
.allocation-main p { color: rgba(21, 19, 15, 0.62); }
.supply-strip { padding: 22px 0; display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--line); }
.supply-strip span, .supply-strip b { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.supply-strip strong { color: var(--acid); font-family: var(--mono); font-size: clamp(1.05rem, 2vw, 1.5rem); }

.roadmap-section { background: var(--paper-dim); color: var(--ink); }
.roadmap-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 8vw, 120px); }
.roadmap-layout .section-heading h2 { position: sticky; top: 120px; }
.stages { border-top: 1px solid var(--ink); }
.stage { padding: 28px 0; display: grid; grid-template-columns: 70px 1fr; gap: 20px; border-bottom: 1px solid var(--line-dark); opacity: 0.58; }
.stage > span { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.stage small { color: var(--signal); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stage h3 { margin: 2px 0; font-size: 1.12rem; }
.stage p { margin: 0; color: rgba(21, 19, 15, 0.56); font-family: var(--mono); font-size: 0.66rem; }
.stage.is-current { opacity: 1; }
.stage.is-current > span { color: var(--signal); }
.launch-stage { opacity: 1; background: var(--acid); margin-top: 20px; padding-inline: 22px; border: 1px solid var(--ink); }

footer { padding: 38px 0; border-top: 1px solid var(--line); }
footer .container { display: grid; grid-template-columns: 0.55fr 1fr; gap: 60px; align-items: start; }
footer strong { display: block; font-size: 0.77rem; letter-spacing: 0.14em; }
footer span { color: var(--signal-light); font-family: var(--mono); font-size: 0.58rem; text-transform: uppercase; }
footer p { max-width: 720px; margin: 0; color: rgba(242, 237, 223, 0.42); font-size: 0.66rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes title-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mascot-in { from { opacity: 0; transform: scale(0.92) rotate(3deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes progress-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.85); } }

@media (max-width: 920px) {
  .hero { min-height: auto; grid-template-columns: 1fr 0.8fr; }
  .presale-layout, .roadmap-layout { gap: 50px; }
  .tokenomics-section .section-heading { grid-template-columns: 1fr 2fr; }
  .tokenomics-section .section-heading > p { grid-column: 2; }
}

@media (max-width: 720px) {
  .container, .nav-inner, .hero { width: min(100% - 36px, 620px); }
  .nav-inner { height: 72px; }
  .menu-toggle { position: relative; z-index: 2; width: 42px; height: 42px; padding: 0; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); background: rgba(21, 19, 15, 0.7); }
  .menu-toggle span:not(.sr-only) { width: 17px; height: 1px; background: var(--paper); transition: transform 220ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; padding: 110px 24px 50px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; visibility: hidden; background: var(--ink); opacity: 0; transition: opacity 220ms ease, visibility 220ms ease; }
  .nav-links.is-open { visibility: visible; opacity: 1; }
  .nav-links a, .nav-links .nav-cta { padding: 0; border: 0; font-family: var(--display); font-size: 3rem; letter-spacing: -0.04em; text-transform: none; }
  .hero { padding: 120px 0 74px; display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .hero .kicker { order: 1; align-self: flex-start; }
  h1 { order: 2; font-size: clamp(5rem, 24vw, 8rem); }
  .logo-wrap { order: 3; width: min(94%, 470px); margin: 32px auto 6px; }
  .ticker { order: 4; align-self: flex-start; }
  .hero-copy > p { order: 5; }
  .buttons { order: 6; width: 100%; }
  section { padding: 88px 0; }
  .presale-layout, .roadmap-layout { grid-template-columns: 1fr; }
  .buy-card { margin-right: 10px; box-shadow: 10px 10px 0 var(--signal); }
  .tokenomics-section .section-heading { display: block; }
  .tokenomics-section .section-heading h2 { margin: 24px 0; }
  .allocation-grid { grid-template-columns: 1fr 1fr; }
  .allocation-main { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .roadmap-layout .section-heading h2 { position: static; }
  footer .container { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 460px) {
  .buttons { flex-direction: column; }
  .btn { width: 100%; }
  .sale-intro h2, .section-heading h2 { font-size: 4.2rem; }
  .sale-facts div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .buy-card { padding: 24px 18px; }
  .raised-row { align-items: flex-start; flex-direction: column; }
  .progress-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .allocation-grid { grid-template-columns: 1fr; }
  .allocation-main { grid-column: auto; }
  .allocation { min-height: 200px; }
  .supply-strip { grid-template-columns: 1fr auto; }
  .supply-strip strong { grid-column: 1 / -1; grid-row: 2; }
}

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