:root {
  --bg: #060608;
  --bg-2: #0a0a0e;
  --card: #0d0d11;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #f4f4f6;
  --muted: #96969f;
  --dim: #5c5c66;
  --accent: #ff2d87;
  --accent-2: #ff5ea6;
  --glow: rgba(255,45,135,.5);
  --grid-line: rgba(255,255,255,.025);
  --nav-bg: rgba(6,6,8,.65);
  --grad-from: #ffffff;
  --ghost-bg: rgba(255,255,255,.03);
  --ghost-bg-h: rgba(255,255,255,.07);
  --chip-bg: rgba(255,255,255,.03);
  --bar-bg: rgba(255,255,255,.07);
  --frame-fill: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  --demo-ring: rgba(255,255,255,.14);
  --ok: #3ddc84;
  --shot-shadow: 0 60px 120px -40px rgba(0,0,0,.9);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --card: #ffffff;
  --line: rgba(0,0,0,.08);
  --line-2: rgba(0,0,0,.15);
  --ink: #111114;
  --muted: #5c5c66;
  --dim: #9a9aa3;
  --glow: rgba(255,45,135,.35);
  --grid-line: rgba(0,0,0,.035);
  --nav-bg: rgba(255,255,255,.72);
  --grad-from: #111114;
  --ghost-bg: rgba(0,0,0,.03);
  --ghost-bg-h: rgba(0,0,0,.06);
  --chip-bg: rgba(255,255,255,.7);
  --bar-bg: rgba(0,0,0,.08);
  --frame-fill: #ffffff;
  --demo-ring: rgba(0,0,0,.1);
  --ok: #0a9d57;
  --shot-shadow: 0 40px 90px -30px rgba(0,0,0,.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* class-based display rules below would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6; overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- grid backdrop ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; color: var(--ink);
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 0 22px rgba(255,45,135,.35); }
.btn-accent:hover { background: #ff4394; box-shadow: 0 0 34px rgba(255,45,135,.55); }
.btn-ghost { border-color: var(--line-2); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--dim); background: var(--ghost-bg-h); }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 10px; }
.btn svg { width: 17px; height: 17px; flex: none; }

.theme-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--ghost-bg);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.theme-btn:hover { color: var(--ink); border-color: var(--dim); background: var(--ghost-bg-h); }
.theme-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:root[data-theme="light"] .brand img { filter: invert(1); }
:root[data-theme="light"] .switcher { box-shadow: 0 12px 36px -8px rgba(0,0,0,.18); border: 1px solid #ececec; }
:root[data-theme="light"] .term { box-shadow: 0 16px 40px -12px rgba(0,0,0,.25); }
:root[data-theme="light"] .community-box .bird {
  filter: invert(1) drop-shadow(0 0 18px rgba(255,45,135,.45));
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; text-align: center; }
#pixels { position: absolute; inset: 0; z-index: -1; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,45,135,.13), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); background: var(--chip-bg);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 32px;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none;
  box-shadow: 0 0 10px var(--glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 6px var(--glow);} 50% { box-shadow: 0 0 16px var(--glow);} }
h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
  margin-bottom: 28px;
}
h1 .grad {
  background: linear-gradient(100deg, var(--grad-from) 10%, var(--accent-2) 55%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 auto 42px; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; margin-bottom: 76px; }

.shot-frame {
  position: relative; border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--frame-fill);
  padding: 8px;
}
.shot-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; z-index: -1;
  background: linear-gradient(140deg, rgba(255,45,135,.45), transparent 30%, transparent 70%, rgba(255,45,135,.25));
  filter: blur(14px); opacity: .6;
}
.shot-frame img { border-radius: 9px; }
.hero .shot-frame { max-width: 1040px; margin: 0 auto; box-shadow: var(--shot-shadow); }
.shot-frame img { border: 1px solid var(--line); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; background: var(--bg-2); position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: 14px; letter-spacing: .18em; color: var(--dim);
  padding: 0 34px; white-space: nowrap; display: flex; align-items: center; gap: 34px;
}
.marquee-track span::after { content: "◆"; font-size: 8px; color: var(--accent); opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.sec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.sec-label::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6; }
.center .sec-label { justify-content: center; }
.center .sec-label::after { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6; }
h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; line-height: 1.1; font-weight: 750; margin-bottom: 18px; }
.sec-head { max-width: 660px; margin-bottom: 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- Demo input (recreated UI) ---------- */
.demo-wrap { max-width: 760px; margin: 0 auto; }
.demo-box {
  background: #fff; color: #111; border-radius: 18px;
  padding: 24px 24px 18px; text-align: left;
  box-shadow: 0 0 0 1px var(--demo-ring), 0 30px 90px -20px rgba(255,45,135,.25), 0 30px 60px -30px rgba(0,0,0,.35);
  position: relative;
}
.demo-text { min-height: 84px; font-size: 17px; color: #333; }
.demo-text .placeholder { color: #b9b9b9; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s step-end infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.demo-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.demo-left { display: flex; align-items: center; gap: 14px; }
.demo-plus { font-size: 22px; color: #111; line-height: 1; }
.demo-chip {
  border: 1px solid #e3e3e3; border-radius: 10px; padding: 7px 14px;
  font-size: 14px; font-weight: 500; color: #111; transition: all .3s;
}
.demo-chip .chip-tag { font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-left: 8px;
  text-transform: uppercase; letter-spacing: .08em; }
.demo-send {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,45,135,.45);
}
.demo-send svg { width: 17px; height: 17px; fill: #fff; }
.demo-foot {
  background: #f5f5f5; margin: 18px -24px -18px; padding: 12px 24px;
  border-radius: 0 0 18px 18px; display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: #7a7a7a; border-top: 1px solid #ececec;
}
.demo-foot .pill { border: 1px solid #e0e0e0; background: #fff; border-radius: 8px; padding: 4px 12px; color: #333; font-weight: 500; }
.demo-caption { text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-top: 26px; letter-spacing: .04em; }
.demo-caption em { color: var(--accent-2); font-style: normal; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
  transition: border-color .25s;
}
.cell::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,45,135,.09), transparent 55%);
  transition: opacity .3s;
}
.cell:hover { border-color: var(--line-2); }
.cell:hover::before { opacity: 1; }
.cell.w2 { grid-column: span 2; }
.cell h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.cell > p { font-size: 14px; color: var(--muted); line-height: 1.65; position: relative; }
.cell .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 16px;
}

/* model switcher recreation */
.switcher { background: #fff; border-radius: 14px; padding: 14px 6px; margin: 22px auto 6px; max-width: 300px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.55); color: #111; font-size: 14px; }
.switcher .group { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #a0a0a0; padding: 8px 16px 4px; }
.switcher .item { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-radius: 8px; font-weight: 500; }
.switcher .item.active { background: #f6f6f6; }
.switcher .item .check { color: var(--accent); font-weight: 700; }
.switcher .divider { height: 1px; background: #efefef; margin: 8px 12px; }

/* terminal recreation */
.term {
  background: #0a0a0c; border: 1px solid var(--line-2); border-radius: 12px;
  margin-top: 22px; font-family: var(--mono); font-size: 12.8px; line-height: 1.85;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.6); overflow: hidden;
}
.term-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2e2e33; }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-body { padding: 14px 18px; }
.term-body .ln { display: block; color: var(--muted); }
.term-body .p { color: var(--accent); }
.term-body .ok { color: #3ddc84; }
.term-body .cmd { color: var(--ink); }
.term-body .dim { color: var(--dim); }

/* stat cells */
.stat-num {
  font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 18px 0 10px;
  background: linear-gradient(120deg, var(--grad-from), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hw-readout { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hw-row { display: flex; align-items: center; gap: 12px; }
.hw-row .lbl { width: 46px; color: var(--dim); }
.bar { flex: 1; height: 5px; background: var(--bar-bg); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0; transition: width 1.2s cubic-bezier(.2,.7,.3,1); }
.in .bar i { width: var(--w); }
.hw-rec { margin-top: 4px; color: var(--muted); }
.hw-rec b { color: var(--ok); font-weight: 500; }

.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lang-chips span {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px;
}

/* ---------- Library split ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.split ul { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.split li { display: flex; gap: 14px; font-size: 15px; color: var(--muted); }
.split li .tick { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; margin-top: 8px;
  box-shadow: 0 0 8px var(--glow); }
.split li b { color: var(--ink); font-weight: 600; }

/* ---------- Community ---------- */
.community-box {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-2); border-radius: 24px;
  padding: 90px 30px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%, rgba(255,45,135,.22), transparent 65%),
    var(--card);
}
.community-box .bird {
  width: 64px; height: 64px; margin: 0 auto 28px; opacity: .95;
  filter: drop-shadow(0 0 18px rgba(255,45,135,.45));
}
.community-box p { color: var(--muted); max-width: 520px; margin: 0 auto 38px; font-size: 16.5px; }
.community-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--bg-2); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-inner .brand { font-size: 15px; }
.foot-inner .brand img { width: 22px; height: 22px; }
.foot-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--muted); align-items: center; }
.foot-links a { display: inline-flex; align-items: center; gap: 7px; }
.foot-links a:hover { color: var(--ink); }
.foot-links svg { width: 15px; height: 15px; }
.copyright { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* ---------- Help & feedback ---------- */
.help { position: fixed; right: 24px; bottom: 24px; z-index: 90; }
.help-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); box-shadow: 0 12px 34px -14px rgba(0,0,0,.65);
  transition: color .2s, border-color .2s, background .2s;
}
.help-btn:hover, .help.open .help-btn { color: var(--ink); border-color: var(--dim); background: var(--ghost-bg-h); }
.help-btn > svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 48px));
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 6px; text-align: left;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: 100% 100%;
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.help.open .help-panel { opacity: 1; transform: none; pointer-events: auto; }
.help-panel .group {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); padding: 12px 12px 6px;
}
.help-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.help-item:hover { background: var(--ghost-bg-h); }
.help-item svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.help-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.help-item span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Sub-page header ---------- */
.page-head { padding: 150px 0 20px; text-align: center; position: relative; }
.page-head::before {
  content: ""; position: absolute; z-index: -1;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,45,135,.12), transparent 70%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(38px, 5.6vw, 62px); margin-bottom: 20px; }
.page-head p { color: var(--muted); font-size: 17.5px; max-width: 600px; margin: 0 auto; }

/* ---------- Feedback form ---------- */
.fb-wrap { max-width: 780px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.field { margin-bottom: 24px; }
.field:last-of-type { margin-bottom: 0; }
.field > label, .field > .lbl-txt {
  display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 9px; color: var(--ink);
}
.field .hint { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400;
  letter-spacing: .04em; margin-left: 10px; }
.field input[type="text"], .field input[type="password"], .field textarea {
  width: 100%; background: var(--ghost-bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.6;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input[type="text"]:focus, .field input[type="password"]:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--ghost-bg-h);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.type-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip-radio span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--ghost-bg); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 550; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.chip-radio span::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--dim); transition: background .2s, box-shadow .2s; }
.chip-radio:hover span { color: var(--ink); border-color: var(--dim); }
.chip-radio input:checked + span { color: var(--ink); border-color: var(--accent); background: rgba(255,45,135,.07); }
.chip-radio input:checked + span::before { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.form-error { display: none; font-size: 13px; color: var(--accent-2); margin-top: 14px; }
.form-error.show { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.form-note a { color: var(--accent-2); }
.form-note a:hover { text-decoration: underline; }
.count { float: right; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); }
.count.over { color: var(--accent-2); }
.field-err { display: none; font-size: 12.5px; color: var(--accent-2); margin-top: 7px; }
.field-err.show { display: block; }
.field input.bad, .field textarea.bad { border-color: var(--accent-2); }

/* "already reported?" hints under the summary field */
.dupes { margin-top: 12px; border: 1px solid rgba(255,45,135,.3); background: rgba(255,45,135,.06);
  border-radius: 12px; padding: 14px 16px; }
.dupes h4 { font-size: 12.5px; font-weight: 650; margin-bottom: 4px; }
.dupes .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dupe { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.dupe span:first-child { color: var(--ink); }

/* post-submit confirmation */
.success-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 38px 30px; text-align: center;
}
.success-card .ok-mark {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,220,132,.12); color: var(--ok); font-size: 21px;
}
.success-card h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 12px; }
.success-card p { color: var(--muted); font-size: 14.5px; max-width: 470px; margin: 0 auto 10px; }
.success-card .ref { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.success-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.fb-preview { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.fb-preview summary {
  cursor: pointer; list-style: none; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.fb-preview summary::-webkit-details-marker { display: none; }
.fb-preview summary:hover { color: var(--muted); }
.fb-preview pre {
  margin-top: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--muted); white-space: pre-wrap; word-break: break-word;
}

/* ---------- Issue lists (public board + my submissions) ---------- */
.board-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.seg-btn {
  cursor: pointer; border: 1px solid var(--line-2); background: var(--ghost-bg); border-radius: 999px;
  padding: 8px 18px; font-family: var(--sans); font-size: 13px; font-weight: 550; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.seg-btn:hover { color: var(--ink); border-color: var(--dim); }
.seg-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: rgba(255,45,135,.07); }

.issue-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.issue {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; transition: border-color .2s;
}
.issue:hover { border-color: var(--line-2); }
.issue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.issue h3 { font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; }
.issue .sum { color: var(--muted); font-size: 14px; margin-top: 8px; white-space: pre-wrap; }
.issue .note {
  margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--accent);
  font-size: 13.5px; color: var(--muted);
}
.issue .meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim);
}
.st {
  flex: none; white-space: nowrap; border: 1px solid; border-radius: 999px; padding: 4px 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.st-pending   { color: var(--dim);      border-color: var(--line-2); }
.st-confirmed { color: var(--accent-2); border-color: rgba(255,45,135,.45); }
.st-progress  { color: #d99400;         border-color: rgba(217,148,0,.45); }
.st-fixed     { color: var(--ok);       border-color: rgba(61,220,132,.4); }
.st-closed    { color: var(--dim);      border-color: var(--line-2); }
:root[data-theme="dark"] .st-progress { color: #febc2e; border-color: rgba(254,188,46,.45); }

.list-msg { text-align: center; color: var(--muted); font-size: 14.5px; max-width: 560px; margin: 0 auto; }
.list-msg.err { color: var(--accent-2); }
.list-msg .loading { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); }
.load-more { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Other routes ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; transition: border-color .25s, transform .25s;
}
.route-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.route-card svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 16px; }
.route-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 7px; }
.route-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Admin console ---------- */
.admin-head { padding: 108px 0 26px; }
.admin-head .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.admin-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.login-wrap { max-width: 420px; margin: 30px auto 0; }
.login-wrap .form-card { padding: 30px 28px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.stat-chip {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 7px 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.stat-chip b { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; }

.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.admin-tools input[type="text"] {
  flex: 1; min-width: 210px; background: var(--ghost-bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  font-family: var(--sans); font-size: 13.5px;
}
.admin-tools input[type="text"]:focus { outline: none; border-color: var(--accent); }
.admin-list { max-width: none; }

.adm-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--dim); }
.adm-detail { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.adm-detail pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
}
.adm-detail h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 16px 0 8px; }
.log { display: flex; flex-direction: column; gap: 10px; }
.log .entry { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 12px; }
.log .entry.int { border-left-color: #d99400; }
.log .entry .who { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--dim); }

.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.adm-btn {
  cursor: pointer; border: 1px solid var(--line-2); background: var(--ghost-bg); color: var(--muted);
  border-radius: 8px; padding: 7px 14px; font-family: var(--sans); font-size: 12.5px; font-weight: 550;
  transition: color .2s, border-color .2s, background .2s;
}
.adm-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--dim); background: var(--ghost-bg-h); }
.adm-btn.primary { border-color: rgba(255,45,135,.5); color: var(--accent-2); }
.adm-btn.danger { border-color: rgba(255,107,107,.4); color: #ff6b6b; }
.adm-btn:disabled { opacity: .45; cursor: default; }
.note-input, .pub-fields input {
  width: 100%; background: var(--ghost-bg); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 13px; font-family: var(--sans); font-size: 13.5px;
}
.note-input { min-height: 64px; resize: vertical; margin-top: 14px; line-height: 1.6; }
.note-input:focus, .pub-fields input:focus { outline: none; border-color: var(--accent); }
.pub-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.row-msg { display: none; font-size: 12.5px; margin-top: 10px; color: var(--accent-2); }
.row-msg.show { display: block; }
.row-msg.ok { color: var(--ok); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.w2 { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .nav-links .hide-m { display: none; }
  .route-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell.w2 { grid-column: span 1; }
  .hero { padding-top: 130px; }
  section { padding: 80px 0; }
  .page-head { padding-top: 120px; }
  .form-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .help { right: 16px; bottom: 16px; }
  .help-btn { padding: 11px 14px; }
  .help-btn .lbl { display: none; }
  .help-panel { width: calc(100vw - 32px); }
}
