:root {
    --ink: #0c1a14;
    --ink-soft: #24352c;
    --mist: #e8efe9;
    --paper: #f4f7f4;
    --field: #1a5c3a;
    --field-deep: #0f3d27;
    --lime: #b8e86a;
    --lime-soft: #d4f29a;
    --line: rgba(12, 26, 20, 0.12);
    --muted: #5a6b61;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(244, 247, 244, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-brand img {
    height: 36px;
    width: auto;
}

.topbar-brand span {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-soft);
}

.btn-ghost:hover { background: white; }

.btn-primary {
    background: var(--field);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 92, 58, 0.25);
}

.btn-primary:hover { background: var(--field-deep); }

.btn-lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(184, 232, 106, 0.35);
}

.btn-lime:hover { background: var(--lime-soft); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--field-deep);
}

/* Landing ana sayfa: tek ekran, scroll yok */
body.landing-home {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.landing-home .hero {
    flex: 1;
    min-height: 0;
}

body.landing-home .hero-inner {
    padding: 40px 0 48px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 65px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(184, 232, 106, 0.18), transparent 55%),
        linear-gradient(160deg, #0f3d27 0%, #1a5c3a 42%, #0c1a14 100%);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 64px;
}

.hero-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 20px;
    animation: rise 0.7s ease both;
}

.hero-brand img {
    display: block;
    height: clamp(48px, 8vw, 72px);
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin-bottom: 14px;
    animation: rise 0.7s ease 0.08s both;
}

.hero p {
    max-width: 38ch;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 28px;
    animation: rise 0.7s ease 0.16s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: rise 0.7s ease 0.24s both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.docs {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 48px;
    align-items: start;
}

.docs-main { min-width: 0; }

.docs-intro {
    margin-bottom: 8px;
}

.docs-intro h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.docs-intro p {
    color: var(--muted);
    max-width: 52ch;
}

.docs-section {
    scroll-margin-top: 88px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}

.docs-section:first-of-type { padding-top: 28px; }
.docs-section:last-child { border-bottom: 0; }

.docs-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--ink);
}

.docs-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 22px 0 8px;
    color: var(--field-deep);
}

.docs-section p,
.docs-section li {
    color: var(--muted);
    font-size: 0.98rem;
}

.docs-section p + p { margin-top: 10px; }

.docs-section ol,
.docs-section ul {
    margin: 12px 0 0 1.2rem;
    display: grid;
    gap: 8px;
}

.docs-section li strong { color: var(--ink-soft); }

.callout {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--field);
    background: var(--mist);
    border-radius: 0 10px 10px 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.flow span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.flow span::after {
    content: '→';
    margin-left: 10px;
    color: var(--field);
    font-weight: 700;
}

.flow span:last-child::after { display: none; }

.docs-toc {
    position: sticky;
    top: 88px;
    padding: 8px 0;
}

.docs-toc p {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.docs-toc nav {
    display: grid;
    gap: 4px;
    border-left: 2px solid var(--line);
    padding-left: 12px;
}

.docs-toc a {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 4px 0;
    transition: color 0.15s ease;
}

.docs-toc a:hover,
.docs-toc a.is-active {
    color: var(--field);
    font-weight: 600;
}

.footer-cta {
    margin-top: 40px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--field-deep), var(--field));
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-cta h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: white;
}

.footer-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 28px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* —— Docs (rehber) sayfası: dokümantasyon görünümü —— */
body.landing-docs {
    background: white;
}

body.landing-docs .docs {
    width: calc(100% - 64px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 56px;
    padding-top: 40px;
}

body.landing-docs .docs-main {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.docs-breadcrumb {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

.intro-callout {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--mist);
    border: 1px solid rgba(26, 92, 58, 0.18);
    border-radius: 12px;
}

.intro-callout strong {
    display: block;
    font-family: 'Syne', sans-serif;
    color: var(--field-deep);
    margin-bottom: 6px;
}

.intro-callout p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

body.landing-docs .docs-section {
    border-bottom: 0;
    padding: 28px 0 8px;
}

body.landing-docs .docs-section h2 {
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 16px;
}

/* Numaralı adımlar */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 12px 0 0 0 !important;
    display: grid;
    gap: 12px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 40px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--field);
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sağ TOC kutusu */
.docs-toc-box {
    background: #f6f8f6;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.docs-toc-box p {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--field-deep);
    margin-bottom: 10px;
}

.docs-toc-box nav {
    display: grid;
    gap: 2px;
    border-left: 0;
    padding-left: 0;
}

.docs-toc-box a {
    display: block;
    padding: 6px 10px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.docs-toc-box a:hover {
    color: var(--field);
    background: rgba(26, 92, 58, 0.06);
}

.docs-toc-box a.is-active {
    color: var(--field-deep);
    background: rgba(184, 232, 106, 0.28);
    border-left-color: var(--field);
    font-weight: 700;
}

@media (max-width: 900px) {
    .docs {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.landing-docs .docs {
        grid-template-columns: 1fr;
    }

    .docs-toc-box nav {
        display: flex;
        gap: 8px;
        width: max-content;
    }

    .docs-toc-box a {
        white-space: nowrap;
        border-left: 0;
        border-radius: 8px;
    }

    .docs-toc {
        position: static;
        order: -1;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .docs-toc nav {
        display: flex;
        gap: 14px;
        border-left: 0;
        padding-left: 0;
        width: max-content;
    }

    .docs-toc a { white-space: nowrap; }
}

@media (max-width: 640px) {
    .topbar { padding: 12px 16px; }
    .topbar-brand span { display: none; }
    .hero-inner { width: calc(100% - 32px); padding: 56px 0 48px; }
    .docs { width: calc(100% - 32px); padding-top: 36px; }
}
