:root {
    --bg: #040808;
    --bg-soft: #0b1717;
    --text: #f4f8f8;
    --muted: #8ea0a0;
    --teal: #009688;
    --gold: #d4a54b;
    --card: rgba(11, 24, 24, 0.66);
    --line: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    overflow-x: hidden;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(16px, 3vw, 42px);
    backdrop-filter: blur(8px);
    background: rgba(4, 12, 12, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform .4s ease, opacity .4s ease;
}

.top-nav.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: .4px;
    font-weight: 600;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 14px rgba(0, 217, 166, .65);
}

.nav-cta {
    border: 1px solid rgba(212, 165, 75, .44);
    color: #f6e6c3;
    border-radius: 999px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 2vw, 22px);
}

.nav-links a {
    color: rgba(232, 242, 242, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
}

.nav-links a:not(.nav-cta):hover {
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: rgba(239, 247, 247, .92);
    transition: transform .2s ease, opacity .2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    z-index: 58;
    background: rgba(3, 10, 10, 0.95);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: grid;
    gap: 10px;
}

.mobile-menu a {
    text-decoration: none;
    color: rgba(230, 243, 243, .92);
    font-size: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 12px;
}

.mobile-menu a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.24);
}

#cine-shell {
    position: relative;
    min-height: 100vh;
}

#cine-scroll-space {
    position: relative;
    height: 900vh;
}

#cine-stage {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    background: #040909;
}

#cine-video,
#cine-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cine-video {
    transform: scale(1.04);
    transform-origin: center;
    will-change: transform, filter;
    filter: saturate(1.05) contrast(1.05) brightness(.9);
}

#cine-poster {
    display: none;
}

#cine-poster.active {
    display: block;
}

.cine-fx-vignette,
.cine-fx-overlay,
.cine-fx-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cine-fx-vignette {
    z-index: 1;
    background: radial-gradient(circle at 50% 40%, transparent 30%, rgba(0, 0, 0, .58) 100%);
}

.cine-fx-overlay {
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .36) 0%, rgba(3, 11, 11, .72) 75%, rgba(9, 26, 26, .92) 100%);
}

.cine-fx-grid {
    z-index: 3;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    mix-blend-mode: screen;
}

#cine-content {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.scene {
    position: absolute;
    left: clamp(18px, 5vw, 90px);
    right: clamp(18px, 5vw, 90px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

/* Fallback: JS gecikirse/çalışmazsa ilk sahne boş ekran yerine görünsün */
.scene:first-of-type {
    opacity: 1;
    transform: translateY(-50%);
}

.scene .eyebrow {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 14px;
}

.scene h2 {
    margin: 0;
    font-size: clamp(30px, 6.2vw, 94px);
    line-height: .96;
    font-weight: 500;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    letter-spacing: -.6px;
    max-width: min(90vw, 980px);
}

.scene p {
    margin-top: 16px;
    font-size: clamp(14px, 1.45vw, 22px);
    color: rgba(236, 246, 246, .82);
    max-width: 700px;
    line-height: 1.55;
}

.scene .accent-teal {
    color: var(--teal);
}

.scene .accent-gold {
    color: var(--gold);
}

.scene-right {
    text-align: right;
}

.scene-right p {
    margin-left: auto;
}

#cine-hud {
    position: fixed;
    right: clamp(12px, 2vw, 34px);
    bottom: clamp(22px, 4vh, 44px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

#cine-progress {
    width: 2px;
    height: min(16vh, 140px);
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
    border-radius: 99px;
}

#cine-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--teal), var(--gold));
    transition: height 0.15s ease-out;
}

#cine-dots {
    display: none;
}

#cine-skip {
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(5, 14, 14, .45);
    color: #e8f3f3;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

#cine-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(86px, 14vh, 132px);
    transform: translateX(-50%);
    z-index: 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: rgba(234, 245, 245, .9);
    text-shadow: 0 3px 20px rgba(0, 0, 0, .55);
    transition: opacity .35s ease, transform .35s ease;
}

#cine-scroll-cue.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
    pointer-events: none;
}

#cine-scroll-cue .cue-arrow {
    font-size: 18px;
    line-height: 1;
    color: rgba(0, 217, 166, .95);
    animation: cue-arrow-bounce 1.5s ease-in-out infinite;
}

#cine-scroll-cue .cue-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(240, 248, 248, .75);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    background: rgba(4, 10, 10, .3);
}

#cine-scroll-cue .cue-mouse span {
    width: 4px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 217, 166, .95);
    animation: cue-wheel 1.5s ease-in-out infinite;
}

#cine-scroll-cue p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .45px;
    text-transform: uppercase;
}

@keyframes cue-wheel {
    0% { transform: translateY(0); opacity: 1; }
    65% { transform: translateY(8px); opacity: .18; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes cue-arrow-bounce {
    0% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(0); opacity: .7; }
}

#post-cinematic {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, #0d1d1d 0%, #060e0e 35%, #040808 100%);
    padding: min(16vh, 120px) clamp(18px, 4vw, 80px) 100px;
}

.post-intro {
    max-width: 980px;
    margin: 0 auto 40px;
    text-align: center;
}

.post-intro h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 52px);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.post-intro p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 20px);
}

.feature-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    min-height: 190px;
}

.feature-card h4 {
    margin: 8px 0;
    font-size: 20px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.cta-wrap {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-main,
.btn-alt {
    text-decoration: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 600;
}

.btn-main {
    background: linear-gradient(135deg, #00d9a6, #10b58f);
    color: #06211a;
}

.btn-alt {
    border: 1px solid rgba(255, 255, 255, .24);
    color: #e2ecec;
}

@media (max-width: 980px) {
    #cine-scroll-space {
        height: 780vh;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .scene-right {
        text-align: left;
    }

    .scene-right p {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    #cine-scroll-space {
        height: 700vh;
    }

    .top-nav {
        padding: 14px 14px;
    }

    .mobile-menu {
        top: 62px;
        left: 10px;
        right: 10px;
    }

    #cine-hud {
        right: 12px;
        bottom: 18px;
        gap: 12px;
    }

    #cine-progress {
        height: 110px;
    }

    #cine-scroll-cue {
        bottom: 106px;
    }

    .scene {
        top: 48%;
    }

    .scene p {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cine-scroll-space {
        display: none;
    }
    #cine-hud {
        display: none;
    }
    .top-nav {
        position: sticky;
    }
}

/* When cinematic is done, collapse the scroll space */
#cine-scroll-space.cine-done {
  height: 100vh !important;
}
