/* Concept: the MLBB draft screen at night. Ink-blue board, Mythic-gold accent,
   enemy red / ally blue only where a team is meant. One committed dark look. */
:root {
  --ink: #0b1020;
  --panel: #121a2f;
  --panel-2: #18223d;
  --line: #26314f;
  --text: #e9edf7;
  --muted: #9ba7c6;
  --gold: #e9b44c;
  --gold-soft: #f3d28d;
  --gold-ink: #1d1505;
  --enemy: #e86a5a;
  --ally: #5a95ea;
  --good: #4cc391;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-soft); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: var(--gutter); }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(11, 16, 32, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { font: 700 18px/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
/* language switcher: a segmented control, always on the brand's row */
.langs { order: 3; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.langs .globe { padding: 0 2px 0 7px; font-size: 14px; line-height: 1; }
.langs a { font: 600 13.5px/1 var(--body); padding: 8px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.langs a:hover { color: var(--text); }
.langs a.on { background: var(--gold); color: var(--gold-ink); }
.langs .short { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel-2); cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold-soft); color: var(--gold-ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(32px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; margin: 0 0 18px; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* the pick phase replay: enemy slots fill in, the countdown runs, the answer follows */
.board { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); display: grid; gap: 14px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.board-head b { color: var(--text); font-weight: 600; }
.clock { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.clock svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 4; }
.clock .track { stroke: var(--panel-2); }
.clock .run { stroke: var(--gold); stroke-dasharray: 100; stroke-linecap: round; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot { min-height: 54px; display: grid; place-items: center; padding: 6px 4px; border-radius: 12px; border: 1px dashed var(--line);
  font-size: 13px; font-weight: 600; text-align: center; overflow-wrap: anywhere; color: var(--text); }
.slot.on { border: 1px solid var(--enemy); background: rgba(232, 106, 90, 0.14); }
.answer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lbl nm pct" "why why why"; align-items: baseline;
  gap: 2px 12px; padding: 14px 16px; border-radius: 16px; background: var(--gold); color: var(--gold-ink); min-height: 82px; }
.answer .lbl { grid-area: lbl; font-size: 14px; font-weight: 600; opacity: 0.8; }
.answer .nm { grid-area: nm; font: 700 clamp(20px, 2.4vw, 26px)/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer .pct { grid-area: pct; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.answer .why { grid-area: why; font-size: 14px; }
.answer.wait { background: var(--panel-2); color: var(--muted); }
.answer.wait .nm { font: 500 15px/1.3 var(--body); white-space: normal; }
.also { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.replay { justify-self: start; border: 0; background: none; color: var(--muted); font: 500 14px/1 var(--body); padding: 4px 0; cursor: pointer; }
.replay:hover { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .slot.landed { animation: lock 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  .answer.flash { animation: flash 0.5s ease-out; }
  .clock .run { transition: stroke-dashoffset 0.9s ease; }
}
@keyframes lock { from { transform: scale(0.82); box-shadow: 0 0 0 6px rgba(232, 106, 90, 0.35); } to { transform: none; box-shadow: none; } }
@keyframes flash { from { filter: brightness(1.35); transform: translateY(3px); } to { filter: none; transform: none; } }

/* the 30-second timeline: a real sequence, so the timestamps carry the order */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line)); }
.timeline li { position: relative; padding: 38px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.timeline time { display: block; font: 700 20px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; max-width: 24ch; }

/* four ways to ask, each shown as the real thing */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.way h3 { margin: 18px 0 6px; }
.way > p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.replica { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; font-size: 14px; min-height: 170px; align-content: center; }
.replica p, .replica ul { margin: 0; }
.chat .me { justify-self: end; background: #2b5278; color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.chat .bot { justify-self: start; background: var(--panel-2); padding: 10px 12px; border-radius: 14px 14px 14px 4px; max-width: 92%; }
.chat .bot span { color: var(--muted); font-size: 13px; }
.inline ul { list-style: none; padding: 0; border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.inline li { display: grid; gap: 1px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.inline li:last-child { border-bottom: 0; }
.inline li span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline .field { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile-grid span { min-height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); font-size: 13px; text-align: center; padding: 4px; overflow-wrap: anywhere; }
.tile-grid .enemy { border: 1px solid var(--enemy); background: rgba(232, 106, 90, 0.14); font-weight: 600; }
.mini-answer { background: var(--gold); color: var(--gold-ink); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: baseline; }
.mini-answer b { font: 700 17px/1 var(--display); flex: 1; }
.pinned .pin { padding: 8px 12px; border-left: 3px solid var(--ally); background: var(--panel-2); border-radius: 4px 10px 10px 4px; font-weight: 600; }
.pinned ul { list-style: none; padding: 0 4px; display: grid; gap: 4px; }
.bans .pin { padding: 8px 12px; border-left: 3px solid var(--enemy); background: var(--panel-2); border-radius: 4px 10px 10px 4px; font-weight: 600; }
.bans ol { padding: 0 4px 0 24px; display: grid; gap: 6px; }
.bans li span { color: var(--muted); font-size: 13px; }
.meta-card .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.meta-card .head b { font: 700 18px/1.1 var(--display); }
.meta-card .tier { background: var(--gold); color: var(--gold-ink); border-radius: 6px; padding: 2px 7px; font-weight: 700; font-size: 12px; }
.meta-card .head span:last-child, .meta-card .stats, .meta-card .weak { color: var(--muted); font-size: 13px; }
.meta-card ul { list-style: none; padding: 0; display: grid; gap: 4px; }

/* sections */
section.band { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.data { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
.data p { color: var(--muted); margin: 0; max-width: 40em; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price.main { border-color: rgba(233, 180, 76, 0.55); }
.price .amount { font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.price p { margin: 0; color: var(--muted); }
.price ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text); }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
details { border-top: 1px solid var(--line); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

/* forms and account */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"] { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--text);
  font: 500 16px/1 var(--body); flex: 1 1 200px; letter-spacing: 0.06em; text-transform: uppercase; }
.status { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); }
.status.ok { border-left: 3px solid var(--good); }
.status.off { border-left: 3px solid var(--muted); }
.flash { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
main.page { padding-block: clamp(32px, 6vw, 72px); min-height: 60vh; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: #cfd6e8; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 18px 28px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .data { grid-template-columns: 1fr; }
  .prices, .ways { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--line)); }
  .timeline li { padding: 0 0 0 30px; }
  .timeline li::before { top: 4px; }
  .timeline p { max-width: none; }
  .langs { order: 2; margin-left: auto; }
  .nav { order: 3; margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .top .wrap { gap: 10px 14px; }
  .langs .full { display: none; }
  .langs .short { display: inline; }
}

/* free tier and account extras */
.price .trial { color: var(--good); font-weight: 600; }
.price .per-day { margin-top: -6px; color: var(--muted); font-size: 14px; }
input.copy { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }

