/* Asterism's own page (/asterism). Always dark, in the game's look: the night sky, gold for what you own and earn, glass panels, spaced capitals. Every class starts with ast-, so nothing here can
   collide with the rest of the site. The colours are the same as the game screen (see sky.css). */

:root {
    --ast-bg: #05070f;
    --ast-panel: rgba(8, 13, 29, 0.62);
    --ast-panel-solid: #080d1d;
    --ast-line: rgba(255, 255, 255, 0.09);
    --ast-gold: #f5c65a;
    --ast-gold-l: #ffe7a0;
    --ast-text: #f2f2f4;
    --ast-text2: #b4b8c6;
    --ast-muted: #7d8294;
    --ast-cool: #a9c7ff;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.ast-body { margin: 0; background: var(--ast-bg); color: var(--ast-text); font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ast-body *, .ast-body *::before, .ast-body *::after { box-sizing: border-box; }
.ast-body a { color: var(--ast-cool); }
.ast-body code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 0.9em; color: var(--ast-gold-l); background: rgba(245, 198, 90, 0.08); padding: 0.12em 0.45em; border-radius: 6px; }
.ast-wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.ast-narrow { width: min(780px, 100% - 48px); }
.ast-body :focus-visible { outline: 2px solid var(--ast-gold); outline-offset: 3px; }

/* ---- the bar ---- */
.ast-top { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(5, 7, 15, 0.92), rgba(5, 7, 15, 0.72)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ast-line); }
.ast-top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.ast-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ast-text); flex: none; }
.ast-word { font-family: "Space Grotesk", Inter, sans-serif; font-size: 16px; letter-spacing: 0.5em; text-transform: uppercase; color: #eef1ff; margin-right: -0.5em; }
.ast-links { display: flex; gap: 22px; margin: 0 auto; }
.ast-links a { color: var(--ast-text2); text-decoration: none; font-size: 14.5px; white-space: nowrap; transition: color 0.2s; }
.ast-links a:hover { color: #fff; }

/* ---- buttons ---- */
.ast-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.6rem; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform 0.2s, filter 0.2s, box-shadow 0.2s, background 0.2s; }
.ast-btn-small { padding: 0.45rem 1rem; font-size: 0.88rem; border-radius: 10px; flex: none; }
.ast-body a.ast-btn-gold { color: #2a1a03; background: linear-gradient(180deg, #f9d77f, #d49a36); border-color: #ffe08a; box-shadow: 0 8px 26px rgba(245, 198, 90, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ast-body a.ast-btn-gold:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 10px 32px rgba(245, 198, 90, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ast-body a.ast-btn-ghost { color: var(--ast-text); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }
.ast-body a.ast-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* ---- the top of the page ---- */
.ast-hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: center; padding: 72px 0 96px; background: var(--ast-bg) var(--hero) right center / cover no-repeat; }
.ast-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--ast-bg)); pointer-events: none; }
.ast-hero .ast-wrap { position: relative; z-index: 1; }
.ast-pill { display: inline-block; padding: 0.4rem 1.1rem; border: 1.5px solid rgba(245, 198, 90, 0.65); border-radius: 999px; background: rgba(245, 198, 90, 0.08); color: var(--ast-gold-l); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; }
.ast-h1 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 400; font-size: clamp(3rem, 8.2vw, 6.4rem); line-height: 1.02; letter-spacing: -0.01em; margin: 1.1rem 0 0.9rem; max-width: 12ch; }
.ast-h1 em { font-style: normal; background: linear-gradient(180deg, #fff3c8, #f5c65a 55%, #d9a83e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ast-lead { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: #d4d8e8; margin: 0 0 1.8rem; max-width: 38ch; }
.ast-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ast-actions-end { justify-content: center; margin-top: 2.2rem; }
.ast-note { margin: 1.6rem 0 0; color: var(--ast-muted); font-size: 0.9rem; max-width: 52ch; }

/* ---- sections ---- */
.ast-section { padding: 84px 0; }
.ast-section-alt { background: linear-gradient(180deg, rgba(14, 20, 48, 0.55), rgba(8, 13, 29, 0.35)); border-block: 1px solid var(--ast-line); }
.ast-eyebrow { margin: 0 0 0.6rem; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ast-gold); }
.ast-h2 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 1.6rem; letter-spacing: -0.005em; }
.ast-measure { max-width: 62ch; color: var(--ast-text2); }
.ast-fine { margin: 1.8rem 0 0; color: var(--ast-text2); font-size: 0.97rem; }
.ast-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ast-split p { color: var(--ast-text2); }
.ast-fan { width: 100%; height: auto; display: block; }
.ast-list { padding-left: 1.2rem; color: var(--ast-text2); }
.ast-list li { margin-bottom: 0.5rem; }
.ast-list li::marker { color: var(--ast-gold); }

.ast-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ast-step { padding: 26px 24px; border: 1px solid var(--ast-line); border-radius: 18px; background: var(--ast-panel); backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s; }
.ast-step:hover { transform: translateY(-4px); border-color: rgba(245, 198, 90, 0.4); }
.ast-step svg { width: 38px; height: 38px; fill: none; stroke: var(--ast-gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(245, 198, 90, 0.4)); }
.ast-step h3 { margin: 14px 0 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ast-gold-l); }
.ast-step p { margin: 0; color: var(--ast-text2); font-size: 0.97rem; }

.ast-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ast-currency { padding: 30px 28px; border-radius: 20px; border: 1px solid var(--ast-line); }
.ast-currency h3 { margin: 14px 0 8px; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 400; font-size: 1.7rem; }
.ast-currency p { margin: 0; color: var(--ast-text2); }
.ast-astra { background: radial-gradient(ellipse at 12% 0%, rgba(245, 198, 90, 0.16), transparent 60%), var(--ast-panel); border-color: rgba(245, 198, 90, 0.28); }
.ast-dark { background: radial-gradient(ellipse at 12% 0%, rgba(93, 59, 140, 0.4), transparent 60%), linear-gradient(90deg, #08040f, #120d20); border-color: rgba(120, 80, 190, 0.35); }
.ast-dark h3 { color: #efe6ff; }
.ast-orb { display: block; width: 40px; height: 40px; clip-path: polygon(50% 0, 61% 35%, 98% 36%, 69% 58%, 80% 96%, 50% 73%, 20% 96%, 31% 58%, 2% 36%, 39% 35%); background: radial-gradient(circle at 50% 52%, #fff9e0 0 14%, #ffe08a 34%, #f5c65a 62%, #d9a83e 100%); filter: drop-shadow(0 0 8px rgba(245, 198, 90, 0.4)); }
.ast-dmorb { position: relative; display: block; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #000 0 36%, #170c2a 38%, #3a2166 58%, rgba(93, 59, 140, 0.55) 68%, rgba(93, 59, 140, 0) 76%); box-shadow: 0 0 18px rgba(93, 59, 140, 0.6); }
.ast-dmorb::after { content: ""; position: absolute; left: -7px; right: -7px; top: 12px; bottom: 12px; border: 1px solid rgba(182, 155, 230, 0.55); border-radius: 50%; transform: rotate(-22deg); }

.ast-cmds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 1.8rem; }
.ast-cmds div { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--ast-line); border-radius: 16px; background: var(--ast-panel); }
.ast-cmds code { align-self: flex-start; }
.ast-cmds span { color: var(--ast-text2); font-size: 0.95rem; }

.ast-q { border-top: 1px solid var(--ast-line); padding: 6px 0; }
.ast-q:last-of-type { border-bottom: 1px solid var(--ast-line); }
.ast-q summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-size: 1.1rem; position: relative; }
.ast-q summary::-webkit-details-marker { display: none; }
.ast-q summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--ast-gold); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.ast-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ast-q p { margin: 0 0 16px; color: var(--ast-text2); max-width: 64ch; }

.ast-foot { border-top: 1px solid var(--ast-line); padding: 28px 0 40px; color: var(--ast-muted); font-size: 0.92rem; }
.ast-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.ast-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ast-foot a { color: var(--ast-text2); text-decoration: none; }
.ast-foot a:hover { color: #fff; }

/* ---- tablets and phones ---- */
@media (max-width: 980px) {
    .ast-links { display: none; }
    .ast-top-row { justify-content: space-between; }
    .ast-steps { grid-template-columns: repeat(2, 1fr); }
    .ast-cmds { grid-template-columns: repeat(2, 1fr); }
    .ast-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    body.ast-body { font-size: 16px; }
    .ast-wrap, .ast-narrow { width: calc(100% - 32px); }
    .ast-word { letter-spacing: 0.36em; margin-right: -0.36em; font-size: 14px; }
    .ast-hero { padding: 40px 0 72px; background-position: 70% center; }
    .ast-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 15, 0.72), rgba(5, 7, 15, 0.9)); }
    .ast-actions .ast-btn { flex: 1 1 100%; }
    .ast-section { padding: 56px 0; }
    .ast-steps, .ast-two { grid-template-columns: 1fr; }
    .ast-cmds { grid-template-columns: 1fr; }
    .ast-foot-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ast-body *, .ast-body *::before, .ast-body *::after { transition: none !important; animation: none !important; }
}
