/* BAPC Akumag: charcoal, glossy glass panels, yellow / red / blue accents (owner-approved screens, ceptor.visual). */
:root {
  --bg: #0b0d12; --bg2: #11141b; --glass: rgba(255,255,255,.045); --glass2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12); --text: #eef1f6; --muted: #a8b0bf; --faint: #7d8696;
  --yellow: #ffc61a; --red: #ff3b4e; --blue: #2f8bff; --green: #3ddc84;
  --radius: 16px; --shadow: 0 10px 40px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(255,198,26,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(47,139,255,.18), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(255,59,78,.14), transparent 60%),
              radial-gradient(900px 600px at 50% 120%, rgba(255,198,26,.10), transparent 60%), var(--bg);
  color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh;
}
a { color: var(--yellow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11,13,18,.82); border-bottom: 1px solid var(--line); }
.bar { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .2px; white-space: nowrap; }
.brand svg { width: 38px; height: 24px; }
nav.main { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; font-weight: 600; font-size: 15px; }
nav.main a:hover { color: var(--text); background: var(--glass); }
nav.main a[aria-current="page"] { color: var(--yellow); border-color: rgba(255,198,26,.6); background: rgba(255,198,26,.08); box-shadow: 0 0 18px rgba(255,198,26,.18) inset; }
.who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* layout */
main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.08; margin: 8px 0; letter-spacing: -.5px; }
h1.hero { text-align: center; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.tri { display: flex; gap: 6px; justify-content: center; margin: 10px auto 6px; }
.tri i { display: block; height: 3px; width: 90px; border-radius: 3px; }
.tri i:nth-child(1) { background: var(--yellow); } .tri i:nth-child(2) { background: var(--red); } .tri i:nth-child(3) { background: var(--blue); }
.kicker { text-align: center; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .faint { color: var(--faint); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.side { grid-template-columns: 280px 1fr; }
@media (max-width: 860px) { .side { grid-template-columns: 1fr; } }

.panel { background: linear-gradient(180deg, var(--glass2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent); pointer-events: none; }
.panel.y { border-color: rgba(255,198,26,.55); box-shadow: 0 0 24px rgba(255,198,26,.12), var(--shadow); }
.panel.r { border-color: rgba(255,59,78,.55); box-shadow: 0 0 24px rgba(255,59,78,.12), var(--shadow); }
.panel.b { border-color: rgba(47,139,255,.55); box-shadow: 0 0 24px rgba(47,139,255,.12), var(--shadow); }
.card-feature h3 { font-size: 21px; }
.card-feature .ico { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 30px; }
.stat span { color: var(--muted); font-size: 14px; }

/* controls */
button, .btn { font: inherit; font-weight: 700; border-radius: 12px; border: 1px solid var(--line); background: var(--glass2); color: var(--text); padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
button:hover, .btn:hover { background: rgba(255,255,255,.14); }
.btn.y, button.y { background: linear-gradient(180deg, #ffd54a, #f2b300); color: #111; border-color: #ffd54a; }
.btn.r, button.r { border-color: rgba(255,59,78,.7); color: #ffd9dd; }
.btn.b, button.b { border-color: rgba(47,139,255,.7); color: #dbe9ff; }
button[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
input, select, textarea { font: inherit; width: 100%; color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; }
.row > button, .row > .btn { flex: 0 0 auto; }
.ask { display: flex; gap: 10px; align-items: center; max-width: 900px; margin: 0 auto; padding: 8px; border-radius: 18px; border: 1px solid rgba(47,139,255,.7); background: rgba(0,0,0,.45); box-shadow: 0 0 30px rgba(47,139,255,.25); }
.ask input { border: 0; background: transparent; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 22px; }
.chip { border-radius: 999px; padding: 6px 14px; min-height: 36px; font-weight: 600; font-size: 14px; }

/* lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); }
.tag.y { color: var(--yellow); border-color: rgba(255,198,26,.6); } .tag.b { color: #8fc1ff; border-color: rgba(47,139,255,.6); } .tag.r { color: #ff9aa5; border-color: rgba(255,59,78,.6); } .tag.g { color: var(--green); border-color: rgba(61,220,132,.6); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; border-top: 0; }
.scroll { overflow-x: auto; }
.meter { height: 8px; background: rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); }

/* research answer */
.answer p { margin: 0 0 10px; }
.cite { font-size: 12px; vertical-align: super; color: var(--blue); text-decoration: none; margin-left: 2px; }
.quote { border-left: 3px solid var(--blue); padding: 6px 12px; margin: 8px 0; color: #dfe6f2; background: rgba(47,139,255,.06); border-radius: 0 10px 10px 0; }
mark { background: rgba(255,198,26,.3); color: inherit; padding: 0 2px; border-radius: 3px; }

/* timeline */
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; }
@media (max-width: 640px) { .lane { grid-template-columns: 1fr; } }
.lane-name { font-weight: 700; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); }
.lane-events { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.ev { flex: 0 0 auto; min-width: 180px; max-width: 240px; text-align: left; border-radius: 12px; padding: 8px 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); min-height: 44px; display: block; font-weight: 600; }
.ev small { display: block; color: var(--muted); font-weight: 500; }
.ev[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 16px rgba(255,198,26,.3); }

/* states */
.state { padding: 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.state.err { border-color: rgba(255,59,78,.6); color: #ffc2c8; text-align: left; }
.state.ok { border-color: rgba(61,220,132,.6); color: #c9f7dc; text-align: left; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--yellow); border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ads, footer, consent */
.adspot { display: block; margin: 16px 0; min-height: 0; }
footer.foot { border-top: 1px solid var(--line); margin-top: 30px; }
footer .bar { flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 14px; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; z-index: 40; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 45; max-width: 420px; }
dialog { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; width: calc(100% - 32px); padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
.hide { display: none !important; }
.mt { margin-top: 16px; }
a.card-feature { text-decoration: none; color: inherit; display: block; } a.card-feature h3 { color: var(--text); }
@media (max-width: 760px) {
  header.top .bar { flex-wrap: wrap; row-gap: 6px; }
  nav.main { order: 3; flex: 1 1 100%; }
  .who { margin-left: auto; }
}
.consent.panel { background: var(--bg2); }
