/* ==========================================================================
   Donkey Syndicate — style.css
   1. Variables  2. Base  3. Components  4. Sections  5. Responsive
   Colors, type and layout are taken 1:1 from the DonkeySyndicate.html design.
   ========================================================================== */

/* 1. Variables ----------------------------------------------------------- */
:root {
  --bg: #0d0a08;
  --card: #1a140e;
  --ink-2: #221a12;
  --gold: #f2c94c;
  --gold-hover: #ffe08a;
  --pink: #ff6fb5;
  --green: #86efac;
  --green-ink: #0b1a10;
  --text: #f6efe0;
  --text-2: #cfc3ad;
  --muted: #a89a82;
  --muted-2: #8f826c;

  --font-ui: 'Unbounded', system-ui, sans-serif;
  --font-quote: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 20px;
  --max: 1100px;
  --max-hero: 1320px;
  --pad-x: clamp(16px, 4vw, 48px);
  --pad-y: clamp(48px, 8vw, 110px);
  --nav-h: 86px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, blockquote { margin: 0; }
h3 { font-size: inherit; font-weight: inherit; }
button { font: inherit; }

[hidden] { display: none !important; }

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

.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;
}

/* The tilted ticker and the stickers poke outside the viewport; clip them
   without creating a scroll container (which would break the sticky nav). */
.page { min-height: 100vh; background: var(--bg); overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

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

/* 3. Components ---------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 28px; border: 0; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 900; font-size: 15px; line-height: normal;
  white-space: nowrap; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--buy { background: var(--green); color: var(--green-ink); }
.btn--buy:hover { background: #a8f5c2; color: var(--green-ink); }
.btn--pink { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); font-weight: 700; }
.btn--pink:hover { color: #ff9ed0; border-color: #ff9ed0; }
.btn--ghost { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); font-weight: 700; }
.btn--ghost:hover { color: var(--gold-hover); border-color: var(--gold-hover); }
.btn--dark { background: var(--bg); color: var(--green); align-self: flex-start; }
.btn--dark:hover { background: #1a140e; color: var(--green); }
.btn--sm { padding: 12px 20px; font-size: 13px; }
.btn--ghost.btn--sm { padding: 12px 18px; }
.btn--x { padding: 12px 15px; font-weight: 900; letter-spacing: .02em; }
.btn--soon { opacity: .75; cursor: default; pointer-events: none; }

/* Section scaffolding */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: flex; flex-direction: column; gap: 28px;
}
.section--no-top { padding-top: 0; }
.section--no-bottom { padding-bottom: 0; }

.section__kicker, .eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: var(--pink);
  letter-spacing: .1em; text-transform: uppercase;
}
.section__title { font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1; }
.section__title--balance { text-wrap: balance; }

.grid { display: grid; gap: 16px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--230 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* 4. Sections ------------------------------------------------------------ */

/* Breaking news bar */
.breaking {
  background: var(--pink); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-align: center; padding: 8px 16px;
}

/* Sticky navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--pad-x);
  background: rgba(13, 10, 8, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 201, 76, .18);
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: inherit; cursor: pointer; }
.nav__brand:hover { color: inherit; }
.nav__brand:hover .nav__name { opacity: .85; }
.nav__logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  object-position: 55% 40%; border: 2px solid var(--gold); flex-shrink: 0;
}
.nav__name { font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.nav__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nav__actions .btn { flex-shrink: 0; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 6vw, 80px) var(--pad-x);
  max-width: var(--max-hero); margin: 0 auto;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__title {
  font-weight: 900; font-size: clamp(36px, 5.2vw, 76px); line-height: .95;
  letter-spacing: -.02em; min-width: 0; overflow-wrap: anywhere;
}
.hero__tagline {
  font-family: var(--font-quote); font-style: italic; font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; color: var(--gold); text-wrap: pretty;
}
.hero__intro { font-size: 15px; line-height: 1.7; color: var(--text-2); max-width: 520px; text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contract address box */
.ca {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px dashed rgba(242, 201, 76, .4); border-radius: 14px;
  font-family: var(--font-mono); font-size: 13px;
}
.ca__label { color: var(--muted-2); }
.ca__value { color: var(--text); word-break: break-all; flex: 1; min-width: 0; }
.ca--soon .ca__value { color: var(--muted); }
.ca__copy {
  background: var(--ink-2); color: var(--gold); border: 1px solid var(--gold); border-radius: 8px;
  padding: 8px 14px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;
}
.ca__copy:hover { color: var(--gold-hover); border-color: var(--gold-hover); }
.ca__copy:disabled { opacity: .55; cursor: default; }

/* Bonding curve */
.curve {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: var(--card); border: 1px solid rgba(134, 239, 172, .3); border-radius: 14px;
}
.curve__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; }
.curve__label { color: var(--green); font-weight: 700; }
.curve__note { color: var(--muted-2); }
.curve__bar { height: 14px; border-radius: 999px; background: var(--ink-2); overflow: hidden; }
.curve__fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .6s ease; }
.curve__text { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Hero image with frame and stickers */
.hero__art { position: relative; }
.hero__frame { position: absolute; inset: -14px; border: 2px solid var(--gold); border-radius: 28px; transform: rotate(2deg); }
.hero__img {
  position: relative; display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.sticker { position: absolute; color: var(--bg); border-radius: 12px; }
.sticker--pink {
  left: -10px; bottom: 28px; background: var(--pink); padding: 10px 16px;
  font-weight: 900; font-size: 14px; transform: rotate(-4deg);
}
.sticker--cream {
  right: -8px; top: 24px; background: var(--text); padding: 10px 14px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; line-height: 1.4;
  max-width: 190px; transform: rotate(5deg);
}

/* Ticker */
.ticker {
  background: var(--gold); color: var(--bg); padding: 16px 0;
  transform: rotate(-1.5deg); margin: 24px -20px; overflow: hidden;
  font-weight: 900; font-size: 22px; white-space: nowrap;
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__group { display: flex; gap: 40px; padding-right: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Story chapters */
.chapter {
  background: var(--c-bg); border: 1px solid var(--c-bd); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.chapter__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--c-tag); }
.chapter__title { font-weight: 900; font-size: 20px; line-height: 1.2; }
.chapter__text { font-size: 14px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.chapter--gray  { --c-bg: #14161a; --c-bd: rgba(160, 175, 195, .22); --c-tag: #9fb0c6; }
.chapter--red   { --c-bg: #1a1010; --c-bd: rgba(240, 90, 90, .35);   --c-tag: #f07a7a; }
.chapter--green { --c-bg: #0f1a12; --c-bd: rgba(134, 239, 172, .4);  --c-tag: #86efac; }
.chapter--gold  { --c-bg: #1f170c; --c-bd: rgba(242, 201, 76, .45);  --c-tag: #f2c94c; }

.later {
  border: 2px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; background: #000;
}
.later__quote { font-family: var(--font-quote); font-style: italic; font-weight: 700; font-size: clamp(24px, 3vw, 36px); color: var(--text); }
.later__note { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* Tokenomics */
.stat {
  background: var(--card); border: 1px solid rgba(242, 201, 76, .2); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.stat__value { font-weight: 900; font-size: 36px; color: var(--gold); }
.stat__key { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.stat__text { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* How to buy */
.buy { background: var(--gold); color: var(--bg); padding: var(--pad-y) var(--pad-x); }
.buy__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.buy .section__kicker { color: #7a2b55; }
.step {
  background: #fff6cf; border: 2px solid var(--bg); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.step__num { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.step__title { font-weight: 900; font-size: 20px; }
.step__text { font-size: 14px; line-height: 1.6; }

/* Witnesses */
.quote {
  background: var(--card); border: 1px solid rgba(255, 111, 181, .25); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.quote__text { font-family: var(--font-quote); font-style: italic; font-weight: 700; font-size: 20px; line-height: 1.4; color: var(--text); }
.quote__by { font-family: var(--font-mono); font-size: 12px; color: var(--pink); }

/* Roadmap */
.phases { display: flex; flex-direction: column; }
.phase {
  display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 24px;
  padding: 24px 0; border-top: 1px solid rgba(242, 201, 76, .2);
}
.phase__num { font-family: var(--font-mono); font-size: 14px; color: var(--gold); }
.phase__body { display: flex; flex-direction: column; gap: 6px; }
.phase__title { font-weight: 700; font-size: 20px; }
.phase__text { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* FAQ */
.faqs { display: flex; flex-direction: column; }
.faq { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid rgba(242, 201, 76, .2); }
.faq__q { font-weight: 700; font-size: 18px; }
.faq__a { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Footer */
.footer {
  border-top: 1px solid rgba(242, 201, 76, .2); padding: 40px var(--pad-x);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__name { font-weight: 900; font-size: clamp(28px, 4vw, 48px); }
.footer__tag { font-family: var(--font-quote); font-style: italic; font-weight: 700; font-size: 18px; color: var(--text-2); }
.footer__links { display: flex; gap: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; flex-wrap: wrap; }
.footer__legal { flex-basis: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted-2); max-width: 760px; }

/* 5. Responsive ---------------------------------------------------------- */
@media (max-width: 719.98px) {
  .nav__links { display: none; }          /* buy button stays visible */
  .nav__name { font-size: 16px; }
}
@media (max-width: 479.98px) {
  .nav__name { font-size: 14px; }
  .btn--sm { padding: 11px 14px; font-size: 12px; }
  .sticker--cream { max-width: 150px; right: 0; top: 12px; }
  .sticker--pink { left: 0; bottom: 16px; font-size: 13px; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
}
