/* ===== GRAM.MONSTER — editorial / MTONGA-inspired ===== */
:root {
  --blue: #2b75c8;
  --blue-dark: #2368b7;
  --blue-light: #79bfff;
  --cream: #f2f0e9;
  --cream-soft: #fbfaf6;
  --ink: #1a1a1a;
  --ink-soft: #4e5d55;
  --sage: #6c8477;
  --sage-deep: #2e4036;
  --sage-bg: #e9f0ea;
  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.07);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; }
.hero__title, .section__title, .mission__title, .hero__lede { text-wrap: balance; }

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

/* labels / eyebrows in mono */
.eyebrow, .card__label, .step__no, .ca__tag, .ca__copy, .badge, .section__sub {
  font-family: var(--mono);
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(242, 240, 233, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px; }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); font-weight: 500; font-size: 0.95rem; }
.nav__links a { color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--blue); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__telegram { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav__telegram:hover { color: var(--blue); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.4rem; border-radius: 999px; transition: 0.2s; cursor: pointer;
}
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ===== shared section ===== */
section { max-width: 1080px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 2rem); }
section[id] { scroll-margin-top: 84px; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.5px; }
.section__sub { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.85rem; letter-spacing: 0.2px; }

/* ===== HERO ===== */
.hero { text-align: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 1rem; margin-bottom: 1.75rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.02; letter-spacing: -1px; max-width: 16ch; margin: 0 auto;
}
.hero__word { display: block; font-style: italic; color: var(--blue); }
.hero__lede { max-width: 56ch; margin: 1.75rem auto 0; font-size: 1.1rem; color: var(--ink-soft); }

.ca {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2rem; cursor: pointer;
  background: var(--cream-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1rem; font-family: var(--mono); font-size: 0.85rem; transition: 0.2s;
}
.ca:hover { border-color: var(--blue); }
.ca__tag { color: var(--sage); }
.ca__value { font-weight: 700; letter-spacing: 0.5px; }
.ca__copy { background: var(--blue); color: #fff; border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.72rem; }

.hero__art {
  position: relative; margin: 3rem auto 0; max-width: 420px;
}
.hero__art::before {
  content: ""; position: absolute; inset: 8% 12% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43,117,200,0.22), rgba(43,117,200,0) 72%);
  filter: blur(6px);
}
.hero__art img { position: relative; z-index: 1; width: 100%; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

/* ===== STEPS / TIMELINE ===== */
.timeline { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem 3rem; align-items: start;
  padding: 2.25rem 0; border-bottom: 1px solid var(--line);
}
.step__meta { display: flex; flex-direction: column; gap: 0.7rem; }
.step__no { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 1px; }
.badge {
  align-self: start; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 0.2rem 0.7rem; border-radius: 999px;
}
.badge--live { background: var(--sage-bg); color: var(--sage-deep); border: 1px solid rgba(46,64,54,0.2); }
.badge--next { background: rgba(43,117,200,0.1); color: var(--blue-dark); border: 1px solid rgba(43,117,200,0.25); }
.badge--pending { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.step__title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin-bottom: 0.5rem; }
.step__body { color: var(--ink-soft); max-width: 60ch; }
.step__body strong { color: var(--ink); }
.step__link { display: inline-block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.85rem; color: var(--blue); transition: 0.2s; }
.step__link:hover { color: var(--blue-dark); }

/* ===== MISSION ===== */
.mission__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -1px; margin-bottom: 3rem; }
.mission__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: 1.9rem; }
.card__label { display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.card p { color: var(--ink-soft); }
.card--accent { background: var(--sage-deep); border-color: var(--sage-deep); }
.card--accent .card__label { color: var(--blue-light); }
.card__big { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.2; color: var(--cream) !important; }

/* ===== JOIN ===== */
.join__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.join__card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; display: flex; flex-direction: column; }
.join__card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 0.5rem; }
.join__card p { color: var(--ink-soft); flex: 1; margin-bottom: 1.4rem; }
.join__card--buy { background: var(--blue); border-color: var(--blue); color: #fff; }
.join__card--buy .card__label { color: var(--blue-light); }
.join__card--buy p { color: rgba(255,255,255,0.85); }
.join__card--buy .btn--solid { background: #fff; color: var(--blue); }
.join__card--buy .btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.join__card--buy .btn--ghost:hover { border-color: #fff; color: #fff; }
.join__buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 3rem clamp(1.25rem, 5vw, 4rem); max-width: 1080px; margin: 0 auto; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; }
.footer__links a { color: var(--ink-soft); transition: 0.2s; }
.footer__links a:hover { color: var(--blue); }
.footer__disc { font-size: 0.8rem; color: var(--ink-soft); max-width: 75ch; line-height: 1.7; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 0.85rem;
  padding: 0.7rem 1.3rem; border-radius: 999px; z-index: 200; transition: transform 0.3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step__meta { flex-direction: row; align-items: center; gap: 0.85rem; }
}

@media (max-width: 560px) {
  /* nav: compact so brand + Telegram + button fit small screens */
  .nav { gap: 0.6rem; padding: 0.8rem 1.1rem; }
  .nav__brand { font-size: 1.05rem; letter-spacing: 0.5px; }
  .nav__brand img { width: 28px; height: 28px; }
  .nav__actions { gap: 0.7rem; }
  .nav__telegram { font-size: 0.9rem; }
  .btn { font-size: 0.85rem; padding: 0.6rem 1rem; }

  /* tighter vertical rhythm */
  section { padding: clamp(2.75rem, 11vw, 4rem) 1.25rem; }
  .section__head { margin-bottom: 2rem; }
  .section__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }

  /* hero */
  .hero { padding-top: 2.25rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 1.5px; margin-bottom: 1.25rem; }
  .hero__lede { font-size: 1rem; margin-top: 1.4rem; }
  .hero__art { margin-top: 2.25rem; max-width: 278px; }
  .ca { font-size: 0.76rem; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.85rem; margin-top: 1.75rem; }
  .ca__copy { padding: 0.25rem 0.6rem; }

  /* mission + join */
  .mission__title { margin-bottom: 2rem; }
  .card, .join__card { padding: 1.5rem; border-radius: 16px; }
  .card__big { font-size: 1.7rem; }
  .join__card h3 { font-size: 1.45rem; }

  /* footer */
  .footer { padding: 2.5rem 1.25rem; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 360px) {
  /* very small: drop the text link, keep the X button */
  .nav__telegram { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
