:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  color: #f5f5fa;
  background: #111218;
  --ink: #f5f5fa;
  --muted: #b0b1c1;
  --cyan: #39dfd7;
  --line: #2f303d;
  --card: #1a1b25;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 68px)); margin-inline: auto; }
.bar { border-bottom: 1px solid #2b2b36; }
.bar-inner { min-height: 72px; display: flex; gap: 36px; align-items: center; }
.product { font-size: 1.95rem; font-weight: 750; letter-spacing: -.09em; text-decoration: none; }
.product span, h1 span { color: var(--cyan); }
nav, .bar-actions { display: flex; align-items: center; gap: 23px; }
nav a { font-size: .9rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.bar-actions { margin-left: auto; gap: 12px; }
.environment { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; color: #ccd0f2; font: .72rem var(--mono); }
.environment i, .proof-branches i { width: 6px; height: 6px; border-radius: 50%; background: #a6a6ff; }
.button { padding: 10px 15px; min-height: 41px; border-radius: 9px; border: 1px solid transparent; color: var(--ink); background: #272936; font-weight: 650; font-size: .88rem; }
.button:hover { background: #363849; }
.button:disabled { opacity: .52; cursor: default; }
.quiet { background: transparent; border-color: #40414f; }
.button:is(a) { display: inline-flex; align-items: center; text-decoration: none; }
.primary { color: #0f1822; background: var(--cyan); }
.primary:hover { background: #9beae5; }
.wide { width: 100%; margin-top: 15px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: center; gap: 36px;
  margin: 34px 0 50px; min-height: 348px; padding: clamp(30px, 5vw, 64px);
  border: 1px solid #3e3957; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 86% 26%, #322951 0%, transparent 63%), linear-gradient(115deg, #211d36, #191c2a 56%, #1a2634);
}
h1 { font-size: clamp(2.55rem, 5.5vw, 4.68rem); line-height: .98; letter-spacing: -.07em; font-weight: 680; }
.hero p { max-width: 410px; font-size: clamp(.96rem, 1.45vw, 1.08rem); line-height: 1.6; color: #cdcadf; margin: 19px 0 23px; }
.hero .button { padding-inline: 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 18px; }
.arrow { width: 9px; height: 9px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.proof-graphic { margin-inline: auto; width: min(100%, 330px); transform: rotate(-4deg); }
.proof-stub, .proof-node { display: flex; justify-content: space-between; align-items: center; }
.proof-stub { color: #b5b3da; border: 1px solid #77719f; border-bottom: 0; border-radius: 14px 14px 0 0; margin: 0 13px; padding: 10px 16px; background: #292541; font: .71rem var(--mono); }
.proof-node { border: 1px solid #706e98; border-radius: 14px; justify-content: flex-start; gap: 14px; padding: 18px; background: #28283f; box-shadow: 0 13px 35px #11142175; }
.node-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #214951; color: #98f2e7; }
.proof-node strong { font-size: 1.06rem; font-weight: 650; }
.proof-node small { margin-top: 4px; color: #b7b7d6; }
.proof-rail { height: 26px; width: 50%; margin: 0 auto; background: linear-gradient(#7778a4,#7778a4) center top/1px 53% no-repeat, linear-gradient(#7778a4,#7778a4) center/100% 1px no-repeat, linear-gradient(#7778a4,#7778a4) 0 100%/1px 50% no-repeat, linear-gradient(#7778a4,#7778a4) 100% 100%/1px 50% no-repeat; }
.proof-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.proof-branches span { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 8px; border: 1px solid #525571; border-radius: 8px; color: #dad8fa; background: #27293d; font: .75rem var(--mono); }
.proof-branches span:first-child i { background: var(--cyan); }
.proof-branches span:last-child i { background: #f1aeca; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
h2 { letter-spacing: -.04em; font-weight: 680; font-size: clamp(1.35rem, 2.7vw, 2rem); }
.section-head p, .muted, .market-intro, .footer p, dialog > p { color: var(--muted); line-height: 1.55; font-size: .9rem; }
.section-head p { margin-top: 5px; }
.filters { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.filter { color: var(--muted); padding: 6px 10px; background: transparent; border: 0; border-radius: 6px; font-size: .79rem; white-space: nowrap; }
.filter.active, .filter:hover { background: #323344; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.card, .panel { padding: 19px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.card { display: grid; align-content: start; gap: 14px; }
.card h3 { font-size: 1.16rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.card-top, .card-foot, .detail-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.card-foot { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.status, .seats { font: .72rem var(--mono); }
.status { display: inline-flex; padding: 5px 7px; border-radius: 5px; background: #2d2a40; color: #c9c4f6; white-space: nowrap; }
.status.yes, .status.open { background: #203b3c; color: #a7eae3; }
.status.no { background: #3f2b3b; color: #ffc5df; }
.seats { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split > span { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #242735; border-radius: 8px; color: #c8cbdd; font-size: .8rem; }
.split > span:first-child strong { color: #9af6e4; }
.split > span:last-child strong { color: #ffb8d0; }
.detail { margin: 33px 0 44px; }
.detail-top { justify-content: flex-start; flex-wrap: wrap; margin: 14px 0 9px; }
.detail h1 { font-size: clamp(2rem, 5vw, 3.8rem); overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 20px; gap: 14px; }
.detail-grid h2 { margin-bottom: 9px; font-size: 1.35rem; }
.detail-grid p { color: var(--muted); line-height: 1.55; }
.terms { margin: 10px 0 0; }
.terms > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--muted); font-size: .76rem; }
.terms dd { margin: 3px 0 0; overflow-wrap: anywhere; font: .78rem/1.45 var(--mono); }
.operation { margin-top: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.controls { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.notice, .inline-message { padding: 10px 12px; margin: 10px 0; border-radius: 8px; font-size: .88rem; background: #252a3e; color: #dde0fa; }
.error { background: #402638; color: #ffcae0; }
.notice { margin-top: 13px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 46px; padding-block: 13px 18px; }
.footer img { width: 112px; height: auto; }
.footer p { font-size: .76rem; text-align: right; }
dialog { width: min(495px, calc(100% - 24px)); max-height: min(90vh, 830px); color: var(--ink); background: var(--card); border: 1px solid #454659; border-radius: 15px; padding: 20px; overflow: auto; }
dialog::backdrop { background: #111218c9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.close { border: 0; border-radius: 7px; background: #303143; color: var(--ink); width: 32px; height: 32px; font-size: 1.3rem; }
label, legend { font-size: .86rem; font-weight: 650; margin: 0 0 5px; }
form > label, form > div > label { display: block; }
input:not([type="radio"]), select { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background: #14151f; border: 1px solid #434457; border-radius: 7px; }
fieldset { border: 0; padding: 0; margin: 14px 0 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.choices label { background: #262736; border: 1px solid #3c4052; border-radius: 8px; padding: 8px; cursor: pointer; }
input[type="radio"] { accent-color: var(--cyan); }
.wallet-list { display: grid; gap: 7px; margin: 13px 0; }
.wallet-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; }
.wallet-row .wallet-select { text-align: left; flex: 1; overflow-wrap: anywhere; }
.wallet-row .wallet-copy { flex: 0 0 auto; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 295px; gap: 25px; grid-template-columns: minmax(0, 1.1fr) minmax(220px, 1fr); }
  .bar-inner { gap: 20px; } nav { gap: 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 28px); } .bar-inner { min-height: 61px; } nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 23px; margin: 19px 0 29px; }
  .proof-graphic { display: none; } .desktop-break { display: none; }
  .cards, .detail-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail { margin-top: 20px; }
}
