/* Palette and type follow the Elysium site's look: deep teal, white CTAs, DM Sans + Geist Mono. */
:root {
  --bg: #0B1C22;
  --bg-2: #0F242B;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #FAFAFA;
  --muted: #A9BDC4;
  --faint: #7E959D;
  --accent: #4BBFE2;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html { background: #06121A; }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
code { font: 0.9em var(--mono); background: var(--surface-hover); padding: 1px 6px; border-radius: 5px; direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px; border-radius: 6px; font-weight: 500; font-size: 0.95rem;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #18181B; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(75, 191, 226, .18); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-lg:hover { transform: translateY(-1px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 28, 34, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.15rem; font-family: "DM Sans", sans-serif; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.93rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Phones: the links stay reachable, as a compact scrollable row. */
@media (max-width: 640px) { .nav-links { gap: 16px; overflow-x: auto; scrollbar-width: none; } .nav-links a { font-size: .85rem; white-space: nowrap; } .brand span { display: none; } }

/* Space backdrop: fixed gradient + one static star canvas + a few CSS twinklers */
.space {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #0B1C22 0%, #081820 45%, #06121A 100%);
}
.space canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.twinkle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(75,191,226,.6);
  opacity: .15; animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .7; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vh, 110px) 0 0; text-align: center; }

/* Planet sits in its own stage below the hero copy, so its edge can never cross text */
.planet-stage {
  --pw: clamp(900px, 150vw, 3200px);
  position: relative;
  height: calc(80px + clamp(150px, 17vw, 320px));
  margin-top: 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.planet-fade { position: absolute; inset: 0; animation: planetIn 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes planetIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.planet {
  position: absolute; top: 80px; left: 50%;
  width: var(--pw); height: var(--pw); margin-left: calc(var(--pw) / -2);
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, #133844 0%, #0C222A 45%, #081820 100%);
  box-shadow:
    0 -1px 0 rgba(255,255,255,.38),
    0 -8px 30px rgba(75,191,226,.32),
    0 -30px 90px rgba(63,184,201,.14);
  transform-origin: 50% 0;
  will-change: transform;
}
/* Atmosphere sheen, rotated from JS as you scroll */
.planet-atmo {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 22% 8% at 32% 3%, rgba(75,191,226,.20), transparent 70%),
    radial-gradient(ellipse 18% 6% at 70% 4%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(ellipse 30% 10% at 52% 9%, rgba(63,184,201,.08), transparent 70%);
  will-change: transform, opacity;
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.82rem;
  background: rgba(0,0,0,.2); border: 1px solid var(--border); color: var(--text);
  margin-bottom: 28px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); max-width: 14ch; }
.lead { margin: 22px auto 36px; max-width: 520px; color: var(--muted); font-size: 1.1rem; }
.fine { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 480px) {
  .hero { padding: clamp(48px, 8vh, 72px) 0 0; }
  .lead { font-size: 1rem; }
  .hero .btn-lg { width: 100%; }
}

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.hero + .section { border-top: 0; }
.section.last { border-top: 0; padding-top: 24px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 36px; }
.sub { color: var(--muted); margin: -24px 0 40px; }
@media (max-width: 600px) { .section { padding: 64px 0; } h2 { margin-bottom: 28px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(75,191,226,.1); color: var(--accent); margin-bottom: 8px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { margin-top: 10px; font-size: 0.85rem; color: var(--text); direction: ltr; align-self: flex-start; }
.arrow { display: inline-block; transition: transform .2s ease; color: var(--accent); }
.card:hover .arrow { transform: translateX(4px); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Guide */
.guide-h { font-size: 1.15rem; color: var(--muted); margin: 8px 0 16px; font-weight: 500; }
.steps + .guide-h { margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.steps li:first-child { border-top: 1px solid var(--border); }
.n { color: var(--accent); font-size: 0.9rem; padding-top: 2px; }
.steps strong { font-weight: 500; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 480px) { .steps li { grid-template-columns: 38px 1fr; } }

/* FAQ */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem var(--mono); color: var(--faint); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 62ch; }

/* CTA */
.cta {
  text-align: center; padding: 64px 24px; border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(600px 240px at 50% 120%, rgba(75,191,226,.18), transparent 70%), rgba(15, 36, 43, .55);
}
.cta h2 { margin-bottom: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); font-size: 0.93rem; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 20px; color: var(--faint); font-size: 0.82rem; max-width: 720px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* Back to top: appears after scrolling, calm fade */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(11, 28, 34, .72);
  border: 1px solid rgba(75, 191, 226, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(75, 191, 226, .15);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, border-color .2s, box-shadow .2s;
}
.to-top { visibility: hidden; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.to-top:hover { border-color: rgba(75, 191, 226, .8); box-shadow: 0 0 30px rgba(75, 191, 226, .3); }
@media (max-width: 480px) { .to-top { right: 16px; bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Guide extras: command list, big-wallet tiers, price table, official links */
.guide-sub { font-size: 1rem; font-weight: 500; color: var(--text); margin: 40px 0 14px; }
.accent { color: var(--accent); }
.cmds { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.cmds dt code { font-family: var(--mono); font-size: .88rem; color: var(--accent); }
.cmds dd { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .cmds { grid-template-columns: 1fr; gap: 2px; } .cmds dd { margin-bottom: 10px; } }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tiers div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: rgba(75,191,226,.04); }
.tiers .mono { color: var(--accent); font-size: .9rem; }
@media (max-width: 600px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.tbl thead th { color: var(--faint); font-weight: 500; font-family: var(--mono); font-size: .82rem; }
.tbl tbody th { font-weight: 500; }
.tbl s { color: var(--faint); margin-right: 4px; }
#trending p a, .guide-h + .steps a, .steps a, .official a { color: var(--accent); }
.official { margin-top: 40px; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.official .guide-sub { margin-top: 0; }
.official ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }

/* The three Telegram destinations: icon, name, handle, one line, one button. */
.tgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 22px 26px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, rgba(75,191,226,.07), rgba(75,191,226,.01)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tg:hover { border-color: rgba(75,191,226,.5); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(75,191,226,.12); }
.tg img { width: 56px; height: 56px; margin-bottom: 6px; filter: drop-shadow(0 6px 18px rgba(75,191,226,.35)); }
.tg h3 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.tg-handle { color: var(--accent); font-size: .85rem; }
.tg p { color: var(--muted); font-size: .95rem; margin: 2px 0 10px; flex: 1; }
.tg-cta { pointer-events: none; }
@media (max-width: 860px) { .tgs { grid-template-columns: 1fr; } .tg { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; column-gap: 14px; padding: 20px; } .tg img { margin: 0; width: 48px; height: 48px; } .tg h3 { flex: 1; } .tg-handle { flex: 0 0 100%; order: 3; } .tg p { flex: 0 0 100%; order: 4; margin: 0 0 6px; } .tg-cta { order: 5; } }

.facts { margin-top: 24px; }
.facts .mono { font-size: .95rem; }
#bridge .steps b { color: var(--text); font-weight: 500; }
