/* CASE//ZERO tanıtım sitesi — noir dosya teması */
:root {
  --ink: #0b0e13;
  --ink-2: #11161d;
  --ink-3: #18202a;
  --line: #273140;
  --text: #e6e1d6;
  --muted: #9aa3ae;
  --paper: #ece4d2;
  --paper-ink: #22201b;
  --paper-muted: #5d574b;
  --amber: #e7ad5a;
  --amber-2: #c98a35;
  --red: #c23a44;
  --blue: #3d7bd9;
  --radius: 10px;
  --wrap: 1160px;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: "Oswald", "Segoe UI", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--amber); }
code { font-family: var(--font-mono); font-size: .92em; background: rgba(255,255,255,.06); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-wrap: balance; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- Gezinme ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(11, 14, 19, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; color: var(--text); text-decoration: none; }
.logo span { color: var(--red); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Giriş ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero.jpg") center right / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,14,19,.96) 0%, rgba(11,14,19,.82) 38%, rgba(11,14,19,.25) 75%, rgba(11,14,19,.5) 100%),
              linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
.hero-lights {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background:
    radial-gradient(40% 55% at 0% 100%, rgba(194, 58, 68, .55), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(61, 123, 217, .55), transparent 70%);
  animation: siren 2.4s steps(1, end) infinite;
}
@keyframes siren {
  0%   { background:
    radial-gradient(40% 55% at 0% 100%, rgba(194, 58, 68, .6), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(61, 123, 217, .15), transparent 70%); }
  50%  { background:
    radial-gradient(40% 55% at 0% 100%, rgba(194, 58, 68, .15), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgba(61, 123, 217, .6), transparent 70%); }
}
.hero-inner { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 96px 24px 72px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: 1.14rem; color: #cfc9bd; max-width: 58ch; }
.bulletin {
  font-family: var(--font-mono); font-size: .98rem; color: #d8d2c6;
  max-width: 62ch; min-height: 3.2em; margin-bottom: 26px;
  border-left: 3px solid var(--red); padding-left: 14px;
}
.live { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; padding: 1px 8px; margin-right: 6px; border-radius: 3px; vertical-align: 1px; }
#ticker.typing::after { content: "▌"; color: var(--amber); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f1bd70; }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.facts strong { color: var(--text); font-family: var(--font-head); font-size: 1.15rem; margin-right: 4px; }

/* ---------- Bölümler ---------- */
.section { padding: 104px 0; }
.section-dark { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.section-paper { background: var(--paper); color: var(--paper-ink); }
.section-paper .kicker { color: var(--red); }
.section-paper code { background: rgba(0,0,0,.07); }
.kicker { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-bottom: .8em; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 68ch; margin-bottom: 44px; }
.note { font-size: .9rem; color: var(--muted); margin-top: 26px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar p { color: #c4beb3; font-size: .98rem; margin: 0; }
.pillar-icon { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; background: rgba(231,173,90,.12); margin-bottom: 18px; }
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Nasıl oynanır */
.how { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(34,32,27,.15); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps p { color: var(--paper-muted); margin: 0; }
.step-no { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--red); line-height: 1; }
.tree { margin: 0; background: #151b23; color: #d9d3c6; border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); position: sticky; top: 96px; }
.tree figcaption { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.tree pre { margin: 0; font-family: var(--font-mono); font-size: .86rem; line-height: 1.6; overflow-x: auto; }
.tree .d { color: var(--amber); }
.tree .n { color: #8fc39b; }
.tree-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Zorluk */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mode header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mode h3 { margin: 0; font-size: 1.6rem; }
.mult { font-family: var(--font-mono); font-weight: 700; color: var(--amber); font-size: 1.1rem; }
.mode ul { list-style: none; padding: 0; margin: 0; }
.mode li { padding: 10px 0; border-top: 1px solid var(--line); color: #c4beb3; font-size: .96rem; }
.mode li b { display: block; color: var(--text); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.mode-featured { border-color: var(--amber-2); box-shadow: 0 0 0 1px var(--amber-2) inset; }

.score { margin-top: 56px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.score-bar { display: flex; height: 54px; border-radius: 8px; overflow: hidden; margin: 6px 0 20px; }
.score-bar span { flex: var(--w) 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; color: var(--ink); font-weight: 600; white-space: nowrap; min-width: 0; padding: 0 6px; }
.score-bar span:nth-child(1) { background: var(--amber); }
.score-bar span:nth-child(2) { background: #d9c7a2; }
.score-bar span:nth-child(3) { background: #b9a98a; }
.score-bar span:nth-child(4) { background: #8fa3b8; }
.score-rules { margin: 0; padding-left: 20px; color: #c4beb3; columns: 2; column-gap: 40px; }
.score-rules li { margin-bottom: 6px; break-inside: avoid; }
.score-rules b { color: var(--text); }

/* Vakalar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font: 500 .95rem var(--font-body); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: #3a4656; }
.chip.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.case { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.case:hover { transform: translateY(-3px); border-color: #3a4656; }
.case[hidden] { display: none; }
.case img, .locked-cover { aspect-ratio: 12 / 5; object-fit: cover; width: 100%; }
.case-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { margin: 6px 0 6px; font-size: 1.35rem; }
.case-body p { color: #b8b2a7; font-size: .95rem; margin: 0 0 14px; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.case-id { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin-right: 4px; }
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 4px; background: rgba(255,255,255,.07); color: #c9c3b8; }
.tag-easy { background: rgba(110, 175, 120, .18); color: #9fd3a8; }
.tag-medium { background: rgba(231, 173, 90, .18); color: var(--amber); }
.tag-hard { background: rgba(194, 58, 68, .2); color: #f08a92; }
.case-suspects { font-size: .84rem; color: var(--muted); font-family: var(--font-mono); }
.locked-cover { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #141a22 0 14px, #10151c 14px 28px); }
.locked-cover span { font-family: var(--font-mono); font-weight: 700; letter-spacing: .3em; color: var(--red); border: 2px solid var(--red); padding: 4px 14px; transform: rotate(-6deg); }

/* Görseller */
.engine { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.engine-text > p { color: #c4beb3; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); color: #c4beb3; font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.checks b, .engine-text b { color: var(--text); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.gallery .g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: .78rem; background: rgba(11,14,19,.78); padding: 3px 9px; border-radius: 4px; }

/* Kariyer */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col p { color: var(--paper-muted); }
.memo { position: relative; margin: 0; background: #f8f3e6; border: 1px solid #d7ccb2; padding: 30px 32px; font-family: var(--font-mono); color: var(--paper-ink); box-shadow: 0 20px 40px -22px rgba(0,0,0,.45); transform: rotate(-1.2deg); }
.memo p { margin: 0 0 1em; color: var(--paper-ink); }
.memo-head { font-weight: 700; border-bottom: 1px dashed #b9ad92; padding-bottom: 10px; }
.memo-sign { text-align: right; margin-bottom: 0 !important; }
.stamp { position: absolute; right: 22px; top: 18px; font-weight: 700; letter-spacing: .25em; color: rgba(194,58,68,.75); border: 3px solid rgba(194,58,68,.7); padding: 2px 12px; transform: rotate(12deg); font-size: .95rem; }

/* Gereksinimler */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.req-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.req-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 14px 0 0; }
.req-card dt { color: var(--muted); font-size: .92rem; }
.req-card dd { margin: 0; font-size: .97rem; }

/* SSS */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--amber); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: #c4beb3; padding: 0 0 20px; margin: 0; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 560px); gap: 20px; }
.demo-card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.demo-card p { color: #c4beb3; font-size: .97rem; }
.demo-card-main { border-color: var(--amber-2); box-shadow: 0 0 0 1px var(--amber-2) inset; }
.demo-card .btn { margin-top: auto; }
.demo-meta { color: var(--muted) !important; font-size: .85rem !important; margin: 10px 0 0; font-family: var(--font-mono); }
.demo-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 32px; color: #c4beb3; font-size: .95rem; }
.demo-facts b { color: var(--text); font-weight: 600; margin-right: 6px; }
.demo-verify { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.demo-verify summary { font-size: .97rem; padding: 14px 32px 14px 0; }
.demo-verify pre { background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
.demo-verify .hash { padding: 0 0 6px !important; overflow-wrap: anywhere; }
.demo-verify .hash span { color: var(--muted); margin-right: 6px; }
.demo.unavailable .btn { pointer-events: none; opacity: .45; }

/* ---------- Alt bilgi + banner ---------- */
.footer { background: #07090c; border-top: 1px solid rgba(255,255,255,.05); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 40px; padding-bottom: 36px; }
.footer-top p { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: #c4beb3; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.dev-banner { position: relative; background: #e2a93d; color: #111; overflow: hidden; }
.dev-banner p {
  position: relative; z-index: 1; margin: 0; text-align: center;
  padding: 22px 16px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .22em;
  font-size: clamp(1.15rem, 3.6vw, 2.1rem);
}
.dev-banner .dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--red); margin-right: .7em; vertical-align: .12em; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.tape { height: 12px; background: repeating-linear-gradient(-45deg, #111 0 14px, #e2a93d 14px 28px); }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 960px) {
  .pillars, .modes, .demo-grid { grid-template-columns: 1fr; }
  .how, .engine, .two-col, .req { grid-template-columns: 1fr; gap: 36px; }
  .tree { position: static; }
  .score-rules { columns: 1; }
  .memo { transform: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,14,19,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.05); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 64px; padding-bottom: 56px; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after { background: linear-gradient(0deg, var(--ink) 5%, rgba(11,14,19,.78) 60%, rgba(11,14,19,.6) 100%); }
  .cases { grid-template-columns: 1fr; }
  .score-bar { height: auto; flex-wrap: wrap; }
  .score-bar span { flex-basis: 50%; padding: 12px 6px; }
  .req-card dl { grid-template-columns: 1fr; gap: 2px; }
  .req-card dd { margin-bottom: 10px; }
  .memo { padding: 24px 20px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-lights, .dev-banner .dot, #ticker.typing::after { animation: none; }
  .btn, .case { transition: none; }
}
