.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; }

    /* Demo chrome — theme toggle (floating, right-center) */
    .demo-toggle {
        position: fixed;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9998;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 64px;
        height: 64px;
        border-radius: 999px;
        background: #AB8F68;
        color: #ffffff;
        font-family: 'Manrope', sans-serif;
        font-weight: 800;
        font-size: 9px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        box-shadow: 0 22px 50px -14px rgba(171, 143, 104, 0.6), 0 10px 22px -10px rgba(0,0,0,0.38);
        transition: transform .3s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s ease, background .3s ease, width .3s ease;
        cursor: pointer;
        border: none;
        overflow: hidden;
    }
    .demo-toggle::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 55%);
        pointer-events: none;
    }
    .demo-toggle:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 32px 60px -14px rgba(171, 143, 104, 0.75), 0 14px 30px -10px rgba(0,0,0,0.45);
    }
    .demo-toggle:active { transform: translateY(-50%) scale(0.96); }
    .demo-toggle .material-symbols-outlined {
        font-size: 26px;
        line-height: 1;
        transition: transform .5s cubic-bezier(.2,.9,.3,1.4);
    }
    .demo-toggle:hover .material-symbols-outlined { transform: rotate(22deg); }
    .demo-toggle__label { line-height: 1; white-space: nowrap; }

    /* Theme switch — PHP header (sun / moon, site palette) */
    .demo-theme-switch {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        vertical-align: middle;
        -webkit-tap-highlight-color: transparent;
    }
    .demo-theme-switch:focus-visible {
        outline: 2px solid #AB8F68;
        outline-offset: 3px;
        border-radius: 999px;
    }
    .demo-theme-switch__track {
        position: relative;
        width: 3.5rem;
        height: 1.625rem;
        border-radius: 9999px;
        background: rgba(120, 113, 108, 0.22);
        box-sizing: border-box;
        box-shadow: inset 0 0 0 1px rgba(120, 113, 108, 0.12);
        transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    html.theme-dark .demo-theme-switch__track {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    .demo-theme-switch__thumb {
        position: absolute;
        top: 2px;
        left: 2px;
        width: calc(50% - 3px);
        height: calc(100% - 4px);
        border-radius: 999px;
        background: rgba(255, 254, 249, 0.95);
        box-shadow: 0 1px 4px rgba(41, 37, 36, 0.12);
        transition: left 0.22s cubic-bezier(0.2, 0.85, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
        z-index: 0;
    }
    .demo-theme-switch--dark .demo-theme-switch__thumb {
        left: calc(50% + 1px);
        background: rgba(42, 40, 38, 0.92);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }
    html.theme-dark .demo-theme-switch__thumb {
        background: rgba(55, 52, 48, 0.95);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    }
    .demo-theme-switch__icons {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px;
        pointer-events: none;
    }
    .demo-theme-switch__icon {
        font-size: 15px;
        line-height: 1;
        width: 1.25rem;
        text-align: center;
        font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
        color: rgba(87, 83, 78, 0.42);
        transition: color 0.2s ease, opacity 0.2s ease;
    }
    html.theme-dark .demo-theme-switch__icon {
        color: rgba(231, 229, 228, 0.35);
    }
    .demo-theme-switch:not(.demo-theme-switch--dark) .demo-theme-switch__icon--sun {
        color: #AB8F68;
        opacity: 1;
    }
    .demo-theme-switch:not(.demo-theme-switch--dark) .demo-theme-switch__icon--moon {
        opacity: 0.75;
    }
    .demo-theme-switch--dark .demo-theme-switch__icon--moon {
        color: #e1c297;
        opacity: 1;
    }
    .demo-theme-switch--dark .demo-theme-switch__icon--sun {
        opacity: 0.65;
    }
    .demo-theme-switch:hover .demo-theme-switch__track {
        background: rgba(120, 113, 108, 0.3);
    }
    html.theme-dark .demo-theme-switch:hover .demo-theme-switch__track {
        background: rgba(255, 255, 255, 0.12);
    }

    html.theme-dark .demo-toggle {
        background: #1a1a1a;
        color: #e1c297;
        border: 1px solid rgba(171,143,104,0.45);
        box-shadow: 0 22px 50px -14px rgba(0,0,0,0.65), 0 0 0 1px rgba(171,143,104,0.08), inset 0 0 0 1px rgba(255,255,255,0.03);
    }
    html.theme-dark .demo-toggle:hover { background: #242424; box-shadow: 0 30px 60px -14px rgba(0,0,0,0.8), 0 0 24px -2px rgba(171,143,104,0.35); }
    @media (max-width: 640px) {
        .demo-toggle { right: 14px; width: 56px; height: 56px; font-size: 8px; }
        .demo-toggle .material-symbols-outlined { font-size: 22px; }
    }

    /* Modal backdrop */
    .demo-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(20, 16, 12, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease;
    }
    .demo-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
    html.theme-dark .demo-modal-backdrop { background: rgba(0,0,0,0.7); }

    /* Modal card */
    .demo-modal {
        position: relative;
        width: min(520px, 100%);
        background: #fff8f6;
        color: #1e1b18;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 40px 80px -20px rgba(25, 18, 10, 0.45), 0 12px 32px -12px rgba(25, 18, 10, 0.25);
        transform: translateY(16px) scale(.97);
        opacity: 0;
        transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .35s ease;
        border: 1px solid rgba(171, 143, 104, 0.18);
    }
    .demo-modal-backdrop.is-open .demo-modal { transform: translateY(0) scale(1); opacity: 1; }
    html.theme-dark .demo-modal {
        background: #1a1a1a;
        color: #e7dfd3;
        border-color: rgba(171, 143, 104, 0.3);
        box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 12px 32px -12px rgba(0,0,0,0.55);
    }

    .demo-modal__accent {
        height: 4px;
        background: linear-gradient(90deg, #AB8F68, #e1c297, #AB8F68);
    }
    .demo-modal__body { padding: 40px 36px 32px; text-align: center; }
    .demo-modal__icon {
        width: 72px;
        height: 72px;
        border-radius: 999px;
        background: rgba(171, 143, 104, 0.12);
        color: #AB8F68;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        border: 1px solid rgba(171, 143, 104, 0.28);
    }
    html.theme-dark .demo-modal__icon { background: rgba(171, 143, 104, 0.15); border-color: rgba(171, 143, 104, 0.4); }
    .demo-modal__icon .material-symbols-outlined { font-size: 36px; }

    .demo-modal__eyebrow {
        display: block;
        font-family: 'Manrope', sans-serif;
        color: #AB8F68;
        font-size: 11px;
        letter-spacing: 0.32em;
        text-transform: uppercase;
        font-weight: 800;
        margin-bottom: 14px;
    }
    .demo-modal__title {
        font-family: 'Noto Serif', serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 16px;
        color: inherit;
    }
    .demo-modal__text {
        font-family: 'Manrope', sans-serif;
        font-size: 15px;
        line-height: 1.7;
        color: rgba(30, 27, 24, 0.72);
        margin: 0 auto;
        max-width: 420px;
    }
    html.theme-dark .demo-modal__text { color: rgba(231, 223, 211, 0.72); }
    .demo-modal__text + .demo-modal__text { margin-top: 12px; }

    .demo-modal__actions { margin-top: 30px; display: flex; justify-content: center; gap: 12px; }
    .demo-modal__btn {
        appearance: none;
        border: none;
        cursor: pointer;
        padding: 14px 32px;
        border-radius: 8px;
        font-family: 'Manrope', sans-serif;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        transition: transform .2s ease, filter .2s ease, background .2s ease, color .2s ease;
    }
    .demo-modal__btn--primary { background: #AB8F68; color: #ffffff; box-shadow: 0 14px 28px -14px rgba(171, 143, 104, 0.7); }
    .demo-modal__btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
    .demo-modal__btn--ghost { background: transparent; color: #AB8F68; border: 1px solid rgba(171, 143, 104, 0.4); }
    .demo-modal__btn--ghost:hover { background: rgba(171, 143, 104, 0.08); }
    html.theme-dark .demo-modal__btn--primary { background: #AB8F68; color: #121212; }
    html.theme-dark .demo-modal__btn--ghost { color: #e1c297; border-color: rgba(225, 194, 151, 0.3); }
    html.theme-dark .demo-modal__btn--ghost:hover { background: rgba(225, 194, 151, 0.08); }

    .demo-modal__close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: none;
        background: rgba(30, 27, 24, 0.06);
        color: inherit;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background .2s ease;
    }
    .demo-modal__close:hover { background: rgba(30, 27, 24, 0.12); }
    html.theme-dark .demo-modal__close { background: rgba(255,255,255,0.06); }
    html.theme-dark .demo-modal__close:hover { background: rgba(255,255,255,0.12); }

    @media (max-width: 520px) {
        .demo-modal__body { padding: 32px 22px 26px; }
        .demo-modal__title { font-size: 22px; }
        .demo-toggle {
            top: auto;
            transform: none;
            right: 16px;
            bottom: 16px;
            padding: 10px 16px;
            font-size: 11px;
        }
    }

    /* 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; }

    /* Geçici kapalı: footer Design & Coding ikonu (HTML korunur; açmak için bu bloğu kaldırın) */
    .demo-credit {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }

    /* 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;
        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, içerik ölçekli */
.home-hero {
    height: 500px;
}
.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__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;
    }
}

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; }
