/* holobiome.ai landing — layout, theme and components. Motion for the icons is in icons.css. */

:root {
  --bg: #f3f5fa;
  --bg2: #e9edf6;
  --surface: #ffffff;
  --surface2: #f6f8fc;
  --ink: #171f38;
  --ink2: #3a4566;
  --muted: #6a7492;
  --line: #e1e6f0;
  --line2: #cbd3e4;
  --brand: #283356;
  --brand2: #3d4d7d;
  --focus: #5b7cfa;
  --ok: #1f9d68;
  --warn: #c98a12;
  --bad: #d64545;
  --glow-a: .12;
  --shadow: 0 1px 2px rgba(23, 31, 56, .05), 0 10px 28px -14px rgba(23, 31, 56, .22);
  --shadow-hover: 0 2px 4px rgba(23, 31, 56, .06), 0 26px 48px -18px rgba(23, 31, 56, .32);
  --radius: 18px;
  --header-bg: rgba(243, 245, 250, .78);
  --blob1: rgba(40, 51, 86, .16);
  --blob2: rgba(91, 124, 250, .16);
  --blob3: rgba(31, 181, 160, .12);
  --pill-a: #65788f;
  --pill-m: #3f4e6e;
  --pill-b: #283356;
  --net-ink: #283356;
  --net-a: .07;
  --net-a-login: .14;
  --pulse: #5b7cfa;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d19;
    --bg2: #0d1324;
    --surface: #111a2e;
    --surface2: #16203a;
    --ink: #e8ecf7;
    --ink2: #c4cce1;
    --muted: #8b97b8;
    --line: #223050;
    --line2: #2e3d61;
    --brand: #4b5d92;
    --brand2: #6377b3;
    --ok: #3ccf8e;
    --warn: #f0b429;
    --bad: #ff7b7b;
    --glow-a: .26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 56px -18px rgba(0, 0, 0, .85);
    --header-bg: rgba(9, 13, 25, .72);
    --blob1: rgba(99, 119, 179, .22);
    --blob2: rgba(124, 108, 246, .22);
    --blob3: rgba(34, 184, 201, .16);
    --pill-a: #8ea1bd;
    --pill-m: #5a6b92;
    --pill-b: #34426b;
    --net-ink: #d3dcf0;
    --net-a: .17;
    --net-a-login: .26;
    --pulse: #a9bcff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090d19;
  --bg2: #0d1324;
  --surface: #111a2e;
  --surface2: #16203a;
  --ink: #e8ecf7;
  --ink2: #c4cce1;
  --muted: #8b97b8;
  --line: #223050;
  --line2: #2e3d61;
  --brand: #4b5d92;
  --brand2: #6377b3;
  --ok: #3ccf8e;
  --warn: #f0b429;
  --bad: #ff7b7b;
  --glow-a: .26;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 56px -18px rgba(0, 0, 0, .85);
  --header-bg: rgba(9, 13, 25, .72);
  --blob1: rgba(99, 119, 179, .22);
  --blob2: rgba(124, 108, 246, .22);
  --blob3: rgba(34, 184, 201, .16);
  --pill-a: #8ea1bd;
  --pill-m: #5a6b92;
  --pill-b: #34426b;
  --net-ink: #d3dcf0;
  --net-a: .17;
  --net-a-login: .26;
  --pulse: #a9bcff;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background-color .3s, color .3s;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd {
  font: 600 11px/1 Inter, system-ui, sans-serif;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ambient background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--bg2), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, var(--bg2), transparent 60%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: .45;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15) 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15) 60%, transparent);
}
.bg .hbnet {
  position: absolute; width: 78vw; min-width: 620px; right: -16vw; top: -10vw; aspect-ratio: 1095 / 806;
  color: var(--net-ink); stroke: currentColor; stroke-width: 1.3px; overflow: visible;
  animation: net-drift 60s ease-in-out infinite alternate;
}
.bg .hbnet .e { vector-effect: non-scaling-stroke; opacity: var(--net-a); }
.bg .hbnet .nodes { fill: currentColor; }
.bg .hbnet .n { fill: currentColor; opacity: var(--net-a); }
.bg .hbnet .gl { fill: currentColor; opacity: calc(var(--net-a) * .55); filter: blur(18px); }
.bg .hbnet .pulse { fill: var(--pulse); stroke: none; opacity: 0; }
.bg .hbnet .pulse.halo { filter: blur(10px); }
.bg .hbnet.two { width: 44vw; min-width: 360px; right: auto; left: -14vw; top: auto; bottom: -12vw; transform: scaleX(-1); animation-duration: 75s; animation-delay: -30s; }
.bg .hbnet.two .e, .bg .hbnet.two .n { opacity: calc(var(--net-a) * .75); }
body.login .bg .hbnet .e, body.login .bg .hbnet .n { opacity: var(--net-a-login); }
body.login .bg .hbnet .gl { opacity: calc(var(--net-a-login) * .6); }
body.login .bg .hbnet.two .e, body.login .bg .hbnet.two .n { opacity: calc(var(--net-a-login) * .8); }
body.login .bg .hbnet { stroke-width: 1.5px; }
@keyframes net-drift { to { translate: -2vw 2vw; } }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform;
  animation: blob-drift 32s ease-in-out infinite alternate;
}
.blob.b1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: var(--blob1); }
.blob.b2 { width: 48vw; height: 48vw; right: -14vw; top: 8vh; background: var(--blob2); animation-duration: 40s; animation-delay: -12s; }
.blob.b3 { width: 40vw; height: 40vw; left: 30vw; bottom: -24vw; background: var(--blob3); animation-duration: 36s; animation-delay: -20s; }
@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, 5vh) scale(.96); }
}

/* ---------- shell ---------- */
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-block: 12px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  flex: 0 0 auto;
}
.logo .mark { width: 58px; height: 29px; display: block; }
.hblogo { display: block; width: 100%; height: 100%; overflow: visible; }
.hblogo .pa { stop-color: var(--pill-a); }
.hblogo .pm { stop-color: var(--pill-m); }
.hblogo .pb { stop-color: var(--pill-b); }
.hblogo .net { stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hblogo .net .e { vector-effect: non-scaling-stroke; }
.ic-corporate .pa { stop-color: var(--pill-a); }
.ic-corporate .pm { stop-color: var(--pill-m); }
.ic-corporate .pb { stop-color: var(--pill-b); }
.ic-corporate .net .e { vector-effect: non-scaling-stroke; stroke-width: 1.4px; }
.logo .mark { filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--pill-b) 35%, transparent)); }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; }
.hbword { display: block; height: 20px; width: auto; overflow: visible; }
.hbword path { fill: currentColor; }
.tld {
  font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 9px;
  margin-left: 4px; white-space: nowrap;
}

.search {
  flex: 1 1 260px; max-width: 560px; min-width: 200px; margin-inline: auto;
  position: relative;
}
.search input {
  width: 100%; height: 42px; padding: 0 76px 0 40px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--surface);
  color: var(--ink); font-size: 14.5px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.search .sicon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search .shint { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; align-items: center; pointer-events: none; }
.search .sclear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--surface2); color: var(--muted); border-radius: 8px; width: 26px; height: 26px;
  cursor: pointer; display: none; align-items: center; justify-content: center;
}
.search.has-q .shint { display: none; }
.search.has-q .sclear { display: inline-flex; }

.controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink2);
  transition: border-color .2s, transform .2s, background .2s;
}
.iconbtn:hover { border-color: var(--focus); transform: translateY(-1px); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn .tsun, .iconbtn .tmoon, .iconbtn .tauto { display: none; }
.iconbtn[data-mode="light"] .tsun, .iconbtn[data-mode="dark"] .tmoon, .iconbtn[data-mode="auto"] .tauto { display: block; }
.userchip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-size: 13.5px; color: var(--ink2);
}
.userchip .avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--pill-a), var(--pill-b)); color: #fff; font: 600 11px/1 Poppins, Inter, sans-serif;
}
.userchip form { display: contents; }
.userchip button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; font-size: 13px;
}
.userchip button:hover { background: var(--surface2); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: 40px 8px; }
.hero h1 {
  font: 700 clamp(28px, 4vw, 40px)/1.1 Poppins, Inter, system-ui, sans-serif;
  letter-spacing: -.025em; margin: 0 0 10px;
}
.hero h1 .name { background: linear-gradient(90deg, var(--pill-a), var(--pill-b) 60%, var(--focus)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.hero p kbd { vertical-align: 1px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink2); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.jump a:hover { border-color: var(--gac); transform: translateY(-1px); box-shadow: 0 8px 20px -12px var(--gac); }
.jump .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gac) 22%, transparent); }
.jump .n { color: var(--muted); font-weight: 500; }

/* ---------- groups ---------- */
.group { padding-block: 34px 6px; scroll-margin-top: 90px; }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.group-head h2 {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 700 20px/1.2 Poppins, Inter, sans-serif; letter-spacing: -.02em;
}
.group-head h2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gac) 20%, transparent); }
.group-head .count {
  font: 600 12px/1 Inter, sans-serif; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 8px;
}
.group-head .lede { margin: 0; color: var(--muted); font-size: 14px; }
.group[hidden] { display: none; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s, opacity .4s, filter .4s;
  --mx: 50%; --my: 30%;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--ac) 85%, transparent), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:is(:hover, :focus-within, .kb) { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.card:is(:hover, :focus-within, .kb)::before { opacity: 1; }
.card.kb, .card:has(.card-link:focus-visible) { box-shadow: var(--shadow-hover), 0 0 0 3px color-mix(in srgb, var(--focus) 55%, transparent); }
.card.hidden { display: none; }

.card-link { display: block; padding: 20px 18px 10px; text-decoration: none; color: inherit; outline: none; flex: 1; }
.ic-wrap { position: relative; width: 92px; height: 92px; margin: 2px auto 14px; color: var(--ink2); isolation: isolate; }
.ic-wrap::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 42%, transparent), transparent);
  opacity: var(--glow-a); transform: scale(.85);
  transition: opacity .45s, transform .45s;
}
.card:is(:hover, :focus-within, .kb) .ic-wrap::before { opacity: calc(var(--glow-a) * 2.6); transform: scale(1.12); }
.card.launch .ic-wrap::before { opacity: .8; transform: scale(1.7); transition: opacity .3s, transform .5s ease-in; }
.card h3 { margin: 0 0 5px; font: 600 15.5px/1.25 Poppins, Inter, sans-serif; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.card h3 .ext { width: 12px; height: 12px; color: var(--muted); flex: 0 0 auto; }
.card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 18px 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 11px/1 Inter, sans-serif; padding: 5px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.s-active { color: var(--ok); }
.badge.s-dev { color: var(--focus); }
.badge.s-outdated { color: var(--warn); }
.badge.s-legacy { color: var(--muted); }
.chip {
  font: 600 11.5px/1 Inter, sans-serif; padding: 5px 9px; border-radius: 999px; text-decoration: none;
  background: var(--surface2); border: 1px solid var(--line); color: var(--ink2);
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--ac); color: var(--ac); transform: translateY(-1px); }

/* lock badge + credentials popover */
.lock-wrap { position: relative; display: inline-flex; }
.lock {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font: 600 11px/1 Inter, sans-serif; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface2);
  transition: border-color .2s, color .2s;
}
.lock svg { width: 11px; height: 11px; }
.lock-wrap:is(:hover, :focus-within, .open) .lock { border-color: var(--ac); color: var(--ac); }
.pop {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 25; min-width: 236px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98);
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .2s;
}
.lock-wrap:is(:hover, :focus-within, .open) .pop { opacity: 1; visibility: visible; transform: none; }
.pop .pt { font: 700 11px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pop .row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pop .row .k { flex: 0 0 34px; font-size: 11px; color: var(--muted); }
.pop .row code { flex: 1; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); user-select: all; }
.pop .row button {
  border: 1px solid var(--line); background: var(--surface2); color: var(--muted); border-radius: 7px;
  font: 600 10.5px/1 Inter, sans-serif; padding: 5px 7px; cursor: pointer;
}
.pop .row button:hover { border-color: var(--ac); color: var(--ac); }
.pop .row button.done { color: var(--ok); border-color: var(--ok); }
.pop .note { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35; }

/* ---------- attic ---------- */
.attic { padding-block: 34px 6px; }
.attic summary { list-style: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.attic summary::-webkit-details-marker { display: none; }
.attic summary h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 700 20px/1.2 Poppins, Inter, sans-serif; letter-spacing: -.02em; color: var(--muted); }
.attic summary h2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gac); opacity: .6; }
.attic summary .count { font: 600 12px/1 Inter, sans-serif; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 8px; }
.attic summary .lede { margin: 0; color: var(--muted); font-size: 14px; }
.attic summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .3s; align-self: center; }
.attic[open] summary .chev { transform: rotate(180deg); }
.attic .grid { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.attic .card { filter: grayscale(.85); opacity: .72; }
.attic .card:is(:hover, :focus-within, .kb) { filter: none; opacity: 1; }
.attic .ic-wrap { width: 72px; height: 72px; }
.attic .card-link { padding: 16px 16px 8px; }
.attic .card-meta { padding: 2px 16px 14px; }

/* ---------- empty / footer ---------- */
.empty { display: none; text-align: center; padding: 70px 0; color: var(--muted); }
.empty.show { display: block; }
.empty strong { color: var(--ink); }
footer { margin-top: 56px; padding-block: 26px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }

/* ---------- launch choreography ---------- */
.card.launch { transform: translateY(-6px) scale(1.04); z-index: 6; border-color: var(--ac); }
body.launching .card:not(.launch) { opacity: .4; transform: scale(.985); filter: saturate(.5); pointer-events: none; }
.curtain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), color-mix(in srgb, var(--ac, var(--brand)) 40%, var(--bg)), var(--bg) 70%);
  transition: opacity .38s ease-in;
}
.curtain.on { opacity: 1; }

/* ---------- login ---------- */
body.login { display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(430px, 100%);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-hover);
  animation: card-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; text-align: center; }
.login-logo .mark { width: 180px; height: 92px; display: block; filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--pill-b) 40%, transparent)); }
.hblogo-intro .net .e, .hblogo-intro .trace .e { vector-effect: none; }
.login-logo .hbword { height: 27px; }
.login-logo .sub { font-size: 13px; color: var(--muted); margin: 0; }
.login h1 { font: 700 22px/1.2 Poppins, Inter, sans-serif; letter-spacing: -.02em; margin: 0 0 18px; text-align: center; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font: 600 12px/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field .inwrap { position: relative; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.field .eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: inline-grid; place-items: center;
}
.field .eye:hover { background: var(--surface2); color: var(--ink); }
.field .eye svg { width: 17px; height: 17px; }
.remember { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink2); margin: 6px 0 18px; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--brand2); }
.btn {
  width: 100%; height: 48px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(100deg, var(--pill-a), var(--pill-m) 45%, var(--pill-b));
  color: #fff; font: 700 15px/1 Poppins, Inter, sans-serif; letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px var(--brand);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px var(--brand); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.alert {
  border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
  background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad);
  animation: shake-x .5s cubic-bezier(.36, .07, .19, .97) both;
}
.alert.info { border-color: color-mix(in srgb, var(--focus) 35%, transparent); background: color-mix(in srgb, var(--focus) 10%, transparent); color: var(--focus); animation: none; }
@keyframes shake-x { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.login .corner { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .topbar .wrap { gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .controls { margin-left: auto; }
  .tld { display: none; }
  .hbword { height: 18px; }
  .hero { padding-top: 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .ic-wrap { width: 76px; height: 76px; }
  .card-link { padding: 16px 14px 8px; }
  .card-meta { padding: 2px 14px 14px; }
  .userchip .uname { display: none; }
}

}
