/* ============================================
   DESIGNUM — Cinematic Experience
   ============================================ */

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

:root {
    --bg: #FAFAF8;
    --black: #111111;
    --blue: #2563EB;
    --green: #10B981;
    --dim: #888888;
    --dimmer: #BBBBBB;
    --border: rgba(0,0,0,0.08);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--blue);
    color: #fff;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* === PROGRESS === */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: var(--blue);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    transition: padding 0.4s var(--ease);
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(100);
    transition: filter 0.4s var(--ease);
}

.nav.scrolled .nav__logo-img {
    filter: invert(0) brightness(1);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    transition: all 0.3s;
}

.nav__cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.nav.scrolled {
    background: rgba(250,250,248,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 48px;
    box-shadow: 0 1px 0 var(--border);
}

.nav.scrolled .nav__cta {
    color: var(--black);
    border-color: rgba(0,0,0,0.15);
}

.nav.scrolled .nav__cta:hover {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.nav.scrolled .lang__btn {
    color: rgba(0,0,0,0.3);
}

.nav.scrolled .lang__btn.active {
    color: #fff;
    background: var(--black);
}

.nav.scrolled .lang {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}

.nav.scrolled .nav__burger span {
    background: var(--black);
}

/* Lang switch */
.lang {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.12);
}

.lang__btn {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.lang__btn.active {
    color: #000;
    background: #fff;
}

.lang__btn:hover:not(.active) {
    color: rgba(255,255,255,0.8);
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s var(--ease);
}

/* Mobile menu */
.mob {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.mob.open {
    opacity: 1;
    pointer-events: all;
}

.mob a {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

/* === ANIMATIONS === */
.anim {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-slow), transform 1.2s var(--ease-slow);
}

.anim.in {
    opacity: 1;
    transform: none;
}

/* ============================================
   SCENE 1
   ============================================ */
.scene--1 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.scene1__img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scene1__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%
    );
}

.scene1__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    to { transform: scale(1); }
}

.scene1__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.scene1__title {
    font-family: var(--serif);
    font-size: 3.125rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.scene1__sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
}

.scene1__btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    padding: 18px 40px;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 24px rgba(37,99,235,0.3);
}

.scene1__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(37,99,235,0.45);
}

/* ============================================
   SCENE 2
   ============================================ */
.scene--2 {
    background: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
}

.scene2__inner {
    max-width: 900px;
}

.scene2__line {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.scene2__line--dim {
    color: rgba(255,255,255,0.3);
}

.scene2__line--accent {
    color: var(--blue);
}

.scene2__pause {
    height: 64px;
}

.scene2__line--small {
    font-family: var(--sans);
    font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0;
    line-height: 1.7;
    max-width: 500px;
}

/* ============================================
   SCENE 3
   ============================================ */
.scene--3 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
    text-align: center;
    background: var(--bg);
    position: relative;
}

.scene3__img {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 72px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.12);
}

.scene3__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 8px;
}

.scene3__title--highlight {
    color: var(--blue);
    margin-bottom: 0;
}

/* ============================================
   CASES INTRO
   ============================================ */
.scene--cases-intro {
    padding: 160px 48px 80px;
    text-align: center;
    background: var(--bg);
}

.cases-intro__inner {
    max-width: 700px;
    margin: 0 auto;
}

.cases-intro__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--black);
}

/* ============================================
   SCENE 4 — CASE STUDIES
   ============================================ */
.scene--4 {
    padding: 120px 0;
    background: var(--bg);
}

.case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
}

.scene--4 {
    padding: 0 0 0;
}

.case--reverse {
    direction: rtl;
}

.case--reverse > * {
    direction: ltr;
}

.case__img {
    overflow: hidden;
}

.case__img img {
    transition: transform 1.2s var(--ease-slow);
}

.case__img:hover img {
    transform: scale(1.03);
}

.case__content {
    padding: 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case__tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 40px;
}

.case__flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case__block p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--dim);
    margin-top: 8px;
}

.case__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dimmer);
}

.case__label--result {
    color: var(--green);
}

.case__arrow {
    font-size: 1.25rem;
    color: var(--dimmer);
    line-height: 1;
}

.case__numbers {
    display: flex;
    gap: 40px;
    margin-top: 16px;
}

.case__num {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case__num strong {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--black);
    line-height: 1;
}

.case__num span {
    font-size: 0.75rem;
    color: var(--dim);
}

/* ============================================
   SCENE 5
   ============================================ */
.scene--5 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
    background: var(--bg);
    text-align: center;
}

.scene5__inner {
    max-width: 800px;
}

.scene5__title {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--black);
}

/* ============================================
   SCENE 6 — CTA
   ============================================ */
.scene--6 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
    background: var(--black);
    text-align: center;
}

.scene6__inner {
    max-width: 640px;
    width: 100%;
}

.scene6__title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 56px;
}

.scene6__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__field {
    position: relative;
}

.form__field label {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 20px 0 12px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    outline: none;
    transition: border-color 0.3s;
}

.form__field input:focus,
.form__field textarea:focus {
    border-bottom-color: var(--blue);
}

.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label,
.form__field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.6875rem;
    color: var(--blue);
}

.form__btn {
    margin-top: 24px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: none;
    padding: 20px 40px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 24px rgba(37,99,235,0.3);
    width: 100%;
}

.form__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(37,99,235,0.45);
}

.scene6__note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.2);
    margin-top: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
    padding: 32px 48px;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.foot__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.foot__logo {
    display: flex;
    align-items: center;
}

/* === FLOATING BUBBLES === */
.bubbles {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bubble svg {
    width: 14px;
    height: 14px;
}

.bubble:hover {
    transform: scale(1.12) translateY(-2px);
}

.bubble--wa {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.bubble--wa:hover {
    box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

.bubble--viber {
    background: #7360F2;
    box-shadow: 0 4px 20px rgba(115,96,242,0.3);
}

.bubble--viber:hover {
    box-shadow: 0 8px 32px rgba(115,96,242,0.45);
}

.foot__logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.4;
}

.foot__copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .case {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .case__img {
        aspect-ratio: 16 / 9;
    }

    .case--reverse {
        direction: ltr;
    }

    .case__content {
        padding: 48px 48px 64px;
    }

    .case__numbers {
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav__cta { display: none; }
    .nav__burger { display: flex; }

    .nav__burger.open span:first-child {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav__burger.open span:last-child {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .scene--1 {
        padding: 0 24px 60px;
    }

    .scene1__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .scene--2 {
        padding: 100px 24px;
    }

    .scene2__line {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .scene--3 {
        padding: 100px 24px;
    }

    .scene3__img {
        margin-bottom: 48px;
        border-radius: 12px;
    }

    .scene3__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .scene--4 {
        padding: 80px 0;
    }

    .case {
        margin-bottom: 100px;
    }

    .case__content {
        padding: 32px 24px 48px;
    }

    .case__numbers {
        flex-direction: column;
        gap: 20px;
    }

    .scene--5 {
        padding: 100px 24px;
        min-height: 60vh;
    }

    .scene5__title {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }

    .scene--6 {
        padding: 100px 24px;
    }

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

    .foot {
        padding: 24px;
    }

    .foot__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .scene1__title {
        font-size: 2.5rem;
    }

    .scene2__line {
        font-size: 1.375rem;
    }

    .lang {
        display: none;
    }
}
