/* Sealbox — tanıtım + dokümantasyon sitesi */

:root {
  --bg: #0a0c0b;
  --bg-2: #101412;
  --panel: #121614;
  --panel-2: #1a221e;
  --line: #232b27;
  --line-2: #2f3d36;
  --text: #f4f7f5;
  --muted: #a9b4ad;
  --dim: #5f6b64;
  /* Figma (Reagraph) dilinden: yarı saydam yüzey + ikon kutusu degradesi */
  --surface: linear-gradient(180deg, rgba(201,214,206,0.045), rgba(201,214,206,0.018));
  --tile: linear-gradient(180deg, rgba(201,214,206,0.05), rgba(201,214,206,0.12));
  --shadow: 0 4px 16px rgba(0,0,0,0.25);
  --green: #5cc07a;
  --green-2: #3f9f5c;
  --green-soft: rgba(92, 192, 122, 0.12);
  --green-glow: rgba(92, 192, 122, 0.35);
  --yellow: #e6c35c;
  --red: #e57373;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.06em 0.36em;
  font-size: 0.8em;
  color: #bfe8cb;
  overflow-wrap: anywhere;
}
::selection { background: var(--green); color: #06110a; }

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

/* Sayfa çerçevesi: kenarlarda ince dikey çizgiler (Figma'daki Left/Right Line) */
body { position: relative; }
body::before, body::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 52px; z-index: 40; pointer-events: none;
  border-color: var(--line); border-style: solid; border-width: 0;
  background: repeating-linear-gradient(135deg, rgba(201,214,206,0.025) 0 1px, transparent 1px 9px);
}
body::before { left: 0; border-right-width: 1px; }
body::after { right: 0; border-left-width: 1px; }
body:has(.hero)::before, body:has(.hero)::after { top: 100vh; top: 100svh; }
@media (min-height: 1300px) { body:has(.hero)::before, body:has(.hero)::after { top: 960px; } }
@media (max-width: 1300px) { body::before, body::after { display: none; } }

/* Noktalı ızgara zemin (Figma'daki Dot Grid BG) */
.dot-grid { position: relative; isolation: isolate; }
.dot-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(231,239,233,0.14) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%, #000 62%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 38%, #000 62%, transparent);
}

/* ---------- Navigasyon ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 12, 11, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.nav.solid, .nav.always-solid { background: rgba(10, 12, 11, 0.92); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1360px; }
.nav { font-family: var(--ui); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green); display: grid; place-items: center;
  box-shadow: 0 0 18px var(--green-glow);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav-links a.btn-sm {
  color: #06110a; background: var(--green); margin-left: 8px; font-weight: 600;
}
.nav-links a.btn-sm:hover { background: #74d290; }
.lang-switch {
  display: inline-flex; margin-left: 6px; padding: 2px;
  border: 1px solid var(--line-2); border-radius: 9px;
  font-family: var(--mono);
}
.nav-links .lang-switch a { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; color: var(--dim); }
.nav-links .lang-switch a.on { color: #06110a; background: var(--green); cursor: default; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  color: var(--text); border-radius: 8px; width: 40px; height: 38px; cursor: pointer;
}

/* ---------- Butonlar ---------- */
/* Figma: köşesiz, geniş; ikincil düğme yalnızca ince yeşil çerçeve */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 32px; border-radius: 0;
  font-weight: 600; font-size: 15px; line-height: 22px; letter-spacing: 0.01em;
  border: 1.2px solid var(--green); color: var(--text); background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; background: var(--green-soft); }
.btn.primary { background: var(--green); color: #06110a; border-color: var(--green); }
.btn.primary:hover { background: #74d290; border-color: #74d290; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero bu yeniden tasarımın dışında: eski görünümünü korur */
.hero { font-family: var(--ui); }
.hero .btn {
  padding: 12px 20px; border-radius: 10px; line-height: inherit; letter-spacing: 0;
  border: 1px solid var(--line-2); background: rgba(20, 26, 23, 0.7);
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.hero .btn:hover { border-color: var(--green); transform: translateY(-1px); }
.hero .btn.primary { background: var(--green); color: #06110a; border-color: var(--green); }
.hero .btn.primary:hover { background: #74d290; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 28px) 0 64px;
}
@media (min-height: 1300px) { .hero { min-height: 960px; } }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,12,11,0.82) 0%, rgba(10,12,11,0.6) 34%, rgba(10,12,11,0.2) 58%, rgba(10,12,11,0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,12,11,0) 18%);
}
.hero .wrap { max-width: 1360px; width: 100%; }
.hero-content { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--green);
  border: 1px solid rgba(92,192,122,0.35); background: var(--green-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 18px; font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}
.hero h1 .g { color: var(--green); }
.hero p.lead { font-size: clamp(16px, 1.5vw, 18px); color: #d3ddd6; margin: 0 0 24px; max-width: 580px; text-shadow: 0 1px 12px rgba(0,0,0,0.85); }

/* Yazılan terminal */
.term {
  max-width: 560px;
  background: rgba(10, 14, 12, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  backdrop-filter: blur(3px);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4640; display: block; }
.term-bar i:nth-child(1) { background: #e5736d; }
.term-bar i:nth-child(2) { background: #e6c35c; }
.term-bar i:nth-child(3) { background: #5cc07a; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.term-bar .copy { margin-left: auto; }
.term-body {
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  padding: 12px 16px 14px; min-height: 180px; color: #d6e2da;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  white-space: pre-wrap; word-break: break-word;
}
.term-body .p { color: var(--green); user-select: none; }
.term-body .o { color: var(--muted); }
.term-body .ok { color: var(--green); }
.term-body .wn { color: var(--yellow); }
.term-body .er { color: var(--red); }
.cursor {
  display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em;
  background: var(--green); margin-left: 1px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.copy {
  font: 500 12px var(--ui); color: var(--muted);
  background: transparent; border: 1px solid var(--line-2); border-radius: 7px;
  padding: 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.copy:hover { color: var(--text); border-color: var(--green); }
.copy.done { color: var(--green); border-color: var(--green); }
.copy svg { width: 13px; height: 13px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--green); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: var(--dim); font-size: 12px; font-family: var(--mono); text-align: center;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 28px; margin: 6px auto 0;
  background: linear-gradient(var(--green), transparent); animation: drip 2s infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Bölümler ---------- */
/* Figma: tek renk zemin, bölümler tam genişlikte ince çizgilerle ayrılır */
section.block { padding: 120px 0; position: relative; border-top: 1px solid var(--line); }
section.block.alt {
  background: radial-gradient(700px 420px at 85% 40%, rgba(92,192,122,0.07), transparent 70%);
}
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/20px var(--ui); color: var(--green); letter-spacing: 0.02em;
  border: 1px solid rgba(92,192,122,0.3); background: rgba(92,192,122,0.06);
  padding: 3px 12px; border-radius: 999px; margin: 0 0 20px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
h2.title { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -0.015em; margin: 0 0 24px; font-weight: 600; }
p.sub { color: var(--muted); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.38; max-width: 720px; margin: 0 0 56px; }
.center { text-align: center; }
.center p.sub { margin-left: auto; margin-right: auto; }

.agents {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  padding: 26px 0; color: var(--dim);
  font-family: var(--mono); font-size: 14px;
}
.agents b { color: var(--muted); font-weight: 500; }

/* İstatistik şeridi (Figma: Stats Section) */
.stats { border-top: 1px solid var(--line); padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin-bottom: 12px; }
.stat b .g { color: var(--green); }
.stat span { font-size: 16px; color: var(--muted); }

/* "Başlarken" satırları (Figma: Getting started — solda bilgi, sağda kod) */
.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.row-item h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--text); }
.row-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.row-item .num { font: 500 12px var(--ui); color: var(--green); display: block; margin-bottom: 10px; letter-spacing: 0.06em; }
.row-item .more { display: inline-block; margin-top: 14px; font: 500 13px var(--ui); color: var(--green); }
.row-item .codeblock { margin: 0; }

/* Ortalanmış CTA (Figma: CTA) */
.cta-center { text-align: center; padding: 110px 0; border-top: 1px solid var(--line); }
.cta-center h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -0.015em; font-weight: 600; margin: 0 auto 30px; max-width: 640px; }
.cta-center p { color: var(--muted); font-size: 17px; margin: -14px auto 30px; max-width: 560px; }
.cta-center .btn { min-width: 244px; }

/* Önce / sonra */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.code-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.code-card header {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.tag { font: 600 11.5px var(--ui); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.tag.bad { color: var(--red); background: rgba(229,115,115,0.12); border: 1px solid rgba(229,115,115,0.3); }
.tag.good { color: var(--green); background: var(--green-soft); border: 1px solid rgba(92,192,122,0.35); }
.code-card header .tag { margin-left: auto; }
pre.code {
  margin: 0; padding: 18px 18px; font-size: 13.5px; line-height: 1.75;
  overflow-x: auto; color: #cfdad3; flex: 1;
}
.k { color: #c792ea; } .s { color: #c3e88d; } .c { color: var(--dim); font-style: italic; }
.n { color: #82aaff; } .v { color: #f78c6c; } .f { color: #ffcb6b; }
.leak { background: rgba(229,115,115,0.16); border-bottom: 2px solid var(--red); border-radius: 3px; }
.sq { text-decoration: underline wavy var(--yellow); text-underline-offset: 4px; }
.sealed { background: var(--green-soft); border-radius: 3px; color: #9fe0b2; }
.agent-note {
  margin: 0; padding: 14px 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start;
}
.agent-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.agent-note > span { flex: 1; min-width: 0; }
.agent-note.bad svg { color: var(--red); }
.agent-note.good svg { color: var(--green); }

/* Adımlar */
.steps-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.flow-img {
  border-radius: 8px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 8.5; background: #0c0d0c;
}
.flow-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 22px; border-radius: 20px; background: var(--surface);
  backdrop-filter: blur(15px);
}
.steps .num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--green);
  background: var(--tile);
}
.steps h3 { margin: 2px 0 6px; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps code { font-size: 12.5px; }

/* Özellik kartları */
.grid { display: grid; gap: 10px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
/* Figma: kenarlıksız, yarı saydam, sağ üst köşesi eğik kesik kart + büyük ikon kutusu */
.card {
  --cut: 34px;
  background: var(--surface); border-radius: 30px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 30px; position: relative; transition: background 0.25s;
  backdrop-filter: blur(15px);
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut);
  background: linear-gradient(225deg, transparent 49%, rgba(92,192,122,0.35) 50%, transparent 53%);
  pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.card:hover { background: linear-gradient(180deg, rgba(92,192,122,0.075), rgba(201,214,206,0.02)); }
.card:hover::after { opacity: 1; }
.card .ic {
  width: 96px; height: 92px; border-radius: 20px; display: grid; place-items: center;
  background: var(--tile); color: var(--green); margin-bottom: 30px;
  backdrop-filter: blur(15px);
}
.card .ic svg { width: 34px; height: 34px; stroke-width: 1.6; }
.card h3 { margin: 0 0 10px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--text); opacity: 0.8; font-size: 16px; line-height: 22px; letter-spacing: 0.01em; }
.grid.g4 .card { padding: 26px; --cut: 28px; }
.grid.g4 .card .ic { width: 78px; height: 74px; border-radius: 18px; margin-bottom: 24px; }
.grid.g4 .card .ic svg { width: 30px; height: 30px; }
.grid.g4 .card h3 { font-size: 20px; line-height: 28px; }
.grid.g4 .card p { font-size: 15px; }
.split .grid.g2 .card, .prose .grid.g2 .card { padding: 22px; border-radius: 22px; --cut: 22px; }
.split .grid.g2 .card h3, .prose .grid.g2 .card h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; }
.split .grid.g2 .card p, .prose .grid.g2 .card p { font-size: 14.5px; line-height: 21px; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
a.card .more { display: inline-block; margin-top: 18px; color: var(--green); font: 500 13px var(--ui); }

/* İki sütunlu anlatım */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2.title, .steps-layout h2.title { font-size: clamp(34px, 3.6vw, 50px); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); font-size: 16.5px; }
.checks li b { color: var(--text); font-weight: 600; }
.checks li svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }

/* Ekip diyagramı */
.diagram {
  background: var(--surface); border-radius: 30px; padding: 30px;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  position: relative; backdrop-filter: blur(15px);
}
.diagram svg.full { width: 100%; height: auto; display: block; }
.diagram .cap { font-size: 13px; color: var(--dim); margin: 14px 0 0; text-align: center; }

/* Anahtar hiyerarşisi */
.locks { display: grid; gap: 12px; }
.lock-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: rgba(201,214,206,0.04);
}
.lock-row .ic { width: 52px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: var(--green); }
.lock-row .ic svg { width: 22px; height: 22px; }
.lock-row b { display: block; font-size: 16px; font-weight: 600; }
.lock-row small { color: var(--muted); font-size: 13.5px; }
.lock-row .pill { font-family: var(--ui); font-size: 11.5px; color: var(--green); border: 1px solid rgba(92,192,122,0.35); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.lock-arrow { text-align: center; color: var(--green); font-family: var(--mono); font-size: 13px; }
.dek {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; border-radius: 18px; border: 1px dashed rgba(92,192,122,0.5);
  font-family: var(--mono); font-size: 14px; color: var(--text); background: rgba(92,192,122,0.05);
}
.dek .arrow { color: var(--green); }

/* VS Code taklidi */
.vsc {
  border-radius: 12px; overflow: hidden; border: 1px solid #2b2b2b; background: #1e1e1e;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55); font-family: var(--mono); font-size: 13px;
}
.vsc-title { background: #2a2a2a; color: #bbb; padding: 7px 12px; display: flex; gap: 7px; align-items: center; font-size: 12px; }
.vsc-title i { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.vsc-title i:nth-child(1) { background: #e5736d; } .vsc-title i:nth-child(2) { background: #e6c35c; } .vsc-title i:nth-child(3) { background: #5cc07a; }
.vsc-title span { margin: 0 auto; transform: translateX(-20px); }
.vsc-tabs { display: flex; background: #252526; }
.vsc-tabs div { padding: 8px 14px; color: #888; font-size: 12.5px; border-right: 1px solid #1e1e1e; }
.vsc-tabs div.on { background: #1e1e1e; color: #ddd; border-top: 1px solid var(--green); }
.vsc-code { position: relative; padding: 14px 0; line-height: 1.85; color: #d4d4d4; overflow: hidden; }
.vsc-code .ln { display: grid; grid-template-columns: 42px 1fr; white-space: pre; }
.vsc-code .ln > span:first-child { color: #5a5a5a; text-align: right; padding-right: 16px; user-select: none; }
.bulb { color: #e6c35c; position: absolute; left: 6px; }
.hover-box {
  position: absolute; left: 150px; top: 162px; width: 300px; max-width: calc(100% - 160px);
  background: #252526; border: 1px solid #454545; border-radius: 6px; padding: 10px 12px;
  font-family: var(--ui); font-size: 12.5px; color: #ccc; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  line-height: 1.5;
}
.hover-box b { color: #fff; font-family: var(--mono); font-weight: 500; }
.hover-box a { display: inline-block; margin-top: 6px; color: #4fc1ff; }
.vsc-status {
  display: flex; gap: 16px; align-items: center; background: #1f6f3d; color: #e8fff0;
  padding: 4px 12px; font-size: 12px; font-family: var(--ui);
}
.vsc-status .r { margin-left: auto; opacity: 0.85; }
.vsc-menu {
  position: absolute; right: 14px; bottom: 14px; width: 250px;
  background: #252526; border: 1px solid #454545; border-radius: 6px; padding: 6px;
  font-family: var(--ui); font-size: 12.5px; color: #ccc; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.vsc-menu div { padding: 5px 8px; border-radius: 4px; }
.vsc-menu div.on { background: #04395e; color: #fff; }

/* Karşılaştırma tablosu */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 12px/20px var(--ui); color: var(--muted); background: rgba(255,255,255,0.02); white-space: nowrap; letter-spacing: 0.02em; }
th.hl, td.hl { background: rgba(92,192,122,0.06); }
th.hl { color: var(--green); }
td .y { color: var(--green); font-weight: 600; }
td .x { color: var(--red); }
td .m { color: var(--yellow); }

/* Kod bloğu */
.codeblock {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 18px 0 24px;
}
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.2px; line-height: 22px; letter-spacing: -0.2px; color: #e4ebe6; }
.codeblock .copy { position: absolute; top: 10px; right: 10px; background: var(--panel); }
.codeblock .lbl { position: absolute; top: -10px; left: 14px; font: 600 11px var(--mono); color: var(--dim); background: var(--bg); padding: 0 6px; }
.codeblock .p { color: var(--green); user-select: none; }
.codeblock .c { color: var(--dim); font-style: normal; }

/* CTA */
.cta {
  border: 1px solid rgba(92,192,122,0.3); border-radius: 22px; padding: 56px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(92,192,122,0.16), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(92,192,122,0.1), transparent 70%),
    var(--panel);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.15; }
.cta p { margin: 0; color: var(--muted); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line); padding: 56px 0 0; color: var(--dim); font: 14px/22px var(--ui);
  background: var(--bg);
}
footer.site .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { color: var(--text); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site .bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 24px 0; margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
footer.site .bottom span:last-child { color: var(--green); }

/* Belirerek gelme */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Dokümantasyon / Öğren düzeni ---------- */
.page-head {
  padding: calc(var(--nav-h) + 72px) 0 56px; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(92,192,122,0.12), transparent 70%),
    var(--bg);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(231,239,233,0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-head h1 { font-size: clamp(38px, 4.6vw, 58px); letter-spacing: -0.015em; line-height: 1.03; margin: 0 0 18px; font-weight: 600; }
.page-head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 720px; margin: 0; }
.page-head .wrap { max-width: 1360px; }

.docs { max-width: 1360px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; }
.docs.two { grid-template-columns: 250px minmax(0, 1fr); }
.sidebar, .toc {
  position: sticky; top: calc(var(--nav-h) + 24px); align-self: start;
  max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding: 32px 0 40px;
  scrollbar-width: thin;
}
.sidebar, .toc { font-family: var(--ui); }
.sidebar h5, .toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 22px 0 8px; font-weight: 600; }
.sidebar h5:first-child, .toc h5:first-child { margin-top: 0; }
.sidebar a, .toc a {
  display: block; color: var(--muted); font-size: 14.5px; padding: 5px 12px; border-left: 2px solid var(--line);
}
.sidebar a:hover, .toc a:hover { color: var(--text); text-decoration: none; }
.sidebar a.active, .toc a.active { color: var(--green); border-left-color: var(--green); background: linear-gradient(90deg, var(--green-soft), transparent); }
.sidebar a code { background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; }
.toc a { font-size: 13.5px; }

.prose { padding: 40px 0 100px; min-width: 0; }
.prose > section { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { font-size: 34px; letter-spacing: -0.01em; margin: 0 0 16px; line-height: 1.15; font-weight: 600; }
.prose h3 { font-size: 21px; margin: 36px 0 10px; letter-spacing: 0; font-weight: 600; }
.prose h3 code { font-size: 0.9em; }
.prose p, .prose li { color: #c4cec8; font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { font-size: 14.5px; }
.prose .table-wrap { margin: 16px 0 24px; }
.prose td code, .prose th code { white-space: nowrap; }
.anchor { color: var(--dim); margin-left: 8px; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }

.callout {
  border: 0; border-left: 2px solid var(--green); border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin: 20px 0; background: var(--surface); font-size: 15px;
}
.callout p { margin: 0; }
.callout b:first-child { color: var(--green); }
.callout.warn { border-left-color: var(--yellow); }
.callout.warn b:first-child { color: var(--yellow); }
.callout.danger { border-left-color: var(--red); }
.callout.danger b:first-child { color: var(--red); }

.cmd-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px;
}
.cmd-head h2 code { background: none; border: 0; padding: 0; color: var(--text); font-size: 0.82em; }
.cmd-head h3 { margin: 0; }
.badge { font: 500 11px var(--ui); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; }
.badge.safe { color: var(--green); border-color: rgba(92,192,122,0.35); }
.badge.asks { color: var(--yellow); border-color: rgba(230,195,92,0.4); }
.usage { font-family: var(--mono); font-size: 13.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 10px 14px; overflow-x: auto; white-space: pre; margin: 10px 0 16px; }
dl.opts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 12px 0 18px; font-size: 14.5px; }
dl.opts dt { font-family: var(--mono); color: #bfe8cb; font-size: 13.5px; }
dl.opts dd { margin: 0; color: #c6d1ca; }

/* Öğren sayfası */
.lesson-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--dim); font: 13px var(--ui); margin: -4px 0 18px; }
.lesson-meta span { display: inline-flex; gap: 6px; align-items: center; }
.analogy {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start;
  background: linear-gradient(90deg, rgba(92,192,122,0.08), transparent 80%);
  border: 0; border-radius: 20px; padding: 18px 20px; margin: 20px 0;
}
.analogy .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: var(--green); font-size: 22px; }
.analogy p { margin: 0; }
.analogy b { color: var(--text); }
.concepts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.concept {
  border-radius: 22px; padding: 20px 22px; background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.concept h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.concept p { margin: 0; font-size: 14.5px; color: var(--muted); }
.concept .like { display: block; margin-top: 8px; font-size: 13.5px; color: #a9d8b7; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; }
.pager a { flex: 1; border: 1.2px solid var(--line-2); border-radius: 0; padding: 16px 20px; color: var(--text); background: transparent; font-weight: 500; }
.pager a:hover { border-color: var(--green); text-decoration: none; }
.pager a small { display: block; color: var(--dim); font: 500 12px var(--ui); }
.pager a.next { text-align: right; }

/* Mobil */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ba, .steps-layout, .split, .cta, .grid.g3, .grid.g2 { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .row-item { grid-template-columns: 1fr; padding: 36px 0; }
  .cta-center { padding: 80px 0; }
  .cta { padding: 34px 24px; }
  section.block { padding: 80px 0; }
  .docs, .docs.two { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    position: static; max-height: none; padding: 20px 0 0; border-bottom: 1px solid var(--line);
    display: none;
  }
  .sidebar.open { display: block; }
  .side-toggle { display: inline-flex !important; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(10,12,11,0.55) 0%, rgba(10,12,11,0.8) 60%, var(--bg) 100%); }
  .hover-box { left: 60px; }
  .vsc-menu { display: none; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(10,12,11,0.98); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.btn-sm { margin: 8px 0 0; text-align: center; }
  .lang-switch { margin: 8px 0 0; align-self: flex-start; }
  .nav-toggle { display: block; }
  .wrap, .docs { padding: 0 16px; }
  .grid.g4, .concepts { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .card { padding: 24px; }
  .card .ic { width: 72px; height: 68px; margin-bottom: 22px; }
  .stat b { font-size: 34px; }
  .btn { padding: 15px 26px; }
  .cta-center .btn { min-width: 0; width: 100%; }
  .term-body { font-size: 12px; min-height: 200px; }
  dl.opts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.opts dd { margin-bottom: 10px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  th, td { padding: 12px 12px; }
  .prose td code, .prose th code { white-space: normal; }
  .prose table { min-width: 560px; }
}
.side-toggle { display: none; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .scroll-hint::after { animation: none; }
}
.cta-buttons { justify-content: center; margin-top: 0; }
footer.site a.brand { color: var(--text); }
.page-head p.kicker { font-size: 12px; line-height: 20px; color: var(--green); max-width: none; margin: 0 0 20px; }
