/* Bridger — shared styles. Direction « Blueprint » (design/refonte/c-*.png), palette Night Terminal (brand/palette.json). */
@import url('/fonts/fonts.css');

:root {
  --bg: #0B0E14; --bg2: #0D121B; --surface: #111725; --border: #232A38; --line: rgba(79, 216, 232, .22); --line-soft: rgba(79, 216, 232, .07);
  --amber: #FFB224; --amber-soft: rgba(255, 178, 36, .14); --cyan: #4FD8E8; --text: #E6EAF2; --muted: #8B94A7; --danger: #FF6B5C;
  --sans: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 64ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 400 16.5px/1.6 var(--sans);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 216, 232, .07), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
img { max-width: 100%; display: block; }
::selection { background: var(--amber); color: var(--bg); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* amber hand-drawn underline under a key word */
.swoosh { position: relative; white-space: nowrap; }
.swoosh::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 50 3, 120 2, 197 7 M10 12 C 70 7, 140 7, 190 10' fill='none' stroke='%23FFB224' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* blueprint panel: hairline cyan frame, corner ticks, optional coordinate label */
.bp { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 23, 37, .78), rgba(11, 14, 20, .78)); border-radius: 4px; }
.bp::before, .bp::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--cyan); pointer-events: none; }
.bp::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.bp::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.coord { font: 400 10.5px/1 var(--mono); color: rgba(79, 216, 232, .55); letter-spacing: .04em; user-select: none; }
.bp > .coord { position: absolute; top: 7px; right: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 15.5px/1 var(--sans); padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--amber); color: var(--bg); box-shadow: 0 0 0 0 rgba(255, 178, 36, 0); }
.btn-primary:hover { background: #ffc457; color: var(--bg); box-shadow: 0 6px 28px -6px rgba(255, 178, 36, .55); transform: translateY(-1px); }
.btn-ghost { background: rgba(11, 14, 20, .6); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.btn-danger { background: transparent; color: var(--amber); border-color: rgba(255, 178, 36, .6); }
.btn-danger:hover { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
.btn-red { background: transparent; color: var(--danger); border-color: rgba(255, 107, 92, .55); }
.btn-red:hover { background: rgba(255, 107, 92, .12); color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.cmd { display: flex; align-items: center; gap: 12px; background: rgba(11, 14, 20, .85); border: 1px solid var(--border); border-radius: 6px; padding: 10px 10px 10px 16px; font: 400 14.5px/1.4 var(--mono); overflow-x: auto; }
.cmd code { flex: 1; white-space: pre; font-size: 14.5px; }
.cmd .p { color: var(--amber); user-select: none; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.copy:hover { color: var(--text); border-color: var(--cyan); }
.copy.done { color: var(--bg); background: var(--amber); border-color: var(--amber); }
.copy.strong { color: var(--bg); background: var(--amber); border-color: var(--amber); font-size: 14px; padding: 10px 16px; }
.copy.strong:hover { background: #ffc457; }

.icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 4px; color: var(--cyan); background: rgba(79, 216, 232, .04); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.muted { color: var(--muted); }

footer.foot { border-top: 1px solid var(--line); margin-top: 110px; padding: 26px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: space-between; }
footer.foot .brand { font-size: 17px; }
footer.foot .brand img { width: 32px; height: 32px; }
footer.foot nav { display: flex; gap: 24px; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

/* Powered by Deepthix */
.powered { display: inline-flex; align-items: center; gap: 9px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: rgba(11,14,20,.6); padding: 8px 13px; border-radius: 999px; transition: border-color .2s, color .2s; }
.powered b { color: var(--text); font-weight: 600; letter-spacing: .02em; }
.powered::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.powered:hover { color: var(--text); border-color: var(--amber); }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt small { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.brand .bt small::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); margin-right: 6px; vertical-align: 1px; }
