/* ============================================================
   sMOV — Main Stylesheet
   By Cyrano_31 |
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- FORMULA 1 FONT ---------- */
@font-face {
    font-family: 'Formula1';
    src: url('../fonts/Formula1-Regular_web.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Formula1';
    src: url('../fonts/Formula1-Bold_web.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Formula1';
    src: url('../fonts/Formula1-Wide_web.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

html {
    min-height: 100%;
    scroll-behavior: auto; /* handled by JS */
    overflow-x: hidden;
}

body {
    min-height: 100%;
    overflow: hidden; /* JS overrides to auto once ready */
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 768px) {
    html {
        min-height: auto;
        overflow-y: auto;
    }
    body {
        min-height: auto;
        overflow: visible;
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: none;
}

a {
    color: #fff;
    text-decoration: none;
    cursor: none;
}

button, input {
    font-family: inherit;
    cursor: none;
}

ul, ol {
    list-style: none;
}

img, video {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.1;
}

::selection {
    background: rgba(138, 95, 206, 0.5);
    color: #fff;
}


/* ---------- CSS VARIABLES ---------- */
:root {
    --color-bg: #000000;
    --color-bg-dark: #0a0a0f;
    --color-bg-card: #0d0d14;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.45);
    --color-accent: #2B7AE0;
    --color-accent-light: #5BA3F5;
    --color-border: rgba(255, 255, 255, 0.12);

    --nav-height: 70px;
    --section-padding: clamp(50px, 7vw, 100px);
    --side-padding: clamp(20px, 4vw, 60px);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}


/* ---------- CURSOR ---------- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-expo);
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s var(--ease-out-expo);
}

.cursor.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cursor.hovering .cursor-ring {
    border-color: rgba(138, 95, 206, 0.5);
    background: rgba(138, 95, 206, 0.06);
}

.cursor.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
}

.cursor.text-mode .cursor-dot {
    width: 2px;
    height: 24px;
    border-radius: 1px;
}

.cursor.text-mode .cursor-ring {
    opacity: 0;
}

@media (max-width: 960px) {
    .cursor { display: none; }
    body, a, button, input { cursor: auto; }
}


/* ---------- LOADER ---------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.loader-svg {
    width: 100%;
    height: 100%;
    fill: #0a0a0f;
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loader-logo {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 600;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderFadeIn 1.2s var(--ease-out-expo) 0.3s forwards;
    display: inline-flex;
    align-items: baseline;
    position: relative;
    overflow: visible;
}

.loader-s {
    color: var(--color-accent-light);
    position: relative;
    z-index: 3;
    font-family: 'Formula1', sans-serif;
    font-weight: 400;
}

.loader-afe {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    font-family: 'Formula1', sans-serif;
    font-weight: 400;
    transition: max-width 1.2s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-afe.sliding {
    max-width: 200px;
    opacity: 1;
}

.loader-afe.hidden {
    max-width: 0;
    opacity: 0;
}

.loader-mov {
    color: #fff;
    position: relative;
    z-index: 2;
    font-family: 'Formula1', sans-serif;
    font-weight: 700;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    animation: loaderFadeIn 0.6s var(--ease-out-expo) 0.5s forwards;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--color-accent-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loader.loaded {
    pointer-events: none;
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--side-padding);
    z-index: 50;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), height 0.5s var(--ease-out-expo);
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav.scrolled {
    height: 110px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0;
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

/* Hide sMOV text when scrolled */
.nav.scrolled .nav-logo {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

/* Left-side logo icon — hidden by default, appears on scroll */
.nav-logo-right {
    position: absolute;
    left: var(--side-padding);
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.nav-logo-icon-right {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(30, 120, 220, 0.35));
}

@media (max-width: 768px) {
    .nav.scrolled {
        height: 85px;
    }
    .nav-logo-icon-right {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        filter: drop-shadow(0 0 10px rgba(30, 120, 220, 0.25));
    }
}

.nav.scrolled .nav-logo-right {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.logo-s {
    color: var(--color-accent-light);
    font-family: 'Formula1', sans-serif;
    font-weight: 400;
}

.logo-mov {
    color: #fff;
    font-family: 'Formula1', sans-serif;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: letter-spacing 0.6s var(--ease-out-expo);
}

.nav-link:hover {
    letter-spacing: 0.1em;
}

.nav-cta {
    border: 1.5px solid #fff;
    padding: 6px 16px;
    border-radius: 50px;
    transition: letter-spacing 0.6s var(--ease-out-expo), background 0.3s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.05em;
}

@media (max-width: 960px) {
    .nav-links { display: none; }
}

/* Burger */
.nav-burger {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 55;
}

@media (max-width: 960px) {
    .nav-burger { display: block; }
}

.burger-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #fff;
    left: 1px;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.3s ease;
    will-change: transform;
}

.burger-line-1 {
    top: 10px;
}

.burger-line-2 {
    top: 20px;
}

body.menu-open .burger-line-1 {
    transform: translateY(5px) rotate(45deg);
}

body.menu-open .burger-line-2 {
    transform: translateY(-5px) rotate(-45deg);
}


/* ---------- MOBILE MENU OVERLAY ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

body.menu-open .menu-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.menu-overlay-bg {
    position: absolute;
    inset: 0;
    background: var(--color-bg-dark);
    transform: translateY(-100%);
    transition: transform 0.8s var(--ease-out-expo);
}

body.menu-open .menu-overlay-bg {
    transform: translateY(0);
}

.menu-overlay-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px var(--side-padding) 60px;
}

.menu-nav li {
    overflow: hidden;
}

.menu-link {
    display: inline-block;
    font-size: clamp(32px, 8vw, 52px);
    text-transform: uppercase;
    padding: 8px 0;
    transform: translateY(120%);
    transition: transform 0.6s var(--ease-out-expo);
}

body.menu-open .menu-link {
    transform: translateY(0);
}

body.menu-open .menu-nav li:nth-child(1) .menu-link { transition-delay: 0.15s; }
body.menu-open .menu-nav li:nth-child(2) .menu-link { transition-delay: 0.2s; }
body.menu-open .menu-nav li:nth-child(3) .menu-link { transition-delay: 0.25s; }
body.menu-open .menu-nav li:nth-child(4) .menu-link { transition-delay: 0.3s; }

.menu-cta {
    color: var(--color-accent-light);
}

.menu-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-dim);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo) 0.4s;
}

body.menu-open .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-socials {
    display: flex;
    gap: 20px;
}

.menu-socials a {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

@media (min-width: 961px) {
    .menu-overlay { display: none; }
}


/* ---------- SCROLL CONTAINER (Smooth Scroll) ---------- */
.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    z-index: 42;
}

@media (max-width: 768px) {
    .scroll-container {
        position: static;
        height: auto;
        overflow: visible;
    }
    .scroll-content {
        transform: none;
        will-change: auto;
    }
}

.scroll-content {
    max-width: 100vw;
    overflow-x: hidden;
}

.scroll-content {
    will-change: transform;
}


/* ---------- SECTIONS (Shared) ---------- */
.section {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
}

.section-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--section-padding) var(--side-padding);
}

@media (max-width: 768px) {
    .section-inner {
        padding: 40px var(--side-padding);
    }
}

.section-label {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(32px, 5.5vw, 80px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.text-accent {
    color: var(--color-accent-light);
}

.accent-dot {
    color: var(--color-accent-light);
}


/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(138, 95, 206, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 20% 100%, rgba(90, 50, 180, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo: truly fixed to viewport (lives outside scroll-container) */
.hero-logo-pinned {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.hero-logo-pinned img {
    width: 420px;
    height: 420px;
    display: block;
    filter: drop-shadow(0 0 40px rgba(30, 120, 220, 0.4))
            drop-shadow(0 0 100px rgba(30, 120, 220, 0.18));
    animation: heroLogoPulse 4s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(30, 120, 220, 0.4)) drop-shadow(0 0 100px rgba(30, 120, 220, 0.18)); }
    50% { filter: drop-shadow(0 0 65px rgba(30, 120, 220, 0.6)) drop-shadow(0 0 160px rgba(30, 120, 220, 0.28)); }
}

/* No spacer needed — text sits at bottom of viewport */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    padding: 0 var(--side-padding);
    will-change: transform, opacity;
}

/* CTA sits at bottom of hero, above scroll indicator, centered */
.hero-cta-wrapper {
    position: absolute;
    bottom: 110px;
    left: calc(50% + 15px);
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-logo-pinned img {
        width: 210px !important;
        height: 210px !important;
        max-width: 60vw;
        margin: 0 auto;
    }
    .hero-title {
        white-space: normal;
        margin-bottom: 10px;
    }

    /* Mobile: completely different layout — no scroll animation */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 20px;
        padding-top: 10px;
        min-height: 0;
        height: auto !important;
        overflow: hidden;
        gap: 0;
    }

    /* Logo: NOT fixed, goes inside the flow */
    .hero-logo-pinned {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 1;
        margin: 70px auto 0 auto;
        text-align: center;
        will-change: auto !important;
    }

    /* Force text visible — no scroll-based animation on mobile */
    .hero-title,
    .hero-subtitle {
        opacity: 1 !important;
        transform: none !important;
        white-space: normal;
    }

    .hero-subtitle {
        margin-bottom: 8px;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        margin-bottom: 0;
        padding: 0 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-cta-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        z-index: 5;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-cta {
        gap: 8px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-primary {
        padding: 12px 36px;
        font-size: 13px;
        text-align: center;
        width: auto;
        min-width: 200px;
    }
    .btn-primary span {
        position: relative;
        z-index: 1;
    }
    .hero-scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 10px auto 0 auto;
        width: 100%;
        justify-content: center;
    }
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    white-space: nowrap;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--color-text-dim);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 300;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
}

/* Mobile: force text wrapping AFTER desktop rules */
@media (max-width: 768px) {
    .hero-title {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(24px, 7vw, 40px);
    }
    .hero-subtitle {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(14px, 3.5vw, 18px);
        max-width: 100%;
    }
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

/* Tablet: reduce hero CTA gap */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-cta {
        gap: 24px;
    }

    /* Tablet: use mobile-like flow layout */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 20px;
        padding-top: 10px;
        min-height: 0;
        height: auto !important;
        overflow: hidden;
        gap: 0;
    }
    .hero-logo-pinned {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 1;
        margin: 30vh auto 0 auto;
        text-align: center;
        will-change: auto !important;
    }
    .hero-logo-pinned img {
        width: 300px !important;
        height: 300px !important;
        margin: 0 auto;
    }
    .hero-title,
    .hero-subtitle {
        opacity: 1 !important;
        transform: none !important;
        white-space: normal;
    }
    .hero-content {
        position: relative;
        z-index: 5;
        margin-bottom: 0;
        padding: 0 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero-cta-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        z-index: 5;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        padding-left: 30px;
    }
    .hero-cta {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .hero-scroll-indicator {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 15px auto 0 auto;
        width: 100%;
        justify-content: center;
    }
}

/* Primary button with animated border */
.btn-primary {
    position: relative;
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    overflow: hidden;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary .btn-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.btn-primary .btn-border rect {
    stroke-dasharray: 0 520;
    stroke-dashoffset: 200;
    transition: all 1.8s var(--ease-out-expo);
}

body.loaded .btn-primary .btn-border rect {
    stroke-dasharray: 520 0;
    stroke-dashoffset: 0;
}

.btn-primary:hover .btn-border rect {
    stroke-dasharray: 200 320;
    stroke-dashoffset: -260;
}

.btn-ghost {
    display: inline-block;
    font-size: 16px;
    color: var(--color-text-dim);
    font-weight: 400;
    transition: color 0.3s ease;
}

.btn-ghost:hover {
    color: #fff;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
}

.scroll-line {
    width: 2px;
    height: 55px;
    background: linear-gradient(to bottom, #c43e00, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* Mobile overrides — MUST come AFTER all desktop hero rules */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 15px auto 0 auto;
        width: 100%;
    }
    .hero-title {
        margin-bottom: 10px;
    }
    .hero-subtitle {
        margin: 0 auto 8px;
    }
    .hero-cta-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-cta {
        gap: 8px;
    }
    .hero-content {
        margin-bottom: 0;
    }
}


/* ---------- FEATURES ---------- */
.features {
    background: var(--color-bg);
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    position: relative;
    padding: 36px 28px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg-card);
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    border-color: rgba(138, 95, 206, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 15px;
    color: var(--color-text-dim);
    line-height: 1.5;
}


/* ---------- SHOWCASE ---------- */
.showcase {
    background: var(--color-bg-dark);
}

.showcase .showcase-desc {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--color-text-dim);
    max-width: 600px;
    margin: 24px auto 0;
    line-height: 1.6;
}

/* 3 phones side by side */
.showcase-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(24px, 4vw, 60px);
    margin-top: clamp(48px, 6vw, 80px);
    perspective: 1200px;
}

.showcase-phone {
    position: relative;
    flex: 0 0 auto;
    width: clamp(180px, 22vw, 280px);
    text-align: center;
    overflow: visible;
    transition: transform 0.6s var(--ease-out-expo);
}

.showcase-phone:hover {
    transform: translateY(-12px) scale(1.03);
}

/* Center phone slightly bigger */
.showcase-phone-center {
    width: clamp(200px, 25vw, 320px);
}

.phone-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(138, 95, 206, 0.06);
    animation: phoneFloat 6s ease-in-out infinite;
}

.showcase-phone:nth-child(1) .phone-img {
    animation-delay: 0s;
}
.showcase-phone:nth-child(2) .phone-img {
    animation-delay: -2s;
}
.showcase-phone:nth-child(3) .phone-img {
    animation-delay: -4s;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Glow under each phone */
.phone-glow {
    position: absolute;
    bottom: 20px;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 80%, rgba(138, 95, 206, 0.6) 0%, rgba(138, 95, 206, 0.2) 40%, transparent 70%);
    filter: blur(45px);
    z-index: 1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.phone-glow-center {
    background: radial-gradient(ellipse at 50% 80%, rgba(30, 120, 220, 0.65) 0%, rgba(30, 120, 220, 0.25) 40%, transparent 70%);
    filter: blur(50px);
    animation-delay: -1.5s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.phone-label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
}

@media (max-width: 768px) {
    .showcase-phones {
        gap: 16px;
    }
    .showcase-phone {
        width: clamp(100px, 28vw, 200px);
    }
    .showcase-phone-center {
        width: clamp(110px, 32vw, 220px);
    }
    .phone-img {
        border-radius: 16px;
    }
}


/* ---------- ABOUT / STATS ---------- */
.about {
    background: var(--color-bg);
}

.about-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

/* 2-column layout */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.stats-row {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: clamp(32px, 4vw, 60px) clamp(40px, 8vw, 120px);
    margin-bottom: clamp(48px, 6vw, 80px);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--color-accent-light);
}

.stat-label {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
}

.about-text {
    max-width: 700px;
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* Video player — right column */
.about-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.about-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 95, 206, 0.2);
    box-shadow: 0 8px 40px rgba(138, 95, 206, 0.1),
                0 0 80px rgba(138, 95, 206, 0.05);
}

.about-video-glow {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(138, 95, 206, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.about-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    background: #0a0a0a;
}

.about-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.about-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.about-video-play svg circle {
    transition: all 0.3s ease;
}

.about-video-play:hover svg circle {
    fill: rgba(138, 95, 206, 0.3);
    stroke: rgba(180, 138, 255, 0.8);
}

.about-video-play.is-playing {
    opacity: 0;
    pointer-events: none;
}

.about-video-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 95, 206, 0.25);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-light, #b48aff);
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-right {
        order: -1;
        justify-content: center;
    }

    .about-video-wrapper {
        max-width: 320px;
    }
}


/* ---------- CONTACT / CTA ---------- */
.contact {
    background: var(--color-bg-dark);
}

.cta-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--color-text-dim);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-bg);
    position: relative;
}

.footer .section-inner {
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-line-anim {
    position: absolute;
    top: 0;
    left: var(--side-padding);
    right: var(--side-padding);
    height: 1px;
    background: #fff;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out-expo);
}

.footer-line-anim.visible {
    transform: scaleX(1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--color-text-dim);
    font-size: 15px;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.footer-badge {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 12px rgba(30, 120, 220, 0.4))
            drop-shadow(0 0 30px rgba(30, 120, 220, 0.15));
}

.footer-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 18px rgba(30, 120, 220, 0.6))
            drop-shadow(0 0 50px rgba(30, 120, 220, 0.25));
}

.footer-nav h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-dim);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-nav a {
    display: block;
    font-size: 15px;
    color: var(--color-text-dim);
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 13px;
    color: var(--color-text-dim);
}


/* ---------- ANIMATIONS (Scroll-triggered) ---------- */

/* Fade Up */
.prlx-fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.prlx-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left */
.prlx-fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.prlx-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right */
.prlx-fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.prlx-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.prlx-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.prlx-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Line expand */
.prlx-line {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.4s var(--ease-out-expo);
}
.prlx-line.visible {
    transform: scaleX(1);
}


/* ---------- TEXT SPLIT ANIMATIONS ---------- */

/* Char by char reveal */
.split-chars .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transition-delay: calc(var(--char-index) * 0.03s);
    transform-origin: bottom;
}
.split-chars.visible .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Word by word reveal (JS-split) */
.split-words .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 4px;
}
.split-words .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s var(--ease-out-expo);
    transition-delay: calc(var(--word-index) * 0.08s);
}
.split-words.visible .word {
    transform: translateY(0);
}

/* Word reveal (pre-structured HTML with .word-line > .word) */
.word-reveal .word-line {
    display: block;
    overflow: hidden;
    padding-bottom: 6px;
}
.word-reveal .word {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 1s var(--ease-out-expo);
}
.word-reveal .word-line:nth-child(2) .word {
    transition-delay: 0.12s;
}
.word-reveal .word-line:nth-child(3) .word {
    transition-delay: 0.24s;
}
.word-reveal.visible .word {
    transform: translateY(0);
}





/* ---------- STAGGER CHILDREN ---------- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }


/* ---------- TILT CARDS ---------- */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card .feature-icon,
.tilt-card .feature-title {
    transform: translateZ(20px);
}


/* ---------- MAGNETIC BUTTONS ---------- */
.magnetic {
    will-change: transform;
    transition: transform 0.15s ease-out;
}


/* ---------- VELOCITY SKEW ---------- */
.velocity-skew {
    will-change: transform;
}


/* ---------- FEATURE OVERLAY ---------- */
.feature-card { cursor: pointer; }

.feature-more {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-text-dim);
    font-size: 16px;
    font-weight: 300;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
    pointer-events: none;
}
.feature-card:hover .feature-more {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    transform: scale(1.15);
}

.feature-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.feature-overlay.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.feature-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: none;
}

.feature-overlay-panel {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #0d0d14;
    border: 1px solid rgba(43, 122, 224, 0.25);
    border-radius: 20px;
    padding: 48px 40px 40px;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-overlay.active .feature-overlay-panel {
    transform: translateY(0) scale(1);
}

.feature-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-overlay-close:hover {
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.feature-overlay-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}
.feature-overlay-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.feature-overlay-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

.feature-overlay-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
}
.feature-overlay-text p {
    margin-bottom: 12px;
}
.feature-overlay-text p:last-child {
    margin-bottom: 0;
}
.feature-overlay-text strong {
    color: var(--color-accent-light);
    font-weight: 500;
}

@media (max-width: 520px) {
    .feature-overlay-panel {
        width: 95%;
        padding: 36px 24px 28px;
        border-radius: 16px;
        max-height: 80vh;
    }
    .feature-overlay-title {
        font-size: 22px;
    }
    .feature-overlay-text {
        font-size: 14px;
    }
    .feature-overlay-icon {
        width: 48px;
        height: 48px;
    }
}


/* ---------- UTILITIES ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

