.home-wrapper {
    min-height: 100vh;
    --home-max: 1150px;
}

html,
body {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
}

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 16px 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.home-nav.scrolled {
    background: rgba(5, 5, 7, 0.9);
    border-bottom: 1px solid rgba(124, 92, 255, 0.24);
    backdrop-filter: blur(10px);
}

.nav-container {
    width: 100%;
    max-width: var(--home-max);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.4));
}

.nav-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.nav-links,
.nav-auth {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-auth .button {
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
    height: auto;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.nav-links a:hover {
    color: #fff;
}

.nav-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-lang-btn {
    width: 28px;
    height: 20px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    opacity: 0.75;
    transition: 0.2s ease;
}

.nav-lang-btn:hover,
.nav-lang-btn.is-active {
    opacity: 1;
}

.nav-lang-btn.is-active {
    border-color: rgba(124, 92, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.25);
}

.nav-lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu-btn,
.mobile-only-auth {
    display: none;
}

.nav-lang-switch-mobile {
    justify-content: center;
}

.nav-logout-form-mobile,
.nav-logout-form-mobile .button,
.mobile-only-auth form {
    width: 100%;
}

.nav-user-badge-mobile {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.hero-section {
    position: relative;
    min-height: 100svh;
    padding: clamp(104px, 11vh, 130px) 24px clamp(58px, 8vh, 88px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(var(--hero-y, 0px)) scale(var(--hero-scale, 1));
    transform-origin: center top;
    opacity: var(--hero-opacity, 1);
    filter: blur(var(--hero-blur, 0px));
    transition: transform 0.08s linear, opacity 0.08s linear, filter 0.08s linear;
    overflow: clip;
}

.hero-glow {
    position: absolute;
    top: 48%;
    left: 50%;
    width: min(72vw, 860px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -46%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 48% 46%, rgba(124, 92, 255, 0.14) 0%, rgba(124, 92, 255, 0.06) 34%, rgba(124, 92, 255, 0.02) 56%, transparent 76%);
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.72;
    animation: pulse-glow 6s ease-in-out infinite;
    will-change: transform, opacity;
}

.hero-glow::before,
.hero-glow::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-glow::before {
    width: 58%;
    height: 58%;
    left: 8%;
    top: 14%;
    border-radius: 58% 42% 66% 34% / 44% 56% 40% 60%;
    background: radial-gradient(circle at 44% 44%, rgba(124, 92, 255, 0.14), rgba(124, 92, 255, 0.05) 48%, transparent 78%);
    filter: blur(10px);
    animation: hero-blob-float 10s ease-in-out infinite;
}

.hero-glow::after {
    width: 24%;
    height: 24%;
    right: 14%;
    top: 26%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 134, 255, 0.28) 0%, rgba(124, 92, 255, 0.09) 44%, transparent 75%);
    filter: blur(7px);
    animation: hero-light-drift 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.56;
        transform: translate(-50%, -46%) scale(1);
    }
    50% {
        opacity: 0.78;
        transform: translate(-50%, -46%) scale(1.03);
    }
}

@keyframes hero-blob-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(7%, -4%) rotate(8deg);
    }
}

@keyframes hero-light-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-12%, 10%) scale(1.08);
        opacity: 1;
    }
}

.hero-grid {
    width: 100%;
    max-width: var(--home-max);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-mobile {
    display: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, 0.3);
    background: rgba(124, 92, 255, 0.11);
    color: var(--color-primary);
    padding: 8px 14px;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.hero-badge svg {
    width: 15px;
    height: 15px;
}

.hero-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    max-width: 670px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 680px;
    margin-top: 24px;
}

.hero-stat {
    background: rgba(18, 24, 38, 0.68);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 12px;
}

.hero-stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-visual {
    perspective: 1000px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-phone-scene {
    position: relative;
    width: min(100%, 254px);
    aspect-ratio: 9 / 18.2;
    transform: rotateY(-14deg) rotateX(8deg) rotateZ(-11deg) translateX(4px);
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}

.hero-phone-scene:hover {
    transform: rotateY(-8deg) rotateX(4deg) rotateZ(-8deg) translateY(-5px);
}

.hero-phone-glow {
    position: absolute;
    inset: 7% 5% 8%;
    border-radius: 52px;
    background: radial-gradient(circle at 62% 84%, rgba(145, 86, 255, 0.56), rgba(145, 86, 255, 0.05) 38%, transparent 72%);
    filter: blur(22px);
    opacity: 0.8;
    animation: phone-glow-pulse 4s ease-in-out infinite;
}

.hero-phone-shell {
    position: relative;
    height: 100%;
    border-radius: 52px;
    border: 2px solid rgba(186, 153, 255, 0.44);
    background:
        radial-gradient(circle at 72% 82%, rgba(145, 86, 255, 0.5), rgba(145, 86, 255, 0.04) 36%, transparent 62%),
        radial-gradient(circle at 28% 18%, rgba(88, 58, 176, 0.34), transparent 52%),
        linear-gradient(162deg, #0d0a1d 10%, #060711 48%, #05050a 100%);
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(12, 10, 24, 0.92), inset 0 0 0 5px rgba(195, 163, 255, 0.12);
    overflow: hidden;
}

.hero-phone-notch {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 23px;
    border-radius: 999px;
    background: #020206;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-phone-status {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: clamp(1.85rem, 4.7vw, 2.45rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
}

.hero-phone-date {
    position: absolute;
    top: 104px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(226, 223, 240, 0.84);
}

.hero-sale-stack {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 166px;
    bottom: 22px;
}

.hero-sale-notification {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    grid-template-areas:
        "icon app time"
        "icon title title"
        "icon meta meta";
    gap: 2px 8px;
    padding: 7px 8px;
    height: 62px;
    border-radius: 12px;
    border: 1px solid rgba(161, 113, 255, 0.45);
    background: linear-gradient(170deg, rgba(25, 13, 47, 0.94), rgba(11, 8, 23, 0.94));
    box-shadow: 0 18px 28px rgba(2, 1, 8, 0.5), inset 0 0 0 1px rgba(208, 181, 255, 0.12);
    opacity: 0;
    --notification-y: 0px;
    transform: translateY(calc(var(--notification-y) + 24px)) scale(0.96);
    animation-duration: 8.2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.hero-sale-notification:nth-child(1) {
    --notification-y: 14px;
}

.hero-sale-notification:nth-child(2) {
    --notification-y: 84px;
}

.hero-sale-notification:nth-child(3) {
    --notification-y: 154px;
}

.hero-sale-notification:nth-child(4) {
    --notification-y: 224px;
}

.hero-sale-notification:nth-child(1) {
    animation-name: sale-notification-cycle-1;
}

.hero-sale-notification:nth-child(2) {
    animation-name: sale-notification-cycle-2;
}

.hero-sale-notification:nth-child(3) {
    animation-name: sale-notification-cycle-3;
}

.hero-sale-notification:nth-child(4) {
    animation-name: sale-notification-cycle-4;
}

.hero-sale-icon-wrap {
    grid-area: icon;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(161, 113, 255, 0.46);
    background: radial-gradient(circle at 50% 30%, rgba(63, 37, 117, 0.86), rgba(13, 8, 26, 0.96));
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-sale-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(188, 129, 255, 0.42));
}

.hero-sale-app {
    grid-area: app;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    color: #b995ff;
    font-weight: 700;
    line-height: 1;
}

.hero-sale-time {
    grid-area: time;
    font-size: 0.52rem;
    color: rgba(189, 138, 255, 0.92);
    line-height: 1;
}

.hero-sale-title {
    grid-area: title;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-sale-meta {
    grid-area: meta;
    color: rgba(216, 211, 229, 0.84);
    font-size: 0.6rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-sale-dots {
    display: none;
}

@keyframes sale-notification-cycle-1 {
    0%, 2% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 24px)) scale(0.96);
    }
    6%, 84% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    92%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 14px)) scale(0.98);
    }
}

@keyframes sale-notification-cycle-2 {
    0%, 12% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 24px)) scale(0.96);
    }
    18%, 84% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    92%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 14px)) scale(0.98);
    }
}

@keyframes sale-notification-cycle-3 {
    0%, 22% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 24px)) scale(0.96);
    }
    30%, 84% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    92%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 14px)) scale(0.98);
    }
}

@keyframes sale-notification-cycle-4 {
    0%, 32% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 24px)) scale(0.96);
    }
    42%, 84% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    92%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 14px)) scale(0.98);
    }
}

@keyframes sale-notification-mobile-1 {
    0%, 2% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 16px)) scale(0.98);
    }
    6%, 22% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    26%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 8px)) scale(0.99);
    }
}

@keyframes sale-notification-mobile-2 {
    0%, 24% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 16px)) scale(0.98);
    }
    28%, 44% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    48%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 8px)) scale(0.99);
    }
}

@keyframes sale-notification-mobile-3 {
    0%, 46% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 16px)) scale(0.98);
    }
    50%, 66% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    70%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 8px)) scale(0.99);
    }
}

@keyframes sale-notification-mobile-4 {
    0%, 68% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 16px)) scale(0.98);
    }
    72%, 90% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
    }
    94%, 100% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) - 8px)) scale(0.99);
    }
}

@keyframes sale-mobile-stack-reveal {
    0% {
        opacity: 0;
        transform: translateY(calc(var(--notification-y) + 10px)) scale(0.97);
        filter: blur(1px);
    }
    70% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(var(--notification-y)) scale(1);
        filter: blur(0);
    }
}

@keyframes sale-dot-mobile-1 {
    0%, 4% { opacity: 0.35; transform: scale(1); }
    6%, 22% { opacity: 0.95; transform: scale(1.2); }
    24%, 100% { opacity: 0.35; transform: scale(1); }
}

@keyframes sale-dot-mobile-2 {
    0%, 26% { opacity: 0.35; transform: scale(1); }
    28%, 44% { opacity: 0.95; transform: scale(1.2); }
    46%, 100% { opacity: 0.35; transform: scale(1); }
}

@keyframes sale-dot-mobile-3 {
    0%, 48% { opacity: 0.35; transform: scale(1); }
    50%, 66% { opacity: 0.95; transform: scale(1.2); }
    68%, 100% { opacity: 0.35; transform: scale(1); }
}

@keyframes sale-dot-mobile-4 {
    0%, 70% { opacity: 0.35; transform: scale(1); }
    72%, 90% { opacity: 0.95; transform: scale(1.2); }
    92%, 100% { opacity: 0.35; transform: scale(1); }
}

@keyframes phone-glow-pulse {
    0%, 100% {
        opacity: 0.66;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.03);
    }
}

.preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5c7c; }
.dot.yellow { background: #ffb800; }
.dot.green { background: #2ecc71; }

.preview-title {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.preview-kpi {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
}

.preview-kpi small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.preview-kpi strong {
    font-size: 1.08rem;
    color: #fff;
}

.preview-kpi .up {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: #2ecc71;
}

.preview-chart,
.mockup-chart-large {
    height: 130px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 12px;
    padding: 10px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 8px;
    height: 20%;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.9), rgba(124, 92, 255, 0.16));
    transition: height 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    animation: hero-bounce 2s infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.story-section {
    min-height: clamp(1120px, 160vh, 1380px);
    padding-top: clamp(72px, 9vh, 102px);
    padding-bottom: clamp(72px, 10vh, 108px);
}

.story-shell {
    max-width: var(--home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: clamp(24px, 3.4vw, 40px);
    align-items: start;
}

.story-copy {
    position: sticky;
    top: 98px;
}

.story-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    margin: 20px 0 18px;
    border: 1px solid rgba(124, 92, 255, 0.32);
    background: rgba(124, 92, 255, 0.08);
    overflow: hidden;
}

.story-progress-fill {
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.75), rgba(171, 132, 255, 0.96));
    transition: width 0.42s ease;
}

.story-steps {
    display: grid;
    gap: 10px;
}

.story-step {
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.76), rgba(12, 16, 26, 0.56));
    padding: 12px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    opacity: 0.48;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.story-step.is-active {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(168, 128, 255, 0.76);
    background: linear-gradient(180deg, rgba(26, 20, 46, 0.82), rgba(13, 10, 28, 0.72));
}

.story-step.is-complete {
    opacity: 0.84;
    transform: translateY(0);
    border-color: rgba(98, 204, 132, 0.45);
    background: linear-gradient(180deg, rgba(14, 30, 23, 0.72), rgba(10, 20, 17, 0.58));
}

.story-step.is-pending {
    opacity: 0.38;
}

.story-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.17);
    color: #b995ff;
    display: grid;
    place-items: center;
}

.story-step-icon svg {
    width: 17px;
    height: 17px;
}

.story-step strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
}

.story-step p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.38;
}

.story-scene-wrap {
    position: sticky;
    top: 96px;
}

.story-scene {
    position: relative;
    min-height: clamp(520px, 72vh, 640px);
    border-radius: 20px;
    border: 1px solid rgba(124, 92, 255, 0.24);
    background: linear-gradient(165deg, rgba(10, 13, 24, 0.96), rgba(7, 9, 16, 0.96));
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(124, 92, 255, 0.12);
    overflow: hidden;
}

.story-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 124, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 124, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    clip-path: polygon(10% 6%, 90% 6%, 66% 96%, 34% 96%);
    opacity: 0.78;
}

.story-device {
    position: absolute;
    width: min(100%, 428px);
    height: clamp(460px, 86%, 592px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: visible;
}

.story-device::before,
.story-device::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(10% 6%, 90% 6%, 66% 96%, 34% 96%);
    pointer-events: none;
}

.story-device::before {
    background:
        radial-gradient(circle at 70% 26%, rgba(150, 96, 255, 0.28), rgba(150, 96, 255, 0.02) 54%, transparent 72%),
        linear-gradient(165deg, rgba(19, 13, 40, 0.95), rgba(7, 8, 18, 0.97));
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(150, 120, 255, 0.16);
}

.story-device::after {
    border: 1px solid rgba(176, 136, 255, 0.62);
    filter: drop-shadow(0 14px 26px rgba(12, 6, 22, 0.46));
}

.story-device-notch {
    display: none;
}

.story-device-title {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    text-transform: uppercase;
    z-index: 2;
}

.story-device-subtitle {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(224, 218, 239, 0.8);
    font-size: 0.71rem;
    z-index: 2;
}

.story-funnel-shape {
    display: none;
}

.story-flow-particles {
    display: none;
}

.story-flow-particles span {
    display: none;
}

.story-flow-particles span:nth-child(1) { display: none; }
.story-flow-particles span:nth-child(2) { display: none; }
.story-flow-particles span:nth-child(3) { display: none; }
.story-flow-particles span:nth-child(4) { display: none; }

.story-funnel-line {
    position: absolute;
    left: 50%;
    top: 116px;
    width: 2px;
    height: calc(100% - 222px);
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.04), rgba(124, 92, 255, 0.9) 40%, rgba(124, 92, 255, 0.08));
    opacity: 0.65;
    z-index: 2;
}

.story-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.93);
    width: var(--node-width, 70%);
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    border-radius: 999px;
    border: 1px solid rgba(155, 116, 255, 0.38);
    background: rgba(20, 10, 42, 0.86);
    color: #dccdff;
    font-size: 0.72rem;
    padding: 5px 10px;
    opacity: 0.24;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}

.story-node-visit { --node-width: 74%; }
.story-node-click { --node-width: 60%; }
.story-node-checkout { --node-width: 48%; }
.story-node-sale { --node-width: 37%; }
.story-node-insight { --node-width: 28%; }

.story-node-visit { top: 134px; }
.story-node-click { top: 188px; }
.story-node-checkout { top: 242px; }
.story-node-sale { top: 296px; }
.story-node-insight { top: 350px; }

.story-sale-toast,
.story-insight-card {
    position: absolute;
    left: 50%;
    width: min(76%, 264px);
    transform: translateX(-50%) translateY(12px) scale(0.98);
    border-radius: 12px;
    border: 1px solid rgba(163, 118, 255, 0.42);
    background: linear-gradient(170deg, rgba(23, 13, 43, 0.95), rgba(10, 7, 22, 0.95));
    box-shadow: 0 12px 20px rgba(4, 1, 11, 0.44);
    opacity: 0;
    transition: opacity 0.34s ease, transform 0.34s ease;
    z-index: 3;
}

.story-sale-toast {
    bottom: 82px;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 7px;
    padding: 7px;
}

.story-sale-toast img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(161, 113, 255, 0.4);
    background: rgba(20, 10, 42, 0.84);
}

.story-sale-toast strong {
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.08;
}

.story-sale-toast p {
    margin-top: 2px;
    color: rgba(214, 208, 230, 0.88);
    font-size: 0.64rem;
}

.story-sale-toast span {
    color: rgba(189, 138, 255, 0.95);
    font-size: 0.62rem;
}

.story-insight-card {
    bottom: 20px;
    padding: 8px 9px;
}

.story-insight-card small {
    color: var(--text-secondary);
    font-size: 0.62rem;
}

.story-insight-card strong {
    display: block;
    color: #7ef2a1;
    font-size: 1.02rem;
    margin-top: 2px;
}

.story-insight-card p {
    color: rgba(214, 208, 230, 0.92);
    font-size: 0.65rem;
}

.story-scene[data-story-stage="visit"] .story-node-visit,
.story-scene[data-story-stage="click"] .story-node-visit,
.story-scene[data-story-stage="checkout"] .story-node-visit,
.story-scene[data-story-stage="sale"] .story-node-visit,
.story-scene[data-story-stage="insight"] .story-node-visit,
.story-scene[data-story-stage="click"] .story-node-click,
.story-scene[data-story-stage="checkout"] .story-node-click,
.story-scene[data-story-stage="sale"] .story-node-click,
.story-scene[data-story-stage="insight"] .story-node-click,
.story-scene[data-story-stage="checkout"] .story-node-checkout,
.story-scene[data-story-stage="sale"] .story-node-checkout,
.story-scene[data-story-stage="insight"] .story-node-checkout,
.story-scene[data-story-stage="sale"] .story-node-sale,
.story-scene[data-story-stage="insight"] .story-node-sale,
.story-scene[data-story-stage="insight"] .story-node-insight {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    border-color: rgba(188, 150, 255, 0.82);
}

.story-scene[data-story-stage="sale"] .story-sale-toast,
.story-scene[data-story-stage="insight"] .story-insight-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.story-scene[data-story-stage="insight"] .story-sale-toast {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.98);
}

@supports (animation-timeline: scroll()) {
    .story-section {
        scroll-timeline-name: --storyline;
        scroll-timeline-axis: block;
    }

    .story-device {
        animation: story-device-drift linear both;
        animation-timeline: --storyline;
        animation-range: entry 0% exit 100%;
    }

    .story-progress-fill {
        animation: story-progress-track linear both;
        animation-timeline: --storyline;
        animation-range: entry 0% exit 100%;
    }
}

@keyframes story-device-drift {
    0% { transform: translate(-50%, -50%) scale(0.98); }
    50% { transform: translate(-50%, -49%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(0.985); }
}

@keyframes story-progress-track {
    0% { width: 8%; }
    100% { width: 100%; }
}

@keyframes story-particle-flow {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 238px) scale(0.58);
    }
}

.section {
    min-height: clamp(700px, calc(100svh - 72px), 920px);
    padding: clamp(64px, 6.6vh, 86px) 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    scroll-margin-top: 84px;
}

.section.section-cta {
    min-height: clamp(420px, 58svh, 620px);
    padding-top: clamp(44px, 5vh, 66px);
    padding-bottom: clamp(42px, 5vh, 64px);
}

.section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.24), transparent);
}

.section-header {
    max-width: 820px;
    margin: 0 auto clamp(26px, 4vh, 44px);
    text-align: center;
}

.section-label {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.55rem);
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

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

.problem-card {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.72), rgba(18, 24, 38, 0.52));
}

.problem-card h3 {
    color: #fff;
    font-size: 1.07rem;
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.journey-section {
    position: relative;
}

.journey-track {
    max-width: var(--home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    isolation: isolate;
}

.journey-line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.7), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
    z-index: 0;
    pointer-events: none;
}

.journey-track.visible .journey-line {
    transform: scaleX(1);
}

.journey-step {
    position: relative;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(16, 22, 36, 0.96));
    border-radius: 12px;
    padding: 14px;
    z-index: 1;
}

.journey-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.14);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.journey-icon svg {
    width: 22px;
    height: 22px;
}

.journey-step strong {
    color: #fff;
    font-size: 0.95rem;
}

.journey-step p {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.dashboard-preview {
    max-width: var(--home-max);
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(124, 92, 255, 0.22);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(10, 14, 24, 0.95));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    padding: 16px;
}

.dashboard-mockup {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
}

.mockup-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.24);
    display: grid;
    align-content: start;
    gap: 6px;
}

.mockup-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 9px;
}

.mockup-nav-item svg {
    width: 17px;
    height: 17px;
}

.mockup-nav-item.active {
    color: var(--color-primary);
    background: rgba(124, 92, 255, 0.14);
}

.mockup-main {
    display: grid;
    gap: 12px;
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mockup-card {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 10px;
}

.mockup-card small {
    color: var(--text-secondary);
    font-size: 0.72rem;
    display: block;
}

.mockup-card strong {
    color: #fff;
    font-size: 1.1rem;
}

.mockup-card span {
    display: block;
    color: #2ecc71;
    font-size: 0.75rem;
}

.mockup-bottom {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 10px;
}

.mockup-chart-large {
    height: 184px;
    margin-top: 0;
}

.mockup-geo {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
}

.mockup-geo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mockup-geo-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.mockup-geo ul {
    display: grid;
    gap: 7px;
}

.mockup-geo li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mockup-geo strong {
    color: #fff;
}

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

.value-group {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.74), rgba(18, 24, 38, 0.56));
}

.value-group h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.value-group ul {
    display: grid;
    gap: 9px;
}

.value-group li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    list-style: none;
    position: relative;
    padding-left: 16px;
    line-height: 1.55;
}

.value-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.95);
    box-shadow: 0 0 8px rgba(124, 92, 255, 0.8);
}

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

.recommended-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.74), rgba(18, 24, 38, 0.56));
}

.recommended-card h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.recommended-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.recommended-links {
    display: grid;
    gap: 8px;
}

.recommended-links a {
    display: block;
    border: 1px solid rgba(124, 92, 255, 0.24);
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.08);
    padding: 10px 12px;
    color: #dbe7ff;
    font-size: 0.88rem;
    line-height: 1.35;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.recommended-links a:hover {
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.14);
}

.feature-map-card {
    max-width: var(--home-max);
    width: 100%;
    margin: clamp(14px, 2.6vh, 24px) auto 0;
    border: 1px solid rgba(124, 92, 255, 0.24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% -12%, rgba(124, 92, 255, 0.18), transparent 42%),
        radial-gradient(circle at 84% 118%, rgba(124, 92, 255, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(18, 24, 38, 0.9), rgba(10, 14, 24, 0.9));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 18px;
}

.feature-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.feature-map-header h3 {
    color: #fff;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
}

.feature-map-badge {
    border: 1px solid rgba(124, 92, 255, 0.34);
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.feature-map-body {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(250px, 0.78fr);
    gap: 14px;
    align-items: stretch;
}

.feature-map-canvas {
    min-height: clamp(260px, 36vh, 360px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 22%, rgba(124, 92, 255, 0.12), transparent 46%),
        radial-gradient(circle at 78% 78%, rgba(124, 92, 255, 0.08), transparent 48%),
        rgba(6, 10, 18, 0.58);
    position: relative;
    overflow: hidden;
}

.feature-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.feature-map-list {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(4, 8, 16, 0.52);
    padding: 10px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.feature-map-list li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.82rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feature-map-list li:hover {
    border-color: rgba(124, 92, 255, 0.45);
    transform: translateX(2px);
}

.feature-map-list li.is-active {
    border: 1px solid rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.14);
}

.feature-map-list strong {
    color: #fff;
}

.feature-map-note {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.77rem;
    opacity: 0.9;
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 26px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.45);
}

.pricing-card.featured {
    border-color: rgba(124, 92, 255, 0.9);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.11), rgba(124, 92, 255, 0.03));
}

.pricing-badge {
    display: inline-block;
    margin-bottom: 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 12px;
    text-transform: uppercase;
}

.pricing-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.pricing-price {
    margin-top: 8px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
}

.pricing-price span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.pricing-desc {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features {
    margin-top: 16px;
    margin-bottom: 18px;
    text-align: left;
    display: grid;
    gap: 8px;
}

.pricing-features li {
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.pricing-features li:last-child {
    border-bottom: 0;
}

.pricing-features svg {
    width: 17px;
    height: 17px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-soon {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: rgba(124, 92, 255, 0.14);
    color: var(--color-primary);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-btn {
    width: 100%;
}

.cta-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), rgba(124, 92, 255, 0.03));
    padding: 34px 24px;
}

.cta-title {
    color: #fff;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.2;
}

.cta-subtitle {
    margin: 12px auto 22px;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 580px;
}

.home-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 54px 24px 26px;
}

.footer-content {
    max-width: var(--home-max);
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.88rem;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.footer-column li {
    list-style: none;
    margin-bottom: 9px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--home-max);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.animate-on-scroll {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 26px, 0) scale(0.985);
    transition: opacity 0.72s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.72s ease;
    will-change: opacity, transform, filter;
}

.animate-on-scroll[data-reveal="left"] {
    transform: translate3d(-36px, 0, 0) scale(0.985);
}

.animate-on-scroll[data-reveal="right"] {
    transform: translate3d(36px, 0, 0) scale(0.985);
}

.animate-on-scroll[data-reveal="zoom"] {
    transform: translate3d(0, 0, 0) scale(0.94);
}

.animate-on-scroll[data-reveal="lift"] {
    transform: translate3d(0, 46px, 0) scale(0.99);
}

.animate-on-scroll.visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .hero-section,
    .hero-glow,
    .chart-bar,
    .hero-phone-glow {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .hero-sale-notification {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: translateY(var(--notification-y)) !important;
        filter: none !important;
    }

    .hero-sale-dots span {
        animation: none !important;
        opacity: 0.35;
        transform: none !important;
    }

    .hero-sale-dots span:first-child {
        opacity: 0.95;
    }

    .story-flow-particles span {
        animation: none !important;
        opacity: 0 !important;
    }

    .hero-scroll {
        animation: none !important;
        transform: translateX(-50%) !important;
    }

}

@media (max-width: 980px) {
    .story-section {
        min-height: auto;
    }

    .story-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .story-copy,
    .story-scene-wrap {
        position: relative;
        top: 0;
    }

    .story-scene {
        min-height: 560px;
    }

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

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-stats {
        max-width: 100%;
    }

    .hero-phone-scene {
        transform: none;
    }

    .problem-grid,
    .value-groups,
    .recommended-grid {
        grid-template-columns: 1fr;
    }

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

    .feature-map-canvas {
        min-height: 240px;
    }

    .journey-track {
        grid-template-columns: 1fr;
    }

    .journey-line {
        display: none;
    }

    .dashboard-mockup {
        grid-template-columns: 1fr;
    }

    .mockup-sidebar {
        display: none;
    }

    .mockup-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mockup-bottom {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .story-scene-wrap {
        display: none;
    }

    .story-section {
        padding: 70px 20px 44px;
    }

    .story-step {
        grid-template-columns: 34px 1fr;
        padding: 10px;
        gap: 8px;
    }

    .story-step-icon {
        width: 34px;
        height: 34px;
    }

    .story-step strong {
        font-size: 0.88rem;
    }

    .story-step p {
        font-size: 0.8rem;
    }

    .story-scene {
        min-height: clamp(420px, 76svh, 520px);
        border-radius: 16px;
        padding: 10px 0 12px;
    }

    .story-device {
        width: min(100%, 282px);
        border-radius: 32px;
    }

    .story-funnel-line {
        top: 96px;
        height: calc(100% - 150px);
    }

    .story-device-notch {
        width: 92px;
        height: 22px;
    }

    .story-node {
        font-size: 0.67rem;
        padding: 5px 10px;
    }

    .story-node-visit { --node-width: 76%; }
    .story-node-click { --node-width: 62%; }
    .story-node-checkout { --node-width: 50%; }
    .story-node-sale { --node-width: 38%; }
    .story-node-insight { --node-width: 30%; }

    .story-node-visit { top: 108px; }
    .story-node-click { top: 156px; }
    .story-node-checkout { top: 204px; }
    .story-node-sale { top: 252px; }
    .story-node-insight { top: 300px; }

    .story-sale-toast {
        bottom: 62px;
    }

    .story-insight-card {
        bottom: 10px;
    }

    .story-sale-toast,
    .story-insight-card {
        left: 12px;
        right: 12px;
    }

    .home-wrapper {
        overflow-x: clip;
    }

    .home-nav {
        width: 100%;
        box-sizing: border-box;
    }

    .nav-container {
        padding: 0 4px;
    }

    .nav-auth {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: 0;
        color: #fff;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu-btn svg {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        box-sizing: border-box;
        background: rgba(5, 5, 7, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .mobile-only-auth {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 16px;
    }

    .nav-links .button {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        min-height: 100svh;
        padding: 92px 20px 22px;
        box-sizing: border-box;
    }

    .hero-grid,
    .hero-scroll {
        display: none;
    }

    .hero-glow {
        width: min(92vw, 520px);
        top: 36%;
        transform: translate(-50%, -40%);
        filter: blur(16px);
        opacity: 0.48;
    }

    .hero-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        min-height: calc(100svh - 124px);
        justify-content: space-between;
    }

    .hero-mobile-title {
        color: #fff;
        font-size: clamp(1.7rem, 8vw, 2.25rem);
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin: 2px 0 0;
    }

    .hero-mobile-subtitle {
        color: var(--text-secondary);
        font-size: 0.92rem;
        line-height: 1.52;
        margin: 0;
        max-width: 42ch;
    }

    .hero-mobile-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-mobile-actions .button {
        width: 100%;
        justify-content: center;
    }

    .hero-mobile-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-mobile-stats .hero-stat {
        padding: 10px 9px;
        border-radius: 10px;
    }

    .hero-mobile-stats .hero-stat-value {
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .hero-mobile-stats .hero-stat-label {
        font-size: 0.69rem;
        line-height: 1.2;
    }

    .hero-mobile-preview {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 4px 0 0;
    }

    .hero-phone-scene-mobile {
        width: min(100%, 252px);
        aspect-ratio: 9 / 10.6;
        overflow: hidden;
        border-radius: 40px 40px 16px 16px;
        transform: none;
    }

    .hero-phone-scene-mobile::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 44px;
        background: linear-gradient(180deg, rgba(6, 6, 12, 0), rgba(6, 6, 12, 0.74) 64%, rgba(6, 6, 12, 0.92));
        pointer-events: none;
        z-index: 6;
    }

    .hero-phone-scene-mobile .hero-phone-shell {
        border-radius: 40px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200%;
    }

    .hero-phone-scene-mobile .hero-phone-notch {
        top: 14px;
        width: 84px;
        height: 20px;
    }

    .hero-phone-scene-mobile .hero-phone-status {
        top: 54px;
        font-size: clamp(1.35rem, 6.8vw, 1.9rem);
    }

    .hero-phone-scene-mobile .hero-phone-date {
        top: 96px;
        font-size: 0.66rem;
    }

    .hero-phone-scene-mobile .hero-sale-stack {
        top: 136px;
        left: 10px;
        right: 10px;
        bottom: 14px;
    }

    .hero-phone-scene-mobile .hero-sale-notification:nth-child(1) {
        --notification-y: 8px;
        animation-delay: 0.15s;
    }

    .hero-phone-scene-mobile .hero-sale-notification:nth-child(2) {
        --notification-y: 62px;
        animation-delay: 0.45s;
    }

    .hero-phone-scene-mobile .hero-sale-notification:nth-child(3) {
        display: none;
    }

    .hero-phone-scene-mobile .hero-sale-notification:nth-child(4) {
        display: none;
    }

    .hero-phone-scene-mobile .hero-sale-notification {
        grid-template-columns: 21px 1fr auto;
        border-radius: 9px;
        padding: 6px 7px;
        gap: 2px 6px;
        height: 48px;
        animation-name: sale-mobile-stack-reveal;
        animation-duration: 0.5s;
        animation-timing-function: cubic-bezier(0.19, 0.84, 0.33, 1);
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }

    .hero-phone-scene-mobile .hero-sale-dots {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        justify-content: center;
        gap: 4px;
        pointer-events: none;
    }

    .hero-phone-scene-mobile .hero-sale-dots span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(189, 138, 255, 0.92);
        opacity: 0.35;
    }

    .hero-phone-scene-mobile .hero-sale-dots span:nth-child(1) {
        animation: sale-dot-mobile-1 6s ease-in-out infinite;
    }

    .hero-phone-scene-mobile .hero-sale-dots span:nth-child(2) {
        animation: sale-dot-mobile-2 6s ease-in-out infinite;
    }

    .hero-phone-scene-mobile .hero-sale-dots span:nth-child(3) {
        animation: sale-dot-mobile-3 6s ease-in-out infinite;
    }

    .hero-phone-scene-mobile .hero-sale-dots span:nth-child(4) {
        animation: sale-dot-mobile-4 6s ease-in-out infinite;
    }

    .hero-phone-scene-mobile .hero-sale-icon-wrap {
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .hero-phone-scene-mobile .hero-sale-icon {
        width: 12px;
        height: 12px;
    }

    .hero-phone-scene-mobile .hero-sale-app {
        font-size: 0.5rem;
    }

    .hero-phone-scene-mobile .hero-sale-time {
        font-size: 0.48rem;
    }

    .hero-phone-scene-mobile .hero-sale-title {
        font-size: 0.62rem;
        line-height: 1.08;
    }

    .hero-phone-scene-mobile .hero-sale-meta {
        font-size: 0.54rem;
        line-height: 1.08;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-stats,
    .preview-kpis {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 20px 52px;
        min-height: auto;
    }

    .section-header {
        margin-bottom: 22px;
    }

    .section-title {
        font-size: clamp(1.45rem, 6.7vw, 1.9rem);
        line-height: 1.18;
    }

    .section-subtitle {
        font-size: 0.92rem;
        line-height: 1.58;
    }

    .problem-card,
    .value-group,
    .recommended-card,
    .pricing-card {
        padding: 18px;
        margin: 0;
    }

    .problem-grid,
    .value-groups,
    .recommended-grid,
    .pricing-grid {
        gap: 16px;
    }

    .journey-track {
        gap: 14px;
    }

    .problem-card,
    .value-group,
    .recommended-card,
    .pricing-card,
    .journey-step {
        position: relative;
        z-index: 1;
    }

    .journey-step {
        padding: 12px;
    }

    .dashboard-preview,
    .feature-map-card,
    .cta-section {
        border-radius: 12px;
    }

    .dashboard-preview {
        padding: 12px;
    }

    .mockup-main {
        gap: 10px;
    }

    .mockup-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mockup-card {
        padding: 9px;
    }

    .mockup-card small {
        font-size: 0.68rem;
    }

    .mockup-card strong {
        font-size: 1rem;
    }

    .mockup-card span {
        font-size: 0.7rem;
    }

    .mockup-bottom {
        gap: 8px;
    }

    .mockup-chart-large {
        height: 150px;
    }

    .mockup-geo {
        padding: 10px;
    }

    .mockup-geo ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    .mockup-geo li {
        font-size: 0.74rem;
    }

    .feature-map-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .feature-map-badge {
        align-self: flex-start;
    }

    .feature-map-list li {
        padding: 8px;
        font-size: 0.8rem;
    }

    .pricing-price {
        font-size: 2rem;
    }

    .cta-section {
        padding: 26px 16px;
    }

    .feature-map-card {
        padding: 14px;
    }

    .feature-map-list li:hover {
        transform: none;
    }

    .animate-on-scroll {
        filter: blur(6px);
        transition-duration: 0.5s;
    }

    .animate-on-scroll[data-reveal="left"],
    .animate-on-scroll[data-reveal="right"] {
        transform: translate3d(0, 14px, 0) scale(0.99);
    }

    .animate-on-scroll[data-reveal="lift"] {
        transform: translate3d(0, 18px, 0) scale(0.995);
    }

    .animate-on-scroll[data-reveal="zoom"] {
        transform: translate3d(0, 10px, 0) scale(0.98);
    }
}

@media (max-width: 600px) {
    .story-scene {
        min-height: clamp(390px, 72svh, 470px);
    }

    .story-device {
        width: min(100%, 264px);
    }

    .story-node {
        font-size: 0.64rem;
    }

    .story-node-visit { top: 104px; }
    .story-node-click { top: 150px; }
    .story-node-checkout { top: 196px; }
    .story-node-sale { top: 242px; }
    .story-node-insight { top: 288px; }

    .story-sale-toast {
        bottom: 58px;
    }

    .hero-section {
        min-height: 100svh;
        padding: 88px 18px 20px;
    }

    .hero-mobile {
        min-height: calc(100svh - 118px);
    }

    .mockup-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 64px 18px 48px;
    }

    .pricing-features li {
        font-size: 0.84rem;
    }
}

@media (max-width: 420px) {
    .story-section {
        padding: 64px 16px 40px;
    }

    .story-step {
        grid-template-columns: 30px 1fr;
        padding: 9px;
        gap: 7px;
    }

    .story-step-icon {
        width: 30px;
        height: 30px;
    }

    .story-step-icon svg {
        width: 15px;
        height: 15px;
    }

    .story-scene {
        min-height: 372px;
    }

    .story-device {
        width: min(100%, 242px);
    }

    .story-device-notch {
        width: 78px;
        height: 18px;
    }

    .story-device-title {
        margin-top: 46px;
        font-size: 0.74rem;
    }

    .story-device-subtitle {
        font-size: 0.66rem;
    }

    .story-funnel-line {
        top: 88px;
        height: calc(100% - 136px);
    }

    .story-node {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .story-node-visit { top: 96px; }
    .story-node-click { top: 137px; }
    .story-node-checkout { top: 178px; }
    .story-node-sale { top: 219px; }
    .story-node-insight { top: 260px; }

    .story-sale-toast {
        bottom: 52px;
        grid-template-columns: 24px 1fr auto;
        gap: 5px;
        padding: 6px;
    }

    .story-sale-toast img {
        width: 24px;
        height: 24px;
    }

    .story-sale-toast strong {
        font-size: 0.63rem;
    }

    .story-sale-toast p {
        font-size: 0.57rem;
    }

    .story-sale-toast span {
        font-size: 0.55rem;
    }

    .story-insight-card {
        bottom: 8px;
        padding: 7px;
    }

    .story-insight-card small {
        font-size: 0.56rem;
    }

    .story-insight-card strong {
        font-size: 0.9rem;
    }

    .story-insight-card p {
        font-size: 0.58rem;
    }

    .home-nav {
        padding: 12px 12px;
    }

    .nav-logo img {
        height: 34px;
    }

    .hero-mobile-title {
        font-size: 1.62rem;
    }

    .hero-mobile-subtitle {
        font-size: 0.88rem;
    }

    .hero-mobile-actions {
        gap: 8px;
    }

    .hero-mobile-actions .button {
        font-size: 0.88rem !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-mobile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-mobile-stats .hero-stat {
        padding: 9px 7px;
    }

    .hero-mobile-stats .hero-stat-value {
        font-size: 1rem;
    }

    .hero-mobile-stats .hero-stat-label {
        font-size: 0.64rem;
    }

    .section {
        padding: 60px 16px 44px;
    }

    .hero-mobile {
        min-height: calc(100svh - 114px);
    }

    .section-title {
        font-size: 1.38rem;
    }

    .problem-card,
    .value-group,
    .recommended-card,
    .pricing-card,
    .cta-section {
        padding: 16px;
    }

    .mockup-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .mockup-card {
        padding: 8px;
    }

    .mockup-card strong {
        font-size: 0.95rem;
    }

    .mockup-chart-large {
        height: 136px;
    }

    .mockup-geo ul {
        grid-template-columns: 1fr;
    }
}
