/* Skyhook. One committed world: night ultramarine with two stars, Solana (lilac) and Elysium (ice), and the coin as
   the moon between them. Layout: a sticky header, then full-width bands whose inner wrapper carries the gutter. */
:root {
  color-scheme: dark;
  --night: #0a0f2e;
  --deep: #121a47;
  --panel: rgba(18, 26, 71, .72);
  --panel-solid: #111842;
  --well: #0c1236;
  --moon: #eaedff;
  --muted: #8e96c4;
  --faint: #5d6597;
  --sol: #b7a4ff;
  --ely: #8ee6f2;
  --down: #ff9db0;
  --line: rgba(200, 210, 255, .14);
  --line-strong: rgba(200, 210, 255, .26);
  --glow: 0 0 0 6px rgba(142, 230, 242, .1), 0 0 44px rgba(142, 230, 242, .28);

  --display: "Major Mono Display", ui-monospace, monospace;
  --body: "Albert Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --data: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-panel: 22px;
  --r-field: 14px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; min-height: 100vh; color: var(--moon); font: 400 15px/1.55 var(--body);
  background: radial-gradient(1100px 620px at 85% -10%, #1c2770 0%, rgba(10, 15, 46, 0) 62%), var(--night);
  -webkit-font-smoothing: antialiased;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }
a { color: var(--ely); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ely); outline-offset: 3px; border-radius: 6px; }
.num, .mono { font-family: var(--data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }

/* ---- header ---------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(10, 15, 46, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 400 22px/1 var(--display); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--moon); background: rgba(200, 210, 255, .07); text-decoration: none; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip-link { font: 500 13px var(--data); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--moon); }
.chip-link:hover { border-color: var(--line-strong); text-decoration: none; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--moon); }
.icon-link svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .nav { display: none; } .top .wrap { gap: 12px; } .brand b { font-size: 19px; } }

.lane { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(142, 230, 242, .06); font-size: 13px; color: var(--muted); }
.lane .wrap { padding-block: 9px; }
.lane b { color: var(--ely); font-weight: 600; margin-right: 4px; }

/* the mark: Solana and Elysium on one line, the coin riding between them */
.mark .rider { animation: ride 5.5s cubic-bezier(.55, 0, .35, 1) infinite; }
@keyframes ride { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 92%, 100% { transform: translate(28px, -28px); opacity: 0; } }

/* ---- buttons, fields ---------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--body); color: var(--night); background: var(--moon); border-radius: 999px; padding: 14px 22px;
  box-shadow: var(--glow); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 13.5px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--moon); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(200, 210, 255, .06); }
.btn.wide { width: 100%; padding-block: 16px; font-size: 16px; }
.btn.sell { background: var(--down); box-shadow: 0 0 0 6px rgba(255, 157, 176, .1), 0 0 40px rgba(255, 157, 176, .22); }

.field { display: grid; gap: 7px; }
.field > span, .label { font: 500 11px var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .amount input {
  width: 100%; font: 500 15px var(--body); color: var(--moon); background: var(--well); border: 1px solid var(--line);
  border-radius: var(--r-field); padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 74px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .amount input:focus { outline: none; border-color: rgba(142, 230, 242, .6); box-shadow: 0 0 0 4px rgba(142, 230, 242, .1); }
.ticker-input { position: relative; }
.ticker-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; }
.ticker-input input { padding-left: 26px; text-transform: uppercase; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--down); font-size: 13.5px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--moon); color: var(--night); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg.sides button.on.buy { background: var(--ely); }
.seg.sides button.on.sell { background: var(--down); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { border: 1px solid var(--line); background: transparent; color: var(--moon); font: 500 13px var(--data); padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.presets button:hover { border-color: var(--line-strong); }
.presets button.on { border-color: var(--ely); color: var(--ely); }
.amount { position: relative; }
.amount input { font: 600 22px var(--data); padding: 14px 70px 14px 16px; }
.amount b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 600 14px var(--data); color: var(--muted); }

/* ---- panels ------------------------------------------------------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); backdrop-filter: blur(8px); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.panel-h h2, .panel-h h3 { font-size: 15px; }
.panel-b { padding: 18px 20px 20px; display: grid; gap: 14px; }

/* ---- home: hero ---------------------------------------------------------------------------------------------------- */
.hero { padding-block: 54px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-block: 34px 28px; } }
.eyebrow { font: 500 12px var(--data); letter-spacing: .14em; text-transform: uppercase; color: var(--ely); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ely); box-shadow: 0 0 12px var(--ely); }
.hero h1 { margin-top: 18px; font-weight: 300; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 b { font-weight: 600; background: linear-gradient(90deg, var(--sol), var(--ely)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.stat { display: grid; gap: 2px; }
.stat b { font: 500 26px var(--data); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

/* the route: three bodies in a line */
.route { margin-top: 34px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; max-width: 560px; }
.route .body { display: grid; justify-items: center; gap: 8px; text-align: center; }
.route .disc { width: 38px; height: 38px; border-radius: 50%; }
.route .disc.sol { background: var(--sol); box-shadow: 0 0 24px rgba(183, 164, 255, .45); }
.route .disc.hev { width: 20px; height: 20px; background: var(--moon); box-shadow: 0 0 16px rgba(234, 237, 255, .5); }
.route .disc.ely { background: var(--night); border: 2px solid var(--ely); box-shadow: 0 0 0 7px rgba(142, 230, 242, .12), 0 0 28px rgba(142, 230, 242, .45); }
.route .body b { font-size: 13px; font-weight: 600; }
.route .body small { font: 400 11px var(--data); color: var(--muted); }
.route .beam { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sol), var(--ely)); position: relative; overflow: hidden; margin-bottom: 34px; }
.route .beam::after { content: ""; position: absolute; top: -2px; left: -20%; width: 20%; height: 6px; border-radius: 6px; background: var(--moon); filter: blur(2px); animation: beam 2.6s ease-in-out infinite; }
.route .beam + .body + .beam::after { animation-delay: 1.3s; }
@keyframes beam { to { left: 110%; } }

/* launch card */
.launch .panel-b { gap: 16px; }
.drop { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.drop label.img {
  width: 92px; height: 92px; border-radius: 20px; border: 1px dashed var(--line-strong); display: grid; place-items: center; cursor: pointer;
  background: var(--well) center / cover no-repeat; color: var(--muted); font-size: 12px; text-align: center; transition: border-color .15s ease;
}
.drop label.img:hover, .drop label.img.over { border-color: var(--ely); color: var(--ely); }
.drop label.img.has { border-style: solid; color: transparent; }
.drop .names { display: grid; gap: 10px; }
.more { color: var(--muted); font-size: 13.5px; cursor: pointer; border: 0; background: none; padding: 0; justify-self: start; }
.more:hover { color: var(--moon); }
.summary { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt, .summary span { color: var(--muted); }
.summary b { font: 500 14px var(--data); text-align: right; }
.paywith { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note { font-size: 12.5px; color: var(--muted); }

/* ---- board ---------------------------------------------------------------------------------------------------------- */
.board { padding-block: 26px 70px; }
.board-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.board-h h2 { font: 400 28px/1 var(--display); letter-spacing: .03em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.card {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 20px; color: var(--moon);
  background: var(--panel); border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); text-decoration: none; transform: translateY(-2px); }
.card .av, .av { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; display: block; }
.card .t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card .t b { font-weight: 700; font-size: 16px; }
.card .t span { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font: 400 12.5px var(--data); color: var(--muted); }
.card .m b { color: var(--moon); font-weight: 500; }
.card .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.up { color: var(--ely); }
.down { color: var(--down); }
.quick { border: 1px solid rgba(142, 230, 242, .4); background: transparent; color: var(--ely); font: 600 12.5px var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.quick:hover { background: rgba(142, 230, 242, .08); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; display: grid; gap: 8px; justify-items: center; }
.empty b { color: var(--moon); font-size: 16px; }

/* ---- coin page ------------------------------------------------------------------------------------------------------ */
.coin-top { padding-block: 26px 18px; }
.ident { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ident .av { width: 72px; height: 72px; border-radius: 20px; }
.ident h1 { font-size: clamp(24px, 3vw, 34px); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ident h1 span { color: var(--muted); font-weight: 400; font-size: .62em; }
.ident .sub { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font: 400 12.5px var(--data); color: var(--muted); align-items: center; }
.copy { border: 1px solid var(--line); background: transparent; color: var(--moon); font: 500 12px var(--data); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.copy:hover { border-color: var(--line-strong); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; padding-bottom: 70px; }
@media (max-width: 980px) { .coin-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); }
.kpis div { background: var(--panel-solid); padding: 14px 16px; display: grid; gap: 3px; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font: 500 18px var(--data); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart-wrap { position: relative; height: 340px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.tip { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-strong); font: 500 12px var(--data); white-space: nowrap; transform: translate(-50%, -110%); }
.trades { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.trades th { text-align: left; font: 500 11px var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); }
.trades td { padding: 10px 20px; border-bottom: 1px solid var(--line); font-family: var(--data); font-variant-numeric: tabular-nums; }
.trades tr:last-child td { border-bottom: 0; }
.trades .side { font-family: var(--body); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.trade .panel-b { gap: 16px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.line span { color: var(--muted); }
.line b { font: 500 13.5px var(--data); }
.hold { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--well); border-radius: 14px; border: 1px solid var(--line); }
.hold b { font: 500 16px var(--data); }

/* ---- progress ------------------------------------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 16px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; width: 12px; height: 12px; margin: 4px 5px 0; border-radius: 50%; border: 2px solid var(--faint); background: var(--night); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--ely); border-color: var(--ely); }
.steps li.now::before { border-color: var(--ely); box-shadow: 0 0 0 5px rgba(142, 230, 242, .15); animation: pulse 1.4s ease-in-out infinite; }
.steps li.bad::before { border-color: var(--down); background: var(--down); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(142, 230, 242, 0); } }
.steps b { display: block; font-size: 14px; }
.steps small { color: var(--muted); font-size: 12.5px; }

/* ---- modal, drawer, toast --------------------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 26, .66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.modal-box { width: min(440px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 24px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal-box h3 { font-size: 18px; }
.modal-box p { color: var(--muted); font-size: 14px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); cursor: pointer; color: var(--moon); font-weight: 600; text-align: left; }
.wallet-opt:hover { border-color: var(--line-strong); text-decoration: none; }
.wallet-opt img { width: 28px; height: 28px; border-radius: 8px; }
.modal-x { justify-self: end; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 40; background: var(--panel-solid); border-left: 1px solid var(--line-strong);
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 20px 20px; display: grid; align-content: start; gap: 16px; overflow-y: auto; box-shadow: -30px 0 80px rgba(0, 0, 0, .45); }
.drawer h3 { font-size: 17px; }
.drawer .addr { font: 500 13px var(--data); word-break: break-all; color: var(--muted); }
.big { font: 500 30px var(--data); }
.holdings { display: grid; gap: 8px; }
.holdings a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); color: var(--moon); }
.holdings a:hover { text-decoration: none; border-color: var(--line-strong); }
.holdings .av { width: 34px; height: 34px; border-radius: 10px; }
.holdings b { margin-left: auto; font: 500 13px var(--data); }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--moon); color: var(--night); padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--glow); max-width: calc(100% - 36px); }

/* ---- docs ------------------------------------------------------------------------------------------------------------- */
.doc { padding-block: 50px 80px; max-width: 760px; }
.doc h1 { font: 400 clamp(30px, 4vw, 42px)/1.1 var(--display); letter-spacing: .03em; }
.doc h2 { margin-top: 38px; font-size: 21px; }
.doc p, .doc li { color: #c9cff0; font-size: 16px; line-height: 1.65; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.doc code { font: 500 13px var(--data); background: var(--well); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---- footer ---------------------------------------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--faint); font-size: 12.5px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
