/* Domenii Web — stil principal */
:root {
  --ink: #172036;
  --ink-2: #3c465c;
  --muted: #6b7489;
  --line: #dfe3ec;
  --line-2: #eceff5;
  --paper: #f4f6fa;
  --card: #ffffff;
  --cobalt: #2f5bea;
  --cobalt-d: #2448c4;
  --cobalt-soft: #e8eefe;
  --up: #1e9e6a;
  --up-soft: #e3f5ed;
  --down: #d8423b;
  --down-soft: #fdeceb;
  --amber: #c98a0b;
  --amber-soft: #fdf3dc;
  --orange: #e0661c;
  --orange-soft: #fdeee3;
  --violet: #7d55d6;
  --violet-soft: #f0ebfc;
  --teal: #0b9a95;
  --teal-soft: #e0f5f4;
  --grey: #8a94a6;
  --grey-soft: #eef0f4;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(23, 32, 54, .06), 0 4px 16px -8px rgba(23, 32, 54, .12);
  --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; max-height: 420px; overflow: auto; margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  font: 500 .92rem/1 var(--f-body); padding: 10px 16px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  background: var(--cobalt); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--cobalt-d); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--grey-soft); }
.btn-danger { background: var(--down); }
.btn-danger:hover { background: #b9332d; }
.btn-ok { background: var(--up); }
.btn-ok:hover { background: #178657; }
.btn-sm { padding: 7px 11px; font-size: .84rem; }
.btn-link { background: none; border: 0; color: var(--cobalt); padding: 0; cursor: pointer; font: inherit; }
.btn-link.danger { color: var(--down); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------- formulare ---------- */
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 5px; }
.field { margin-bottom: 16px; }
.field small, .help { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 11px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--cobalt); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: .88rem; border-right: 1px solid var(--line); }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--cobalt); outline-offset: -2px; }

/* ---------- mesaje ---------- */
.flash { padding: 11px 14px; border-radius: var(--radius-s); margin-bottom: 10px; font-size: .92rem; border-left: 4px solid; background: #fff; }
.flash-success { border-color: var(--up); background: var(--up-soft); }
.flash-error { border-color: var(--down); background: var(--down-soft); }
.flash-info { border-color: var(--cobalt); background: var(--cobalt-soft); }
.note { background: var(--amber-soft); border: 1px solid #f1dca8; padding: 12px 14px; border-radius: var(--radius-s); font-size: .9rem; }

/* ---------- badge-uri ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--grey-soft); color: var(--ink-2); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-up { background: var(--up-soft); color: #137a50; }
.st-down { background: var(--down-soft); color: #b3302a; }
.st-down .dot { animation: pulse 1.4s infinite; }
.st-pending { background: var(--amber-soft); color: #946405; }
.st-paused { background: var(--grey-soft); color: var(--muted); }
.ph-active { background: var(--up-soft); color: #137a50; }
.ph-expiring { background: var(--amber-soft); color: #946405; }
.ph-grace { background: var(--orange-soft); color: #b04d10; }
.ph-redemption { background: var(--violet-soft); color: #5f3bb8; }
.ph-pending { background: var(--down-soft); color: #b3302a; }
.ph-available { background: var(--teal-soft); color: #08736f; }
.ph-unknown, .ph-error { background: var(--grey-soft); color: var(--muted); }
.ph-error { color: var(--down); }
.tag { display: inline-block; font-size: .75rem; padding: 2px 7px; border-radius: 4px; background: var(--grey-soft); color: var(--ink-2); font-weight: 500; }
.tag-own { background: var(--cobalt-soft); color: var(--cobalt-d); }
.tag-watch { background: var(--teal-soft); color: #08736f; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .st-down .dot { animation: none; } }

/* ---------- layout aplicație ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9cfdd; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 1.1rem var(--f-head); padding: 2px 8px 18px; text-decoration: none !important; }
.brand svg { flex: none; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9cfdd; padding: 8px 10px; border-radius: var(--radius-s); font-size: .93rem; text-decoration: none; margin-bottom: 2px; }
.side nav a svg { width: 18px; height: 18px; opacity: .75; flex: none; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.active { background: rgba(255, 255, 255, .11); color: #fff; }
.side nav a.active svg { opacity: 1; }
.side .group { font-size: .78rem; color: #8590a8; margin: 18px 10px 6px; }
.side .count { margin-left: auto; font-size: .75rem; background: var(--down); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.side-foot .who { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .btn-link { color: #9aa5bd; font-size: .85rem; }
.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: .92rem; word-break: break-all; }
.crumb { font-size: .85rem; margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.maint-bar { background: var(--amber); color: #fff; text-align: center; padding: 6px; font-size: .86rem; font-weight: 500; }

/* ---------- panouri ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 1rem; }
.panel-b { padding: 18px; }
.panel-b.flush { padding: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols-3-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.cols > *, .cols-3-1 > * { min-width: 0; }

/* rânduri de cifre: separatoare verticale în loc de carduri identice */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.fig { padding: 16px 18px; border-right: 1px solid var(--line-2); }
.fig:last-child { border-right: 0; }
.fig .v { font: 700 1.6rem/1.1 var(--f-head); letter-spacing: -.02em; }
.fig .l { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.fig .v.up { color: var(--up); }
.fig .v.down { color: var(--down); }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #fafbfd; }
.t .name { font-weight: 600; color: var(--ink); }
.t .sub { display: block; color: var(--muted); font-size: .82rem; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t td.act { text-align: right; white-space: nowrap; }
.t input[type=checkbox] { accent-color: var(--cobalt); }
.days { font-weight: 600; }
.days.warn { color: var(--amber); }
.days.bad { color: var(--down); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.toolbar input[type=search] { max-width: 260px; }
.toolbar select { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .84rem; text-decoration: none !important; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { font-weight: 600; margin-left: 3px; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); }
.pager { display: flex; gap: 4px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager a, .pager strong, .pager span { padding: 5px 10px; border-radius: 5px; font-size: .88rem; }
.pager strong { background: var(--ink); color: #fff; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 9px 16px; font-size: .93rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- bare uptime (heartbeat) ---------- */
.beats { display: flex; gap: 2px; align-items: stretch; height: 34px; }
.beats i { flex: 1; border-radius: 2px; background: var(--up); min-width: 2px; position: relative; }
.beats i.warn { background: var(--amber); }
.beats i.bad { background: var(--down); }
.beats i.nodata { background: var(--line); }
.beats i:hover { filter: brightness(.85); }
.beats-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.mini-beats { display: flex; gap: 1px; height: 18px; width: 120px; }
.mini-beats i { flex: 1; border-radius: 1px; background: var(--up); }
.mini-beats i.down { background: var(--down); }
.mini-beats i.nodata { background: var(--line); }

/* ---------- ciclul de viață al domeniului (elementul semnătură) ---------- */
.ribbon { display: grid; grid-template-columns: var(--cols, 3fr 1.3fr 1.3fr .6fr 1fr); border-radius: var(--radius-s); overflow: hidden; position: relative; }
.ribbon > div { padding: 12px 12px 10px; font-size: .82rem; color: #fff; min-width: 0; }
.ribbon b { display: block; font: 650 .92rem var(--f-head); }
.ribbon span { opacity: .9; }
.rb-active { background: var(--up); }
.rb-grace { background: var(--orange); }
.rb-redemption { background: var(--violet); }
.rb-pending { background: var(--down); }
.rb-free { background: var(--teal); }
.ribbon > div.dim { filter: saturate(.25) brightness(1.25); }
.ribbon > div.here { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28); }
.ribbon-dates { display: grid; grid-template-columns: var(--cols, 3fr 1.3fr 1.3fr .6fr 1fr); font-size: .78rem; color: var(--muted); margin-top: 6px; }
.ribbon-dates span { padding-left: 2px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: .8rem; }

.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 190px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--cobalt); }
.status-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- autentificare ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.auth-card .brand { color: var(--ink); padding: 0 0 18px; }
.auth-card h1 { font-size: 1.45rem; }
.auth-links { margin-top: 18px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- pagini publice ---------- */
.pub { background: #fff; }
.pub-nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 18px 24px; }
.pub-nav .brand { color: var(--ink); padding: 0; }
.pub-nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.pub-nav .links a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.hero { max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; margin-bottom: 26px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn { padding: 13px 20px; font-size: 1rem; }
.lookup { background: var(--ink); color: #dbe0ea; border-radius: 16px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(23, 32, 54, .55); }
.lookup h2 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.lookup p.muted { color: #9aa5bd; font-size: .9rem; }
.lookup form { display: flex; gap: 8px; margin: 14px 0 0; }
.lookup input { background: #212c45; border-color: #33405e; color: #fff; font-size: 1.02rem; }
.lookup input::placeholder { color: #7d88a3; }
.lookup input:focus { border-color: #6d8cff; box-shadow: 0 0 0 3px rgba(109, 140, 255, .25); }
.lk-res { margin-top: 18px; border-top: 1px solid #2d3954; padding-top: 16px; }
.lk-res .dom { font: 650 1.3rem var(--f-head); color: #fff; word-break: break-all; }
.lk-res dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: .9rem; margin: 14px 0; }
.lk-res dt { color: #8f9ab3; }
.lk-res dd { margin: 0; color: #fff; word-break: break-word; }
.lk-res .err { color: #ffb4ae; }
.lk-res .btn { margin-top: 4px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-in { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.band-in > h2 { font-size: 1.9rem; max-width: 22em; letter-spacing: -.02em; }
.band-in > p.lead { color: var(--ink-2); max-width: 46em; font-size: 1.04rem; margin-bottom: 28px; }
.life { display: grid; grid-template-columns: 3fr 1.3fr 1.3fr .7fr 1fr; gap: 0; border-radius: 12px; overflow: hidden; }
.life > div { padding: 18px 16px 20px; color: #fff; min-width: 0; }
.life .n { font: 700 2rem/1 var(--f-head); letter-spacing: -.03em; display: block; margin-bottom: 8px; }
.life h3 { font-size: 1rem; margin: 0 0 6px; }
.life p { font-size: .86rem; margin: 0; opacity: .92; }
.split { max-width: 1180px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.split ul { padding: 0; margin: 18px 0 0; list-style: none; }
.split li { padding: 12px 0; border-top: 1px solid var(--line); }
.split li b { display: block; font-weight: 600; }
.split li span { color: var(--muted); font-size: .93rem; }
.demo-beats { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.demo-beats .row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.closing { max-width: 1180px; margin: 0 auto; padding: 60px 24px 70px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: 1.8rem; margin: 0; letter-spacing: -.02em; }
.pub-foot { border-top: 1px solid var(--line); }
.pub-foot div { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: .86rem; flex-wrap: wrap; gap: 10px; }

/* status page public */
.sp { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.sp-banner { padding: 20px 22px; border-radius: 12px; color: #fff; font: 650 1.15rem var(--f-head); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.sp-banner.ok { background: var(--up); }
.sp-banner.bad { background: var(--down); }
.sp-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sp-item .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }

/* tooltip */
[data-tip] { position: relative; }
.tip { position: fixed; z-index: 50; background: var(--ink); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 5px; pointer-events: none; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cols, .cols-3-1 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 15, 30, .45); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; font-size: 1rem; }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .page { padding: 20px 16px 50px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .pub-nav .links a.hide-m { display: none; }
  .life, .ribbon, .ribbon-dates { grid-template-columns: 1fr; }
  .ribbon-dates { display: none; }
  .fig { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .t .hide-m, .t th.hide-m { display: none; }
}
@media (max-width: 520px) {
  .lookup form { flex-direction: column; }
  .lk-res dl { grid-template-columns: 1fr; }
  .page-head .btn-row { width: 100%; }
}

/* completări */
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm svg { width: 14px; height: 14px; }
.panel-h .btn-row { gap: 6px; }
.sect { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }
.sect:first-child { margin-top: 0; }
.actions-bar { display: flex; gap: 8px; align-items: center; padding: 10px 18px; background: var(--cobalt-soft); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; font-size: .9rem; }
.actions-bar select { width: auto; }
.code-box { background: var(--ink); color: #e7ebf3; padding: 12px 14px; border-radius: var(--radius-s); font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.log-box { max-height: 460px; overflow: auto; background: #0f1628; color: #cfd6e4; padding: 12px 14px; border-radius: var(--radius-s); font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.ok-txt { color: var(--up); font-weight: 600; }
.bad-txt { color: var(--down); font-weight: 600; }
.file-list { max-height: 260px; overflow: auto; font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 8px 12px; margin: 0; list-style: none; }
.changelog { margin: 0; padding-left: 18px; }
.changelog li { margin-bottom: 4px; }

/* ================= landing v1.1 ================= */
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #0d1424; }
.hero2 { max-width: 1180px; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.show-xs { display: none; }
.demo-row > div { min-width: 0; }
.demo-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row .badge { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--cobalt-d); background: var(--cobalt-soft); padding: 5px 12px 5px 10px; border-radius: 99px; margin: 0 0 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(30, 158, 106, .6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(30, 158, 106, .55); } 70% { box-shadow: 0 0 0 9px rgba(30, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 106, 0); } }
.hero2 h1 { font-size: clamp(2.05rem, 3.8vw, 3.1rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.06; margin: 0 0 18px; }
.rot { display: block; min-height: 1.1em; white-space: nowrap; background: linear-gradient(92deg, var(--cobalt) 0%, #6a4fe0 60%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .32s ease, transform .32s ease, filter .32s ease; }
.rot.out { opacity: 0; transform: translateY(-.25em); filter: blur(3px); }
.rot.pre { opacity: 0; transform: translateY(.3em); transition: none; }
.hero2 .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 32em; margin: 0 0 24px; }
.hero2 .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero2 .cta .btn { padding: 12px 18px; }

.lk2-field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; box-shadow: 0 12px 30px -18px rgba(23, 32, 54, .35); transition: border-color .15s, box-shadow .15s; }
.lk2-field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(47, 91, 234, .14), 0 12px 30px -18px rgba(23, 32, 54, .35); }
.lk2-field svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.lk2-field input { border: 0 !important; box-shadow: none !important; padding: 10px 4px; font-size: 1.04rem; background: transparent; min-width: 0; }
.lk2-field .btn { padding: 11px 18px; border-radius: 8px; }
.lk2-hint { font-size: .84rem; color: var(--muted); margin: 8px 2px 0; }
.lk2-out .lk-res { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); animation: rise .35s ease; }
.lk2-out .lk-res .dom { color: var(--ink); }
.lk2-out .lk-res dt { color: var(--muted); }
.lk2-out .lk-res dd { color: var(--ink); }
.lk2-out .lk-res .err { color: var(--down); margin: 0; }
.lk2-out .spin { border-color: rgba(47, 91, 234, .25); border-top-color: var(--cobalt); vertical-align: -3px; margin-right: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* demo live */
.hero2-demo { position: relative; }
.hero2-demo::before { content: ""; position: absolute; inset: -30px -20px; background: radial-gradient(closest-side, rgba(47, 91, 234, .16), transparent 70%), radial-gradient(closest-side at 80% 85%, rgba(11, 154, 149, .14), transparent 70%); z-index: -1; filter: blur(8px); }
.demo { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(23, 32, 54, .45), 0 2px 6px rgba(23, 32, 54, .05); overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .5s ease; }
.demo:hover { transform: none; }
.demo-top { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: #fafbfd; }
.demo-top i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ee; }
.demo-top span { margin-left: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.demo-body { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.demo-mon, .demo-dom, .hero2-demo { min-width: 0; }
.demo-mon, .demo-dom { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-row b { display: block; font-size: .98rem; }
.demo-row small { color: var(--muted); font-size: .8rem; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.demo-metrics span { font: 700 1.25rem/1.1 var(--f-head); letter-spacing: -.02em; display: block; transition: color .3s; }
.demo-metrics small { color: var(--muted); font-size: .76rem; }
.demo-metrics .bad { color: var(--down); }
.spark { width: 100%; height: 54px; display: block; margin: 4px 0 8px; }
.spark-l { fill: none; stroke: var(--cobalt); stroke-width: 2; vector-effect: non-scaling-stroke; transition: d .9s ease; }
.spark-a { fill: rgba(47, 91, 234, .09); stroke: none; transition: d .9s ease; }
.demo-beats-row { height: 26px; overflow: hidden; }
.demo-beats-row i { transition: background .3s; }
.demo-beats-row i.new { animation: beatin .5s ease; }
@keyframes beatin { from { transform: scaleY(.2); opacity: .2; } to { transform: none; opacity: 1; } }
.mini-life { display: grid; grid-template-columns: 2fr 3fr 1fr; height: 10px; border-radius: 99px; overflow: hidden; margin: 14px 0 10px; }
.ml-a { background: var(--up); opacity: .3; }
.ml-p { background: var(--down); position: relative; }
.ml-f { background: var(--teal); opacity: .35; }
.ml-mark { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); left: 78%; animation: markmove 6s ease-in-out infinite alternate; }
@keyframes markmove { from { left: 70%; } to { left: 86%; } }
.demo-count { font-size: .88rem; color: var(--ink-2); }
.demo-count b { font-variant-numeric: tabular-nums; color: var(--down); }
.toast { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.toast b { display: block; font-size: .9rem; }
.toast small { color: #aab3c8; font-size: .8rem; }
.toast-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--down) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center/18px no-repeat; }
.toast.ok .toast-ic { background-color: var(--up); }

.numbers { max-width: 1180px; margin: 0 auto 8px; padding: 0 24px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.numbers div { border-top: 2px solid var(--ink); padding-top: 12px; }
.numbers b { display: block; font: 750 2rem/1.1 var(--f-head); letter-spacing: -.03em; }
.numbers span { color: var(--muted); font-size: .92rem; }

.life-anim { position: relative; }
.life-marker { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 32, 54, .2), 0 0 18px rgba(255, 255, 255, .9); left: 0; opacity: 0; }
.life-anim.in .life-marker { animation: lifeRun 7s cubic-bezier(.45, 0, .2, 1) .4s infinite; }
@keyframes lifeRun { 0% { left: 2%; opacity: 0; } 6% { opacity: 1; } 90% { left: 97%; opacity: 1; } 100% { left: 97%; opacity: 0; } }
.life-ro { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--down); border-radius: 8px; padding: 10px 14px; max-width: 46em; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero2 { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 28px; }
  .hero2-copy { display: contents; }
  .hero2 .eyebrow { align-self: flex-start; }
  .hero2-demo { order: 5; margin: 26px 0 4px; }
  .hero2 .cta { order: 6; }
  .demo { transform: none; }
}
@media (max-width: 560px) {
  .hero2 { padding: 20px 16px 40px; }
  .hero2 h1 { font-size: clamp(1.7rem, 8.2vw, 2.4rem); }
  .hero2 .lead { font-size: 1rem; }
  .lk2-field { padding-left: 10px; }
  .lk2-field svg { display: none; }
  .lk2-field .btn { padding: 11px 14px; }
  .numbers { grid-template-columns: 1fr; gap: 12px; }
  .numbers b { font-size: 1.6rem; }
  .demo-body { padding: 12px; }
  .pub-nav { padding: 14px 16px; gap: 10px; }
  .pub-nav .brand { font-size: 1rem; white-space: nowrap; gap: 8px; }
  .pub-nav .brand svg { width: 26px; height: 26px; }
  .pub-nav .links { gap: 12px; font-size: .92rem; }
  .pub-nav .links .btn { padding: 9px 12px; font-size: .86rem; }
  .eyebrow { font-size: .8rem; }
  .hide-xs { display: none !important; }
  .show-xs { display: inline; }
  .pub-nav .brand { font-size: .95rem; }
  .demo-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero2 .cta .btn { flex: 1 1 auto; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rot, .toast, .demo { transition: none; }
  .live-dot, .ml-mark, .life-anim.in .life-marker { animation: none; }
}
details.prefs > summary { cursor: pointer; list-style: none; flex-wrap: wrap; }
details.prefs > summary::-webkit-details-marker { display: none; }
details.prefs > summary h2::before { content: "▸ "; color: var(--muted); }
details.prefs[open] > summary h2::before { content: "▾ "; }
details.prefs:not([open]) > summary { border-bottom: 0; }
