/* Pismire Network – landing page, look "Obsidian": near-black, thin lines,
   gold accent, mono numbers. No framework. */
:root {
  --bg: #0C0C0F; --bg2: #101114; --card: #15161B; --line: #262830; --line2: #343640;
  --text: #EDEEF3; --muted: #9EA1B0; --muted2: #6E7282;
  --gold: #E3A93A; --gold-soft: #D8BC78; --gold-tint: #1E1A10; --gold-line: #6B5220;
  --leaf: #45C58E; --blue: #7DB4F5; --red: #E9553F;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --title: "Space Grotesk", var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { font-family: var(--title); letter-spacing: -0.02em; margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.kicker { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; margin: 10px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gold); color: #15110A; }
.btn-primary:hover { background: #ECB85A; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line2); }
.btn-secondary:hover { border-color: var(--gold-line); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); padding: 9px 12px; font-size: 13px; }
.btn.soon { cursor: default; border-style: dashed; padding: 13px 16px; font-size: 14px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(12,12,15,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--title); font-weight: 700; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; color: var(--gold); }
.nav { display: none; gap: 18px; margin-left: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.spacer { flex: 1; }
.lang { background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: var(--sans); }
@media (min-width: 820px) { .nav { display: flex; } }
/* mid widths: tighter nav so long labels (Japanese, Arabic) fit on one line */
@media (min-width: 820px) and (max-width: 1100px) { .nav { gap: 12px; margin-left: 8px; } .nav a { font-size: 13px; } }
/* phones: icon-only brand, compact language select, everything on one line */
@media (max-width: 480px) {
  .topbar .container { gap: 10px; padding: 0 14px; }
  .brand { font-size: 0; gap: 0; }
  .brand svg { width: 30px; height: 30px; }
  .lang { padding: 7px 6px; max-width: 128px; }
  .topbar .btn { padding: 11px 14px; font-size: 14px; }
}

/* hero */
.hero { padding: 72px 0 36px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%; background: radial-gradient(60% 50% at 70% 30%, rgba(227,169,58,.10), transparent 60%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.04; }
.hero h1 .gold { color: var(--gold); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .fine { color: var(--muted2); font-size: 13px; margin-top: 12px; }
.hero-visual { display: grid; place-items: center; }
.ant-stage { width: 100%; max-width: 440px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--bg2), var(--bg)); position: relative; overflow: hidden; }
.ant-stage canvas { width: 100%; height: 100%; display: block; }
.ant-stage .tag { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ant-stage .tag b { color: var(--gold); font-weight: 600; }
@media (min-width: 820px) { .hero .container { grid-template-columns: 1.15fr .85fr; } .hero { padding: 96px 0 48px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 36px 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-family: var(--mono); font-size: 24px; color: var(--gold); font-weight: 600; letter-spacing: -0.01em; }
.stat span { color: var(--muted); font-size: 13px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 4vw, 36px); }
.grid { display: grid; gap: 12px; margin-top: 28px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .num { font-family: var(--mono); color: var(--gold); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step { position: relative; padding-top: 44px; }
.step .idx { position: absolute; top: 14px; left: 18px; font-family: var(--mono); color: var(--gold); font-size: 13px; border: 1px solid var(--gold-line); border-radius: 6px; padding: 2px 7px; }

/* tokenomics */
.table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.table td.mono { color: var(--gold); }
.bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 20px; display: flex; }
.bar i { display: block; height: 100%; }
.bar .m { background: var(--gold); width: 80%; }
.bar .s { background: var(--gold-soft); width: 10%; }
.bar .r { background: var(--line2); width: 10%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* roadmap */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card); display: grid; gap: 4px; }
.timeline li.check { border-style: dashed; background: transparent; }
.timeline li b { font-family: var(--title); font-size: 16px; }
.timeline li span { color: var(--muted); font-size: 14px; }
@media (min-width: 820px) { .timeline { grid-template-columns: repeat(5, 1fr); } }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: var(--card); margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-family: var(--title); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

/* cta band */
.band { border: 1px solid var(--gold-line); background: var(--gold-tint); border-radius: 14px; padding: 28px; display: grid; gap: 14px; margin-top: 64px; }
.band h2 { font-size: 24px; }
.band p { color: var(--gold-soft); margin: 0; }
@media (min-width: 820px) { .band { grid-template-columns: 1fr auto; align-items: center; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted2); font-size: 13px; }
footer .container { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
footer a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
[dir="rtl"] .step .idx { left: auto; right: 18px; }

/* moving colony backdrop (colony.js): fixed behind everything, content above */
#colony { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.topbar, section, footer { position: relative; z-index: 1; }
.stat, .card, .timeline li, .faq details, .ant-stage { background: rgba(21,22,27,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
