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

:root {
    /* Colors */
    --midnight: #0a0e1a;
    --slate: #151922;
    --slate-light: #1e2430;
    --border: #2a3040;

    /* Gradients & Accents - Media + Tech */
    --crimson: #dc2626;
    --amber: #f59e0b;
    --teal: #14b8a6;
    --cyan: #06b6d4;
    --orange: #f97316;
    --red: #ef4444;

    /* Blue to Purple gradient colors */
    --blue: #3b82f6;
    --bright-cyan: #06b6d4;
    --purple: #a855f7;
    --deep-purple: #7c3aed;

    --gradient-primary: linear-gradient(135deg, var(--crimson), var(--amber));
    --gradient-tech: linear-gradient(135deg, var(--teal), var(--cyan));
    --gradient-warm: linear-gradient(135deg, var(--orange), var(--red));

    /* Hero flow gradients - blue to purple progression */
    --gradient-flow-start: linear-gradient(135deg, var(--bright-cyan), var(--blue));
    --gradient-flow-mid: linear-gradient(135deg, var(--blue), var(--purple));
    --gradient-flow-end: linear-gradient(135deg, var(--purple), var(--deep-purple));

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Effects */
    --glow-crimson: 0 0 30px rgba(220, 38, 38, 0.4);
    --glow-teal: 0 0 30px rgba(20, 184, 166, 0.4);
    --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.4);
    --glow-blue: 0 0 30px rgba(59, 130, 246, 0.5);
    --glow-purple: 0 0 30px rgba(168, 85, 247, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--midnight);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep scrolling functionality */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbars on ALL elements */
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   SPEED UP MODE - HERO SECTION
   Skip to final state immediately - NO RESETS
   ============================================ */
body.speed-up-hero-animation .hero .flow-node,
body.speed-up-hero-animation .hero .stop-text,
body.speed-up-hero-animation .hero .hero-stat-animated {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

/* Platform icons: skip appear animation but keep floating */
body.speed-up-hero-animation .hero .platform-icon {
    animation: platformFloat 3s ease-in-out infinite !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
}

/* Show connector lines between nodes (RAW -> PROCESSING -> OUTPUTS) */
body.speed-up-hero-animation .hero .connector-line {
    animation: none !important;
    transform: scaleX(1) !important;
    opacity: 1 !important;
}

/* Force connector visibility for both data-connector values */
body.speed-up-hero-animation .hero .connector-line[data-connector="1"],
body.speed-up-hero-animation .hero .connector-line[data-connector="2"] {
    animation: none !important;
    animation-delay: 0s !important;
    transform: scaleX(1) !important;
    opacity: 1 !important;
}

/* Show fan connector lines to platforms - Desktop */
body.speed-up-hero-animation .hero .fan-line-horizontal,
body.speed-up-hero-animation .hero .fan-line-vertical-up,
body.speed-up-hero-animation .hero .fan-line-vertical-down,
body.speed-up-hero-animation .hero .fan-line-to-icon {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 0.9 !important;
}

/* Show fan connector lines to platforms - Mobile */
body.speed-up-hero-animation .hero .fan-line-vertical-mobile,
body.speed-up-hero-animation .hero .fan-line-horizontal-left-mobile,
body.speed-up-hero-animation .hero .fan-line-horizontal-right-mobile,
body.speed-up-hero-animation .hero .fan-line-to-icon-mobile {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 0.9 !important;
}

/* Keep particles visible - they'll animate according to their timing */
body.speed-up-hero-animation .hero .flow-particle {
    display: block !important;
}

body.speed-up-hero-animation .hero .fan-svg-desktop circle,
body.speed-up-hero-animation .hero .fan-svg-mobile circle {
    display: block !important;
}

.container {
    margin: 0 auto;
    /* padding: 0 40px; */
}

/* Navbar container specifically - no scroll */
.navbar .container {
    overflow: hidden;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.5rem 0;
    overflow: hidden; /* No scroll at all - horizontal OR vertical */
    max-width: 100vw;
    height: auto; /* Only as tall as content */
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; /* No scroll - horizontal OR vertical */
    max-width: 100%;
    height: auto;
    padding-left: 20px;
    padding-right: 20px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo-full {
    height: 60px;
    width: auto;
    display: block;
    scale: 1;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

.logo:hover,
.logo:active,
.logo:focus {
    transform: none;
    opacity: 1;
    outline: none;
}

.logo-full:hover,
.logo-full:active,
.logo-full:focus {
    transform: none;
    scale: 1;
    opacity: 1;
    outline: none;
    filter: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.625rem 1.5rem !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.nav-cta:hover {
    border-color: #7B6FB5 !important;
    background: rgba(123, 111, 181, 0.1) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 20px rgba(123, 111, 181, 0.3) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: var(--midnight);
}

.hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-headlines {
    margin-bottom: 2rem;
}

.hero-title-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title-full {
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: -4rem;
    line-height: 1.7;
}

/* Hero Visual - Flow Preview */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
}

.hero-visual {
    overflow: visible;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.flow-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    position: relative;
    min-height: 350px;
    padding-left: 0;
}

.flow-node {
    position: relative;
    padding: 1.5rem 3rem;

    /* ROUNDED PILL STADIUM SHAPE */
    border-radius: 50px;

    /* Typography - Bold Clean */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;

    /* Clean white text with subtle shadow */
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);

    /* Subtle 3D depth */
    transform: translateZ(0);
    transform-style: preserve-3d;

    /* Soft outer glow */
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.flow-node .node-content {
    position: relative;
    z-index: 10;
    display: inline-block;
}

.input-node {
    /* GRADIENT WITH DEEPER PURPLE END */
    background:
        linear-gradient(135deg,
            #2A539B 0%,    /* Deep blue start */
            #578FC7 37%,   /* Bright blue */
            #759EB0 70%,   /* Cyan-blue blend */
            #7B6FB5 100%   /* Deep vibrant purple */
        );
    color: #FFFFFF;

    /* No box-shadow */
    box-shadow: none;

    /* Gradient border effect */
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(135deg,
            #2A539B 0%,
            #578FC7 37%,
            #759EB0 70%,
            #7B6FB5 100%
        ),
        linear-gradient(135deg,
            #2A539B 0%,
            #578FC7 37%,
            #759EB0 70%,
            #7B6FB5 100%
        );

    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

/* SUBTLE GLOSSY SHINE OVERLAY */
.input-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background:
        /* Reduced top glossy highlight */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 15%,
            transparent 40%,
            rgba(0, 0, 0, 0.05) 100%
        );
    pointer-events: none;
    z-index: 5;
}

/* BRIGHT LENS FLARE - Top right corner */
.input-node::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(147, 197, 253, 0.3) 40%,
            transparent 70%
        );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
    filter: blur(2px);
    animation: sparkle 2s ease-in-out infinite;
}

.process-node {
    background: #92c1de;
    background:
        linear-gradient(135deg,
            rgba(146, 193, 222, 1) 0%,
            rgba(146, 146, 222, 1) 32%,
            rgba(115, 80, 171, 1) 100%
        );
    color: #FFFFFF;
    box-shadow: none;

    /* Gradient border effect */
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(135deg,
            rgba(146, 193, 222, 1) 0%,
            rgba(146, 146, 222, 1) 32%,
            rgba(115, 80, 171, 1) 100%
        ),
        linear-gradient(135deg,
            rgba(146, 193, 222, 1) 0%,
            rgba(146, 146, 222, 1) 32%,
            rgba(115, 80, 171, 1) 100%
        );
    animation: pulseGlow 3s ease-in-out infinite 0.5s;
    position: relative;
    overflow: visible;
}

.process-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 15%,
            transparent 40%,
            rgba(0, 0, 0, 0.05) 100%
        );
    pointer-events: none;
    z-index: 5;
}

.process-node::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(196, 181, 253, 0.3) 40%,
            transparent 70%
        );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
    filter: blur(2px);
    animation: sparkle 2s ease-in-out infinite 0.3s;
}

.flow-outputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.output-node {
    background: #84b4db;
    background:
        linear-gradient(135deg,
            rgba(132, 180, 219, 1) 0%,
            rgba(138, 126, 204, 1) 30%,
            rgba(156, 126, 204, 1) 100%
        );
    color: #FFFFFF;
    padding: 0.875rem 1.5rem;
    font-size: 0.75rem;
    box-shadow: none;

    /* Gradient border effect */
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(135deg,
            rgba(132, 180, 219, 1) 0%,
            rgba(138, 126, 204, 1) 30%,
            rgba(156, 126, 204, 1) 100%
        ),
        linear-gradient(135deg,
            rgba(132, 180, 219, 1) 0%,
            rgba(138, 126, 204, 1) 30%,
            rgba(156, 126, 204, 1) 100%
        );
    animation: pulseGlow 3s ease-in-out infinite 1s;
    position: relative;
    overflow: visible;
}

.output-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 15%,
            transparent 40%,
            rgba(0, 0, 0, 0.05) 100%
        );
    pointer-events: none;
    z-index: 5;
}

.output-node::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(245, 208, 254, 0.3) 40%,
            transparent 70%
        );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
    filter: blur(2px);
    animation: sparkle 2s ease-in-out infinite 0.6s;
}

/* Fan Connector Section */
.flow-fan-connector {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 460px;
    pointer-events: none;
    z-index: 1;
}

.fan-svg-container {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Hide mobile fan SVG on desktop */
.fan-svg-mobile {
    display: none;
}

/* Step 1: Horizontal line (30px) */
.fan-line-horizontal {
    opacity: 0.9;
    stroke-linecap: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawHorizontal 0.3s ease-out 2.75s forwards;
}

@keyframes drawHorizontal {
    from { stroke-dashoffset: 30; }
    to { stroke-dashoffset: 0; }
}

/* Step 2: Vertical lines (100px each) */
.fan-line-vertical-up {
    opacity: 0.9;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawVertical 0.5s ease-out 3.05s forwards;
}

.fan-line-vertical-down {
    opacity: 0.9;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawVertical 0.5s ease-out 3.05s forwards;
}

@keyframes drawVertical {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

/* Step 3: Horizontal lines to icons (77px each) */
.fan-line-to-icon {
    opacity: 0.9;
    stroke-linecap: round;
    stroke-dasharray: 77;
    stroke-dashoffset: 77;
}

.fan-line-to-icon[data-icon="1"] {
    animation: drawToIcon 0.35s ease-out 3.55s forwards;
}

.fan-line-to-icon[data-icon="2"] {
    animation: drawToIcon 0.35s ease-out 3.62s forwards;
}

.fan-line-to-icon[data-icon="3"] {
    animation: drawToIcon 0.35s ease-out 3.69s forwards;
}

.fan-line-to-icon[data-icon="4"] {
    animation: drawToIcon 0.35s ease-out 3.76s forwards;
}

.fan-line-to-icon[data-icon="5"] {
    animation: drawToIcon 0.35s ease-out 3.83s forwards;
}

@keyframes drawToIcon {
    from { stroke-dashoffset: 77; }
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInNode {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.flow-platforms {
    position: absolute;
    left: calc(100% + 140px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    height: 460px;
    gap: 0;
    z-index: 3;
}

.platform-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: platformAppear 0.6s ease-out forwards, platformFloat 3s ease-in-out infinite 1.5s;
}

.platform-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.platform-icon:hover svg {
    filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.3));
    transform: scale(1.15);
}

/* Icons aligned vertically with 50px spacing */
.platform-icon[data-platform="1"] {
    top: 120px;
    left: 0;
    animation-delay: 3.90s, 4.40s;
    width: 32px;
    height: 32px;
}

.platform-icon[data-platform="2"] {
    top: 164px;
    left: 0;
    animation-delay: 3.97s, 4.47s;
    width: 32px;
    height: 32px;
}

.platform-icon[data-platform="3"] {
    top: 214px;
    left: 0;
    animation-delay: 4.04s, 4.54s;
    width: 32px;
    height: 32px;
}

.platform-icon[data-platform="4"] {
    top: 264px;
    left: 0;
    animation-delay: 4.11s, 4.61s;
    width: 32px;
    height: 32px;
}

.platform-icon[data-platform="5"] {
    top: 314px;
    left: 0;
    animation-delay: 4.18s, 4.68s;
    width: 32px;
    height: 32px;
}

@keyframes platformAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes platformFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.platform-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Platform Icon Hover Effects - Enhanced Glows */
.platform-icon.instagram:hover svg {
    filter: drop-shadow(0 6px 24px rgba(225, 48, 108, 0.6));
}

.platform-icon.facebook:hover svg {
    filter: drop-shadow(0 6px 24px rgba(24, 119, 242, 0.6));
}

.platform-icon.tiktok:hover svg {
    filter: drop-shadow(0 6px 24px rgba(255, 255, 255, 0.5));
}

.platform-icon.twitter-x:hover svg {
    filter: drop-shadow(0 6px 24px rgba(255, 255, 255, 0.5));
}

.platform-icon.news {
    color: var(--teal);
}

.platform-icon.news:hover svg {
    filter: drop-shadow(0 6px 24px rgba(20, 184, 166, 0.6));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--glow-crimson);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translateZ(0) scale(1);
        filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
    }
    50% {
        transform: translateZ(0) scale(1.02);
        filter:
            drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.6));
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Remove background glow backdrop */
.input-node .node-glow,
.process-node .node-glow,
.output-node .node-glow {
    display: none;
}

/* Remove lens flare sparkles */
.input-node::after,
.process-node::after,
.output-node::after {
    display: none;
}

/* FLOATING PARTICLES EFFECT */
.flow-node {
    overflow: visible !important;
}

@keyframes floatParticle1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -30px);
        opacity: 0.3;
    }
}

@keyframes floatParticle2 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(-15px, -25px);
        opacity: 0.2;
    }
}

@keyframes floatParticle3 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    50% {
        transform: translate(10px, -35px);
        opacity: 0.1;
    }
}

.flow-connector {
    width: 60px;
    height: 2px;
    position: relative;
}

.connector-line {
    transform-origin: left center;
    transform: scaleX(0);
    animation: drawConnectorRect 0.4s ease-out forwards;
}

@keyframes drawConnectorRect {
    to {
        transform: scaleX(1);
    }
}

.connector-line[data-connector="1"] {
    animation-delay: 0.55s;
}

.connector-line[data-connector="2"] {
    animation-delay: 1.7s;
}

.flow-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    top: -3px;
    animation: flowParticle 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* First connector particles - blue transitioning to purple */
.flow-connector:nth-of-type(2) .flow-particle {
    background: #578FC7;
    box-shadow: 0 0 10px rgba(87, 143, 199, 0.6);
    animation: flowParticle 2s ease-in-out infinite, particleColorShift1 2s ease-in-out infinite;
}

/* Second connector particles - purple */
.flow-connector:nth-of-type(4) .flow-particle {
    background: #9292DE;
    box-shadow: 0 0 10px rgba(146, 146, 222, 0.6);
    animation: flowParticle 2s ease-in-out infinite, particleColorShift2 2s ease-in-out infinite;
}

@keyframes particleColorShift1 {
    0% {
        background: #578FC7;
        box-shadow: 0 0 10px rgba(87, 143, 199, 0.6);
    }
    100% {
        background: #9292DE;
        box-shadow: 0 0 10px rgba(146, 146, 222, 0.6);
    }
}

@keyframes particleColorShift2 {
    0% {
        background: #9292DE;
        box-shadow: 0 0 10px rgba(146, 146, 222, 0.6);
    }
    100% {
        background: #8B5FE0;
        box-shadow: 0 0 10px rgba(139, 95, 224, 0.6);
    }
}

.flow-particle:nth-child(2) {
    animation-delay: 0.6s;
}

.flow-particle:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes flowParticle {
    0% {
        left: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.hero-stat {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    padding-left: 0;
}

.animated-stops {
    display: inline-block;
}

.stop-text {
    display: inline;
}

.stop-text[data-stop="1"] {
    animation: fadeInText 0.4s ease-out 0.95s forwards;
}

.stop-text[data-stop="2"] {
    animation: fadeInText 0.4s ease-out 2.1s forwards;
}

.stop-text[data-stop="3"] {
    animation: fadeInText 0.4s ease-out 3.25s forwards;
}

.mobile-break {
    display: none;
}

@media (max-width: 968px) {
    .mobile-break {
        display: inline;
    }
}

.hero-stat-animated {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    text-align: left;
    animation: fadeInText 0.5s ease-out 4.5s forwards;
}

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

/* Chaos Section */
.chaos-section {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.1), transparent 60%);
    position: relative;
    overflow: hidden;
    transition: background 1.2s ease;
}

/* When embedded, chaos section needs to contain both phone and side text */
.chaos-section.phone-embedded {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chaos-section.transforming {
    background: var(--midnight);
}

/* Fast transform mode - speed up background transition */
.chaos-section.fast-transform {
    transition: background 0.3s ease;
}

.chaos-visual {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.chaos-visual.fading {
    opacity: 0;
}

/* Fast mode - quick fade */
.fast-transform .chaos-visual {
    transition: opacity 0.2s ease;
}

.chaos-item {
    position: absolute;
    animation: chaosFloat 4s ease-in-out infinite;
}

.chaos-item:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    transform: rotate(-8deg);
}

.chaos-item:nth-child(2) {
    right: 15%;
    top: 30%;
    animation-delay: 1s;
    transform: rotate(5deg);
}

.chaos-item:nth-child(3) {
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    top: 45%;
    animation-delay: 2s;
}

@keyframes chaosFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 3deg));
    }
}

.video-frame {
    width: 240px;
    height: 140px;
    background: linear-gradient(135deg, var(--slate), var(--slate-light));
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-frame.tablet {
    width: 280px;
    height: 160px;
}

.device-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.video-placeholder {
    display: none;
}

.aspect-916 {
    width: 120px;
    height: 210px;
}

.aspect-916 .video-placeholder {
    width: 70%;
    height: 75%;
}

.aspect-11 {
    width: 180px;
    height: 180px;
}

.aspect-11 .video-placeholder {
    width: 70%;
    height: 70%;
}

.timestamp {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.375rem 0.75rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* Chaos Notifications */
.chaos-notification {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s ease;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.chaos-notification.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.notification-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.notification-dot.error {
    background: var(--red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.notification-dot.warning {
    background: var(--amber);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.notification-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.chaos-notification[data-chaos="1"] {
    transition-delay: 0.1s;
}

.chaos-notification[data-chaos="2"] {
    transition-delay: 0.2s;
}

.chaos-notification[data-chaos="3"] {
    transition-delay: 0.3s;
}

.chaos-notification[data-chaos="4"] {
    transition-delay: 0.4s;
}

.chaos-notification[data-chaos="5"] {
    transition-delay: 0.5s;
}

.chaos-notification[data-chaos="6"] {
    transition-delay: 0.6s;
}

.chaos-notification[data-chaos="7"] {
    transition-delay: 0.7s;
}

.chaos-notification[data-chaos="8"] {
    transition-delay: 0.8s;
}

/* Chaos Transformation Loader */
.chaos-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chaos-loader.active {
    opacity: 1;
}

/* Fast mode - quick loader appearance/disappearance */
.fast-transform .chaos-loader {
    transition: opacity 0.15s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(20, 184, 166, 0.2);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Phone Rising Animation */
.phone-rising {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    z-index: 1000;
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    max-height: 85vh;
    pointer-events: none;
    isolation: isolate;
    -webkit-overflow-scrolling: touch;
    overflow: visible; /* Don't clip phone edges */
}

.phone-rising.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    /* Don't enable pointer-events on the whole container - let children control it */
}

/* Embedded phone state - when CTA is clicked */
.phone-rising.embedded {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important; /* Don't clip phone edges */
}

/* Responsive phone sizing - locked to 340x700 */
.phone-rising .phone-frame {
    width: 340px;
    height: 700px;
    max-width: 90vw;
    max-height: 85vh;
}

/* Scale down proportionally on smaller/shorter screens */
@media (max-height: 800px) {
    .phone-rising .phone-frame {
        width: 300px;
        height: 620px;
    }
}

@media (max-height: 700px) {
    .phone-rising .phone-frame {
        width: 260px;
        height: 540px;
    }
}


/* Phone Frame */

.phone-frame {
    width: 340px;
    height: 700px;
    background: var(--slate);
    border: 12px solid var(--midnight);
    border-radius: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 2px var(--border),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    /* Ensure aspect ratio is maintained */
    aspect-ratio: 340 / 700;
}

/* Ensure phone rising variant scales all internal elements */
.phone-rising .phone-frame {
    transform: scale(1);
}

.phone-rising .phone-notch {
    transform: translateX(-50%) scale(1);
    transform-origin: top center;
}

/* Scale content appropriately on smaller viewports */
@media (max-height: 900px) {
    .phone-rising .phone-screen {
        font-size: 0.95em;
    }
}

@media (max-height: 800px) {
    .phone-rising .phone-screen {
        font-size: 0.9em;
    }
    .phone-rising .phone-notch {
        width: 100px;
        height: 24px;
    }
}

@media (max-height: 700px) {
    .phone-rising .phone-screen {
        font-size: 0.85em;
    }
    .phone-rising .phone-notch {
        width: 90px;
        height: 22px;
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--midnight);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--midnight);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

/* Social Post Header */
.social-post-header {
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(21, 25, 34, 0.98) 0%, rgba(21, 25, 34, 0.95) 100%);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    pointer-events: none;
}

.post-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.status-text {
    font-weight: 500;
}

/* Phone Content Scroll */
.phone-content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    pointer-events: auto;
    position: relative;
    z-index: 100;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
    overscroll-behavior: contain;
    min-height: 0;
}

/* Hide scrollbar but keep functionality */
.phone-content-scroll::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.phone-content-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Phone Sections */
.phone-section {
    margin-bottom: 0;
}

.phone-section-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.phone-section-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Phone CTA Section */
.phone-cta-section {
    padding: 1.5rem 0 0;
    text-align: center;
}

.phone-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.phone-cta-button:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}



/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--slate);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--midnight);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--slate);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--crimson);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    display: block;
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #578FC7 0%, #7B6FB5 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6BA0D8 0%, #8B7FC5 100%);
    box-shadow: 0 0 24px rgba(123, 111, 181, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 20px 0;
    padding-left: 10px;
    background: var(--midnight);
    border-top: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.footer-brand .logo-full {
    height: 60px;
    scale: 0.7;
    width: auto;
}

.footer-bottom p {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--slate);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-tech);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-icon::after {
    content: '';
    width: 24px;
    height: 12px;
    border-left: 3px solid var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
    transform: rotate(-45deg) translateY(-2px);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 968px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .footer-brand .logo-full {
        scale: 0.7;
    }

    /* Keep nav menu visible on mobile - no hamburger needed */
    .mobile-menu-toggle {
        display: none;
    }

    /* Ensure navbar doesn't allow ANY scroll on mobile */
    .navbar {
        overflow: hidden !important; /* No horizontal OR vertical scroll */
        width: 100vw !important;
        position: fixed !important;
        height: auto !important;
    }

    .navbar .container {
        max-width: 100vw !important;
        overflow: hidden !important;
        height: auto !important;
    }

    .nav-wrapper {
        overflow: hidden !important; /* No horizontal OR vertical scroll */
        flex-wrap: nowrap;
        width: 100% !important;
        height: auto !important;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .nav-cta {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
    }


    .hero {
        padding: 120px 0 60px;
        min-height: auto;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-title-row {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
        margin-left: 1rem;
        line-height: 1.6;
    }

    .hero-headlines {
        margin-left: 1rem;
    }

    .hero-visual-wrapper {
        overflow: hidden;
        margin-top: 4rem;
        max-width: 100%;
    }

    .hero-visual {
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }

    .flow-preview {
        flex-direction: column;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding-right: 0;
        padding-left: 0;
        min-height: auto;
        transform: none;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .flow-node {
        padding: 1rem 1.5rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }

    .flow-node::before {
        border-radius: 20px;
    }

    .flow-connector {
        width: 2px !important;
        height: 40px !important;
        background: transparent !important;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flow-connector svg {
        display: none !important;
    }

    .flow-connector .flow-particle {
        display: block !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    /* Vertical connector line for mobile - starts hidden */
    .flow-connector::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 0;
        opacity: 0;
        animation: drawConnectorVertical 0.4s ease-out forwards;
    }

    /* First connector after RAW FOOTAGE - matches desktop purple gradient */
    .flow-preview > .flow-connector:nth-child(2)::after {
        background: linear-gradient(180deg, rgba(123, 111, 181, 1), rgba(115, 80, 171, 1));
        animation-delay: 0.55s;
    }

    /* Second connector after PROCESSING - matches desktop deeper purple gradient */
    .flow-preview > .flow-connector:nth-child(4)::after {
        background: linear-gradient(180deg, rgba(115, 80, 171, 1), rgba(127, 60, 194, 1));
        animation-delay: 1.7s;
    }

    @keyframes drawConnectorVertical {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 100%;
            opacity: 1;
        }
    }

    /* Speed-up: Show mobile connector lines instantly */
    body.speed-up-hero-animation .hero .flow-connector::after {
        animation: none !important;
        animation-delay: 0s !important;
        height: 100% !important;
        opacity: 1 !important;
    }

    body.speed-up-hero-animation .hero .flow-preview > .flow-connector:nth-child(2)::after,
    body.speed-up-hero-animation .hero .flow-preview > .flow-connector:nth-child(4)::after {
        animation: none !important;
        animation-delay: 0s !important;
        height: 100% !important;
        opacity: 1 !important;
    }

    .flow-outputs {
        align-items: center;
        position: static;
        gap: 0.5rem;
        margin-bottom: 0;
        flex-direction: row;
    }

    .output-node {
        padding: 0.625rem 1rem;
        font-size: 0.625rem;
        border-radius: 16px;
    }

    .output-node::before {
        border-radius: 16px;
    }

    .flow-particle {
        width: 6px;
        height: 6px;
        left: -2px;
    }

    @keyframes flowParticle {
        0% {
            top: 0;
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
        100% {
            top: 100%;
            opacity: 0;
        }
    }

    /* Fan connector - vertical layout for mobile */
    .flow-fan-connector {
        position: static !important;
        width: 100% !important;
        height: 120px !important;
        transform: none !important;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Hide desktop horizontal fan on mobile */
    .fan-svg-desktop {
        display: none !important;
    }

    /* Show mobile vertical fan on mobile */
    .fan-svg-mobile {
        display: block !important;
        width: 100%;
        max-width: 300px;
        height: 140px;
    }

    /* Instagram icon uses mobile gradient on mobile */
    .platform-icon.instagram svg rect,
    .platform-icon.instagram svg circle {
        stroke: url(#instagram-gradient-mobile) !important;
    }

    .platform-icon.instagram svg circle[r="1.5"] {
        fill: url(#instagram-gradient-mobile) !important;
    }

    /* Mobile fan tree-structure animation - matches desktop timing */

    /* Step 1: Vertical line down from outputs (matches desktop horizontal) */
    .fan-line-vertical-mobile {
        opacity: 0.9;
        stroke-linecap: round;
        stroke-dasharray: 30;
        stroke-dashoffset: 30;
        animation: drawVerticalMobile 0.3s ease-out 2.75s forwards;
    }

    @keyframes drawVerticalMobile {
        from { stroke-dashoffset: 30; }
        to { stroke-dashoffset: 0; }
    }

    /* Step 2: Horizontal lines spreading from center outward (both at same time) */
    .fan-line-horizontal-left-mobile,
    .fan-line-horizontal-right-mobile {
        opacity: 0.9;
        stroke-linecap: round;
        stroke-dasharray: 120;
        stroke-dashoffset: 120;
        animation: drawHorizontalMobile 0.5s ease-out 3.05s forwards;
    }

    @keyframes drawHorizontalMobile {
        from { stroke-dashoffset: 120; }
        to { stroke-dashoffset: 0; }
    }

    /* Step 3: ALL 5 vertical lines start together when horizontal finishes */
    .fan-line-to-icon-mobile {
        opacity: 0.9;
        stroke-linecap: round;
        stroke-dasharray: 80;
        stroke-dashoffset: 80;
        animation: drawToIconMobile 0.6s ease-out 3.55s forwards;
    }

    @keyframes drawToIconMobile {
        from { stroke-dashoffset: 80; }
        to { stroke-dashoffset: 0; }
    }

    /* Speed-up animation overrides for mobile */
    body.speed-up-hero-animation .hero .fan-line-vertical-mobile,
    body.speed-up-hero-animation .hero .fan-line-horizontal-left-mobile,
    body.speed-up-hero-animation .hero .fan-line-horizontal-right-mobile,
    body.speed-up-hero-animation .hero .fan-line-to-icon-mobile {
        animation: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 0.9 !important;
    }

    /* Platform icons on mobile: skip appear animation but keep floating */
    body.speed-up-hero-animation .hero .platform-icon {
        animation: platformFloat 3s ease-in-out infinite !important;
        animation-delay: 0s !important;
        opacity: 1 !important;
    }

    .flow-platforms {
        position: relative !important;
        left: auto !important;
        top: -20px;
        transform: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 1rem;
        height: 60px;
        justify-content: space-evenly;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .platform-icon {
        position: relative !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0;
        animation: platformAppear 0.6s ease-out forwards, platformFloat 3s ease-in-out infinite !important;
        top: auto !important;
        left: auto !important;
        opacity: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Match desktop timing exactly: appear at 3.5s-3.8s, float starts 1.5s after appear */
    .platform-icon[data-platform="1"] {
        animation-delay: 3.5s, 5.0s !important;
    }
    .platform-icon[data-platform="2"] {
        animation-delay: 3.58s, 5.08s !important;
    }
    .platform-icon[data-platform="3"] {
        animation-delay: 3.65s, 5.15s !important;
    }
    .platform-icon[data-platform="4"] {
        animation-delay: 3.73s, 5.23s !important;
    }
    .platform-icon[data-platform="5"] {
        animation-delay: 3.8s, 5.3s !important;
    }

    .hero-stat-animated {
        margin-top: 0;
        text-align: center;
    }

    .chaos-section {
        padding: 100px 0 120px;
        min-height: 80vh;
    }

    /* When phone is embedded on mobile, ensure section doesn't clip */
    .chaos-section.phone-embedded {
        overflow: visible !important;
        padding: 60px 20px !important;
        min-height: auto !important;
    }

    .chaos-visual {
        min-height: 500px;
        padding: 0 10px;
    }

    .chaos-overlay {
        margin-top: 3rem;
    }

    .video-frame {
        width: 140px;
        height: 90px;
    }

    .aspect-916 {
        width: 70px;
        height: 125px;
    }

    .aspect-11 {
        width: 100px;
        height: 100px;
    }

    .chaos-notification {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    .notification-text {
        font-size: 0.75rem;
    }

    .device-label {
        font-size: 0.625rem;
    }

    .contact-section {
        padding: 60px 0 40px;
        padding-bottom: 87px;
    }

    .contact-intro h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom p {
        position: static;
        transform: none;
    }
}

@media (max-width: 640px) {


    .footer-brand .logo-full {
        height: 50px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-title-row {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-top: -2.5rem;
    }

    .flow-node {
        padding: 0.875rem 1.25rem;
        font-size: 0.6875rem;
        border-radius: 18px;
    }

    .flow-node::before {
        border-radius: 18px;
    }

    .output-node {
        padding: 0.5rem 0.875rem;
        font-size: 0.5625rem;
        border-radius: 14px;
    }

    .output-node::before {
        border-radius: 14px;
    }

    .platform-icon {
        width: 36px;
        height: 36px;
    }

    .chaos-section {
        padding: 80px 0 100px;
    }

    .chaos-item:nth-child(1),
    .chaos-item:nth-child(2),
    .chaos-item:nth-child(3) {
        position: static;
        margin: 1.5rem auto;
        animation: none;
        transform: none !important;
    }

    .chaos-visual {
        flex-direction: column;
        min-height: 500px;
        gap: 1.5rem;
        padding: 0 5px;
    }

    .chaos-overlay {
        margin-top: 4rem;
    }

    .chaos-text {
        margin-bottom: 2rem;
    }

    .video-frame {
        width: 120px;
        height: 75px;
    }

    .aspect-916 {
        width: 60px;
        height: 110px;
    }

    .aspect-11 {
        width: 85px;
        height: 85px;
    }

    .chaos-notification {
        padding: 0.5rem 0.75rem;
    }

    .notification-text {
        font-size: 0.6875rem;
    }

    .contact-section {
        padding: 50px 0 30px;
    }

    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 0.9375rem;
    }

    .contact-form {
        padding: 1.5rem 1.25rem;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9375rem;
        padding: 0.75rem 0.875rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .footer {
        padding: 25px 0;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8125rem;
    }

    /* Phone mockup adjustments for small screens */
    .phone-rising.active {
        transform: translate(-50%, -43%) !important;
    }

    /* When embedded, reset transform */
    .phone-rising.embedded {
        transform: none !important;
    }

    .phone-rising .phone-frame {
        width: min(340px, 90vw);
        /* Maintain aspect ratio: 340/700 = 0.4857 */
        height: auto;
        aspect-ratio: 340 / 700;
        max-height: 80vh;
        /* Scale border-radius proportionally: 48px at 340px width = 14.1% */
        border-radius: clamp(32px, 14.1vw, 48px);
        /* Ensure border scales too */
        border-width: clamp(8px, 3.5vw, 12px);
    }

    /* Scale notch proportionally on mobile */
    .phone-rising .phone-notch {
        width: clamp(90px, 35vw, 120px);
        height: clamp(22px, 8vw, 28px);
        border-bottom-left-radius: clamp(12px, 4.7vw, 16px);
        border-bottom-right-radius: clamp(12px, 4.7vw, 16px);
    }

    /* Ensure phone screen respects the border-radius on mobile */
    .phone-rising .phone-screen {
        border-radius: clamp(20px, 10vw, 36px);
        overflow: hidden;
    }

    /* When embedded on mobile, ensure parent doesn't constrain phone */
    .phone-rising.embedded {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }

    /* When embedded on mobile, remove height constraints to prevent clipping */
    .phone-rising.embedded .phone-frame {
        max-height: none !important;
        height: auto !important;
        /* Keep aspect ratio */
        aspect-ratio: 340 / 700;
        /* Ensure it fits within viewport with proper sizing */
        width: min(340px, 85vw) !important;
        max-width: 100% !important;
        /* Ensure phone doesn't get clipped by viewport */
        margin: 0 auto !important;
    }

    .phone-section-title {
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .phone-section-subtitle {
        font-size: 0.6875rem;
        line-height: 1.4;
    }

    .reel-action-btn svg {
        width: 28px;
        height: 28px;
    }

    .action-count {
        font-size: 0.625rem;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8125rem;
    }

    .profile-name {
        font-size: 0.8125rem;
    }

    .profile-desc {
        font-size: 0.6875rem;
    }

    .phone-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Extra small mobile devices - prevent header button cropping */
@media (max-width: 420px) {

    .logo-full {
        height: 50px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-cta {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
        white-space: nowrap;
    }
}

/* ============================================
   REEL ITEMS - SOCIAL MEDIA STYLE
   ============================================ */

.reel-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.25rem 6rem 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
}

.reel-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.reel-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-content.desc-expanded::after {
    opacity: 1;
}

.reel-card {
    margin-bottom: 0 !important;
    width: 100%;
    max-height: calc(100% - 8rem);
    overflow-y: auto;
}

.reel-card::-webkit-scrollbar {
    width: 2px;
}

.reel-card::-webkit-scrollbar-track {
    background: transparent;
}

.reel-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Social Media Action Buttons (Right Side) */
.reel-actions {
    position: absolute;
    right: 0px;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    z-index: 200;
    pointer-events: none;
}

.reel-action-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    pointer-events: auto;
    /* Touch-friendly tap target */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.reel-action-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.2s ease;
}

.reel-action-btn:hover svg {
    transform: scale(1.15);
}

.reel-action-btn:active svg {
    transform: scale(0.95);
}

.reel-action-btn.active svg {
    color: var(--crimson);
    animation: likeHeart 0.4s ease;
}

/* Save/Bookmark button uses yellow when active */
.reel-action-btn.save-btn.active svg {
    color: #eab308;
}

@keyframes likeHeart {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

.action-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

/* Profile Info (Bottom Left) - Now without avatar */
.reel-profile {
    position: absolute;
    left: 0.75rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 200;
    max-width: calc(100% - 5rem);
    pointer-events: none;
}

/* Move avatar to actions menu */
.reel-actions .profile-avatar {
    pointer-events: auto;
    order: -1;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--midnight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: visible;
    padding: 2px;
}

.profile-avatar .avatar-logo {
    width: 150%;
    height: 150%;
    object-fit: contain;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.profile-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    min-width: 210px;
}

.profile-desc-wrapper {
    pointer-events: auto;
    width: 100%;
    position: relative;
    padding-right: 50px;
}

.profile-desc.collapsed {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    min-width: 210px;
}

.desc-toggle-btn {
    position: absolute;
    right: -45px;
    bottom: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1rem;
    pointer-events: auto;
}


.profile-desc.expanded {
    display: block;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
    line-height: 1.4;
    white-space: normal;
    min-width: 210px;
}

.desc-more-btn {
    display: none;
}


/* Video Reel Styling */
.reel-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.reel-video .reel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Ensure action buttons and profile are above video */
.reel-video .reel-actions,
.reel-video .reel-profile {
    position: absolute;
    z-index: 2;
}

/* Side Content for Video Reels (Desktop Only) */
.reel-side-content-wrapper {
    position: fixed;
    left: 5%;
    top: 25%;
    transform: translateY(-25%);
    min-width: 400px;
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* When phone is embedded, position side text relative to chaos section */
.reel-side-content-wrapper.embedded {
    position: absolute;
    left: 5%;
    top: 25%;
    transform: translateY(-25%);
    z-index: 10;
}

.reel-side-text {
    position: absolute;
    top: 0;
    left: -30px;
    min-width: 515px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.reel-side-text.active {
    opacity: 1;
}

.side-text-icon {
    font-size: 4rem;
    font-weight: 300;
    color: var(--red);
    margin-bottom: 1rem;
    line-height: 1;
}

.side-text-headline {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.side-text-headline .line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reel-side-text.active .side-text-headline .line {
    opacity: 1;
    transform: translateY(0);
}

.reel-side-text.active .side-text-headline .line:nth-child(1) {
    transition-delay: 0s;
}

.reel-side-text.active .side-text-headline .line:nth-child(2) {
    transition-delay: 0.8s;
}

.reel-side-text.active .side-text-headline .line:nth-child(3) {
    transition-delay: 1.6s;
}

.reel-side-text.active .side-text-headline .line:nth-child(4) {
    transition-delay: 2.4s;
}

/* Description timing - per video based on number of headline lines */
.reel-side-text.active .side-text-description {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Video 0: 3-line headline - description after last line completes */
.reel-side-text.active[data-video-index="0"] .side-text-description {
    animation-delay: 3.2s;
}

/* Videos 1-5: 1-line headlines - description shortly after first line */
.reel-side-text.active[data-video-index="1"] .side-text-description,
.reel-side-text.active[data-video-index="2"] .side-text-description,
.reel-side-text.active[data-video-index="3"] .side-text-description,
.reel-side-text.active[data-video-index="4"] .side-text-description,
.reel-side-text.active[data-video-index="5"] .side-text-description {
    animation-delay: 1.2s;
}

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

.side-text-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.side-text-feature {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
}

.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.side-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.side-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reel-side-text.active .side-stat {
    opacity: 1;
    transform: translateY(0);
}

.reel-side-text.active .side-stat:nth-child(1) {
    transition-delay: 3.8s;
}

.reel-side-text.active .side-stat:nth-child(2) {
    transition-delay: 4.1s;
}

.reel-side-text.active .side-stat:nth-child(3) {
    transition-delay: 4.4s;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-tech);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Hide side content on mobile/tablet */
@media (max-width: 1540px) {
    .reel-side-content-wrapper {
        display: none;
    }
}

/* ============================================
   FINAL CTA REEL - TYPING ANIMATION
   ============================================ */

.reel-final-cta .reel-content {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(21, 25, 34, 0.98) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Subtle animated background particles */
.reel-final-cta .reel-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.final-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Logo Styling */
.final-cta-logo {
    margin-bottom: 1.75rem;
    opacity: 0;
}

.reel-final-cta.animate .final-cta-logo {
    animation: logoFadeIn 0.6s ease-out 0.3s forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reshet13-logo {
    width: 112px;
    height: 64px;
    filter: drop-shadow(0 2px 12px rgba(0, 242, 201, 0.4)) drop-shadow(0 2px 12px rgba(255, 212, 0, 0.3));
}

/* Text Lines Container */
.final-cta-text {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 300px;
}

.cta-line {
    margin: 0 0 1.25rem 0;
    opacity: 1;
}

/* Line 1 - Main message - fixed height for 2 lines to prevent reflow bump */
.cta-line-1 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    height: calc(0.9375rem * 1.4 * 2 + 2px);
    overflow: visible;
}

/* Line 2 - Bold emphasis */
.cta-line-2 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Line 3 - Secondary info with gradient */
.cta-line-3 {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Apply gradient to the typewriter spans inside Line 3 */
.cta-line-3 .typewriter {
    color: transparent;
    background: var(--gradient-tech);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Typewriter Effect - JS-controlled */
.typewriter {
    display: inline;
    position: relative;
}

/* Typewriter cursor - always reserve space but only show when typing */
.typewriter::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 1em;
    background: var(--teal);
    margin-left: 0;
    vertical-align: text-bottom;
    transition: none;
}

.typewriter.typing::after {
    width: 2px;
    margin-left: 2px;
    animation: cursorBlink 0.7s step-end infinite;
}

/* Hide cursor after typing is complete */
.typewriter.typing-complete::after {
    width: 0;
    margin-left: 0;
    animation: none;
}

@keyframes cursorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* CTA Button */
.final-cta-button-wrapper {
    display: block;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
    min-height: 60px;
    margin-top: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.final-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
        transform: scale(1.03);
    }
}

.final-cta-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .final-cta-content {
        padding: 1.5rem 1rem;
    }

    .reshet13-logo {
        width: 84px;
        height: 48px;
    }

    .final-cta-logo {
        margin-bottom: 2rem;
    }

    .final-cta-text {
        max-width: 280px;
        margin-bottom: 2rem;
    }

    .cta-line {
        margin-bottom: 1.25rem;
    }

    .cta-line-2 {
        font-size: 1.25rem;
    }

    .cta-line-3 {
        font-size: 0.875rem;
    }

    .final-cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}

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

/* Prevent native scroll-snapping and touch movement while the phone is rising */
.phone-rising:not(.rise-complete) .phone-content-scroll { 
    overflow: hidden !important; 
    touch-action: none;
}