/* =========================================================
   $AGI — Artificial Giga Inu
   Palette sampled from the artwork. Bright, warm, luminous.
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/Unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --lime:    #CCFF00;
  --lime-2:  #B4E600;
  --sun:     #FFF6B0;
  --gold:    #F2C230;
  --fur:     #D9922E;
  --meadow:  #9DB82B;
  --grass:   #5B8A1C;
  --forest:  #243D14;   /* deep warm green — text & contrast */
  --forest-2:#1A2E0E;
  --cream:   #FFFBEA;
  --cream-2: #F6F3D6;
  --chrome:  #C8D0C2;
  --chrome-2:#9AA69A;

  --display: "Unbounded", "Arial Black", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 14px 40px -18px rgba(36, 61, 20, 0.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--forest);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--forest); color: var(--lime);
  padding: 10px 14px; border-radius: 8px; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 2 * var(--gutter)); }

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--solid { background: var(--forest); color: var(--lime); border-color: var(--forest); box-shadow: 0 10px 24px -12px rgba(26, 46, 14, .6); }
.btn--solid:hover { background: var(--forest-2); transform: translateY(-2px); }
.btn--outline { background: rgba(255, 251, 234, .55); color: var(--forest); border-color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--lime); transform: translateY(-2px); }
.btn--icon { width: 52px; padding: 0; background: rgba(255, 251, 234, .55); color: var(--forest); border-color: var(--forest); }
.btn--icon:hover { background: var(--forest); color: var(--lime); transform: translateY(-2px); }

.btn.is-soon, .icon-btn.is-soon {
  cursor: not-allowed; pointer-events: none;
  background: rgba(36, 61, 20, .08); color: rgba(36, 61, 20, .55);
  border-color: rgba(36, 61, 20, .18); border-style: dashed; box-shadow: none;
}

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__pfp { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--forest); box-shadow: 0 6px 16px -8px rgba(26,46,14,.5); }
.brand__ticker { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.topnav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.topnav a { text-decoration: none; opacity: .85; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s, opacity .15s; }
.topnav a:hover { opacity: 1; border-color: var(--forest); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--forest); color: var(--forest);
  background: rgba(255, 251, 234, .55);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--forest); color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1100px);
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--sun) url("assets/sky.webp") center / cover no-repeat;
  isolation: isolate;
}

/* Signature: CSS god-rays, radiating from behind the mascot */
.hero__rays {
  position: absolute; z-index: 1;
  width: 240vmax; height: 240vmax;
  left: 71%; top: 60%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg 7deg,
    rgba(255, 252, 200, .55) 9deg 11deg,
    rgba(255, 255, 255, 0) 13deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.7) 22%, rgba(0,0,0,0) 46%);
          mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.7) 22%, rgba(0,0,0,0) 46%);
  mix-blend-mode: soft-light;
  opacity: .9;
  pointer-events: none;
  animation: rays-spin 140s linear infinite;
  will-change: transform;
}
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__art {
  position: absolute; z-index: 2; margin: 0;
  right: 0; bottom: 0; top: 0;
  height: 100%;
  aspect-ratio: 1920 / 1072;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 22%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 22%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: auto;
}
.hero__art img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.eye, .laser { z-index: 2; }

/* Easter egg: eyes glow + laser. Coordinates are % of the image frame. */
.eye {
  position: absolute; width: 2.4%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--lime) 35%, rgba(204,255,0,0) 70%);
  opacity: 0; transform: scale(.4);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  filter: blur(1px);
}
.eye--l { left: 76.4%; top: 21.1%; }
.eye--r { left: 80.3%; top: 21.3%; }
.laser {
  position: absolute; height: 2px; width: 120%;
  right: 100%; transform-origin: right center;
  background: linear-gradient(90deg, rgba(204,255,0,0) 0%, var(--lime) 60%, #fff 100%);
  opacity: 0; pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(204,255,0,.6);
}
.laser--l { right: calc(100% - 77.6%); top: 23.2%; transform: rotate(4deg); }
.laser--r { right: calc(100% - 81.5%); top: 23.4%; transform: rotate(4deg); }
.hero__art.is-firing .eye { opacity: 1; transform: scale(1.6); }
.hero__art.is-firing .laser { animation: laser-fire .9s var(--ease) both; }
@keyframes laser-fire {
  0%   { opacity: 0; transform: rotate(4deg) scaleX(0); }
  20%  { opacity: 1; transform: rotate(4deg) scaleX(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(4deg) scaleX(1); }
}

.hero__content {
  position: relative; z-index: 3;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 110px 0 64px;
  max-width: 640px;
  margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest);
  background: var(--lime);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(26,46,14,.5);
  margin-bottom: 22px;
}
.hero__ticker {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(88px, 15vw, 172px);
  line-height: .9; letter-spacing: -0.03em;
  color: var(--forest);
  text-shadow: 0 2px 0 rgba(255,255,255,.35), 0 18px 40px rgba(36,61,20,.18);
}
.hero__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: 10px;
}
.hero__tagline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.1; margin-top: 26px;
  color: var(--forest);
}
.hero__tagline::after {
  content: ""; display: block; width: 72px; height: 6px;
  background: var(--lime); margin-top: 16px; border-radius: 3px;
  box-shadow: 0 0 0 2px var(--forest);
}
.hero__lede { font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; max-width: 52ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- CA box ---------- */
.ca {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 26px; max-width: 100%;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 251, 234, .82);
  border: 2px solid var(--forest);
  border-radius: 999px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ca__label { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .1em; }
.ca__value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.ca.no-ca .ca__value { font-family: var(--display); font-weight: 900; letter-spacing: .14em; font-size: 14px; }
.ca__copy {
  flex: none;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 0; background: var(--forest); color: var(--lime);
  font: 700 14px var(--body); cursor: pointer;
  transition: background .15s, transform .15s;
}
.ca__copy:hover:not(:disabled) { background: var(--forest-2); transform: translateY(-1px); }
.ca__copy.is-copied { background: var(--lime); color: var(--forest); }
.ca__copy:disabled {
  cursor: not-allowed; background: transparent; color: rgba(36,61,20,.5);
  border: 2px dashed rgba(36,61,20,.25);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--forest); color: var(--lime);
  border-top: 3px solid var(--lime); border-bottom: 3px solid var(--lime);
}
.marquee__track {
  display: flex; width: max-content;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .14em;
  padding: 14px 0;
  animation: marquee 36s linear infinite;
}
.marquee__track span { padding-right: 1.2em; white-space: nowrap; }
.marquee__track em { font-style: normal; color: var(--sun); padding: 0 .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--wide { max-width: 900px; }
.section__head .display { font-size: clamp(34px, 5.2vw, 64px); }
.section__sub { font-size: clamp(17px, 1.5vw, 20px); margin-top: 16px; opacity: .85; max-width: 46ch; }

/* Evolution */
.evolution {
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(204,255,0,.35), rgba(204,255,0,0) 60%),
    var(--cream);
}
.evo {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px);
  position: relative;
}
.evo::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 33%;
  height: 4px; border-radius: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--forest) 0 14px, transparent 14px 26px);
  opacity: .35;
}
.evo__panel { position: relative; z-index: 1; }
.evo__panel img {
  width: 100%; border-radius: var(--radius);
  border: 3px solid var(--forest);
  box-shadow: var(--shadow);
  background: var(--sun);
}
.evo__panel:nth-child(2) img { transform: rotate(-1.2deg); }
.evo__panel:nth-child(3) img { transform: rotate(1deg); }
.evo__panel h3 {
  font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2vw, 26px);
  margin-top: 22px;
}
.evo__panel:nth-child(3) h3 { color: var(--grass); }
.evo__panel p { margin-top: 8px; font-size: 16px; opacity: .9; }

/* Tokenomics — asymmetric typographic stack, no cards */
.tokenomics {
  color: var(--forest);
  background:
    linear-gradient(180deg, rgba(255,251,234,0) 0%, rgba(255,251,234,0) 70%, rgba(36,61,20,.06) 100%),
    linear-gradient(180deg, var(--sun) 0%, var(--lime) 100%);
  border-top: 3px solid var(--forest);
}
.facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--forest);
}
.fact {
  padding: clamp(28px, 3.5vw, 44px) clamp(18px, 2.5vw, 36px);
  border-bottom: 2px solid var(--forest);
}
.fact:nth-child(odd) { border-right: 2px solid var(--forest); }
.fact--wide { grid-column: 1 / -1; border-right: 0 !important; background: rgba(36,61,20,.05); }
.fact:last-child { grid-column: 1 / -1; border-right: 0 !important; }
.fact__big {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(56px, 8vw, 112px); line-height: .95; letter-spacing: -.03em;
}
.fact--wide .fact__big { font-size: clamp(72px, 11vw, 150px); }
.fact h3 { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.9vw, 24px); margin-top: 14px; line-height: 1.2; }
.fact p:not(.fact__big) { margin-top: 10px; font-size: 16px; max-width: 46ch; }
.fact__quote { font-style: italic; font-size: clamp(18px, 2vw, 22px) !important; font-weight: 600; }

/* How to buy — vertical ladder */
.buy { background: var(--cream); }
.steps { display: grid; gap: 0; border-left: 3px solid var(--forest); }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 28px 0 28px 28px; position: relative;
}
.step::before {
  content: ""; position: absolute; left: -11px; top: 38px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--lime); border: 3px solid var(--forest);
}
.step + .step { border-top: 2px dashed rgba(36,61,20,.25); }
.step__label {
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  padding-top: 6px; color: var(--grass);
}
.step h3 { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.step p { margin-top: 8px; font-size: 16px; max-width: 52ch; }
.step .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: var(--cream); padding: 56px 0 40px; border-top: 4px solid var(--lime); }
.footer__grid {
  display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__pfp { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--lime); }
.footer__ticker { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--lime); }
.footer__name { font-size: 14px; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.footer__links { justify-self: end; }
.footer .btn--outline { background: transparent; color: var(--lime); border-color: var(--lime); }
.footer .btn--outline:hover { background: var(--lime); color: var(--forest); }
.footer .btn.is-soon { color: rgba(255,251,234,.5); border-color: rgba(255,251,234,.25); background: transparent; }
.footer__ca { grid-column: 1 / -1; }
.ca--footer {
  margin-top: 0; background: rgba(255,251,234,.08); border-color: rgba(204,255,0,.5); color: var(--cream);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.ca--footer .ca__copy { background: var(--lime); color: var(--forest); }
.ca--footer .ca__copy:disabled { background: transparent; color: rgba(255,251,234,.5); border-color: rgba(255,251,234,.25); }
.ca--footer .ca__copy.is-copied { background: var(--cream); }
.footer__warn { margin-top: 12px; font-weight: 600; color: var(--lime); font-size: 15px; }
.footer__disclaimer { grid-column: 1 / -1; font-size: 13px; opacity: .7; max-width: 70ch; line-height: 1.5; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.evo__panel.reveal:nth-child(2) { transition-delay: .12s; }
.evo__panel.reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__art { height: 92%; top: auto; }
  .hero__content { max-width: 560px; }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar .btn { display: none; }

  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__content { order: 1; padding: 96px 0 0; max-width: none; width: calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); }
  .hero__ticker { font-size: clamp(84px, 24vw, 140px); }
  .hero__art {
    order: 2;
    position: relative; height: auto; right: auto; top: auto; bottom: auto;
    width: 200vw; margin-left: -96vw; margin-top: -10vw;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 22%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 22%);
  }
  .hero__art img { object-fit: contain; }
  .ca { display: flex; }

  .evo { grid-template-columns: 1fr; gap: 40px; }
  .evo::before { display: none; }
  .evo__panel { max-width: 440px; margin-inline: auto; width: 100%; }

  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }

  .step { grid-template-columns: 1fr; gap: 6px; padding-left: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-self: start; }
}

@media (max-width: 420px) {
  .hero__ticker { font-size: 84px; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; padding: 5px 10px; }
  .ca { padding-left: 12px; gap: 8px; }
  .ca__value { font-size: 12px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__cta .btn--icon { flex: 0 0 52px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__rays { animation: none; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ca__copy { transition: none; }
  .btn:hover { transform: none; }
  .hero__art.is-firing .laser { animation: none; opacity: 1; }
  .eye { transition: none; }
}
