/* answerr.me/pro — "Karar Gözlemevi" (Decision Observatory)
   ITouch Bilişim Sistemleri Ltd. Şti. */

:root {
  --ink: #05060A;
  --deep: #080A10;
  --deck: #0A0D14;
  --well: #05060A;
  --line: rgba(140, 222, 236, 0.14);
  --line-2: rgba(140, 222, 236, 0.24);
  --text: #E9ECF2;
  --text-2: #C4CAD6;
  --muted: #9AA3B2;
  --amber: #FFB048;
  --amber-2: #FFC673;
  --amber-ink: #140C02;
  --ice: #8CDEEC;
  --stop: #FF6B5B;
  --display: 'Chakra Petch', 'IBM Plex Sans', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ice); }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; font-weight: 500; margin: 0; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }

/* HUD strip */
.hud { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.hud .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.hud .dot { width: 8px; height: 8px; display: inline-block; background: var(--muted); margin-right: 10px; vertical-align: middle; }
.hud .dot.on { background: var(--ice); }
.hud .dot.off { background: var(--amber); }

/* Nav */
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand .tag { font-family: var(--mono); font-size: 11px; color: var(--amber); border: 1px solid rgba(255,176,72,0.5); padding: 2px 8px; letter-spacing: 0.12em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 10px 2px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn-ghost, .nav-links .lang-switch-btn { margin-top: 10px; }
}

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); border: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-primary:hover { background: var(--amber-2); color: var(--amber-ink); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; border: 1px solid rgba(140,222,236,0.45); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.lang-switch-btn { min-height: 44px; min-width: 64px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.lang-switch-btn .lang-active { color: var(--amber); }

/* Hero */
.hero { position: relative; overflow: hidden; border-top: 1px solid rgba(140,222,236,0.08); border-bottom: 1px solid rgba(140,222,236,0.08); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,0.96) 0%, rgba(5,6,10,0.86) 42%, rgba(5,6,10,0.3) 100%); }
.hero .wrap { position: relative; padding-top: 112px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.hero-copy { flex: 999 1 540px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.03; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { margin: 0; font-size: 19px; color: var(--text-2); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.triad { flex: 1 1 300px; max-width: 360px; background: rgba(8,10,16,0.84); border: 1px solid var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.triad-row { display: flex; gap: 16px; align-items: center; }
.triad-row b { font-family: var(--display); font-size: 20px; display: block; }
.triad-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(5,6,10,0.9) 0%, rgba(5,6,10,0.82) 60%, rgba(5,6,10,0.96) 100%); }
  .triad { max-width: none; }
}

/* Telemetry strip */
.tele { border-bottom: 1px solid rgba(140,222,236,0.08); }
.tele .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tele-item { padding: 28px 24px 28px 0; border-right: 1px solid rgba(140,222,236,0.08); }
.tele-item:last-child { border-right: 0; }
.tele-item .k { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.14em; }
.tele-item b { display: block; margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.tele-item p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .tele-item { border-right: 0; border-bottom: 1px solid rgba(140,222,236,0.08); } }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--deep); border-top: 1px solid rgba(140,222,236,0.08); border-bottom: 1px solid rgba(140,222,236,0.08); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 460px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.card { border: 1px solid rgba(140,222,236,0.18); background: var(--deck); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.accent { border-color: rgba(255,176,72,0.45); }
.card .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.code { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--text-2); background: var(--well); border: 1px solid rgba(140,222,236,0.12); padding: 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

.metric { border-top: 2px solid var(--ice); padding-top: 18px; }
.metric.pending { border-top-color: var(--amber); }
.metric b { font-family: var(--display); font-size: 42px; font-weight: 600; display: block; line-height: 1.1; }
.metric.pending b { color: var(--amber); font-size: 28px; }
.metric span { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; }
.metric small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Console (Kara Kutu) */
.console { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.panel { flex: 1 1 320px; min-width: 0; border: 1px solid rgba(140,222,236,0.18); background: var(--deck); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel.center { background: #07090E; align-items: center; justify-content: space-between; }
.panel.center .label { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
select, input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 44px; background: var(--well); border: 1px solid rgba(140,222,236,0.28); color: var(--text);
  padding: 10px 14px; font-family: var(--mono); font-size: 14px; border-radius: 0;
}
textarea { resize: vertical; line-height: 1.6; }
textarea.prose { font-family: var(--sans); font-size: 16px; line-height: 1.7; }
.scn-list { display: flex; flex-direction: column; gap: 8px; }
.scn { min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid rgba(140,222,236,0.25); color: var(--text-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; cursor: pointer; text-align: left; }
.scn:hover { border-color: var(--ice); color: var(--text); }
.scn[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); background: rgba(255,176,72,0.08); }

.reactor { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.reactor svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.reactor .ring-a { transform-origin: 160px 160px; animation: spin 40s linear infinite; }
.reactor.busy .ring-a { animation-duration: 3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reactor .ring-a { animation: none; } }
.reactor-core { position: relative; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 0 24px; }
.reactor-core .code-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.reactor-core .verdict { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1; }
.reactor-core .sub { font-size: 14px; color: var(--text-2); max-width: 210px; }
.v-allow { color: var(--ice); }
.v-review { color: var(--amber); }
.v-deny { color: var(--stop); }
.stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-family: var(--mono); }
.stats div { border-top: 1px solid var(--line-2); padding-top: 10px; min-width: 0; }
.stats small { display: block; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.stats b { display: block; font-size: 16px; font-weight: 500; margin-top: 4px; overflow-wrap: anywhere; }

.trace-list { display: flex; flex-direction: column; font-family: var(--mono); font-size: 13px; }
.trace-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 64px; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(140,222,236,0.08); align-items: baseline; }
.trace-row .why { color: var(--muted); font-size: 12px; grid-column: 2 / 4; }
.trace-row.win { color: var(--text); }
.trace-row:not(.win) { color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 9px; font-family: var(--mono); font-size: 13px; }
.bar { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 62px; gap: 10px; align-items: center; }
.bar .n { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .t { height: 8px; background: rgba(140,222,236,0.08); position: relative; }
.bar .f { position: absolute; top: 0; bottom: 0; }
.bar .v { text-align: right; }
.note { border: 1px dashed rgba(255,176,72,0.55); padding: 12px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.note b { color: var(--amber); font-weight: 500; }
.small-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }

/* Studio */
.studio { display: flex; flex-wrap: wrap; gap: 20px; }
.studio .panel { flex: 1 1 360px; }
.tpl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rule { border: 1px solid rgba(140,222,236,0.25); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 14px; }
.rule.deny { border-color: rgba(255,107,91,0.5); }
.rule.review { border-color: rgba(255,176,72,0.55); }
.rule.allow { border-color: rgba(140,222,236,0.5); }
.rule .head { display: flex; justify-content: space-between; gap: 12px; }
.rule .src { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tests { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.tests th { text-align: left; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.tests td { padding: 8px 6px; border-bottom: 1px solid rgba(140,222,236,0.06); vertical-align: top; overflow-wrap: anywhere; }
.scroll-x { overflow-x: auto; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; padding: 6px 0; }
.check .ok { color: var(--ice); }
.check .bad { color: var(--stop); }
.empty { color: var(--muted); font-size: 14px; }

/* Forms / footer */
.access { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.access form { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.access .field { flex: 1 1 240px; }
footer { border-top: 1px solid rgba(140,222,236,0.08); font-family: var(--mono); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.log { min-width: 600px; }
.log-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 140px 120px; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(140,222,236,0.06); font-family: var(--mono); font-size: 14px; }
.log-row span:first-child, .log-row span:last-child { color: var(--muted); }

/* reCAPTCHA badge is replaced by the required text notice */
.grecaptcha-badge { visibility: hidden; }

/* refinements */
.stats b { font-size: 14px; line-height: 1.4; }
.tests td:nth-child(3), .tests td:nth-child(4) { white-space: nowrap; }
.tests td:first-child { min-width: 150px; }
