:root {
    --hosting-bg: #090604;
    --hosting-text: #f7f1e6;
    --hosting-muted: #e8e6e1;
    --hosting-gold: #d5ad58;
    --hosting-gold-bright: #f0d38a;
    --hosting-line: rgba(247, 241, 230, 0.2);
    --hosting-gutter: clamp(28px, 5vw, 92px);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

html.hosting-root {
    height: 100%;
    overflow: hidden;
    background: var(--hosting-bg);
}

body.hosting-home {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--hosting-text);
    background: var(--hosting-bg);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

.hosting-stage {
    position: relative;
    isolation: isolate;
    contain: layout paint size;
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--hosting-bg);
}

.hosting-stage::before,
.hosting-stage::after,
.hosting-backdrop,
.hosting-grain,
.hosting-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hosting-stage::before {
    z-index: 1;
    content: '';
    background:
        linear-gradient(90deg, rgba(7, 5, 3, 0.99) 0%, rgba(7, 5, 3, 0.91) 28%, rgba(7, 5, 3, 0.58) 50%, rgba(7, 5, 3, 0.12) 74%, rgba(7, 5, 3, 0.18) 100%),
        linear-gradient(180deg, rgba(5, 4, 3, 0.66) 0%, transparent 25%, transparent 68%, rgba(5, 4, 3, 0.72) 100%);
}

.hosting-stage::after {
    z-index: 2;
    content: '';
    background:
        radial-gradient(circle at 70% 42%, transparent 0, transparent 20%, rgba(4, 3, 2, 0.17) 57%, rgba(4, 3, 2, 0.68) 115%),
        linear-gradient(115deg, rgba(214, 172, 86, 0.09), transparent 32%);
}

.hosting-backdrop {
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: hosting-reveal 1800ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hosting-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.8) contrast(1.07) brightness(0.82);
    transform: scale(1.025);
    animation: hosting-breathe 18s ease-in-out 1.8s infinite alternate;
}

.hosting-grain {
    z-index: 3;
    opacity: 0.065;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
    background-position: 0 0;
    background-size: 180px 180px;
    mix-blend-mode: soft-light;
    animation: hosting-grain-shift 0.28s steps(2) infinite;
}

.hosting-frame {
    z-index: 7;
    inset: clamp(10px, 1.1vw, 20px);
    border: 1px solid rgba(247, 241, 230, 0.13);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.08);
    animation: hosting-frame-in 1.4s ease-out 0.35s both;
}

.hosting-frame::before,
.hosting-frame::after {
    position: absolute;
    content: '';
    background: var(--hosting-gold);
    box-shadow: 0 0 18px rgba(213, 173, 88, 0.32);
}

.hosting-frame::before {
    top: -1px;
    left: 7%;
    width: clamp(44px, 5vw, 88px);
    height: 1px;
}

.hosting-frame::after {
    right: -1px;
    bottom: 12%;
    width: 1px;
    height: clamp(40px, 6vh, 72px);
}

.hosting-header,
.hosting-main,
.hosting-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-left: max(var(--hosting-gutter), env(safe-area-inset-left));
    padding-right: max(var(--hosting-gutter), env(safe-area-inset-right));
}

.hosting-header {
    display: grid;
    min-height: 0;
    align-items: center;
    padding-top: max(clamp(28px, 4.4vh, 48px), env(safe-area-inset-top));
    border: 0;
    grid-template-columns: 1fr auto 1fr;
    animation: hosting-fade-down 1s ease-out 0.15s both;
}

.hosting-brand {
    display: inline-flex;
    width: fit-content;
}

.hosting-brand img {
    display: block;
    width: clamp(178px, 13vw, 224px);
    height: auto;
}

.hosting-header-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    color: rgba(232, 230, 225, 0.58);
    font-size: 0.59rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hosting-header-note i {
    display: block;
    width: 34px;
    height: 1px;
    background: rgba(213, 173, 88, 0.64);
}

.hosting-nav,
.hosting-legal {
    display: flex;
    align-items: center;
}

.hosting-nav {
    justify-content: flex-end;
    gap: clamp(20px, 2.4vw, 40px);
}

.hosting-nav a,
.hosting-legal a {
    position: relative;
    color: var(--hosting-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 200ms ease;
}

.hosting-nav a::after,
.hosting-legal a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    content: '';
    background: var(--hosting-gold-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 240ms ease;
}

.hosting-nav a:hover,
.hosting-nav a:focus-visible,
.hosting-legal a:hover,
.hosting-legal a:focus-visible {
    color: var(--hosting-gold-bright);
}

.hosting-nav a:hover::after,
.hosting-nav a:focus-visible::after,
.hosting-legal a:hover::after,
.hosting-legal a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hosting-nav a:focus-visible,
.hosting-legal a:focus-visible,
.hosting-brand:focus-visible {
    outline: 1px solid var(--hosting-gold-bright);
    outline-offset: 7px;
}

.hosting-main {
    display: flex;
    min-height: 0;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hosting-hero {
    width: min(58vw, 880px);
    max-width: none;
    margin-top: -1.5vh;
}

.hosting-eyebrow,
.hosting-hero h1,
.hosting-lead,
.hosting-signature {
    animation: hosting-copy-in 950ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hosting-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 clamp(16px, 2.4vh, 26px);
    color: var(--hosting-gold-bright);
    font-size: clamp(0.64rem, 0.64vw, 0.76rem);
    font-weight: 650;
    letter-spacing: 0.31em;
    text-transform: uppercase;
    animation-delay: 0.38s;
}

.hosting-eyebrow span {
    display: block;
    width: clamp(34px, 3.2vw, 56px);
    height: 1px;
    background: linear-gradient(90deg, var(--hosting-gold), rgba(213, 173, 88, 0.18));
    box-shadow: 0 0 16px rgba(213, 173, 88, 0.28);
}

.hosting-hero h1 {
    margin: 0;
    color: var(--hosting-text);
    font-family: 'Barlow Semi Condensed', 'Outfit', sans-serif;
    font-size: clamp(5.6rem, 11.2vw, 12.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.76;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 10px 48px rgba(0, 0, 0, 0.42);
    animation-delay: 0.5s;
}

.hosting-hero h1 span {
    color: var(--hosting-gold-bright);
    text-shadow: 0 0 42px rgba(213, 173, 88, 0.2);
    will-change: opacity;
    animation: hosting-dot-pulse 2.8s ease-in-out infinite;
}

.hosting-lead {
    max-width: 540px;
    margin: clamp(23px, 3.2vh, 36px) 0 0;
    color: var(--hosting-muted);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 1.22vw, 1.28rem);
    font-weight: 350;
    letter-spacing: 0.01em;
    line-height: 1.55;
    text-wrap: balance;
    animation-delay: 0.65s;
}

.hosting-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(22px, 3vh, 34px) 0 0;
    color: rgba(232, 230, 225, 0.58);
    font-size: clamp(0.56rem, 0.58vw, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation-delay: 0.78s;
}

.hosting-signature i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hosting-gold);
    box-shadow: 0 0 9px rgba(213, 173, 88, 0.55);
}

.hosting-production-code {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: max(calc(var(--hosting-gutter) * 0.48), 24px);
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(232, 230, 225, 0.44);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: translate(50%, -50%) rotate(90deg);
    transform-origin: center;
    animation: hosting-code-in 1s ease-out 0.9s both;
}

.hosting-production-code i {
    display: block;
    width: clamp(42px, 5vw, 78px);
    height: 1px;
    background: rgba(232, 230, 225, 0.3);
}

.hosting-footer {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 0;
    padding-bottom: max(clamp(27px, 4vh, 44px), env(safe-area-inset-bottom));
    color: rgba(232, 230, 225, 0.48);
    border: 0;
    animation: hosting-fade-up 1s ease-out 0.7s both;
}

.hosting-footer p {
    margin: 0;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hosting-legal {
    gap: clamp(16px, 2vw, 30px);
}

.hosting-legal a {
    color: rgba(232, 230, 225, 0.52);
    font-size: 0.57rem;
}

@keyframes hosting-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hosting-breathe {
    from { transform: scale(1.025); }
    to { transform: scale(1.075); }
}

@keyframes hosting-grain-shift {
    0% { background-position: 0 0; }
    25% { background-position: 7px -11px; }
    50% { background-position: -13px 8px; }
    75% { background-position: 11px 15px; }
    100% { background-position: -8px -14px; }
}

@keyframes hosting-frame-in {
    from { opacity: 0; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes hosting-copy-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hosting-fade-down {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hosting-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hosting-code-in {
    from { opacity: 0; transform: translate(55%, -50%) rotate(90deg); }
    to { opacity: 1; transform: translate(50%, -50%) rotate(90deg); }
}

@keyframes hosting-dot-pulse {
    0%, 100% {
        opacity: 0.32;
    }
    50% {
        opacity: 1;
    }
}

/* Public legal/support pages retain the app layout but expose official-site navigation only. */
body:not(.kids-explorer-page):not(.hosting-home) :where(.privacy-desc, .legal-updated, .terms-updated, .contact-desc, .footer-tagline, .footer-bottom p, .account-deletion-page p, .auth-utility-card p) {
    color: var(--hosting-muted);
}

body:not(.hosting-home) #navbar .nav-links,
body:not(.hosting-home) #navbar .nav-cta,
body:not(.hosting-home) #navbar .is-auth-nav,
body:not(.hosting-home) #navbar .nav-hamburger,
body:not(.hosting-home) #navbar .nav-right > a[href="admin.html"],
body:not(.hosting-home) #navbar .nav-right > a[title="Yönetim Paneli"],
body:not(.hosting-home) .mobile-menu,
body:not(.hosting-home) .mobile-bottom-nav {
    display: none !important;
}

body:not(.hosting-home) #navbar .nav-right {
    margin-left: auto;
}

body:not(.hosting-home) #footer .footer-links-group:first-child {
    display: none;
}

body:not(.hosting-home) #footer .footer-nav {
    justify-content: flex-end;
}

@media (max-width: 800px) {
    body:not(.hosting-home) #navbar .social-youtube,
    body:not(.hosting-home) #navbar .social-instagram {
        display: none;
    }
}

@media (max-width: 700px) {
    :root {
        --hosting-gutter: 21px;
    }

    .hosting-stage::before {
        background:
            linear-gradient(180deg, rgba(6, 4, 3, 0.5) 0%, rgba(6, 4, 3, 0.08) 25%, rgba(6, 4, 3, 0.2) 42%, rgba(7, 5, 3, 0.79) 64%, #080604 87%, #080604 100%),
            linear-gradient(90deg, rgba(6, 4, 3, 0.38), transparent 45%, rgba(6, 4, 3, 0.16));
    }

    .hosting-stage::after {
        background: radial-gradient(circle at 52% 31%, transparent 0, transparent 23%, rgba(4, 3, 2, 0.26) 67%, rgba(4, 3, 2, 0.64) 120%);
    }

    .hosting-backdrop img {
        object-position: center 38%;
        filter: saturate(0.74) contrast(1.06) brightness(0.78);
    }

    .hosting-frame {
        inset: 8px;
    }

    .hosting-header {
        padding-top: max(24px, env(safe-area-inset-top));
        grid-template-columns: 1fr auto;
    }

    .hosting-brand img {
        width: clamp(142px, 42vw, 166px);
    }

    .hosting-header-note,
    .hosting-production-code {
        display: none;
    }

    .hosting-nav {
        gap: 13px;
    }

    .hosting-nav a {
        display: inline-flex;
        min-height: 32px;
        align-items: center;
        font-size: 0.53rem;
        letter-spacing: 0.12em;
    }

    .hosting-main {
        align-items: flex-end;
        padding-bottom: clamp(30px, 6.2vh, 58px);
    }

    .hosting-hero {
        width: 100%;
        margin: 0;
    }

    .hosting-eyebrow {
        gap: 10px;
        margin-bottom: 15px;
        font-size: clamp(0.54rem, 2.5vw, 0.65rem);
        letter-spacing: 0.25em;
    }

    .hosting-eyebrow span {
        width: 28px;
    }

    .hosting-hero h1 {
        font-size: clamp(4.35rem, 22.2vw, 6.25rem);
        letter-spacing: -0.04em;
        line-height: 0.79;
    }

    .hosting-lead {
        max-width: 335px;
        margin-top: clamp(18px, 2.8vh, 25px);
        font-size: clamp(0.92rem, 4.15vw, 1.06rem);
        line-height: 1.48;
        text-wrap: pretty;
    }

    .hosting-signature {
        gap: 8px;
        margin-top: clamp(17px, 2.6vh, 24px);
        font-size: clamp(0.47rem, 2vw, 0.54rem);
        letter-spacing: 0.13em;
    }

    .hosting-footer {
        gap: 12px;
        padding-bottom: max(21px, env(safe-area-inset-bottom));
    }

    .hosting-footer p {
        font-size: 0.51rem;
        letter-spacing: 0.12em;
    }

    .hosting-footer p span {
        display: none;
    }

    .hosting-legal {
        gap: 11px;
    }

    .hosting-legal a {
        display: inline-flex;
        min-height: 32px;
        align-items: center;
        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }

    body:not(.hosting-home) #navbar {
        padding-inline: 14px;
    }
}

@media (max-width: 390px) {
    :root {
        --hosting-gutter: 18px;
    }

    .hosting-brand img {
        width: 137px;
    }

    .hosting-nav {
        gap: 9px;
    }

    .hosting-nav a {
        font-size: 0.49rem;
    }

    .hosting-legal {
        gap: 8px;
    }

    .hosting-legal a {
        font-size: 0.45rem;
    }
}

@media (max-height: 700px) {
    .hosting-header {
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .hosting-main {
        padding-bottom: 22px;
    }

    .hosting-eyebrow {
        margin-bottom: 13px;
    }

    .hosting-hero h1 {
        font-size: clamp(4.25rem, 11vw, 8.4rem);
    }

    .hosting-lead {
        margin-top: 17px;
        font-size: 0.94rem;
    }

    .hosting-signature {
        margin-top: 16px;
    }

    .hosting-footer {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
}

@media (max-height: 520px) {
    .hosting-brand img {
        width: 146px;
    }

    .hosting-header-note,
    .hosting-signature,
    .hosting-production-code {
        display: none;
    }

    .hosting-main {
        align-items: center;
        padding-bottom: 0;
    }

    .hosting-hero {
        margin: 0;
    }

    .hosting-eyebrow {
        margin-bottom: 10px;
    }

    .hosting-hero h1 {
        font-size: clamp(4rem, 10.5vw, 6.6rem);
    }

    .hosting-lead {
        max-width: 470px;
        margin-top: 12px;
        font-size: 0.86rem;
    }

    .hosting-footer {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hosting-backdrop img {
        transform: scale(1.025);
    }

    .hosting-hero h1 span {
        opacity: 1;
        animation: none;
    }
}
