:root {
    --bg: #f7f4ff;
    --bg-2: #eefbff;
    --ink: #111322;
    --muted: #5e6285;
    --line: rgba(17, 19, 34, 0.12);
    --paper: rgba(255, 255, 255, 0.62);
    --paper-strong: rgba(255, 255, 255, 0.82);
    --pink: #ff5e5b;
    --cyan: #7cc7d9;
    --lime: #d9c86a;
    --violet: #5e63d9;
    --orange: #e67a38;
    --shadow: 0 24px 60px rgba(74, 63, 180, 0.16);
    --radius: 28px;
    --wrap: 1280px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,79,216,.22), transparent 20%),
        radial-gradient(circle at 82% 12%, rgba(52,215,255,.24), transparent 22%),
        radial-gradient(circle at 78% 78%, rgba(216,255,62,.18), transparent 18%),
        linear-gradient(135deg, #f9f5ff 0%, #eefcff 42%, #fef6fb 100%);
    overflow-x: hidden;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

p, h1, h2, h3 {
    margin: 0;
}

.wrap {
    width: min(var(--wrap), calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px) saturate(180%);
    background: rgba(255,255,255,.45);
    border-bottom: 1px solid rgba(123,97,255,.12);
}

.topbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
}

.brand img {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(255,79,216,.22);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.nav a:hover {
    color: var(--pink);
}

.lang-toggle {
    width: 58px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(123,97,255,.14);
    background: rgba(255,255,255,.66);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 6px 0 36px;
}

.hero-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(123,97,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52,215,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.22));
}

.hero-glow {
    filter: blur(48px);
    opacity: .95;
}

.hero-glow-a {
    inset: auto auto 10% 4%;
    width: 280px;
    height: 280px;
    background: rgba(255,79,216,.24);
    border-radius: 999px;
}

.hero-glow-b {
    inset: 8% 8% auto auto;
    width: 300px;
    height: 300px;
    background: rgba(52,215,255,.22);
    border-radius: 999px;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 40px;
    align-items: end;
    min-height: calc(68svh - 96px);
    padding-top: 8px;
}

.hero-left {
    padding: 0;
    align-self: end;
    max-width: 760px;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(123,97,255,.16);
    background: rgba(255,255,255,.48);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violet);
}

.hero-title {
    display: grid;
    gap: 4px;
    max-width: 6.8ch;
    font-size: clamp(3.6rem, 7.4vw, 6.6rem);
    line-height: .88;
    letter-spacing: -.07em;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-title span {
    display: block;
    max-width: none;
    color: var(--ink);
}

.hero-soft {
    margin-top: 10px;
    font-size: .52em;
    line-height: .95;
    letter-spacing: -.02em;
    color: var(--muted) !important;
    font-weight: 800;
}

.hero-right {
    display: grid;
    gap: 16px;
    align-content: end;
    align-self: end;
    padding-bottom: 18px;
}

.hero-text {
    max-width: 420px;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--muted);
    margin-left: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.hero-film {
    margin-left: auto;
    width: min(100%, 390px);
    background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.34));
    border: 1px solid rgba(123,97,255,.14);
    border-radius: 30px;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
    backdrop-filter: blur(12px);
}

.hero-film video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
}

.ticker {
    overflow: hidden;
    border-top: 1px solid rgba(123,97,255,.12);
    border-bottom: 1px solid rgba(123,97,255,.12);
    background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(255,255,255,.54), rgba(255,255,255,.34));
}

.ticker-track {
    display: flex;
    gap: 26px;
    width: max-content;
    padding: 16px 0;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violet);
    animation: tickerMove 22s linear infinite;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.manifesto-section,
.app-section,
.gallery-section,
.contact-section {
    padding: 96px 0;
}

.manifesto-layout {
    display: grid;
    grid-template-columns: .25fr .95fr .8fr;
    gap: 24px;
    align-items: start;
}

.eyebrow {
    color: var(--pink);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.manifesto-main h2,
.section-head h2,
.contact-left h2 {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: .9;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.manifesto-copy {
    padding: 26px;
    border-radius: 26px;
    background: var(--paper);
    border: 1px solid rgba(123,97,255,.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.manifesto-copy p + p {
    margin-top: 14px;
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.section-head-wide {
    max-width: 920px;
}

.app-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 18px;
}

.app-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    border-radius: 28px;
    background: var(--paper);
    border: 1px solid rgba(123,97,255,.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.app-card-large {
    min-height: 380px;
    background: linear-gradient(145deg, rgba(123,97,255,.94), rgba(52,215,255,.84));
    color: #fff;
}

.app-card-accent {
    background: linear-gradient(135deg, rgba(255,79,216,.14), rgba(216,255,62,.18)), var(--paper-strong);
}

.card-index {
    display: inline-block;
    margin-bottom: 20px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pink);
}

.app-card-large .card-index {
    color: #fff;
    opacity: .88;
}

.app-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
    line-height: 1.05;
    text-transform: uppercase;
}

.app-card p {
    color: inherit;
    opacity: .84;
}

.gallery-shell {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(123,97,255,.12);
    box-shadow: var(--shadow);
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(10px);
}

.gallery-item:nth-child(6n+1) { grid-column: span 5; }
.gallery-item:nth-child(6n+2) { grid-column: span 3; }
.gallery-item:nth-child(6n+3) { grid-column: span 4; }
.gallery-item:nth-child(6n+4) { grid-column: span 4; }
.gallery-item:nth-child(6n+5) { grid-column: span 5; }
.gallery-item:nth-child(6n+6) { grid-column: span 3; }

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.03);
}

.gallery-empty {
    margin-top: 20px;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 24px;
    align-items: start;
}

.contact-right {
    padding: 28px;
    border-radius: 28px;
    background: var(--paper);
    border: 1px solid rgba(123,97,255,.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.contact-right p {
    color: var(--muted);
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.footer {
    padding: 26px 0 40px;
    border-top: 1px solid rgba(123,97,255,.12);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .84rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 12, 42, .88);
    backdrop-filter: blur(10px);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 84vh;
    border-radius: 20px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1100px) {
    .hero-layout,
    .manifesto-layout,
    .contact-layout,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+2),
    .gallery-item:nth-child(6n+3),
    .gallery-item:nth-child(6n+4),
    .gallery-item:nth-child(6n+5),
    .gallery-item:nth-child(6n+6) {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 28px 0 60px;
    }

    .hero-layout {
        min-height: auto;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-text,
    .hero-film {
        margin-left: 0;
    }

    .manifesto-section,
    .app-section,
    .gallery-section,
    .contact-section {
        padding: 72px 0;
    }

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

    .gallery-item,
    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+2),
    .gallery-item:nth-child(6n+3),
    .gallery-item:nth-child(6n+4),
    .gallery-item:nth-child(6n+5),
    .gallery-item:nth-child(6n+6) {
        grid-column: auto;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-title span {
    display: block;
    max-width: none;
}

.hero-soft {
    margin-top: 10px;
    margin-left: 1.2ch;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: -.02em;
}



@media (max-width: 720px) {
    .hero-left,
    .hero-right {
        transform: none;
    }

    .hero-title span {
        max-width: none;
    }

    .hero-soft {
        margin-left: 0;
    }
}

.hero-left {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-right {
    position: relative;
    z-index: 1;
    align-self: end;
}

.hero-title {
    max-width: 9.5ch;
    text-wrap: balance;
}

.hero-title span {
    display: block;
}

.hero-soft {
    margin-top: 8px;
    margin-left: 0;
    font-size: .54em;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero-film {
    width: min(100%, 420px);
}

@media (max-width: 1100px) {
    .hero-left,
    .hero-title {
        max-width: none;
    }
}
