/* ==========================================================================
   Modest Money ($MODEST) — landing page styles
   Palette sampled from the coin: deep emerald green + metallic gold.
   Type: modern bold sans for display, monospace for micro-labels & numbers.
   Mobile-first. Self-contained (only external asset is the coin image).
   ========================================================================== */

:root {
  /* Greens — from the coin face */
  --green-deepest: #07140c;
  --green-deep:    #0a1a11;
  --green:         #0f2418;
  --panel:        rgba(20, 42, 28, 0.62);
  --panel-solid:  #12281a;
  --line:         #234030;
  --line-soft:    rgba(226, 190, 98, 0.18);
  --emerald:      #34a86a;
  --emerald-soft: #57c78d;

  /* Gold — rim, laurels, lettering */
  --gold:         #e6c268;
  --gold-solid:   #d4a344;
  --gold-bright:  #f6d488;
  --gold-deep:    #a8791f;

  /* Text */
  --text:      #f4eee0;
  --text-dim:  #c4c6b8;
  --muted:     #8b9a86;

  /* Warning — coral, distinct from decorative gold */
  --warn:        #ff8a5b;
  --warn-strong: #ffd9c4;
  --warn-line:   rgba(255, 120, 80, 0.5);
  --warn-bg:     rgba(255, 120, 80, 0.10);

  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1120px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--green-deepest);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient emerald + gold field with a faint grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(56% 40% at 50% -6%, rgba(212, 163, 68, 0.20), transparent 60%),
    radial-gradient(48% 38% at 94% 6%, rgba(52, 168, 106, 0.16), transparent 66%),
    radial-gradient(52% 44% at 2% 24%, rgba(15, 36, 24, 0.7), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(226, 190, 98, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 190, 98, 0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold-solid); color: #14120a; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ Kicker labels */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.kicker-center { display: flex; justify-content: center; }
.kicker-num {
  color: var(--gold-bright); border: 1px solid var(--line-soft);
  padding: 3px 8px; border-radius: 7px; letter-spacing: 0.08em;
  background: rgba(226, 190, 98, 0.06);
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 20, 12, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
img.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  border: 1px solid var(--gold-deep);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(226, 190, 98, 0.12);
}
.brand-text { font-size: 15.5px; letter-spacing: -0.01em; }
.brand-ticker { color: var(--gold); font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: var(--text-dim); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px;
}
.primary-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.primary-nav .nav-warn { color: var(--warn); }
.primary-nav .nav-warn:hover { background: var(--warn-bg); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 42px; height: 42px; padding: 0 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; padding: clamp(36px, 7vw, 68px) 0 clamp(50px, 9vw, 96px); text-align: center; }
.hero-inner { max-width: 820px; }

.hero-coin { position: relative; display: flex; justify-content: center; margin: 0 0 30px; }
.hero-coin img {
  width: clamp(200px, 55vw, 340px); height: auto; border-radius: 50%;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 46px rgba(226, 190, 98, 0.3));
  animation: coinFloat 6s ease-in-out infinite;
}
.hero-coin::after {
  content: ""; position: absolute; inset: -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(226, 190, 98, 0.3), rgba(52, 168, 106, 0.12) 55%, transparent 72%);
}
@keyframes coinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-title {
  margin: 6px 0 0; font-weight: 800; font-size: clamp(46px, 12vw, 96px);
  line-height: 0.98; letter-spacing: -0.045em; color: var(--text);
  background: linear-gradient(180deg, #fff8ea, #e9d3a0 78%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-ticker {
  margin: 12px 0 0; font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(18px, 4.6vw, 26px); letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold), var(--emerald-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-slogan { margin: 18px 0 0; font-size: clamp(19px, 4.4vw, 27px); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }

.chip-row {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
}
.chip {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(20, 42, 28, 0.5);
}

.hero-address {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 26px auto 0; max-width: 560px; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(6px);
}
.hero-address-label {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.hero-address-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-explorer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* Reusable on-chain address block (hero, warning, how-to-buy) */
.addr-box {
  display: block; width: 100%; margin: 2px 0 0; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(226, 190, 98, 0.06);
  font-size: 13.5px; line-height: 1.5; color: var(--gold-bright); word-break: break-all; text-align: center;
}
.notice .addr-box { margin: 6px 0 14px; text-align: left; }
.stat-value-ok { color: var(--emerald-soft) !important; }

/* Status chips (Live / Soon) */
.status {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-soon { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.status-live { color: var(--emerald-soft); background: rgba(52, 168, 106, 0.12); border: 1px solid rgba(52, 168, 106, 0.4); }

.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin: 32px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: 13px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #1a1407; background: linear-gradient(145deg, var(--gold-bright), var(--gold-solid) 60%, var(--gold-deep));
  box-shadow: 0 10px 28px rgba(212, 163, 68, 0.32);
}
.btn-primary:hover { color: #1a1407; box-shadow: 0 12px 34px rgba(212, 163, 68, 0.46); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.02); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(226, 190, 98, 0.07); }

.hero-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }

/* ----------------------------------------------------------------- Sections */
.section { padding: clamp(54px, 9vw, 92px) 0; }
.section-alt {
  background: linear-gradient(180deg, var(--green-deep), var(--green-deepest));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { margin: 0 0 34px; max-width: 680px; }
.section-title {
  margin: 0; font-weight: 800; font-size: clamp(30px, 6.5vw, 50px);
  line-height: 1.02; letter-spacing: -0.04em; color: var(--text);
}
.section-lead { margin: 16px 0 0; color: var(--text-dim); font-size: 17.5px; }

/* --------------------------------------------------------------------- Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------------------------- Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 26px rgba(0, 0, 0, 0.34);
}

/* Stats */
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: clamp(27px, 5vw, 36px); font-weight: 800; color: var(--gold); line-height: 1.05; letter-spacing: -0.02em; }
.stat-value.mono { font-weight: 700; letter-spacing: -0.01em; }
.stat-value-sm { font-size: clamp(20px, 4vw, 25px); color: var(--text); font-weight: 700; }
.stat-sub { font-size: 14px; color: var(--text-dim); }

/* Benefits — numbered, no icons */
.benefit { position: relative; overflow: hidden; transition: transform .16s ease, border-color .2s ease; }
.benefit:hover { transform: translateY(-3px); border-color: rgba(226, 190, 98, 0.4); }
.benefit-index {
  position: absolute; top: 16px; right: 20px;
  font-size: clamp(34px, 6vw, 46px); font-weight: 700; line-height: 1;
  color: rgba(226, 190, 98, 0.16); letter-spacing: -0.03em;
  transition: color .2s ease;
}
.benefit:hover .benefit-index { color: rgba(226, 190, 98, 0.34); }
.benefit h3 { margin: 30px 0 0; font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; max-width: 82%; }
.benefit p { margin: 9px 0 0; color: var(--text-dim); font-size: 15.5px; }

/* -------------------------------------------------------------------- Prose */
.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; color: var(--text-dim); font-size: 18.5px; line-height: 1.62; }
.prose strong { color: var(--text); }
.prose em { color: var(--gold); font-style: normal; }
.prose-flag {
  margin-top: 8px !important; padding: 16px 18px; border-left: 2px solid var(--emerald);
  background: rgba(52, 168, 106, 0.09); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text) !important; font-size: 16px !important;
}
.fineprint { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); max-width: 760px; }

/* ------------------------------------------------------------------ Notices */
.notice { position: relative; max-width: 860px; }
.notice-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--warn);
}
.alert-glyph { display: block; }
.notice-title { margin: 0 0 12px; font-size: clamp(23px, 4.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.notice p { margin: 0 0 12px; color: var(--text-dim); }
.notice p:last-child { margin-bottom: 0; }
.notice-strong { color: var(--text) !important; font-weight: 600; }

.notice-info { border-color: var(--line-soft); }
.notice-info .notice-title { color: var(--gold); }

.notice-warn {
  border: 1px solid var(--warn-line);
  background:
    linear-gradient(180deg, rgba(255, 120, 80, 0.12), rgba(255, 120, 80, 0.02)),
    var(--panel);
  box-shadow: 0 12px 44px rgba(255, 120, 80, 0.14);
}
.notice-warn .notice-strong { color: var(--warn-strong) !important; }

/* --------------------------------------------------------------------- Links */
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: border-color .2s ease, transform .15s ease;
}
a.link-row.is-live:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.link-body { display: flex; flex-direction: column; gap: 4px; }
.link-title { font-weight: 700; color: var(--text); font-size: 16.5px; letter-spacing: -0.01em; }
.link-value { font-size: 13.5px; color: var(--text-dim); }
.link-side { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.link-arrow { color: var(--gold); font-size: 19px; line-height: 1; }
.link-row.is-pending { opacity: 0.82; }

/* ----------------------------------------------------------------- Disclaimer */
.disclaimer { max-width: 880px; border-color: var(--line); background: rgba(10, 26, 17, 0.7); }
.disclaimer p { margin: 0 0 16px; color: var(--text-dim); font-size: 15.5px; }
.disclaimer p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--green-deep); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img.brand-mark { width: 44px; height: 44px; }
.footer-name { margin: 0; font-weight: 700; }
.footer-slogan { margin: 0; color: var(--gold); font-size: 14px; }
.footer-meta { margin: 0; color: var(--muted); font-size: 12.5px; letter-spacing: 0; }
.footer-fine { margin: 0; color: var(--muted); font-size: 13px; max-width: 640px; }

/* --------------------------------------------------------------- Reveal anim */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-coin img { animation: none; }
}

/* -------------------------------------------------------------- Mobile nav */
@media (max-width: 840px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(8, 20, 13, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
}
