/* ==========================================================================
   Penetor — Kurumsal Siber Güvenlik
   Renk paleti logo.png'den türetilmiştir:
   - Primary  #EA7231  rgb(234,114,49)  → logodaki tek baskın renk (turuncu)
   - Secondary #13233D rgb(19,35,61)    → turuncunun tamamlayıcısı, derin lacivert (yüzeyler)
   - Accent   #38B2E8  rgb(56,178,232)  → turuncunun karşıt tonu, veri/bağlantı vurgusu
   ========================================================================== */

:root {
  --primary: #EA7231;
  --primary-rgb: 234, 114, 49;
  --primary-hover: #F2864B;
  --primary-ink: #0A111D;          /* turuncu zemin üzerindeki metin (AA kontrast) */
  --secondary: #13233D;
  --secondary-rgb: 19, 35, 61;
  --accent: #38B2E8;
  --accent-rgb: 56, 178, 232;

  --bg-dark: #0A111D;
  --bg-deep: #070C15;
  --surface: #0F1A2B;
  --surface-2: #13233D;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-light: #E8EEF5;
  --text-muted: #9EACBE;
  --text-dim: #74849A;
  --text-body: #C8D3E0;           /* uzun metin gövdesi */
  --primary-text: #EA7231;        /* turuncu metin/bağlantı (açık temada koyulaşır) */
  --accent-text: #38B2E8;
  --tint: rgba(255, 255, 255, 0.03);        /* yüzey üstü hafif dolgu */
  --tint-strong: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(10, 17, 29, .82);
  --grid-line: rgba(255, 255, 255, 0.08);
  color-scheme: dark;

  --success: #3CCB8C;
  --danger: #F2677A;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Açık tema: kullanıcı seçimi (data-theme) veya cihaz tercihi.
   Turuncu metinler beyaz zeminde AA kontrast için koyulaştırıldı (#B4501A ≈ 4.9:1). */
:root[data-theme="light"] {
  --primary-hover: #D9621F;
  --secondary: #E9EEF6;
  --bg-dark: #F6F8FB;
  --bg-deep: #EDF1F6;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --border: rgba(10, 17, 29, 0.10);
  --border-strong: rgba(10, 17, 29, 0.18);
  --text-light: #0F1A2B;
  --text-muted: #4A5568;
  --text-dim: #5F6B7C;
  --text-body: #2F3B4C;
  --primary-text: #B4501A;
  --accent-text: #0B6E9E;
  --success: #15803D;
  --danger: #C62845;
  --tint: rgba(10, 17, 29, 0.03);
  --tint-strong: rgba(10, 17, 29, 0.06);
  --header-bg: rgba(246, 248, 251, .86);
  --grid-line: rgba(10, 17, 29, 0.07);
  --shadow: 0 18px 40px -24px rgba(15, 26, 43, 0.25);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --primary-hover: #D9621F;
    --secondary: #E9EEF6;
    --bg-dark: #F6F8FB;
    --bg-deep: #EDF1F6;
    --surface: #FFFFFF;
    --surface-2: #EEF2F8;
    --border: rgba(10, 17, 29, 0.10);
    --border-strong: rgba(10, 17, 29, 0.18);
    --text-light: #0F1A2B;
    --text-muted: #4A5568;
    --text-dim: #5F6B7C;
    --text-body: #2F3B4C;
    --primary-text: #B4501A;
    --accent-text: #0B6E9E;
    --success: #15803D;
    --danger: #C62845;
    --tint: rgba(10, 17, 29, 0.03);
    --tint-strong: rgba(10, 17, 29, 0.06);
    --header-bg: rgba(246, 248, 251, .86);
    --grid-line: rgba(10, 17, 29, 0.07);
    --shadow: 0 18px 40px -24px rgba(15, 26, 43, 0.25);
    color-scheme: light;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--primary-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 68ch; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-light); background: var(--tint); }
.btn-ghost:hover { border-color: var(--primary); color: var(--text-light); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-light); padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint-strong); color: var(--text-light); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 8px 18px; }
.nav .btn:hover { background: var(--primary-hover); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text-light); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 22px; background: var(--bg-dark); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav .btn { margin: 8px 0 0; }
  .site-header.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(var(--primary-rgb), .18), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(var(--accent-rgb), .10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 820px; }
.hero h1 .hl { color: var(--primary-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }


/* ---------- Definition strip (GEO) ---------- */
.define {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.define p { margin: 0; color: var(--text-muted); }
.define strong { color: var(--text-light); }
.define .ico { width: 44px; height: 44px; }
@media (max-width: 640px) { .define { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-light); transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
a.card:hover { border-color: rgba(var(--primary-rgb), .55); transform: translateY(-3px); color: var(--text-light); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--primary-text); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(3px); }

.ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(var(--primary-rgb), .12); color: var(--primary-text); border: 1px solid rgba(var(--primary-rgb), .25);
}
.ico svg { width: 24px; height: 24px; }
.ico.accent { background: rgba(var(--accent-rgb), .12); color: var(--accent-text); border-color: rgba(var(--accent-rgb), .25); }

.card-feature { padding: 30px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%); }
.card-feature ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card-feature li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text-muted); }
.card-feature li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }

.subhead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 56px 0 22px; flex-wrap: wrap; }
.subhead h3 { margin: 0; font-size: 1.35rem; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--surface); padding: 26px 22px; }
.metric b { display: block; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--primary-text); letter-spacing: -0.03em; margin-bottom: 10px; }
.metric span { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 960px) { .metrics { grid-template-columns: repeat(2, 1fr); } .metric:last-child { grid-column: span 2; } }

/* Sızma testi süreci: bağlantılı zaman çizelgesi (masaüstünde yatay, mobilde dikey) */
.flow { --node: 56px; --flow-speed: 1.8s; }
.flow-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow-steps::before, .flow-steps::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--node) / 2 - 1px); height: 2px; border-radius: 2px;
}
.flow-steps::before { background: var(--border-strong); }
.flow-steps::after {
  background: linear-gradient(90deg, var(--primary), var(--primary) 70%, var(--accent));
  transform: scaleX(0); transform-origin: left center; transition: transform var(--flow-speed) cubic-bezier(.65, 0, .35, 1) .15s;
}
.flow-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow-node {
  position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--text-dim);
  transition: border-color .4s ease, color .4s ease, box-shadow .4s ease;
  transition-delay: calc(var(--i) * .36s + .2s);
}
.flow-node svg { width: 22px; height: 22px; }
.flow-num {
  position: absolute; top: -6px; right: -10px; padding: 2px 6px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; line-height: 1.4;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border-strong);
  transition: background .4s ease, color .4s ease, border-color .4s ease; transition-delay: inherit;
}
.flow-step h4 { font-size: 1rem; margin: 0 0 6px; }
.flow-step p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }

/* Görünür olunca: çizgi dolar, düğümler sırayla yanar */
.flow.is-visible .flow-steps::after, .no-js .flow-steps::after { transform: scaleX(1); }
.flow.is-visible .flow-node, .no-js .flow-node { border-color: var(--primary); color: var(--primary-text); box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .12); }
.flow.is-visible .flow-num, .no-js .flow-num { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }


@media (max-width: 900px) {
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  /* Mobilde tek uzun çizgi yerine adımlar arası bağlantı parçaları (son düğümde biter) */
  .flow-steps::before, .flow-steps::after { display: none; }
  .flow-step:not(:last-child)::before, .flow-step:not(:last-child)::after {
    content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0; width: 2px;
  }
  .flow-step:not(:last-child)::before { background: var(--border-strong); }
  .flow-step:not(:last-child)::after {
    background: var(--primary); transform: scaleY(0); transform-origin: center top;
    transition: transform .36s linear; transition-delay: calc(var(--i) * .36s + .35s);
  }
  .flow.is-visible .flow-step::after, .no-js .flow-step::after { transform: scaleY(1); }
  .flow-step { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 18px; text-align: left; align-items: start; padding-bottom: 28px; }
  .flow-node { grid-row: span 2; margin: 0; }
  .flow-step h4 { margin-top: 14px; }
}

.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.standard { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--tint); }
.standard dt { font-weight: 700; margin-bottom: 4px; }
.standard dd { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
@media (max-width: 960px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .standards { grid-template-columns: 1fr; } }

/* ---------- Training cards ---------- */
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--tint-strong); border: 1px solid var(--border); color: var(--text-muted); }
.chip svg { width: 13px; height: 13px; }
.chip.hot { color: var(--primary-text); border-color: rgba(var(--primary-rgb), .35); background: rgba(var(--primary-rgb), .08); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(var(--primary-rgb), .45); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 650; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .ico { width: 42px; height: 42px; }
.contact-points .ico svg { width: 20px; height: 20px; }
.contact-points b { display: block; }
.contact-points span, .contact-points a { color: var(--text-muted); font-size: .95rem; }

.form { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-dark); color: var(--text-light); font: inherit; font-size: .98rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-muted); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.form-note { margin: 12px 0 0; font-size: .8rem; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 14px; height: 14px; flex: none; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg);
  background: radial-gradient(600px 240px at 100% 0%, rgba(var(--primary-rgb), .22), transparent 70%), var(--surface-2);
  border: 1px solid rgba(var(--primary-rgb), .3);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* ---------- Detail pages ---------- */
.page-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 320px at 90% 0%, rgba(var(--primary-rgb), .16), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .hero-actions { margin: 26px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.facts .chip { font-size: .85rem; padding: 6px 12px; }

.breadcrumb ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-dim); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-text); }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: clamp(24px, 3.5vw, 48px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); align-items: start; }
.toc, .aside { position: sticky; top: 96px; }
.toc h2, .aside h2 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); font-size: .88rem; line-height: 1.4; }
.toc a:hover { color: var(--text-light); }
.toc a.is-active { color: var(--primary-text); border-left-color: var(--primary); }
@media (max-width: 1180px) { .layout { grid-template-columns: minmax(0, 1fr) 290px; } .toc { display: none; } }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }

.aside-card { padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid rgba(var(--primary-rgb), .3); margin-bottom: 18px; }
.aside-card h3 { font-size: 1.08rem; }
.aside-card p { color: var(--text-muted); font-size: .92rem; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aside-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text-muted); font-size: .9rem; line-height: 1.4; }
.aside-list a:hover { background: var(--tint-strong); color: var(--text-light); }
.aside-list a[aria-current="page"] { position: relative; background: rgba(var(--primary-rgb), .1); color: var(--primary-text); font-weight: 600; }
.aside-list a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--primary); }

.summary-box { padding: 20px 22px; border-radius: var(--radius); background: rgba(var(--accent-rgb), .06); border: 1px solid rgba(var(--accent-rgb), .25); margin-bottom: 36px; }
.summary-box h2 { font-size: .78rem !important; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text) !important; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; }
.summary-box p { margin: 0; color: var(--text-light); }

.prose { font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2.2em 0 .7em; padding-top: 1.2em; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.14rem; margin: 1.8em 0 .6em; color: var(--text-light); scroll-margin-top: 96px; }
.prose h4 { font-size: 1rem; margin: 1.4em 0 .5em; color: var(--primary-text); }
.prose p { color: var(--text-body); }
.prose strong { color: var(--text-light); }
.prose ul { padding: 0; margin: 0 0 1.2em; list-style: none; display: grid; gap: 8px; }
.prose ul ul { margin: 8px 0 0 18px; }
.prose li { position: relative; padding-left: 22px; color: var(--text-body); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); }
.prose ul ul li::before { background: transparent; border: 1px solid var(--primary); }
.prose ul.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.prose ul.tools li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--tint); font-family: var(--font-mono); font-size: .84rem; }
.prose ul.tools li::before { display: none; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--text-body); }


/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary-text); }
.site-footer .brand img { height: 32px; margin-bottom: 16px; }
.site-footer p { color: var(--text-muted); max-width: 40ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .84rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Grid/flex çocuklarının uzun içerikle taşmasını engelle */
.hero-grid > *, .contact-grid > *, .layout > *, .grid > *, .footer-grid > * { min-width: 0; }
.prose, .card p { overflow-wrap: anywhere; }

/* Yasal metin sayfaları (KVKK) */
.layout.legal { grid-template-columns: 250px minmax(0, 820px); }
.legal .prose h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.legal .prose th[scope="row"] { width: 140px; background: var(--surface-2); }
.legal .prose .table-wrap table { min-width: 0; }
.check a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a { color: var(--text-muted); }
@media (max-width: 1180px) { .layout.legal { grid-template-columns: minmax(0, 1fr); } }

/* "Penetor nedir?" bandı: üst ve alt boşluk eşit */
.section-define { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--border); }

/* ---------- Tema düğmesi ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: none; border: 1px solid var(--border-strong); color: var(--text-light);
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary-text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 900px) { .header-actions { order: 3; } }

/* Açık temada kartların yüzeyden ayrışması için hafif gölge */
:root[data-theme="light"] .card, :root[data-theme="light"] .faq details, :root[data-theme="light"] .form { box-shadow: 0 1px 2px rgba(15, 26, 43, .05); }
:root[data-theme="light"] .hero::after { opacity: .6; }

/* Turnstile (bot doğrulaması) — yalnızca gerektiğinde görünür */
.cf-turnstile { margin: 0 0 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
