/* 3D · Kod — yazılımcı masası: kod editörü + 3D mekanik klavye. site.css ve koyu.css'in üstüne yüklenir.
   Ana sayfa bu dosyada; iç sayfalar koyu.css'ten gelir, burada yalnızca renk ve küçük dokunuşlar eklenir. */

@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-mono/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-mono/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* YSD Bilişim yazı tipi: Manrope (projeden sunulur, Google'a istek gitmez). */
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Renkler YSD Bilişim marka talimatından: gece laciverti zemin, kor turuncu yalnızca vurgu. */
:root[data-tema="kod"] {
  --font: "Manrope Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #0b1a2e;
  --bg-alt: #0e2036;
  --surface: #12253c;
  --surface-2: #182d47;
  --ink: #ffffff;
  --ink-2: #dbe1ea;
  --muted: #a9b4c4;
  --placeholder: #7e8ba0;
  --line: #1d3350;
  --line-strong: #2d4664;
  --accent: #f26a3d;
  --accent-strong: #ff8a63;
  --on-accent: #0b1a2e;
  --accent-soft: #2a2431;
  --accent-line: #6a3a30;
  --deep: #071322;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "Geist Mono Variable", ui-monospace, "Cascadia Code", Consolas, monospace;
  --kd-violet: #b9a2ff;
  --kd-cyan: #7fd8f2;
  --kd-orange: #ffb86b;
  --kd-comment: #6c7482;
}

[data-tema="kod"] body { background: var(--bg); }
[data-tema="kod"] ::selection { background: var(--accent); color: var(--on-accent); }
[data-tema="kod"] .chip:hover { background: var(--accent-soft); }
[data-tema="kod"] .brand span { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; }
[data-tema="kod"] .site-head { background: rgba(11, 26, 46, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-tema="kod"] .price-num, [data-tema="kod"] .price-label { font-family: var(--mono); }
[data-tema="kod"] .price-label { text-transform: lowercase; }
[data-tema="kod"] .link-arrow .i { transition: transform .18s ease; }
[data-tema="kod"] .link-arrow:hover .i { transform: translateX(3px); }
[data-tema="kod"] .btn { transition: background-color .15s, border-color .15s, transform .12s; }
[data-tema="kod"] .btn:active { transform: translateY(1px) scale(.985); }

/* Sözdizimi renkleri (editör ve araçlar penceresi) */
.kd-c { color: var(--kd-comment); }
.kd-k { color: var(--kd-violet); }
.kd-s { color: var(--accent); }
.kd-n { color: var(--kd-orange); }
.kd-f { color: var(--kd-cyan); }
.kd-p { color: var(--muted); }
.kd-ok { color: var(--accent-strong); }

/* ---------- Pencere çubuğu ---------- */

.kd-bar {
  display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--mono); font-size: .75rem; color: var(--muted);
}
.kd-dots { display: inline-flex; gap: 6px; }
.kd-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.kd-tab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.kd-bar-state { display: none; align-items: center; gap: 7px; margin-left: auto; color: var(--accent-strong); }
.kd-bar-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kd-typing .kd-bar-state { display: inline-flex; }
.kd-typing .kd-bar-state i { animation: kd-pulse 1.6s ease-in-out infinite; }
@keyframes kd-pulse { 50% { opacity: .25; } }

/* ---------- Kahraman ---------- */

.kd-hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.kd-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 0%, transparent 78%);
  opacity: .55;
}
.kd-hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px);
}
.kd-kicker { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.kd-kicker span + span::before { content: "/"; margin-inline: .7em; color: var(--line-strong); }
.kd-h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 1.3rem + 4vw, 4.75rem);
  font-weight: 650; line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
.kd-h1 em { display: block; font-style: normal; color: var(--accent); }
.kd-lead { max-width: 46ch; margin-top: 22px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
.kd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.kd-name { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 31rem; }
.kd-name label { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.kd-name-row {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 5px 5px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.kd-name-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 106, 61, .18); }
.kd-prompt { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.kd-name input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 6px; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-family: var(--mono); font-size: 1rem;
}
.kd-name input::placeholder { color: var(--placeholder); }
.kd-name button {
  display: inline-flex; align-items: center; gap: .4em; flex: none; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 6px; background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s;
}
.kd-name button:hover { background: var(--accent); color: var(--on-accent); }
.kd-name button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Masa: editör + klavye */
.kd-desk { position: relative; min-width: 0; }
.kd-editor {
  position: relative; z-index: 1; margin: 0 0 0 auto; width: min(100%, 33rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
  background: rgba(15, 17, 21, .92);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.kd-code {
  margin: 0; padding: 18px 18px 20px 0; overflow: hidden;
  font-family: var(--mono); font-size: clamp(.8125rem, .74rem + .28vw, .9375rem); line-height: 1.75; color: var(--ink);
  counter-reset: kd-ln; tab-size: 2;
}
.kd-code code { display: block; font: inherit; }
.kd-ln { display: block; position: relative; min-height: 1.75em; padding-left: 3.4em; white-space: pre-wrap; overflow-wrap: anywhere; counter-increment: kd-ln; }
.kd-ln::before { content: counter(kd-ln); position: absolute; left: 0; width: 2.3em; text-align: right; color: var(--line-strong); }
.kd-caret { display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--accent); animation: kd-blink 1.05s steps(1) infinite; }
@keyframes kd-blink { 50% { opacity: 0; } }

.kd-board { display: none; position: relative; margin-top: -34px; aspect-ratio: 16 / 8.2; }
.kd-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.kd-hint { display: none; margin-top: 2px; text-align: center; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.kd-hint-key { margin-right: .5em; padding: 3px 8px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; color: var(--ink-2); }
.kd-typing:not(.no-3d) .kd-board { display: block; }
.has-3d .kd-hint { display: block; }
@media (pointer: coarse) { .kd-hint { visibility: hidden; height: 0; margin: 0; } }

/* ---------- Bölümler ---------- */

.kd-section { padding-block: clamp(64px, 8vw, 120px); }
.kd-section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kd-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.kd-eyebrow { font-family: var(--mono); font-size: .8125rem; color: var(--accent-strong); }
.kd-head h2, .kd-who h2 { margin-top: 12px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); font-weight: 650; line-height: 1.04; letter-spacing: -.04em; }
.kd-head > p:last-child { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; }
.kd-head a { color: var(--accent-strong); }

/* Ürünler: her biri bir dosya penceresi */
.kd-prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
/* Dört ürün 3+1 yerine 2×2 dizilsin. */
.kd-prods:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.kd-prod {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.kd-prod:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: 0 28px 48px -32px rgba(242, 106, 61, .28); }
.kd-prod:hover .kd-dots i:first-child { background: var(--accent); }
.kd-prod-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.kd-prod-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.kd-prod:hover .kd-prod-media img { transform: scale(1.035); }
.kd-prod-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.kd-prod-cat { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.kd-prod-name { margin-top: 8px; font-size: 1.3125rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.kd-prod-name a { color: inherit; text-decoration: none; }
.kd-prod-name a:focus-visible { outline: none; }
.kd-prod:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.kd-prod-text { margin-top: 10px; color: var(--ink-2); line-height: 1.55; }
.kd-prod-feats { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .9375rem; }
.kd-prod-feats li { display: flex; gap: 10px; align-items: flex-start; }
.kd-prod-feats .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.kd-prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.kd-prod-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); color: var(--ink); transition: background-color .2s, color .2s, transform .2s; }
.kd-prod-go .i { width: 18px; height: 18px; }
.kd-prod:hover .kd-prod-go { background: var(--accent); color: var(--on-accent); transform: translateX(3px); }
.kd-more { margin-top: 28px; }

/* Kurulum seçici */
[data-tema="kod"] .cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(28px, 5vw, 72px); align-items: start; }
[data-tema="kod"] .cfg-controls { order: -1; display: grid; gap: 26px; }
[data-tema="kod"] .cfg-row { margin: 0; padding: 0; border: 0; min-width: 0; }
[data-tema="kod"] .cfg-row > label, [data-tema="kod"] .cfg-row legend { display: block; margin-bottom: 12px; padding: 0; font-weight: 600; }
[data-tema="kod"] .cfg-row input[type="text"] {
  width: 100%; max-width: 26rem; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 1rem;
}
[data-tema="kod"] .cfg-row input[type="text"]::placeholder { color: var(--placeholder); }
[data-tema="kod"] .cfg-row input[type="text"]:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 106, 61, .18); }
[data-tema="kod"] .cfg-options { display: flex; flex-wrap: wrap; gap: 8px; }
[data-tema="kod"] .cfg-option { position: relative; display: block; cursor: pointer; }
[data-tema="kod"] .cfg-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
[data-tema="kod"] .cfg-option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink-2); font-size: .9375rem; font-weight: 550; transition: background-color .15s, border-color .15s, color .15s;
}
[data-tema="kod"] .cfg-option:hover span { border-color: var(--muted); color: var(--ink); }
[data-tema="kod"] .cfg-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
[data-tema="kod"] .cfg-check span::before { content: ""; width: 12px; height: 12px; margin-right: 10px; border: 1.5px solid var(--muted); border-radius: 3px; transition: background-color .15s, border-color .15s; }
[data-tema="kod"] .cfg-check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
[data-tema="kod"] .cfg-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-tema="kod"] .cfg-go {
  justify-self: start; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; font-size: 1.0625rem; cursor: pointer;
  transition: background-color .15s, transform .12s;
}
[data-tema="kod"] .cfg-go:hover { background: var(--accent-strong); }
[data-tema="kod"] .cfg-go:active { transform: translateY(1px) scale(.985); }
[data-tema="kod"] .cfg-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Önizleme: tarayıcı penceresi içinde açık renkli örnek site */
[data-tema="kod"] .cfg-preview { position: sticky; top: 88px; display: grid; gap: 12px; }
[data-tema="kod"] .cfg-device { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .9); }
[data-tema="kod"] .cfg-device::before {
  content: "isletmeniz.com"; display: flex; align-items: center; min-height: 38px; padding: 0 14px 0 62px;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--muted);
  background: radial-gradient(circle at 19px 50%, var(--line-strong) 5px, transparent 5.5px), radial-gradient(circle at 35px 50%, var(--line-strong) 5px, transparent 5.5px), radial-gradient(circle at 51px 50%, var(--line-strong) 5px, transparent 5.5px);
}
[data-tema="kod"] .cfg-site { display: grid; gap: 12px; align-content: start; min-height: 440px; padding: 22px 18px; background: #f6f7f2; color: #14160f; }
[data-tema="kod"] .cfg-site p { margin: 0; }
[data-tema="kod"] .cfg-site-name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
[data-tema="kod"] .cfg-site-sector { color: #5d6356; font-size: .8125rem; }
[data-tema="kod"] .cfg-site-line { padding: 18px 16px; border-radius: 10px; background: #14160f; color: #f6f7f2; font-weight: 650; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.02em; }
[data-tema="kod"] .cfg-site-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
[data-tema="kod"] .cfg-site-items li { padding: 11px 14px; border-radius: 8px; background: #e9ebe2; font-size: .9375rem; }
[data-tema="kod"] .cfg-feature { padding: 12px 14px; border-radius: 8px; background: #e9ebe2; font-size: .875rem; }
[data-tema="kod"] .cfg-f-title { font-weight: 650; }
[data-tema="kod"] .cfg-slots, [data-tema="kod"] .cfg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
[data-tema="kod"] .cfg-slots li { padding: 6px 0; border-radius: 6px; background: #fff; text-align: center; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-tema="kod"] .cfg-tiles li { aspect-ratio: 1; border-radius: 6px; background: #d5d9cb; }
[data-tema="kod"] .cfg-f-qr { display: flex; gap: 12px; align-items: center; }
[data-tema="kod"] .cfg-qr { width: 52px; height: 52px; flex: none; fill: #14160f; }
[data-tema="kod"] .cfg-qr .cfg-qr-bg { fill: #e9ebe2; }
[data-tema="kod"] .cfg-f-wa { background: #f26a3d; color: #0b1a2e; font-weight: 650; text-align: center; }
[data-tema="kod"] .cfg-note { margin: 0; color: var(--muted); font-size: .8125rem; }

/* Süreç */
.kd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.kd-step { position: relative; padding: 34px 28px 0 0; border-top: 1px solid var(--line-strong); }
.kd-step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.kd-step-n { font-family: var(--mono); font-size: .8125rem; color: var(--accent-strong); }
.kd-step h3 { margin-top: 10px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.025em; }
.kd-step p { margin-top: 10px; color: var(--ink-2); line-height: 1.6; }

/* Hakkımda */
.kd-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.kd-who { display: flex; align-items: center; gap: 18px; margin: 18px 0 24px; }
.kd-who h2 { margin-top: 0; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.kd-who-title { margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: .875rem; }
.kd-avatar { flex: none; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.kd-avatar-mark { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); }
.kd-avatar-mark .mark { width: 36px; height: 36px; }
.kd-about-copy > p { max-width: 58ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.kd-about-copy > p + p { margin-top: 14px; }
.kd-fivem { margin-top: 32px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.kd-fivem p { color: var(--ink-2); margin-bottom: 6px; }
.kd-stack { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kd-stack-body { padding: 20px 22px 22px; font-family: var(--mono); font-size: .9375rem; line-height: 1.9; }
.kd-stack-list { margin: 0; padding: 0 0 0 1.6em; list-style: none; }
.kd-stack-list li { overflow-wrap: anywhere; }

/* SSS */
.kd-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.kd-faq-wrap .kd-head { margin-bottom: 0; position: sticky; top: 96px; }

/* ---------- Kaydırınca belirme ---------- */
.kd-reveal .kd-head, .kd-reveal .kd-prod, .kd-reveal .kd-step, .kd-reveal .kd-about-copy, .kd-reveal .kd-stack, .kd-reveal .kd-faq-wrap .faq, .kd-reveal[data-tema="kod"] .cfg {
  opacity: 0; translate: 0 18px;
  transition: opacity .6s ease var(--kd-delay, 0ms), translate .7s cubic-bezier(.2, .7, .2, 1) var(--kd-delay, 0ms), border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.kd-reveal .is-in.is-in, .kd-reveal[data-tema="kod"] .cfg.is-in { opacity: 1; translate: 0 0; }

/* Açılış: metin sırayla gelir */
@media (prefers-reduced-motion: no-preference) {
  .kd-hero-copy > *, .kd-editor { animation: kd-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .kd-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .kd-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .kd-hero-copy > :nth-child(4) { animation-delay: .18s; }
  .kd-hero-copy > :nth-child(5) { animation-delay: .24s; }
  .kd-editor { animation-delay: .2s; }
}
@keyframes kd-rise { from { opacity: 0; translate: 0 16px; } }

/* ---------- Dar ekranlar ---------- */

@media (max-width: 980px) {
  .kd-hero-in { grid-template-columns: minmax(0, 1fr); }
  .kd-editor { margin-inline: auto; width: min(100%, 36rem); }
  .kd-board { margin-top: -22px; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 16 / 9; }
  .kd-grid { -webkit-mask-image: radial-gradient(ellipse 110% 60% at 50% 20%, #000 0%, transparent 80%); mask-image: radial-gradient(ellipse 110% 60% at 50% 20%, #000 0%, transparent 80%); }
  .kd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .kd-about, .kd-faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .kd-faq-wrap .kd-head { position: static; }
  [data-tema="kod"] .cfg { grid-template-columns: minmax(0, 1fr); }
  [data-tema="kod"] .cfg-preview { position: static; max-width: 24rem; }
}
@media (max-width: 560px) {
  .kd-actions .btn { flex: 1 1 100%; justify-content: center; }
  .kd-name button { padding: 0 12px; }
  .kd-code { padding-right: 12px; }
  .kd-ln { padding-left: 2.8em; }
  .kd-ln::before { width: 1.9em; }
  .kd-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .kd-step { padding: 0 0 30px 28px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .kd-step:last-child { padding-bottom: 0; }
  .kd-step::before { top: 2px; left: -6px; }
  .kd-prod-body { padding: 20px 18px 18px; }
}
