:root {
    --bg: #f5f5f7;
    --ink: #1d1d1f;
    --ink-2: #6e6e73;
    --ink-3: #86868b;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

/* Stüdyo zemini: ortası hafif aydınlık, kenarlara doğru kararan açık gri */
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: radial-gradient(75% 65% at 50% 40%, #fff 0%, var(--bg) 62%, #ececef 100%);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.6s var(--ease);
}

.is-ready .stage {
    opacity: 1;
}

.center,
.corners {
    position: relative;
    z-index: 1;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
}

/* Düz logo: 3D'nin yerini ve boyunu belirler, 3D açılamazsa kendisi görünür */
.mark {
    display: block;
    width: min(76vw, 44vh, 460px);
    height: auto;
    aspect-ratio: 606 / 580;
    transition: opacity 1s var(--ease);
}

.js .mark {
    opacity: 0;
}

.js.no-3d .mark {
    opacity: 1;
}

/* Logonun altında yerde duran yumuşak gölge */
.figure {
    position: relative;
}

.figure::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 64%;
    height: 10%;
    margin-top: 3%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.07) 55%, transparent);
    transition: opacity 1.6s var(--ease);
}

.js .figure::after {
    opacity: 0;
}

.is-ready .figure::after,
.js.no-3d .figure::after {
    opacity: 1;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: clamp(48px, 9vh, 96px);
    padding: 0 28px;
    border-radius: 980px;
    background: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cta:hover {
    background: #0077ed;
}

.cta:active {
    transform: scale(0.98);
}

.cta:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 4px;
}

.legal-link {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: none;
}

.legal-link:hover {
    color: var(--ink-2);
}

.corners {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 3.5vh, 36px);
}

.brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tagline {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
}

@media (max-width: 480px) {
    .tagline {
        letter-spacing: 0.16em;
    }
}

/* Açılış: önce köşeler, sonra logo (app.js), en son giriş düğmesi */
@media (prefers-reduced-motion: no-preference) {
    .corners > * {
        animation: appear 1.2s var(--ease) 0.2s backwards;
    }

    .cta,
    .legal-link {
        animation: rise 1.2s var(--ease) 2s backwards;
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}
