:root {
    --blue: #0f6cbd;
    --blue-dark: #0b4f8a;
    --green: #14a37f;
    --ink: #172033;
    --text: #3b4558;
    --muted: #6b7486;
    --line: #e3e8ef;
    --soft: #f5f8fc;
    --card: #ffffff;
    --warn-bg: #fff8e6;
    --warn-line: #f1d48a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
    --shadow-lg: 0 24px 60px rgba(9, 30, 66, .22);
    --max: 1120px;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lightbox-open { overflow: hidden; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: .9em;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .08em .4em;
    word-break: break-word;
}

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .95rem;
}
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); background: #ebf3fc; }
.nav .btn { margin-left: 8px; }
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(15, 108, 189, .28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5cfdc; color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.nav .btn { padding: 8px 16px; font-size: .95rem; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--blue); }
.nav a.btn-primary:hover { background: var(--blue-dark); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #e8f1fb;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(20, 163, 127, .45), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(56, 140, 230, .5), transparent 60%),
        linear-gradient(135deg, #0b2f57, #0d4a86 55%, #0b5f74);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 76px 0 84px;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #cfe0f3; max-width: 34em; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #bfe9dc;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: .93rem; color: #cfe0f3; }
.hero-points li::before { content: "✓"; color: #6fe0bd; font-weight: 700; margin-right: 7px; }
.hero-shot { position: relative; }
.hero-shot .shot { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
.hero-shot .shot:hover { transform: none; }
.hero-badge {
    position: absolute;
    left: -26px;
    bottom: -22px;
    width: 58%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.hero-badge .shot { transform: none; }

/* Zoomable screenshots */
.shot {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 30, 60, .12);
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .25s ease;
}
.shot img { width: 100%; height: auto; }
.shot::after {
    content: "Büyüt";
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(23, 32, 51, .75);
    border-radius: 999px;
    padding: 4px 10px;
    opacity: 0;
    transition: opacity .2s ease;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 3px; }
.shot-flat { box-shadow: var(--shadow); }

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; color: var(--green); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ebf3fc;
    color: var(--blue);
    margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.icon.green { background: #e3f6f0; color: var(--green); }
.icon.amber { background: #fff3dc; color: #b26a00; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: start; }
.gallery figure { margin: 0; }
.gallery .g-wide { grid-column: span 7; }
.gallery .g-side { grid-column: span 5; display: grid; gap: 22px; }
.gallery .g-full { grid-column: 1 / -1; }
.gallery figcaption, .figure figcaption { margin-top: 12px; font-size: .93rem; color: var(--muted); }
.gallery figcaption strong, .figure figcaption strong { color: var(--ink); display: block; font-size: 1rem; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: flow; }
.flow li {
    list-style: none;
    position: relative;
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    counter-increment: flow;
}
.flow li::before {
    content: counter(flow);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.flow { padding: 0; margin: 0; }

/* FAQ */
.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 20px;
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    padding: 18px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; }

/* CTA */
.cta {
    border-radius: 20px;
    padding: 44px;
    color: #e8f1fb;
    background: linear-gradient(135deg, #0d4a86, #0b5f74);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #cfe0f3; }

/* Page header */
.page-hero {
    background: linear-gradient(180deg, var(--soft), #fff);
    border-bottom: 1px solid var(--line);
    padding: 56px 0 40px;
}
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 46em; }
.meta { font-size: .9rem; color: var(--muted); }

/* Docs layout */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 80px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: .93rem; }
.toc strong { display: block; color: var(--ink); margin-bottom: 10px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.prose { min-width: 0; }
.prose h2 { margin-top: 2.2em; padding-top: .4em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
    counter-increment: step;
    position: relative;
    padding: 0 0 36px 64px;
    border-left: 2px solid var(--line);
    margin-left: 20px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
    content: counter(step);
    position: absolute;
    left: -21px;
    top: -4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 6px #fff;
}
.step h2, .step h3 { margin-top: 0; padding-top: 4px; }
.step .figure { margin: 18px 0 0; max-width: 640px; }

.callout {
    border: 1px solid #b4d6fa;
    background: #f1f7fe;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}
.callout.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.callout.ok { border-color: #a8e2cf; background: #effaf6; }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
thead th { white-space: normal; }
tr:last-child td { border-bottom: 0; }

.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.summary-cards .card { padding: 20px; }
.summary-cards h3 { font-size: 1rem; margin-bottom: 6px; }
.summary-cards p { font-size: .94rem; }

.release { margin-bottom: 24px; }
.release h3 { margin-top: 1.4em; }
.release ul { padding-left: 1.3em; }
.release li { margin-bottom: .4em; }
.release-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.release-head h2 { margin: 0; }
.badge { font-size: .8rem; font-weight: 600; color: var(--green); background: #e3f6f0; border: 1px solid #a8e2cf; border-radius: 999px; padding: 3px 10px; }
.vt-scan { margin-top: 22px; border: 1px solid #a8e2cf; background: #effaf6; border-radius: 12px; padding: 16px 18px; }
.vt-scan.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.vt-scan h3 { margin: 0 0 .4em; }
.vt-scan p:last-child { margin-bottom: 0; }
.vt-hash { display: block; margin-top: 8px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .78rem; line-height: 1.45; word-break: break-all; color: var(--muted); }

.placeholder { background: #fff1c2; border-radius: 4px; padding: 0 4px; }

/* Footer */
.site-footer { background: #0e1726; color: #a9b4c6; padding: 48px 0 32px; font-size: .94rem; }
.site-footer a { color: #d7e0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #223049; margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 14, 26, .88);
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    padding: 24px;
    animation: lb-fade .18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lightbox-figure img {
    max-width: min(1400px, 100%);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: lb-zoom .22s ease;
}
.lightbox-figure figcaption { color: #dbe4f0; text-align: center; font-size: .95rem; max-width: 70ch; }
.lightbox button {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 30px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox button:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 2px; }
.lightbox button[hidden] { visibility: hidden; display: grid; }
.lightbox-close { position: absolute; top: 18px; right: 18px; }
.lightbox-prev { grid-column: 1; justify-self: start; }
.lightbox-next { grid-column: 3; justify-self: end; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { transform: scale(.96); opacity: .6; } to { transform: none; opacity: 1; } }

/* Responsive */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; padding: 56px 0 72px; }
    .hero-shot { max-width: 620px; }
    .hero-shot .shot { transform: none; }
    .grid-3, .summary-cards { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
    .gallery .g-wide, .gallery .g-side { grid-column: 1 / -1; }
    .docs { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 10px 20px 16px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav .btn { margin: 8px 0 0; }
    .grid-3, .grid-2, .summary-cards, .flow, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .cta { padding: 28px; }
    .hero-badge { position: static; width: 80%; margin: -30px 0 0 auto; }
    .step { padding-left: 40px; margin-left: 16px; }
    .step::before { width: 34px; height: 34px; left: -18px; }
    .lightbox { grid-template-columns: 44px 1fr 44px; padding: 12px; }
    .lightbox button { width: 40px; height: 40px; font-size: 24px; }
}
.error-page { padding: 72px 0 96px; text-align: center; }
.error-page .error-code {
    display: block; font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 800; line-height: 1;
    letter-spacing: -.04em; color: var(--blue); margin-bottom: 12px;
}
.error-page h1 { margin-bottom: 12px; }
.error-page .lead { color: var(--text); font-size: 1.1rem; max-width: 34em; margin: 0 auto 10px; }
.error-page .hint { color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.error-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }
.error-page .error-links { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.error-page .en { color: var(--muted); font-size: .92rem; margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
