:root {
    --bg: #080a12;
    --surface: rgba(17, 20, 33, .86);
    --surface-2: #121624;
    --line: rgba(255, 255, 255, .09);
    --text: #f5f6ff;
    --muted: #939aaf;
    --purple: #9b6cff;
    --purple-2: #7447e8;
    --cyan: #55d8ff;
    --green: #51e6a2;
    --danger: #ff6685;
    --shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px), var(--bg);
    background-size: 44px 44px;
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
}

button, input { font: inherit; }
a { color: inherit; }
.ambient { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(100px); opacity: .14; pointer-events: none; z-index: -1; }
.ambient-one { background: var(--purple); top: -20rem; left: 8%; }
.ambient-two { background: var(--cyan); right: -25rem; bottom: -15rem; opacity: .08; }

.site-header, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font: 700 22px/1 "Space Grotesk", sans-serif; text-decoration: none; letter-spacing: -.7px; }
.brand > span:last-child > span { color: var(--purple); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; background: linear-gradient(145deg, var(--purple), #5b32c5); border-radius: 8px; transform: rotate(45deg); box-shadow: 0 0 24px rgba(155,108,255,.28); }
.brand-mark span { width: 12px; height: 12px; border: 3px solid white; border-left: 0; border-bottom: 0; }
nav { display: flex; gap: 8px; }
nav a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 9px; }
nav a:hover, nav a.active { color: white; background: rgba(255,255,255,.055); }

main { width: min(1060px, calc(100% - 40px)); min-height: calc(100vh - 164px); margin: 0 auto; }
.hero { min-height: 670px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b6a0eb; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; }
.eyebrow span { width: 7px; height: 7px; background: var(--purple); box-shadow: 0 0 12px var(--purple); transform: rotate(45deg); }
h1 { margin: 18px 0 15px; font: 700 clamp(44px, 7.6vw, 78px)/.98 "Space Grotesk", sans-serif; letter-spacing: -4px; }
h1 em { color: transparent; background: linear-gradient(100deg, #a87bff, #72ddff); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.hero > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.lookup { width: min(650px, 100%); margin-top: 43px; text-align: left; }
.lookup label { display: block; margin: 0 0 9px 4px; color: #bcc1d2; font-size: 12px; font-weight: 700; }
.input-row { display: flex; align-items: center; padding: 7px; background: rgba(17,20,33,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025); transition: border-color .2s, box-shadow .2s; }
.input-row:focus-within { border-color: rgba(155,108,255,.62); box-shadow: 0 0 0 4px rgba(155,108,255,.09), var(--shadow); }
.hash { padding-left: 13px; color: var(--purple); font: 700 21px "Space Grotesk"; }
.input-row input { min-width: 0; flex: 1; height: 48px; padding: 0 12px; color: white; background: transparent; border: 0; outline: 0; font: 700 16px "Space Grotesk"; text-transform: uppercase; letter-spacing: 1px; }
.input-row input::placeholder { color: #5d6378; text-transform: none; font-family: Inter; font-weight: 500; letter-spacing: 0; }
.input-row button, .primary, .secondary { border: 0; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .16s, background .16s; }
.input-row button, .primary { padding: 15px 19px; color: white; background: linear-gradient(135deg, var(--purple), var(--purple-2)); box-shadow: 0 8px 24px rgba(116,71,232,.23); }
.input-row button:hover, .primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.notice { width: min(650px, 100%); margin-top: 15px; display: flex; gap: 12px; align-items: center; padding: 13px 16px; text-align: left; border-radius: 11px; }
.notice.error { color: #ffc0cd; background: rgba(255,102,133,.08); border: 1px solid rgba(255,102,133,.2); }
.notice > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,102,133,.16); font-weight: 800; }
.notice p { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; }
.notice strong { color: #fff0f3; }
.trust-row { display: flex; gap: 25px; margin-top: 28px; color: #70778d; font-size: 11px; font-weight: 600; }
.trust-row span, .chat-footer span { display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot.green { background: var(--green); box-shadow: 0 0 7px var(--green); }
.dot.purple { background: var(--purple); }.dot.blue { background: var(--cyan); }

.log-shell { padding: 58px 0 90px; }
.back-link { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: white; }
.log-heading { margin: 28px 0 26px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.log-heading h1 { margin: 12px 0 10px; font-size: clamp(36px, 5vw, 55px); letter-spacing: -2.7px; }
.log-heading p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.server-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.divider { margin: 0 8px; color: #44495a; }
.actions { display: flex; gap: 8px; }
.primary, .secondary { min-height: 42px; padding: 0 15px; }
.secondary { color: #ccd0df; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.secondary:hover { color: white; background: rgba(255,255,255,.1); }
.chat-card { overflow: hidden; background: rgba(12,15,25,.91); border: 1px solid rgba(255,255,255,.11); border-radius: 15px; box-shadow: var(--shadow); }
.chat-toolbar { min-height: 56px; display: grid; grid-template-columns: 1fr minmax(200px, 360px) 1fr; align-items: center; gap: 15px; padding: 9px 17px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #34394a; }.window-dots i:first-child { background: #754dc6; }
.message-search { display: flex; align-items: center; gap: 7px; padding: 0 11px; color: #686f84; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 8px; }
.message-search input { width: 100%; height: 34px; color: white; background: transparent; border: 0; outline: 0; font-size: 12px; }
.message-search input::placeholder { color: #666d81; }
.server-label { justify-self: end; color: #71788c; font: 700 10px "Space Grotesk"; letter-spacing: .8px; text-transform: uppercase; }
.messages { max-height: 560px; min-height: 260px; overflow: auto; padding: 13px 0; scrollbar-color: #34394a transparent; }
.message { display: grid; grid-template-columns: 38px auto 1fr; gap: 11px; min-height: 39px; align-items: start; padding: 8px 20px 8px 10px; font: 500 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; border-left: 2px solid transparent; transition: background .15s; }
.message:hover { background: rgba(255,255,255,.025); border-left-color: rgba(155,108,255,.6); }
.line-number { color: #353a4c; text-align: right; user-select: none; }
.message time { padding-top: 1px; color: #565d72; font-size: 11px; white-space: nowrap; }
.message-body { min-width: 0; overflow-wrap: anywhere; }
.player { margin-right: 8px; color: #b58cff; font-weight: 800; }
.player::after { content: ':'; color: #697085; }
.message-text { color: #cbd0df; }
.message-text a { color: var(--cyan); text-underline-offset: 3px; }
.type-system .message-text { color: #9a83d3; font-style: italic; }
.empty-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #656c80; font-size: 12px; }
.empty-state strong { color: #b9becc; font-size: 14px; }
.chat-footer { display: flex; justify-content: space-between; padding: 12px 18px; color: #565d70; background: rgba(255,255,255,.02); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.privacy-note { display: flex; gap: 12px; align-items: center; margin: 17px 6px; color: #686f83; font-size: 11px; }
.privacy-note > span { color: var(--purple); font-size: 22px; }.privacy-note p { margin: 0; display: flex; flex-direction: column; gap: 2px; }.privacy-note strong { color: #9da3b4; }

footer { height: 82px; display: flex; align-items: center; justify-content: space-between; color: #4d5364; border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; padding: 11px 16px; color: white; background: #24283a; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
    .site-header, footer, main { width: min(100% - 28px, 1060px); }
    nav a:not(.active) { display: none; }
    .hero { min-height: 620px; }
    h1 { letter-spacing: -2.5px; }
    .input-row { align-items: stretch; flex-wrap: wrap; }
    .hash { align-self: center; }.input-row input { width: calc(100% - 40px); }.input-row button { width: 100%; }
    .trust-row { flex-direction: column; gap: 9px; align-items: center; }
    .log-heading { align-items: flex-start; flex-direction: column; }
    .actions { width: 100%; }.actions button { flex: 1; }
    .chat-toolbar { grid-template-columns: auto 1fr; }.server-label { display: none; }
    .message { grid-template-columns: 28px 1fr; gap: 9px; padding-right: 12px; }
    .message time { display: none; }
    footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
