.material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    }
    body { font-family: 'Manrope', sans-serif; }
    h1, h2, h3, .serif { font-family: 'Noto Serif', serif; }

    /* Dark view scope */
    #dark-view { background-color: #121212; color: #b5ada3; font-family: 'Manrope', sans-serif; }
    #dark-view h1, #dark-view h2, #dark-view h3, #dark-view h4, #dark-view h5, #dark-view h6 { font-family: 'Noto Serif', serif; color: #fcfcfc; }

    html.theme-dark body { background-color: #121212; }
    html.theme-light body { background-color: #fff8f6; }

    /* Theme toggle */
    .demo-theme-switch {
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        outline: none;
    }
    .demo-theme-switch__track {
        position: relative;
        width: 52px;
        height: 28px;
        border-radius: 999px;
        background: #e7e0d6;
        border: 1px solid rgba(171, 143, 104, 0.25);
        transition: background .25s ease, border-color .25s ease;
        display: block;
    }
    .demo-theme-switch__thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        transition: transform .28s cubic-bezier(.2, .9, .3, 1.2);
    }
    .demo-theme-switch--dark .demo-theme-switch__thumb {
        transform: translateX(24px);
    }
    .demo-theme-switch__icons {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px;
        pointer-events: none;
    }
    .demo-theme-switch__icon {
        font-size: 14px !important;
        line-height: 1;
        color: #AB8F68;
        opacity: .85;
    }
    .demo-theme-switch__icon--moon { opacity: .35; }
    .demo-theme-switch--dark .demo-theme-switch__icon--sun { opacity: .35; }
    .demo-theme-switch--dark .demo-theme-switch__icon--moon { opacity: .85; }
    .demo-theme-switch--dark .demo-theme-switch__track,
    html.theme-dark .demo-theme-switch__track {
        background: #2a2622;
        border-color: rgba(171, 143, 104, 0.35);
    }
    .demo-theme-switch:focus-visible .demo-theme-switch__track {
        box-shadow: 0 0 0 2px rgba(171, 143, 104, 0.45);
    }

    /* Hide one view at a time — use display to fully remove from layout */
    #light-view[hidden], #dark-view[hidden] { display: none !important; }

    /* Credit tooltip */
    .demo-credit {
        position: relative;
        display: inline-flex;
        align-items: center;
        outline: none;
    }
    .demo-credit__btn {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: rgba(171, 143, 104, 0.12);
        color: #AB8F68;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: help;
        border: 1px solid rgba(171, 143, 104, 0.28);
        transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s ease;
    }
    .demo-credit__btn .material-symbols-outlined { font-size: 16px; line-height: 1; }
    .demo-credit:hover .demo-credit__btn,
    .demo-credit:focus-visible .demo-credit__btn {
        background: #AB8F68;
        color: #ffffff;
        transform: rotate(-18deg) scale(1.06);
        box-shadow: 0 10px 22px -8px rgba(171, 143, 104, 0.7);
    }
    .demo-credit__tooltip {
        position: absolute;
        left: 50%;
        bottom: calc(100% + 14px);
        transform: translateX(-50%) translateY(6px);
        background: #1e1b18;
        color: #fff8f6;
        font-family: 'Manrope', sans-serif;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.04em;
        line-height: 1.4;
        padding: 10px 18px;
        border-radius: 10px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s ease, transform .32s cubic-bezier(.2,.9,.3,1.2);
        box-shadow: 0 24px 48px -14px rgba(0,0,0,0.45), 0 6px 16px -8px rgba(0,0,0,0.35);
        text-transform: none;
        border: 1px solid rgba(171, 143, 104, 0.35);
        z-index: 50;
    }
    .demo-credit__tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: #1e1b18;
        filter: drop-shadow(0 3px 2px rgba(0,0,0,0.15));
    }
    .demo-credit__tooltip strong {
        color: #e1c297;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    .demo-credit:hover .demo-credit__tooltip,
    .demo-credit:focus-within .demo-credit__tooltip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    html.theme-dark .demo-credit__btn {
        background: rgba(171, 143, 104, 0.14);
        color: #e1c297;
        border-color: rgba(171, 143, 104, 0.38);
    }
    html.theme-dark .demo-credit:hover .demo-credit__btn,
    html.theme-dark .demo-credit:focus-visible .demo-credit__btn {
        background: #AB8F68;
        color: #121212;
    }
    html.theme-dark .demo-credit__tooltip {
        background: #f6ede4;
        color: #1e1b18;
        border-color: rgba(171, 143, 104, 0.4);
    }
    html.theme-dark .demo-credit__tooltip::after { border-top-color: #f6ede4; }
    html.theme-dark .demo-credit__tooltip strong { color: #AB8F68; }

    /* Language switch */
    .demo-lang-switch {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        user-select: none;
        font-family: 'Manrope', sans-serif;
        letter-spacing: 0.05em;
    }
    .demo-lang-token {
        cursor: pointer;
        padding: 3px 6px;
        border-radius: 6px;
        color: #9a8f83;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0.05em;
        transition: color .22s ease, background .22s ease, transform .22s ease;
    }
    .demo-lang-token:hover { color: #AB8F68; background: rgba(171, 143, 104, 0.08); }
    .demo-lang-token.is-active {
        color: #AB8F68;
        font-weight: 800;
        background: rgba(171, 143, 104, 0.12);
    }
    .demo-lang-slash { color: #c4baae; padding: 0 1px; font-weight: 300; }
    html.theme-dark .demo-lang-token { color: #8a8178; }
    html.theme-dark .demo-lang-token:hover { background: rgba(225, 194, 151, 0.08); color: #e1c297; }
    html.theme-dark .demo-lang-token.is-active { color: #e1c297; background: rgba(225, 194, 151, 0.12); }
    html.theme-dark .demo-lang-slash { color: #4d453c; }

.subpage-hero-bi h1 span { display: block; }

/* Ana sayfa hero — sabit 500px, eşit dikey padding, içerik ölçekli */
.home-hero {
    position: relative;
    height: 500px;
    max-height: 500px;
    overflow: hidden;
}
.home-hero__inner {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.home-hero__content {
    max-height: 100%;
    overflow: hidden;
}
.home-hero__title {
    font-size: clamp(1.375rem, 2.5vw + 0.65rem, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.625rem;
    font-weight: 700;
}
.home-hero__title span {
    display: block;
}
.home-hero__lead {
    font-size: clamp(0.8125rem, 0.35vw + 0.75rem, 1rem);
    line-height: 1.5;
    margin: 0 0 1.125rem;
    max-width: 34rem;
    font-weight: 300;
}
@media (min-width: 768px) {
    .home-hero__lead {
        margin-bottom: 1.375rem;
    }
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.home-hero__btn {
    display: inline-block;
    padding: 0.5625rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 0.375rem;
    transition: filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
    .home-hero__btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.75rem;
    }
}
@media (max-width: 767px) {
    .home-hero__inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .home-hero__title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    .home-hero__lead {
        margin-bottom: 0.875rem;
        font-size: 0.8125rem;
        line-height: 1.45;
    }
}

html.dark .content-area { color: #b5ada3; }
html.dark .content-area h1,
html.dark .content-area h2,
html.dark .content-area h3,
html.dark .content-area h4,
html.dark .content-area h5 { color: #fcfcfc; }
html.dark .content-area .text-on-surface { color: #fcfcfc !important; }
html.dark .content-area .text-on-surface-variant { color: #b5ada3 !important; }
