        /* Material Design 3 Expressive — Landing page
           Tokens kept in sync with styles.css :root */
        :root {
            --primary-rgb: 0, 119, 182;
            --secondary-rgb: 91, 107, 214;
            --tertiary-rgb: 0, 180, 204;
            --md-sys-color-primary: #0077B6;
            --md-sys-color-on-primary: #ffffff;
            --md-sys-color-primary-container: #CAE9FF;
            --md-sys-color-on-primary-container: #001E30;
            /* Secondary — expressive indigo */
            --md-sys-color-secondary: #5B6BD6;
            --md-sys-color-on-secondary: #ffffff;
            --md-sys-color-secondary-container: #E0E2FF;
            --md-sys-color-on-secondary-container: #0C0F6B;
            /* Tertiary — vivid teal-cyan */
            --md-sys-color-tertiary: #00B4CC;
            --md-sys-color-on-tertiary: #ffffff;
            --md-sys-color-tertiary-container: #B3F0FF;
            --md-sys-color-on-tertiary-container: #001F24;
            --md-sys-color-error: #BA1A1A;
            --md-sys-color-background: #F2FAFF;
            --md-sys-color-on-background: #181C1F;
            --md-sys-color-surface: #F2FAFF;
            --md-sys-color-on-surface: #181C1F;
            --md-sys-color-surface-container-lowest: #FFFFFF;
            --md-sys-color-surface-container-low: #EAF5FF;
            --md-sys-color-surface-container: #E0EEFA;
            --md-sys-color-surface-variant: #D4E4ED;
            --md-sys-color-on-surface-variant: #3D4A50;
            --md-sys-color-outline: #687680;
            --md-sys-color-outline-variant: #B5C9D4;
            /* Expressive gradients */
            --gradient-primary: linear-gradient(135deg, #0077B6 0%, #005A8C 100%);
            --gradient-expressive: linear-gradient(135deg, #0096D5 20%, #00B4CC 100%);
            --gradient-accent: linear-gradient(135deg, #0077B6 0%, #5B6BD6 60%, #00B4CC 100%);
            --gradient-hero: linear-gradient(160deg, rgba(0, 119, 182, 0.07) 0%, rgba(0, 180, 204, 0.07) 100%);
            --shadow-sm: 0 1px 3px rgba(0, 30, 100, 0.06);
            --shadow-md: 0 4px 12px -2px rgba(0, 30, 100, 0.1);
            --shadow-lg: 0 10px 20px -4px rgba(0, 30, 100, 0.12);
            --shadow-xl: 0 20px 40px -6px rgba(0, 30, 100, 0.14);
            /* MD3 Expressive Motion */
            --md-motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --md-motion-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
            --md-motion-standard: cubic-bezier(0.2, 0, 0, 1);
            /* MD3 Shape */
            --md-sys-shape-corner-extra-large: 28px;
            --md-sys-shape-corner-full: 9999px;
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --primary-rgb: 125, 207, 255;
                --secondary-rgb: 188, 194, 255;
                --tertiary-rgb: 79, 216, 235;
                --md-sys-color-primary: #7DCFFF;
                --md-sys-color-on-primary: #003550;
                --md-sys-color-primary-container: #004C6D;
                --md-sys-color-on-primary-container: #CAE9FF;
                --md-sys-color-secondary: #BCC2FF;
                --md-sys-color-on-secondary: #232785;
                --md-sys-color-secondary-container: #3B43AE;
                --md-sys-color-on-secondary-container: #E0E2FF;
                --md-sys-color-tertiary: #4FD8EB;
                --md-sys-color-on-tertiary: #00363D;
                --md-sys-color-tertiary-container: #004F58;
                --md-sys-color-on-tertiary-container: #B3F0FF;
                --md-sys-color-error: #FFB4AB;
                --md-sys-color-background: #0A1117;
                --md-sys-color-on-background: #D6E4EC;
                --md-sys-color-surface: #0A1117;
                --md-sys-color-on-surface: #D6E4EC;
                --md-sys-color-surface-container-lowest: #060D12;
                --md-sys-color-surface-container-low: #121B21;
                --md-sys-color-surface-container: #172028;
                --md-sys-color-surface-variant: #2C3E47;
                --md-sys-color-on-surface-variant: #B0C4CE;
                --md-sys-color-outline: #7A909A;
                --md-sys-color-outline-variant: #2C3E47;
                --gradient-primary: linear-gradient(135deg, #0096D5 0%, #006FA8 100%);
                --gradient-expressive: linear-gradient(135deg, #0096D5 20%, #00C8D7 100%);
                --gradient-accent: linear-gradient(135deg, #7DCFFF 0%, #BCC2FF 60%, #4FD8EB 100%);
                --gradient-hero: linear-gradient(160deg, rgba(0, 150, 213, 0.1) 0%, rgba(0, 200, 215, 0.08) 100%);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

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

        html {
            scroll-behavior: smooth;
            overflow-x: hidden; /* предотвращаем горизонтальный скролл на мобиле */
        }

        body {
            font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--md-sys-color-background);
            color: var(--md-sys-color-on-background);
            line-height: 1.6;
            min-height: 100dvh;
            overflow-x: hidden; /* предотвращаем горизонтальный скролл на мобиле */
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 16px 24px;
            background-color: rgba(242, 250, 255, 0.88);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--md-sys-color-outline-variant);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (prefers-color-scheme: dark) {
            header {
                background-color: rgba(26, 28, 30, 0.85);
            }
        }

        .logo {
            font-size: 22px;
            font-weight: 700;
            color: var(--md-sys-color-primary);
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--gradient-primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

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

        nav a {
            text-decoration: none;
            color: var(--md-sys-color-on-surface);
            font-weight: 500;
            font-size: 14px;
            padding: 10px 20px;
            border-radius: 50px;
            transition: all 0.25s var(--md-motion-standard);
        }

        nav a:hover {
            background-color: var(--md-sys-color-surface-variant);
        }

        .nav-btn-primary {
            background: var(--gradient-primary) !important;
            color: white !important;
        }

        .nav-btn-primary:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 90, 193, 0.32);
        }

        .nav-btn-pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
            color: white !important;
        }

        .nav-btn-pro:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }

        /* Hero Section with Animated Label */
        .hero {
            min-height: 100dvh;
            display: flex;
            align-items: stretch;
            justify-content: center;
            padding: 116px 24px 64px;
            background: var(--gradient-hero);
            position: relative;
            overflow: hidden;
            text-align: left;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 20%, var(--md-sys-color-primary-container) 0%, transparent 40%),
                        radial-gradient(circle at 70% 80%, var(--md-sys-color-tertiary-container) 0%, transparent 40%);
            opacity: 0.3;
            animation: float 20s infinite ease-in-out;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(-2%, 2%) rotate(1deg); }
        }

        .hero-shell {
            position: relative;
            z-index: 1;
            width: min(1180px, 100%);
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
            align-items: center;
            gap: 56px;
        }

        .hero-content {
            max-width: 680px;
        }

        /* Animated Label */
        .animated-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 14px 24px 14px 16px;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-tertiary-container) 100%);
            border-radius: 50px;
            margin-bottom: 26px;
            border: 1px solid var(--md-sys-color-outline-variant);
            box-shadow: var(--shadow-md);
            animation: labelPulse 3s 3 var(--md-motion-standard) forwards;
        }

        .label-icon-static {
            font-size: 22px;
            line-height: 1;
        }

        .label-text-static {
            font-size: 14px;
            line-height: 20px;
            font-weight: 700;
            color: var(--md-sys-color-on-primary-container);
        }

        @keyframes labelPulse {
            0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
            50% { transform: scale(1.02); box-shadow: var(--shadow-lg); }
        }

        .label-icon-container {
            width: 32px;
            height: 32px;
            position: relative;
        }

        .label-icon {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            opacity: 0;
            animation: iconRotate 6s infinite;
        }

        .label-icon:nth-child(1) { animation-delay: 0s; }
        .label-icon:nth-child(2) { animation-delay: 2s; }
        .label-icon:nth-child(3) { animation-delay: 4s; }

        @keyframes iconRotate {
            0%, 32% { opacity: 1; transform: scale(1) rotate(0deg); }
            34%, 95% { opacity: 0; transform: scale(0.5) rotate(20deg); }
            100% { opacity: 0; transform: scale(0.5) rotate(20deg); }
        }

        .label-text-container {
            position: relative;
            height: 24px;
            overflow: hidden;
            min-width: 280px;
        }

        .label-text {
            position: absolute;
            top: 0;
            left: 0;
            white-space: nowrap;
            font-weight: 600;
            font-size: 14px;
            line-height: 24px;
            color: var(--md-sys-color-on-primary-container);
            opacity: 0;
            animation: textSlide 6s infinite;
        }

        .label-text:nth-child(1) { animation-delay: 0s; }
        .label-text:nth-child(2) { animation-delay: 2s; }
        .label-text:nth-child(3) { animation-delay: 4s; }

        @keyframes textSlide {
            0%, 32% { opacity: 1; transform: translateY(0); }
            34%, 100% { opacity: 0; transform: translateY(-20px); }
        }

        .hero-title {
            font-size: 60px;
            font-weight: 800;
            line-height: 1.08;
            margin-bottom: 24px;
            background: var(--gradient-expressive);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 20px;
            color: var(--md-sys-color-on-surface-variant);
            margin-bottom: 34px;
            max-width: 620px;
        }

        .hero-cta {
            display: flex;
            gap: 16px;
            justify-content: flex-start;
            flex-wrap: wrap;
        }

        .btn-hero {
            position: relative;
            isolation: isolate;
            overflow: hidden;
            padding: 18px 40px;
            font-size: 16px;
            font-weight: 600;
            font-family: inherit;
            border-radius: var(--md-sys-shape-corner-full);
            cursor: pointer;
            transition:
                transform 0.35s var(--md-motion-spring),
                box-shadow 0.25s var(--md-motion-standard),
                background-color 0.2s var(--md-motion-standard);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: white;
            opacity: 0;
            transition: opacity 0.15s var(--md-motion-standard);
            pointer-events: none;
        }

        .btn-hero:active {
            transform: scale(0.96) !important;
        }

        .btn-hero-primary {
            background: var(--gradient-accent);
            color: white;
            border: none;
            box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
        }

        .btn-hero-primary:hover {
            transform: translateY(-5px) scale(1.03);
            box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.40);
        }
        .btn-hero-primary:hover::after { opacity: 0.06; }

        .btn-hero-secondary {
            background: var(--md-sys-color-surface-container-low, rgba(234, 245, 255, 0.8));
            color: var(--md-sys-color-on-surface);
            border: 1.5px solid var(--md-sys-color-outline-variant);
        }

        .btn-hero-secondary:hover {
            background-color: var(--md-sys-color-secondary-container);
            color: var(--md-sys-color-on-secondary-container);
            transform: translateY(-3px) scale(1.02);
            border-color: var(--md-sys-color-secondary);
        }
        .btn-hero-secondary::after { background: currentColor; }
        .btn-hero-secondary:hover::after { opacity: 0.06; }

        .hero-features {
            display: grid;
            grid-template-columns: repeat(2, minmax(180px, 1fr));
            gap: 12px;
            margin-top: 34px;
            max-width: 520px;
        }

        .hero-feature {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: var(--md-sys-color-on-surface-variant);
            padding: 10px 20px;
            background-color: var(--md-sys-color-surface);
            border-radius: 50px;
            border: 1px solid var(--md-sys-color-outline-variant);
        }

        .hero-feature .material-symbols-outlined {
            color: var(--md-sys-color-primary);
            font-size: 22px;
        }

        .hero-showcase {
            position: relative;
            min-height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-showcase::before {
            content: '';
            position: absolute;
            inset: 10% 0 2%;
            border-radius: 44px;
            background: linear-gradient(150deg, rgba(0, 119, 182, 0.12), rgba(0, 180, 204, 0.06));
            border: 1px solid var(--md-sys-color-outline-variant);
            box-shadow: var(--shadow-xl);
        }

        .hero-character-stack {
            position: relative;
            width: min(100%, 470px);
            height: 430px;
        }

        .hero-character-card {
            position: absolute;
            display: block;
            width: 245px;
            overflow: hidden;
            border-radius: 28px;
            text-decoration: none;
            color: inherit;
            background: var(--md-sys-color-surface);
            border: 1px solid var(--md-sys-color-outline-variant);
            box-shadow: var(--shadow-lg);
            transition: transform 0.25s var(--md-motion-standard), box-shadow 0.25s ease;
        }

        .hero-character-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-xl);
        }

        .hero-character-card.primary {
            left: 112px;
            top: 22px;
            z-index: 3;
            width: 285px;
        }

        .hero-character-card.secondary {
            left: 18px;
            top: 150px;
            z-index: 2;
            transform: rotate(-5deg);
        }

        .hero-character-card.tertiary {
            right: 0;
            top: 196px;
            z-index: 1;
            transform: rotate(5deg);
        }

        .hero-character-card.secondary:hover,
        .hero-character-card.tertiary:hover {
            transform: translateY(-6px) rotate(0deg);
        }

        .hero-character-card img {
            width: 100%;
            height: 168px;
            display: block;
            object-fit: cover;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-tertiary-container));
        }

        .hero-character-card.primary img {
            height: 196px;
        }

        .hero-character-info {
            padding: 14px 16px 16px;
        }

        .hero-character-name {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hero-character-desc {
            font-size: 12px;
            line-height: 1.45;
            color: var(--md-sys-color-on-surface-variant);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hero-showcase-stat {
            position: absolute;
            right: 16px;
            bottom: 22px;
            z-index: 4;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 11px 16px;
            border-radius: 18px;
            background: color-mix(in srgb, var(--md-sys-color-surface) 86%, transparent);
            border: 1px solid var(--md-sys-color-outline-variant);
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            font-size: 13px;
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
        }

        .hero-showcase-stat .material-symbols-outlined {
            font-size: 18px;
            color: var(--md-sys-color-primary);
        }

        /* ===== Sync Animation Section ===== */
        .sync-section {
            padding: 100px 24px;
            background: linear-gradient(180deg, var(--md-sys-color-background) 0%, var(--md-sys-color-surface) 100%);
            position: relative;
            overflow: hidden;
        }

        .sync-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at 50% 50%, rgba(0, 90, 193, 0.07) 0%, transparent 70%);
            pointer-events: none;
        }

        @media (prefers-color-scheme: dark) {
            .sync-section::before {
                background: radial-gradient(ellipse at 50% 50%, rgba(158, 202, 255, 0.04) 0%, transparent 70%);
            }
        }

        .sync-container {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
        }

        .sync-header {
            text-align: center;
            margin-bottom: 64px;
        }

        .sync-header .section-badge {
            margin-bottom: 16px;
        }

        .sync-header h2 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .sync-header p {
            font-size: 18px;
            color: var(--md-sys-color-on-surface-variant);
            max-width: 560px;
            margin: 0 auto;
        }

        .sync-demo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            position: relative;
            min-height: 440px;
        }

        /* Device Mockups */
        .device-phone, .device-browser {
            position: relative;
            z-index: 2;
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .sync-section.visible .device-phone {
            opacity: 1;
            transform: translateY(0);
        }

        .sync-section.visible .device-browser {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.15s;
        }

        .device-phone {
            width: 260px;
            flex-shrink: 0;
        }

        .phone-frame {
            background: var(--md-sys-color-surface);
            border: 2px solid var(--md-sys-color-outline-variant);
            border-radius: 36px;
            padding: 12px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
            position: relative;
            overflow: hidden;
        }

        @media (prefers-color-scheme: dark) {
            .phone-frame, .browser-frame {
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            }
        }

        .phone-notch {
            width: 80px;
            height: 6px;
            background: var(--md-sys-color-outline-variant);
            border-radius: 3px;
            margin: 0 auto 12px;
        }

        .phone-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: var(--md-sys-color-primary-container);
            border-radius: 20px 20px 0 0;
            margin-bottom: 2px;
        }

        .phone-header-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
            flex-shrink: 0;
        }

        .phone-header-info {
            display: flex;
            flex-direction: column;
        }

        .phone-header-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--md-sys-color-on-primary-container);
        }

        .phone-header-status {
            font-size: 10px;
            color: var(--md-sys-color-on-primary-container);
            opacity: 0.7;
        }

        .phone-chat {
            background: var(--md-sys-color-background);
            border-radius: 0 0 14px 14px;
            padding: 12px 10px;
            min-height: 280px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .chat-msg {
            max-width: 85%;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 12px;
            line-height: 1.5;
            opacity: 0;
            transform: scale(0.8);
            animation: msgPop 0.45s var(--md-motion-spring) forwards;
        }

        .chat-msg.user {
            align-self: flex-end;
            background: var(--md-sys-color-primary);
            color: var(--md-sys-color-on-primary);
            border-bottom-right-radius: 4px;
        }

        .chat-msg.bot {
            align-self: flex-start;
            background: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface-variant);
            border-bottom-left-radius: 4px;
        }

        .chat-msg.m1 { animation-delay: 0.6s; }
        .chat-msg.m2 { animation-delay: 1.8s; }
        .chat-msg.m3 { animation-delay: 3.0s; }
        .chat-msg.m4 { animation-delay: 4.2s; }

        @keyframes msgPop {
            0% { opacity: 0; transform: scale(0.8) translateY(10px); }
            100% { opacity: 1; transform: scale(1) translateY(0); }
        }

        /* Sync Bridge (center) */
        .sync-bridge {
            width: 160px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .sync-bridge-line {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-primary));
            opacity: 0.3;
            transform: translateY(-50%);
        }

        .sync-icon-center {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
            box-shadow: 0 10px 40px rgba(0, 90, 193, 0.35);
            position: relative;
            z-index: 3;
            opacity: 0;
            transform: scale(0);
            transition: opacity 0.5s ease, transform 0.6s var(--md-motion-spring);
        }

        .sync-section.visible .sync-icon-center {
            opacity: 1;
            transform: scale(1);
            transition-delay: 0.4s;
        }

        .sync-icon-center .material-symbols-outlined {
            animation: syncSpin 3s infinite ease-in-out;
        }

        @keyframes syncSpin {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(180deg); }
        }

        /* Sync particles */
        .sync-particle {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            top: 50%;
            opacity: 0;
        }

        .sync-particle.to-right {
            background: var(--md-sys-color-primary);
            animation: particleRight 2.5s infinite ease-in-out;
        }

        .sync-particle.to-left {
            background: var(--md-sys-color-tertiary);
            animation: particleLeft 2.5s infinite ease-in-out;
        }

        .sync-particle:nth-child(2) { animation-delay: 0.8s; }
        .sync-particle:nth-child(3) { animation-delay: 1.6s; }
        .sync-particle:nth-child(4) { animation-delay: 0.5s; }
        .sync-particle:nth-child(5) { animation-delay: 1.3s; }

        @keyframes particleRight {
            0% { left: 10px; opacity: 0; transform: translateY(-50%) scale(0.5); }
            15% { opacity: 1; transform: translateY(-50%) scale(1); }
            85% { opacity: 1; transform: translateY(-50%) scale(1); }
            100% { left: calc(100% - 18px); opacity: 0; transform: translateY(-50%) scale(0.5); }
        }

        @keyframes particleLeft {
            0% { right: 10px; opacity: 0; transform: translateY(-50%) scale(0.5); }
            15% { opacity: 1; transform: translateY(-50%) scale(1); }
            85% { opacity: 1; transform: translateY(-50%) scale(1); }
            100% { right: calc(100% - 18px); opacity: 0; transform: translateY(-50%) scale(0.5); }
        }

        .sync-section:not(.visible) .sync-particle {
            animation: none;
            opacity: 0;
        }

        /* Browser Mockup */
        .device-browser {
            width: 380px;
            flex-shrink: 0;
        }

        .browser-frame {
            background: var(--md-sys-color-surface);
            border: 2px solid var(--md-sys-color-outline-variant);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
        }

        .browser-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: var(--md-sys-color-surface-variant);
            border-bottom: 1px solid var(--md-sys-color-outline-variant);
        }

        .browser-dots {
            display: flex;
            gap: 5px;
            flex-shrink: 0;
        }

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

        .browser-dot:nth-child(1) { background: #ff5f57; }
        .browser-dot:nth-child(2) { background: #ffbd2e; }
        .browser-dot:nth-child(3) { background: #28c840; }

        .browser-url {
            flex: 1;
            padding: 5px 12px;
            background: var(--md-sys-color-background);
            border-radius: 8px;
            font-size: 11px;
            color: var(--md-sys-color-on-surface-variant);
            display: flex;
            align-items: center;
            gap: 6px;
            overflow: hidden;
            white-space: nowrap;
        }

        .browser-url .material-symbols-outlined {
            font-size: 14px;
            color: #28c840;
        }

        .browser-content {
            padding: 16px;
            min-height: 340px;
        }

        .web-app-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--md-sys-color-outline-variant);
        }

        .web-app-logo {
            width: 28px;
            height: 28px;
            background: var(--gradient-primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: white;
        }

        .web-app-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
        }

        .web-sync-badge {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            background: rgba(40, 200, 64, 0.12);
            border-radius: 12px;
            font-size: 10px;
            font-weight: 600;
            color: #28c840;
        }

        .web-sync-dot {
            width: 6px;
            height: 6px;
            background: #28c840;
            border-radius: 50%;
            animation: syncPulse 1.5s infinite;
        }

        @keyframes syncPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(0.7); }
        }

        .web-character-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }

        .web-char-avatar {
            width: 36px;
            height: 36px;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-tertiary-container) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .web-char-info h4 {
            font-size: 13px;
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
        }

        .web-char-info span {
            font-size: 10px;
            color: var(--md-sys-color-on-surface-variant);
        }

        .web-chat {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .web-msg {
            padding: 10px 14px;
            border-radius: 20px;
            font-size: 12px;
            line-height: 1.5;
            max-width: 88%;
            opacity: 0;
            transform: scale(0.8);
            animation: msgPop 0.45s var(--md-motion-spring) forwards;
        }

        .web-msg.user {
            align-self: flex-end;
            background: var(--md-sys-color-primary);
            color: var(--md-sys-color-on-primary);
            border-bottom-right-radius: 4px;
        }

        .web-msg.bot {
            align-self: flex-start;
            background: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface-variant);
            border-bottom-left-radius: 4px;
        }

        /* Sync flash effect on web messages */
        .web-msg::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            opacity: 0;
        }

        .web-msg.m1 { animation-delay: 1.1s; }
        .web-msg.m2 { animation-delay: 2.3s; }
        .web-msg.m3 { animation-delay: 3.5s; }
        .web-msg.m4 { animation-delay: 4.7s; }

        /* Sync label under msgs */
        .sync-label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 6px;
            font-size: 10px;
            color: var(--md-sys-color-on-surface-variant);
            opacity: 0;
            animation: msgPop 0.4s forwards;
            animation-delay: 5.2s;
        }

        .sync-label .material-symbols-outlined {
            font-size: 14px;
            color: #28c840;
        }

        /* Bottom features under the demo */
        .sync-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 56px;
        }

        .sync-feat {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 22px;
            background: var(--md-sys-color-surface);
            border: 1px solid var(--md-sys-color-outline-variant);
            border-radius: 24px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.6s var(--md-motion-spring);
        }

        .sync-section.visible .sync-feat {
            opacity: 1;
            transform: translateY(0);
        }

        .sync-section.visible .sync-feat:nth-child(1) { transition-delay: 0.6s; }
        .sync-section.visible .sync-feat:nth-child(2) { transition-delay: 0.75s; }
        .sync-section.visible .sync-feat:nth-child(3) { transition-delay: 0.9s; }

        .sync-feat-icon {
            width: 44px;
            height: 44px;
            border-radius: 16px;
            background: var(--md-sys-color-primary-container);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sync-feat-icon .material-symbols-outlined {
            font-size: 22px;
            color: var(--md-sys-color-primary);
        }

        .sync-feat-text {
            font-size: 14px;
            font-weight: 600;
            color: var(--md-sys-color-on-surface);
        }

        .sync-feat-text span {
            display: block;
            font-size: 12px;
            font-weight: 400;
            color: var(--md-sys-color-on-surface-variant);
            margin-top: 2px;
        }

        /* Sync section responsive — смартфоны: горизонтальный ряд, компактные мокапы */
        @media (max-width: 850px) {
            .sync-section {
                padding: 56px 16px 48px;
            }
            .sync-header {
                margin-bottom: 28px;
            }
            .sync-header h2 {
                font-size: 26px;
            }
            .sync-header p {
                font-size: 15px;
            }

            /* Всегда горизонтальный ряд на мобиле — как на десктопе, но компактнее */
            .sync-demo {
                flex-direction: row;
                align-items: stretch;
                min-height: unset;
                gap: 0;
            }

            .device-phone   { width: 36%; display: flex; flex-direction: column; }
            .device-browser { width: 50%; display: flex; flex-direction: column; }
            .device-phone .phone-frame,
            .device-browser .browser-frame {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
            .device-phone .phone-chat,
            .device-browser .browser-content {
                flex: 1;
            }

            .sync-bridge {
                width: 14%;
                height: auto;
                flex-direction: column;
                align-self: stretch;
            }
            .sync-bridge-line {
                top: 50%;
                bottom: auto;
                left: 0;
                right: 0;
                width: auto;
                height: 2px;
                transform: translateY(-50%);
            }

            .sync-icon-center {
                width: 40px;
                height: 40px;
            }
            .sync-icon-center .material-symbols-outlined { font-size: 22px; }

            .sync-particle { display: none; }

            /* === Телефон компактный === */
            .phone-frame    { padding: 8px; border-radius: 22px; }
            .phone-notch    { width: 48px; height: 4px; margin-bottom: 8px; }
            .phone-header   { padding: 7px 10px; gap: 6px; border-radius: 16px 16px 0 0; }
            .phone-header-avatar { width: 24px; height: 24px; font-size: 12px; }
            .phone-header-name   { font-size: 11px; }
            .phone-header-status { font-size: 8px; }
            .phone-chat     { min-height: 120px; padding: 8px 6px; gap: 5px; border-radius: 0 0 12px 12px; }
            .chat-msg       { font-size: 10px; padding: 5px 10px; border-radius: 12px; }

            /* === Браузер компактный === */
            .browser-frame   { border-radius: 16px; }
            .browser-toolbar { padding: 6px 8px; gap: 6px; }
            .browser-dot     { width: 7px; height: 7px; }
            .browser-url     { font-size: 9px; padding: 3px 8px; }
            .browser-content { padding: 10px; min-height: unset; }
            .web-app-header  { margin-bottom: 8px; padding-bottom: 8px; gap: 6px; }
            .web-app-logo    { width: 20px; height: 20px; font-size: 10px; border-radius: 7px; }
            .web-app-title   { font-size: 11px; }
            .web-sync-badge  { font-size: 8px; padding: 2px 6px; }
            .web-sync-dot    { width: 5px; height: 5px; }
            .web-character-header { margin-bottom: 8px; gap: 6px; }
            .web-char-avatar { width: 26px; height: 26px; font-size: 14px; border-radius: 10px; }
            .web-char-info h4 { font-size: 11px; }
            .web-char-info span { font-size: 8px; }
            .web-chat        { gap: 5px; }
            .web-msg         { font-size: 10px; padding: 5px 10px; border-radius: 12px; }
            .sync-label      { font-size: 9px; }

            /* === Нижние фичи === */
            .sync-features {
                flex-direction: column;
                align-items: center;
                margin-top: 28px;
                gap: 10px;
            }
            .sync-feat {
                width: 100%;
                max-width: 340px;
                padding: 12px 16px;
                border-radius: 18px;
            }
            .sync-feat-icon  { width: 38px; height: 38px; border-radius: 12px; }
            .sync-feat-icon .material-symbols-outlined { font-size: 20px; }
            .sync-feat-text  { font-size: 14px; }
            .sync-feat-text span { font-size: 12px; }
        }

        /* Маленькие телефоны — ещё компактнее */
        @media (max-width: 400px) {
            .sync-section {
                padding: 36px 6px 28px;
            }
            .sync-header {
                margin-bottom: 18px;
                padding: 0 6px;
            }
            .sync-header h2 { font-size: 20px; }
            .sync-header p  { font-size: 13px; }

            .sync-icon-center {
                width: 32px;
                height: 32px;
            }
            .sync-icon-center .material-symbols-outlined { font-size: 18px; }

            .phone-frame    { padding: 5px; border-radius: 16px; }
            .phone-notch    { width: 32px; height: 3px; margin-bottom: 5px; }
            .phone-header   { padding: 4px 6px; gap: 4px; border-radius: 12px 12px 0 0; }
            .phone-header-avatar { width: 18px; height: 18px; font-size: 9px; }
            .phone-header-name   { font-size: 8px; }
            .phone-header-status { font-size: 6px; }
            .phone-chat     { min-height: 100px; padding: 5px 4px; gap: 3px; }
            .chat-msg       { font-size: 7.5px; padding: 3px 7px; border-radius: 8px; }

            .browser-frame   { border-radius: 12px; }
            .browser-toolbar { padding: 4px 6px; gap: 4px; }
            .browser-dot     { width: 5px; height: 5px; }
            .browser-url     { font-size: 7px; padding: 2px 5px; }
            .browser-content { padding: 6px; }
            .web-app-header  { margin-bottom: 5px; padding-bottom: 5px; gap: 4px; }
            .web-app-logo    { width: 16px; height: 16px; font-size: 8px; border-radius: 5px; }
            .web-app-title   { font-size: 8px; }
            .web-sync-badge  { font-size: 6px; padding: 1px 4px; }
            .web-char-avatar { width: 20px; height: 20px; font-size: 11px; border-radius: 8px; }
            .web-char-info h4 { font-size: 8px; }
            .web-char-info span { font-size: 6px; }
            .web-msg         { font-size: 7.5px; padding: 3px 7px; border-radius: 8px; }
            .sync-label      { font-size: 7px; }
        }

        /* Characters Carousel Section */
        .characters-section {
            padding: 80px 0;
            background-color: var(--md-sys-color-surface);
        }

        .section-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 40px;
            padding: 0 24px;
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-secondary-container) 100%);
            color: var(--md-sys-color-on-primary-container);
            border-radius: var(--md-sys-shape-corner-full);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
        }

        .section-header h2 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .section-header p {
            font-size: 18px;
            color: var(--md-sys-color-on-surface-variant);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Carousel */
        .carousel-wrapper {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 60px;
        }

        .carousel-viewport {
            overflow: clip;
            overflow-clip-margin: 24px;
            border-radius: 16px;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s var(--md-motion-spring);
            touch-action: pan-y; /* отдаём горизонтальные свайпы карусели, вертикальные — скроллу */
            user-select: none;
            -webkit-user-select: none;
        }

        .carousel-slide {
            flex-shrink: 0;
            padding: 12px 10px;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        /* 5 visible on desktop */
        .carousel-slide {
            width: 20%;
        }

        .carousel-card {
            background-color: var(--md-sys-color-background);
            border-radius: 28px;
            border: 1px solid var(--md-sys-color-outline-variant);
            overflow: hidden;
            /* transform и opacity управляются JS (inline styles) */
            transition: transform 0.5s var(--md-motion-spring),
                        box-shadow 0.5s ease,
                        opacity 0.5s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
            opacity: 0;
            transform: perspective(700px) scale(0.92);
            will-change: transform, opacity;
        }

        /* box-shadow / border по классу - остальное JS */
        .carousel-slide.active .carousel-card {
            box-shadow: 0 12px 40px rgba(0, 90, 193, 0.18);
            border-color: var(--md-sys-color-primary);
        }

        @media (prefers-color-scheme: dark) {
            .carousel-slide.active .carousel-card {
                box-shadow: 0 12px 40px rgba(172, 199, 255, 0.15);
            }
        }

        .carousel-card:hover {
            box-shadow: var(--shadow-xl);
        }

        .carousel-card-banner {
            width: 100%;
            height: 170px;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-tertiary-container) 100%);
        }

        .carousel-card-body {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .carousel-card-name {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .carousel-card-desc {
            font-size: 13px;
            color: var(--md-sys-color-on-surface-variant);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Nav arrows */
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid var(--md-sys-color-outline-variant);
            background: var(--md-sys-color-surface);
            color: var(--md-sys-color-on-surface);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 5;
            box-shadow: var(--shadow-md);
        }

        .carousel-arrow:hover {
            background: var(--md-sys-color-primary-container);
            border-color: var(--md-sys-color-primary);
            color: var(--md-sys-color-primary);
        }

        .carousel-arrow.prev { left: 8px; }
        .carousel-arrow.next { right: 8px; }

        .carousel-arrow .material-symbols-outlined {
            font-size: 24px;
        }

        /* Dots */
        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 28px;
        }

        .carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--md-sys-color-outline-variant);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }

        .carousel-dot.active {
            width: 28px;
            border-radius: 50px;
            background: var(--md-sys-color-primary);
        }

        /* Tablet: 3 visible */
        @media (max-width: 1024px) {
            .carousel-slide {
                width: 33.333%;
            }
            .carousel-wrapper {
                padding: 0 50px;
            }
        }

        /* Mobile: cards overflow edges, not shrink */
        @media (max-width: 640px) {
            /* Секция сама клипает карусель — карточки «вылезают» в её пределах */
            .characters-section {
                overflow: hidden;
            }
            .carousel-viewport {
                overflow: visible;
            }
            .carousel-wrapper {
                overflow: visible;
                /* Убираем padding — стрелки абсолютные, трек должен начинаться с 0 */
                padding: 0;
            }
            .carousel-slide {
                width: 80vw;
                flex-shrink: 0;
            }
            .carousel-arrow {
                width: 36px;
                height: 36px;
                z-index: 10;
            }
            .carousel-arrow .material-symbols-outlined {
                font-size: 20px;
            }
            .carousel-arrow.prev { left: 4px; }
            .carousel-arrow.next { right: 4px; }
            .carousel-card-banner {
                height: 200px;
            }
            .carousel-card-body {
                padding: 14px;
            }
            .carousel-card-name {
                font-size: 15px;
            }
            .carousel-card-desc {
                font-size: 13px;
                -webkit-line-clamp: 2;
                line-clamp: 2;
            }
        }

        /* Features Section */
        .features-section {
            padding: 100px 24px;
            background-color: var(--md-sys-color-background);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .feature-card {
            position: relative;
            isolation: isolate;
            overflow: hidden;
            padding: 32px;
            background-color: var(--md-sys-color-surface-container-low, var(--md-sys-color-surface));
            border-radius: var(--md-sys-shape-corner-extra-large);
            border: 1px solid var(--md-sys-color-outline-variant);
            transition:
                transform 0.35s var(--md-motion-spring),
                box-shadow 0.3s var(--md-motion-standard),
                background-color 0.2s var(--md-motion-standard);
            box-shadow: var(--shadow-sm);
        }

        .feature-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: var(--md-sys-color-primary);
            opacity: 0;
            transition: opacity 0.15s var(--md-motion-standard);
            pointer-events: none;
        }

        .feature-card:hover {
            transform: translateY(-8px) scale(1.015);
            box-shadow: var(--shadow-xl);
            background-color: var(--md-sys-color-surface-container, var(--md-sys-color-surface));
        }
        .feature-card:hover::after { opacity: 0.03; }

        .feature-icon {
            width: 64px;
            height: 64px;
            border-radius: 24px;
            background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-secondary-container) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            transition: transform 0.3s var(--md-motion-spring);
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.12) rotate(-3deg);
        }

        .feature-icon .material-symbols-outlined {
            font-size: 30px;
            color: var(--md-sys-color-primary);
        }

        .feature-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .feature-card p {
            font-size: 14px;
            color: var(--md-sys-color-on-surface-variant);
            line-height: 1.6;
        }

        /* Footer */
        .landing-cta-bottom {
            padding: 96px 24px;
            background: linear-gradient(160deg,
                rgba(var(--primary-rgb), 0.06) 0%,
                rgba(var(--secondary-rgb), 0.06) 50%,
                rgba(var(--tertiary-rgb), 0.04) 100%);
            text-align: center;
            border-top: 1px solid var(--md-sys-color-outline-variant);
        }

        .landing-cta-bottom-inner {
            max-width: 640px;
            margin: 0 auto;
        }

        .landing-cta-bottom-title {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .landing-cta-bottom-sub {
            font-size: 17px;
            color: var(--md-sys-color-on-surface-variant);
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .landing-cta-bottom .hero-cta {
            justify-content: center;
        }

        footer {
            padding: 48px 24px;
            background-color: var(--md-sys-color-surface-variant);
            text-align: center;
        }

        footer p {
            font-size: 14px;
            color: var(--md-sys-color-on-surface-variant);
        }

        footer a {
            color: var(--md-sys-color-primary);
            text-decoration: none;
        }

        /* ── Hamburger button ── */
        .nav-hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 40px;
            height: 40px;
            padding: 8px;
            background: none;
            border: 1px solid var(--md-sys-color-outline-variant);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .nav-hamburger:hover {
            background: var(--md-sys-color-surface-variant);
        }
        .nav-hamburger span {
            display: block;
            height: 2px;
            width: 100%;
            background: var(--md-sys-color-on-surface);
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-hamburger.open span:nth-child(2) { opacity: 0; }
        .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* ── Mobile menu drawer ── */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 99;
        }
        .mobile-menu.open { display: block; }

        .mobile-menu-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.4);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            animation: fadeIn 0.2s ease;
        }

        .mobile-menu-panel {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: min(280px, 82vw);
            background: var(--md-sys-color-surface);
            padding: 24px 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            box-shadow: -8px 0 32px rgba(0,0,0,0.18);
            transform: translateX(100%);
            animation: slideIn 0.3s var(--md-motion-decelerate) forwards;
        }

        @keyframes slideIn {
            to { transform: translateX(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .mobile-menu-close {
            align-self: flex-end;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface);
            cursor: pointer;
            margin-bottom: 12px;
            font-size: 20px;
        }

        .mobile-menu-panel a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            border-radius: 16px;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            color: var(--md-sys-color-on-surface);
            transition: background 0.18s ease;
        }
        .mobile-menu-panel a:hover {
            background: var(--md-sys-color-surface-variant);
        }
        .mobile-menu-panel a .material-symbols-outlined {
            font-size: 22px;
            color: var(--md-sys-color-primary);
        }
        .mobile-menu-panel .mob-btn-pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            margin-top: 0;
        }
        .mobile-menu-panel .mob-btn-pro .material-symbols-outlined { color: white; }
        .mobile-menu-panel .mob-btn-primary {
            background: var(--gradient-primary);
            color: white;
        }
        .mobile-menu-panel .mob-btn-primary .material-symbols-outlined { color: white; }
        .mobile-menu-divider + .mob-btn-pro {
            margin-top: 8px;
        }
        .mobile-menu-divider {
            height: 1px;
            background: var(--md-sys-color-outline-variant);
            margin: 8px 0;
        }

        /* Responsive */
        @media (max-width: 1120px) {
            .hero-shell {
                grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
                gap: 34px;
            }

            .hero-title {
                font-size: 50px;
            }

            .hero-character-card.primary {
                left: 76px;
            }
        }

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

            .hero {
                min-height: auto;
                min-height: 100dvh;
                padding: 92px 16px 56px;
                text-align: center;
            }

            .hero-shell {
                grid-template-columns: 1fr;
                gap: 28px;
            }

            .hero-content {
                max-width: 560px;
                margin: 0 auto;
            }

            .hero-title {
                font-size: 36px;
                line-height: 1.12;
            }

            .hero-subtitle {
                font-size: 16px;
                margin-left: auto;
                margin-right: auto;
            }

            .hero-cta {
                justify-content: center;
            }

            .btn-hero {
                padding: 14px 28px;
                font-size: 15px;
            }

            .hero-features {
                margin-top: 30px;
                margin-left: auto;
                margin-right: auto;
            }

            .hero-showcase {
                min-height: 310px;
                width: min(100%, 430px);
                margin: 0 auto;
            }

            .hero-showcase::before {
                inset: 8% 0 0;
                border-radius: 30px;
            }

            .hero-character-stack {
                height: 292px;
                width: min(100%, 390px);
            }

            .hero-character-card.primary {
                left: 50%;
                top: 0;
                width: 250px;
                transform: translateX(-50%);
            }

            .hero-character-card.primary:hover {
                transform: translateX(-50%) translateY(-4px);
            }

            .hero-character-card.secondary,
            .hero-character-card.tertiary {
                display: none;
            }

            .hero-character-card.primary img {
                height: 144px;
            }

            .hero-showcase-stat {
                right: 50%;
                bottom: 6px;
                transform: translateX(50%);
            }

            .characters-section,
            .features-section {
                padding: 60px 0;
            }

            .features-section {
                padding: 60px 16px;
            }

            .section-header h2 {
                font-size: 28px;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-content {
            animation: fadeInUp 0.8s ease-out;
        }

        .gtm-noscript-frame {
            display: none;
            visibility: hidden;
        }

        .icon-16 {
            font-size: 16px;
        }

        /* ===== RAG Memory Section ===== */
        .rag-section {
            padding: 100px 20px;
            position: relative;
            overflow: hidden;
            background: var(--md-sys-color-background);
        }
        .rag-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 70% 50% at 15% 50%, rgba(0,119,182,0.07) 0%, transparent 70%),
                radial-gradient(ellipse 60% 40% at 85% 50%, rgba(0,180,204,0.06) 0%, transparent 70%);
            pointer-events: none;
        }
        .rag-container {
            max-width: 1100px;
            margin: 0 auto;
        }
        .rag-header {
            text-align: center;
            margin-bottom: 64px;
        }
        .rag-header .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(0,119,182,0.1);
            color: var(--md-sys-color-primary);
            border: 1px solid rgba(0,119,182,0.2);
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        .rag-header h2 {
            font-size: 40px;
            font-weight: 700;
            color: var(--md-sys-color-on-background);
            line-height: 1.2;
            margin-bottom: 14px;
        }
        .rag-header p {
            font-size: 17px;
            color: var(--md-sys-color-on-surface-variant);
            max-width: 540px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Demo layout */
        .rag-demo {
            display: flex;
            align-items: center;
            gap: 0;
            min-height: 380px;
        }
        .rag-demo > .rag-memory-bank { flex: 1; }
        .rag-demo > .rag-chat-panel  { flex: 1; }

        /* Memory bank (left) */
        .rag-memory-bank {
            display: flex;
            flex-direction: column;
            gap: 10px;
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.6s var(--md-motion-decelerate), transform 0.6s var(--md-motion-decelerate);
        }
        .rag-section.visible .rag-memory-bank {
            opacity: 1;
            transform: translateX(0);
        }
        .rag-bank-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--md-sys-color-on-surface-variant);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .rag-memory-card {
            background: var(--md-sys-color-surface-variant);
            border: 1px solid var(--md-sys-color-outline-variant);
            border-radius: 12px;
            padding: 10px 14px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            position: relative;
            overflow: hidden;
            transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
        }
        .rag-memory-card.rag-active {
            background: rgba(0,119,182,0.08);
            border-color: rgba(0,119,182,0.35);
            box-shadow: 0 0 0 3px rgba(0,119,182,0.12), var(--shadow-md);
        }
        .rag-memory-card.rag-active::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: var(--gradient-primary);
            border-radius: 3px 0 0 3px;
        }
        .rag-mem-icon {
            font-size: 18px;
            line-height: 1;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .rag-mem-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .rag-mem-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--md-sys-color-on-surface-variant);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .rag-mem-value {
            font-size: 13px;
            color: var(--md-sys-color-on-surface);
            line-height: 1.4;
        }
        .rag-mem-tag {
            display: inline-block;
            background: rgba(0,119,182,0.12);
            color: var(--md-sys-color-primary);
            border-radius: 6px;
            padding: 1px 6px;
            font-size: 11px;
            font-weight: 600;
            margin-top: 3px;
        }

        /* Center brain */
        .rag-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
            flex-shrink: 0;
        }
        .rag-brain-wrap {
            position: relative;
            width: 88px;
            height: 88px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .rag-brain-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid rgba(0,119,182,0.25);
            animation: ragRingPulse 2.8s ease-in-out infinite;
        }
        .rag-brain-ring:nth-child(2) {
            inset: -12px;
            border-color: rgba(0,119,182,0.12);
            animation-delay: 0.6s;
        }
        .rag-brain-ring:nth-child(3) {
            inset: -26px;
            border-color: rgba(0,119,182,0.06);
            animation-delay: 1.2s;
        }
        @keyframes ragRingPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.08); opacity: 0.5; }
        }
        .rag-brain-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 20px rgba(0,119,182,0.35);
            position: relative;
            z-index: 1;
            animation: ragIconFloat 3.5s ease-in-out infinite;
        }
        @keyframes ragIconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .rag-brain-icon .material-symbols-outlined {
            font-size: 28px;
            color: #fff;
        }
        .rag-center-label {
            margin-top: 14px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--md-sys-color-primary);
            text-align: center;
        }

        /* Connector lines */
        .rag-connector {
            position: relative;
            width: 80px;
            height: 4px;
            display: flex;
            align-items: center;
            flex-shrink: 0;
            overflow: visible;
        }
        .rag-connector-line {
            position: absolute;
            top: 50%; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(0,119,182,0.25), transparent);
            transform: translateY(-50%);
        }
        .rag-beam {
            position: absolute;
            top: 50%;
            left: 0;
            width: 32px;
            height: 6px;
            border-radius: 3px;
            background: var(--gradient-expressive);
            transform: translateY(-50%);
            filter: blur(1px);
            opacity: 0;
        }
        .rag-section.visible .rag-beam.left-beam {
            animation: ragBeamLeft 2.2s ease-in-out 0.5s infinite;
        }
        .rag-section.visible .rag-beam.right-beam {
            animation: ragBeamRight 2.2s ease-in-out 1.1s infinite;
        }
        @keyframes ragBeamLeft {
            0%   { left: 0;    opacity: 0; }
            15%  { opacity: 1; }
            85%  { opacity: 1; }
            100% { left: calc(100% - 32px); opacity: 0; }
        }
        @keyframes ragBeamRight {
            0%   { left: calc(100% - 32px); opacity: 0; }
            15%  { opacity: 0.8; }
            85%  { opacity: 0.8; }
            100% { left: 0; opacity: 0; }
        }

        /* Chat panel (right) */
        .rag-chat-panel {
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.6s var(--md-motion-decelerate) 0.2s, transform 0.6s var(--md-motion-decelerate) 0.2s;
        }
        .rag-section.visible .rag-chat-panel {
            opacity: 1;
            transform: translateX(0);
        }
        .rag-chat-inner {
            background: var(--md-sys-color-surface);
            border: 1px solid var(--md-sys-color-outline-variant);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            padding: 16px;
        }
        .rag-chat-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--md-sys-color-outline-variant);
            margin-bottom: 12px;
        }
        .rag-chat-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        .rag-chat-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--md-sys-color-on-surface);
        }
        .rag-chat-sub {
            font-size: 11px;
            color: var(--md-sys-color-on-surface-variant);
        }
        .rag-msg {
            max-width: 85%;
            padding: 9px 13px;
            border-radius: 14px;
            font-size: 13px;
            line-height: 1.45;
            margin-bottom: 8px;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .rag-msg.user {
            background: var(--gradient-primary);
            color: #fff;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }
        .rag-msg.bot {
            background: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface);
            border-bottom-left-radius: 4px;
        }
        .rag-section.visible .rag-msg.rm1 { opacity: 1; transform: none; transition-delay: 0.4s; }
        .rag-section.visible .rag-msg.rm2 { opacity: 1; transform: none; transition-delay: 0.85s; }
        .rag-section.visible .rag-msg.rm3 { opacity: 1; transform: none; transition-delay: 1.3s; }
        .rag-section.visible .rag-msg.rm4 { opacity: 1; transform: none; transition-delay: 1.75s; }
        .rag-recall-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(0,180,204,0.1);
            border: 1px solid rgba(0,180,204,0.25);
            color: var(--md-sys-color-tertiary);
            border-radius: 8px;
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 6px;
            opacity: 0;
            transition: opacity 0.4s 1.6s;
        }
        .rag-section.visible .rag-recall-badge {
            opacity: 1;
        }

        /* Feature pills */
        .rag-features {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 56px;
            flex-wrap: wrap;
        }
        .rag-feat {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--md-sys-color-surface);
            border: 1px solid var(--md-sys-color-outline-variant);
            border-radius: 14px;
            padding: 14px 20px;
            min-width: 200px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s, transform 0.5s;
        }
        .rag-section.visible .rag-feat { opacity: 1; transform: none; }
        .rag-section.visible .rag-feat:nth-child(1) { transition-delay: 0.6s; }
        .rag-section.visible .rag-feat:nth-child(2) { transition-delay: 0.75s; }
        .rag-section.visible .rag-feat:nth-child(3) { transition-delay: 0.9s; }
        .rag-feat-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(0,119,182,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .rag-feat-icon .material-symbols-outlined {
            font-size: 20px;
            color: var(--md-sys-color-primary);
        }
        .rag-feat-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 14px;
            font-weight: 600;
            color: var(--md-sys-color-on-surface);
        }
        .rag-feat-text span {
            font-size: 12px;
            font-weight: 400;
            color: var(--md-sys-color-on-surface-variant);
        }

        /* RAG section responsive — мобильные */
        @media (max-width: 900px) {
            .rag-section {
                padding: 48px 16px 40px;
            }
            .rag-header {
                margin-bottom: 20px;
            }
            .rag-header h2 {
                font-size: 26px;
                line-height: 1.2;
            }
            .rag-header p {
                font-size: 14px;
                max-width: 380px;
            }

            /* Вся демо-зона — столбик без лишних отступов */
            .rag-demo {
                flex-direction: column;
                gap: 0;
                align-items: stretch;
            }
            .rag-demo > .rag-memory-bank,
            .rag-demo > .rag-chat-panel {
                flex: unset;
            }
            .rag-connector {
                display: none;
            }

            /* ══ Карточки памяти — сетка 2×2, максимально компактная ══ */
            .rag-memory-bank {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 6px;
                opacity: 0;
                transform: translateY(-12px);
                transition: opacity 0.5s ease, transform 0.5s ease;
            }
            .rag-section.visible .rag-memory-bank {
                opacity: 1;
                transform: translateY(0);
            }
            .rag-bank-label {
                grid-column: 1 / -1;
                font-size: 10px;
                margin-bottom: 0;
            }
            .rag-memory-card {
                padding: 7px 9px;
                gap: 6px;
                border-radius: 10px;
            }
            .rag-mem-icon {
                font-size: 14px;
                margin-top: 1px;
            }
            .rag-mem-title {
                font-size: 8px;
                letter-spacing: 0.04em;
            }
            .rag-mem-value {
                font-size: 11px;
                line-height: 1.25;
            }
            .rag-mem-tag {
                font-size: 8px;
                padding: 0 4px;
                margin-top: 1px;
            }

            /* ══ Мозг RAG — тонкий разделитель-полоса ══ */
            .rag-center {
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 8px;
                padding: 10px 0;
                position: relative;
            }
            /* Горизонтальная линия через весь блок */
            .rag-center::before {
                content: '';
                position: absolute;
                left: 20%;
                right: 20%;
                top: 50%;
                height: 1px;
                background: linear-gradient(90deg, transparent, var(--md-sys-color-outline-variant), transparent);
            }
            .rag-brain-wrap {
                width: 36px;
                height: 36px;
                position: relative;
                z-index: 1;
            }
            .rag-brain-icon {
                width: 28px;
                height: 28px;
                box-shadow: 0 2px 8px rgba(0,119,182,0.25);
            }
            .rag-brain-icon .material-symbols-outlined {
                font-size: 14px;
            }
            /* Скрываем кольца — мозг и так маленький */
            .rag-brain-ring {
                display: none;
            }
            .rag-center-label {
                margin-top: 0;
                font-size: 9px;
                letter-spacing: 0.08em;
                position: relative;
                z-index: 1;
                background: var(--md-sys-color-background);
                padding: 0 6px;
            }

            /* ══ Чат-панель ══ */
            .rag-chat-panel {
                opacity: 0;
                transform: translateY(12px);
                transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
            }
            .rag-section.visible .rag-chat-panel {
                opacity: 1;
                transform: translateY(0);
            }
            .rag-chat-inner {
                padding: 10px;
                border-radius: 14px;
                box-shadow: var(--shadow-md);
            }
            .rag-chat-header {
                padding-bottom: 7px;
                margin-bottom: 7px;
                gap: 8px;
            }
            .rag-chat-avatar {
                width: 26px;
                height: 26px;
                font-size: 13px;
            }
            .rag-chat-name {
                font-size: 12px;
            }
            .rag-chat-sub {
                font-size: 9px;
            }
            .rag-msg {
                max-width: 88%;
                padding: 5px 9px;
                border-radius: 10px;
                font-size: 11.5px;
                line-height: 1.3;
                margin-bottom: 4px;
            }
            .rag-recall-badge {
                font-size: 9px;
                padding: 1px 5px;
                margin-bottom: 2px;
                gap: 3px;
                border-radius: 6px;
            }
            .rag-recall-badge .material-symbols-outlined {
                font-size: 11px;
            }

            /* ══ Фичи — столбик, компактный ══ */
            .rag-features {
                flex-direction: column;
                gap: 6px;
                margin-top: 20px;
            }
            .rag-feat {
                min-width: 0;
                padding: 10px 14px;
                gap: 10px;
                border-radius: 12px;
            }
            .rag-feat-icon {
                width: 34px;
                height: 34px;
                border-radius: 9px;
                flex-shrink: 0;
            }
            .rag-feat-icon .material-symbols-outlined {
                font-size: 17px;
            }
            .rag-feat-text {
                font-size: 13px;
            }
            .rag-feat-text span {
                font-size: 11px;
            }
        }

        /* RAG маленькие телефоны ≤400px */
        @media (max-width: 400px) {
            .rag-section {
                padding: 32px 10px 28px;
            }
            .rag-header {
                margin-bottom: 14px;
            }
            .rag-header h2 {
                font-size: 21px;
            }
            .rag-header p {
                font-size: 12px;
            }
            .rag-memory-bank {
                gap: 5px;
            }
            .rag-memory-card {
                padding: 5px 7px;
                gap: 5px;
            }
            .rag-mem-icon {
                font-size: 12px;
            }
            .rag-mem-title {
                font-size: 7px;
            }
            .rag-mem-value {
                font-size: 10px;
            }
            .rag-center {
                padding: 6px 0;
            }
            .rag-brain-wrap {
                width: 30px;
                height: 30px;
            }
            .rag-brain-icon {
                width: 24px;
                height: 24px;
            }
            .rag-brain-icon .material-symbols-outlined {
                font-size: 12px;
            }
            .rag-chat-inner {
                padding: 8px;
            }
            .rag-msg {
                font-size: 10.5px;
                padding: 4px 8px;
                margin-bottom: 3px;
            }
            .rag-features {
                margin-top: 14px;
                gap: 5px;
            }
            .rag-feat {
                padding: 8px 12px;
            }
            .rag-feat-text {
                font-size: 12px;
            }
            .rag-feat-text span {
                font-size: 10px;
            }
        }

        /* ===== Mobile Animation Adaptations ===== */

        /* Accessibility: reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ── Tablets & phones (≤768px) — softer, more elegant animations ── */
        @media (max-width: 768px) {
            /* Hero background float — slower, smaller movement */
            .hero::before {
                animation-duration: 30s;
            }

            /* Animated label — gentler pulse, fits mobile screen */
            .animated-label {
                padding: 10px 18px 10px 12px;
                animation-name: labelPulseMobile;
                animation-duration: 4s;
                animation-iteration-count: 3;
                animation-fill-mode: forwards;
            }

            @keyframes labelPulseMobile {
                0%, 100% { transform: scale(1); box-shadow: var(--shadow-sm); }
                50%      { transform: scale(1.01); box-shadow: var(--shadow-md); }
            }

            .label-text-container {
                min-width: 200px;
            }

            .label-text {
                font-size: 13px;
            }

            /* Hero fadeInUp — shorter travel for snappier feel */
            .hero-content {
                animation: fadeInUpMobile 0.6s ease-out;
            }

            @keyframes fadeInUpMobile {
                from { opacity: 0; transform: translateY(18px); }
                to   { opacity: 1; transform: translateY(0); }
            }

            /* Hero feature pills — staggered entrance */
            .hero-feature {
                opacity: 0;
                animation: fadeInUpMobile 0.45s ease-out forwards;
            }
            .hero-feature:nth-child(1) { animation-delay: 0.25s; }
            .hero-feature:nth-child(2) { animation-delay: 0.35s; }
            .hero-feature:nth-child(3) { animation-delay: 0.45s; }
            .hero-feature:nth-child(4) { animation-delay: 0.55s; }

            /* Hero CTA buttons — gentler hover (touch devices) */
            .btn-hero-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(0, 90, 193, 0.25);
            }
            .btn-hero-secondary:hover {
                transform: none;
            }

            /* Nav buttons — no exaggerated hover on mobile */
            .nav-btn-primary:hover,
            .nav-btn-pro:hover {
                transform: none;
                box-shadow: none;
            }

            /* Feature cards — tap-friendly instead of hover-lift */
            .feature-card:hover {
                transform: none;
                box-shadow: var(--shadow-md);
            }
            .feature-card:active {
                transform: scale(0.98);
                transition-duration: 0.12s;
            }

            /* Chat message pop — shorter trajectory */
            @keyframes msgPop {
                0%   { opacity: 0; transform: scale(0.92) translateY(6px); }
                100% { opacity: 1; transform: scale(1) translateY(0); }
            }

            /* RAG ring pulse — gentler on mobile */
            @keyframes ragRingPulse {
                0%, 100% { transform: scale(1); opacity: 0.8; }
                50%      { transform: scale(1.04); opacity: 0.4; }
            }

            /* RAG icon float — subtler bob */
            @keyframes ragIconFloat {
                0%, 100% { transform: translateY(0); }
                50%      { transform: translateY(-3px); }
            }

            /* Sync messages — smaller pop distance */
            .device-phone,
            .device-browser {
                transform: translateY(24px);
                transition: opacity 0.6s ease, transform 0.6s ease;
            }

            /* Sync icon center — smaller entrance */
            .sync-icon-center {
                transition: opacity 0.4s ease, transform 0.5s var(--md-motion-spring);
            }

            /* Carousel card — softer 3D rotation */
            .carousel-card {
                transform: perspective(700px) scale(0.94);
            }
        }

        /* ── Small phones (≤480px) — compact & clean ── */
        @media (max-width: 480px) {
            /* Animated label — even more compact */
            .animated-label {
                padding: 8px 14px 8px 10px;
                margin-bottom: 20px;
                gap: 4px;
            }

            .label-icon-container {
                width: 24px;
                height: 24px;
            }

            .label-icon {
                font-size: 18px;
            }

            .label-text-container {
                min-width: 160px;
                height: 20px;
            }

            .label-text {
                font-size: 11px;
            }

            /* Hero subtitle — tighter spacing */
            .hero-subtitle {
                margin-bottom: 24px;
                font-size: 15px;
            }

            /* Hero features — two-column grid with stagger */
            .hero-features {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-top: 28px;
            }

            .hero-feature {
                font-size: 13px;
                padding: 8px 12px;
                justify-content: center;
            }

            .hero-showcase {
                min-height: 258px;
            }

            .hero-character-stack {
                height: 244px;
            }

            .hero-character-card.primary {
                width: min(250px, 86vw);
            }

            .hero-character-card.primary img {
                height: 128px;
            }

            .hero-feature .material-symbols-outlined {
                font-size: 18px;
            }

            /* Sync particles — hide on small horizontal layout */
            .sync-particle {
                display: none;
            }

            /* Feature cards — tap-only feedback */
            .feature-card {
                padding: 24px;
                border-radius: 22px;
                transition: transform 0.12s ease, box-shadow 0.12s ease;
            }
            .feature-card:active {
                transform: scale(0.97);
            }

            .feature-icon {
                width: 48px;
                height: 48px;
                border-radius: 16px;
                margin-bottom: 16px;
            }

            .feature-icon .material-symbols-outlined {
                font-size: 24px;
            }

            .feature-card h3 {
                font-size: 17px;
            }

            .feature-card p {
                font-size: 13px;
            }

            /* Carousel — slightly softer entrance */
            .carousel-card {
                transform: perspective(700px) scale(0.95);
            }

            /* Section badges — compact */
            .section-badge {
                font-size: 12px;
                padding: 6px 14px;
            }
        }

        /* ── Ultra-small phones (≤360px) — ensure nothing overflows ── */
        @media (max-width: 360px) {
            .animated-label {
                padding: 6px 10px 6px 8px;
            }

            .label-text-container {
                min-width: 140px;
            }

            .label-text {
                font-size: 10px;
            }

            .hero-title {
                font-size: 28px;
            }

            .hero-subtitle {
                font-size: 14px;
            }

            .btn-hero {
                padding: 12px 22px;
                font-size: 14px;
                width: 100%;
                justify-content: center;
            }

            .hero-cta {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .hero-features {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .sync-header h2 {
                font-size: 18px;
            }

            .rag-header h2 {
                font-size: 22px;
            }

            .section-header h2 {
                font-size: 24px;
            }
        }

