/* AugeLab Kaynak Kontrol. Same look as the reels: dark shop floor, warm key light,
   HUD panels. Fonts and images are served from this origin; nothing loads from elsewhere. */

@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/static/fonts/sora-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/static/fonts/sora-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/static/fonts/sora-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/static/fonts/sora-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0c0f13;
  --panel: #11151b;
  --panel-2: #171c24;
  --line: #242b36;
  --line-2: #364152;
  --ink: #f4f1ea;
  --muted: #93a9c2;
  --dim: #6b7c91;
  --accent: #fde035;
  --accent-ink: #14120a;
  --warm: #ffb36b;
  --ok: #3ddc84;
  --nok: #ff5a44;
  --uncertain: #fde035;
  --c1: #ff5a44;
  --c2: #c792ff;
  --c3: #38bdf8;
  --c4: #3ddc84;
  --radius: 14px;
  --display: "Sora", system-ui, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(255, 179, 107, .17), transparent 62%),
    radial-gradient(900px 600px at -10% 30%, rgba(143, 176, 255, .07), transparent 60%),
    linear-gradient(rgba(147, 169, 194, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 169, 194, .045) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed, fixed, scroll, scroll;
}
main { flex: 1; padding-bottom: 72px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; padding-top: 44px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 9; }
.skip:focus { left: 8px; }
.mono, .eyebrow { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.accent { color: var(--accent); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 8; background: rgba(7, 8, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 2px; }
.brand-text { line-height: 1.1; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .93rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.nav .lang { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; border: 1px solid var(--line-2); padding: 6px 10px; margin-left: 8px; color: var(--ink); }
@media (max-width: 520px) { .brand small { display: none; } .nav a { padding: 8px 9px; } }

/* ---- badge and HUD frame ---- */
.badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(253, 224, 53, .45); background: rgba(253, 224, 53, .08); color: var(--accent);
  font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(253, 224, 53, .6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(253, 224, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 224, 53, 0); } }
@keyframes sweep-line { 0%, 8% { top: 0; } 92%, 100% { top: calc(100% - 2px); } }
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); pointer-events: none; z-index: 3; }
.hud::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.hud::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.top-badge { margin: 32px 0 20px; }

/* ---- panels ---- */
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.center { text-align: center; padding: 64px 24px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; scroll-margin-top: 84px; }
.side { display: grid; gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.drop {
  position: relative; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 30px 18px; text-align: center;
  background: rgba(7, 8, 10, .55); transition: border-color .15s, background .15s; overflow: hidden;
}
.drop.over { border-color: var(--accent); background: rgba(253, 224, 53, .07); }
.drop-icon { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 12px; display: block; }
.drop-text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.preview { display: block; max-width: 100%; max-height: 340px; margin: 0 auto 16px; border-radius: 8px; border: 1px solid var(--line-2); }
.busy-line { display: none; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 16px 3px rgba(253, 224, 53, .7); }
.is-busy .busy-line { display: block; animation: sweep-line 1.6s ease-in-out infinite alternate; }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.hint, small { color: var(--dim); font-size: .86rem; }
.hint { margin: 12px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 .98rem/1 var(--display); padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 48px; transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(253, 224, 53, .22); }
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(253, 224, 53, .34); }
.btn-quiet { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--muted); background: rgba(255, 255, 255, .06); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.upload .btn-main { width: 100%; margin-top: 16px; }

.more { margin: 16px 0 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.more summary:hover { color: var(--ink); }
.field { display: grid; gap: 5px; margin-top: 14px; }
.field span { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="email"] {
  font: inherit; color: var(--ink); background: rgba(7, 8, 10, .6); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 14px; width: 100%; min-height: 46px;
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check small { display: block; margin-top: 3px; }
.botcheck:empty { display: none; }
.botcheck { margin-top: 16px; }
.status { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; }
.status.error { color: var(--nok); }
.status.busy { color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.status.busy::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid rgba(253, 224, 53, .25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; scroll-margin-top: 84px; }
.sample { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; line-height: 0; transition: border-color .12s, transform .12s; }
.sample:hover { border-color: var(--accent); transform: translateY(-2px); }
.sample img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.sample-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 7px; line-height: 1.2; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: linear-gradient(transparent, rgba(7, 8, 10, .92)); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { display: flex; gap: 12px; color: var(--muted); font-size: .96rem; }
.tips li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55em; background: var(--accent); transform: rotate(45deg); }

.notice { border-radius: var(--radius); padding: 16px 20px; margin: 0 0 20px; border: 1px solid var(--line); }
.notice h2 { font-size: 1.02rem; margin-bottom: 5px; }
.notice p { margin: 0; color: var(--muted); }
.notice-plain { background: rgba(17, 21, 27, .7); border-left: 3px solid var(--muted); }
.notice-model { background: rgba(253, 224, 53, .07); border-color: rgba(253, 224, 53, .5); color: var(--ink); font-weight: 600; }

/* ---- result ---- */
.result { margin-bottom: 20px; scroll-margin-top: 84px; border-color: var(--line-2); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.result-head h2 { margin: 0; }
.verdict {
  margin: 0; padding: 10px 22px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: .06em;
  border: 2px solid currentColor; background: rgba(0, 0, 0, .25);
}
.verdict.v-OK { color: var(--ok); box-shadow: 0 0 34px rgba(61, 220, 132, .25); }
.verdict.v-NOK { color: var(--nok); box-shadow: 0 0 34px rgba(255, 90, 68, .28); }
.verdict.v-UNCERTAIN { color: var(--uncertain); box-shadow: 0 0 34px rgba(253, 224, 53, .2); }
.reasons { margin: 10px 0 8px; font-size: 1.08rem; }
.warnings { margin: 0 0 10px; padding-left: 20px; color: var(--uncertain); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.chip b { color: var(--ink); font-weight: 500; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--dim); }
.chip-1::before { background: var(--c1); } .chip-2::before { background: var(--c2); } .chip-3::before { background: var(--c3); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; margin-top: 18px; }
@media (max-width: 900px) { .result-grid { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); padding: 6px; }
.shot img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; border-radius: 6px; min-height: 120px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.key::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.key-1::before { background: var(--c1); }
.key-2::before { background: var(--c2); }
.key-3::before { background: var(--c3); }
.key-4::before { background: var(--c4); }
.details h3, .downloads h3 { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1.6em; }
.details h3:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.count { color: var(--dim); }
.table-scroll { overflow: auto; max-height: 360px; border: 1px solid var(--line); border-radius: 10px; }
.defects { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: .8rem; }
.defects th, .defects td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.defects thead th { position: sticky; top: 0; background: var(--panel-2); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.defects td:nth-child(2) { font-family: var(--body); font-size: .9rem; }
.defects .num { text-align: right; }
.defects tbody tr:last-child td { border-bottom: 0; }
.defects tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; }
.dot-1 { background: var(--c1); } .dot-2 { background: var(--c2); } .dot-3 { background: var(--c3); }
.downloads { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 2px; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- API ---- */
.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-color: var(--line-2); margin-top: 44px; }
.api p { color: var(--muted); }
.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: #050608; border: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: #cfd8e3; overflow-x: auto; }
.code .c-key { color: var(--accent); } .code .c-ok { color: var(--ok); } .code .c-dim { color: var(--dim); }
.signup { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0 6px; }
.signup .field { flex: 1 1 240px; margin-top: 0; }
.sent { font-weight: 600; color: var(--ok); margin-top: 12px; }
.api-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }
@media (max-width: 900px) { .api { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

.keypage h1 { font-size: 1.9rem; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.keybox code { flex: 1 1 280px; padding: 14px; border: 1px solid var(--accent); border-radius: 10px; background: #050608; overflow-wrap: anywhere; font-family: var(--mono); font-size: .88rem; color: var(--accent); }

.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { margin-top: 2em; font-size: 1.25rem; }
.doc pre { background: #050608; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .82rem; line-height: 1.6; color: #cfd8e3; }
code { font-family: var(--mono); }
.params { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 9px 18px; margin: 0 0 1em; }
.params dt code { color: var(--accent); }
.params dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .params { grid-template-columns: 1fr; gap: 2px; } .params dd { margin-bottom: 10px; } }

.foot { border-top: 1px solid var(--line); background: rgba(7, 8, 10, .8); color: var(--dim); font-size: .88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge::before, .status.busy::before, .is-busy .busy-line { animation: none; }
  .btn, .sample, .drop { transition: none; }
}
.gone { display: none; }
