:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.4);
    --accent-purple: rgba(138, 43, 226, 0.3);
    --accent-blue: rgba(30, 144, 255, 0.3);
    --accent-cyan: rgba(0, 206, 209, 0.3);
    --accent-pink: rgba(255, 105, 180, 0.3);
    --accent-orange: rgba(255, 140, 0, 0.3);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    background: linear-gradient(-45deg, #ffffff, #f9f9fb, #f5f5f7, #ffffff);
    background-size: 400% 400%;
    animation: subtleGradient 15s ease-in-out infinite;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes subtleGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.content {
    padding-top: 100px;
    max-width: 800px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Image styles */
.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.content-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 8px;
}

.gradient-banner {
    height: 300px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-banner h2 {
    color: white;
    text-align: center;
}

/* Header Styles */
.header-row {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.header-row>* {
    pointer-events: auto;
}

.footer-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5% 60px 5%;
    box-sizing: border-box;
    margin-top: 40px;
}

/* Adjust demo-layout to not overlap too much with header */
.demo-layout {
    top: 80px !important;
}

/* Normal Scroll Layout */
.features-feed {
    position: relative;
    width: 100%;
}

.sticky-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    overflow: visible;
}

.hero-layout-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 5%;
    gap: 60px;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .hero-layout-wrapper {
        flex-direction: column;
        height: auto;
        padding-top: 140px;
        text-align: center;
        gap: 80px;
    }

    .hero-text-column {
        align-items: center !important;
        text-align: center !important;
    }

    .glass-text {
        text-align: center !important;
    }

    .hero-visual-column {
        width: 100%;
        max-width: 600px;
    }
}

.feature-card-container {
    position: absolute;
    right: 20px;
    width: 220px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 100;
}

@media (max-width: 1250px) {
    .hero-layout-wrapper {
        width: 100%;
        justify-content: center;
    }

    .feature-card-container {
        display: none;
    }

    .floating-tiles-outer-container {
        display: none;
    }
}

/* Floating UI Tiles */
.floating-tiles-outer-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.floating-tiles-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-tile {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(90%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    pointer-events: auto;
    width: fit-content;
    white-space: nowrap;
    animation: tileFloat 6s ease-in-out infinite;
    /* Transition only for non-scroll driven property changes */
    transition:
        background 0.3s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;

    /* Interpolate current position based on scroll progress (--scroll-p) */
    top: calc(var(--start-top) * (1 - var(--scroll-p, 0)) + 50% * var(--scroll-p, 0));
    left: calc(var(--start-left, auto) * (1 - var(--scroll-p, 0)) + (50% * var(--scroll-p, 0)));
    right: calc(var(--start-right, auto) * (1 - var(--scroll-p, 0)) + (50% * var(--scroll-p, 0)));
    opacity: calc(1 - var(--scroll-p, 0));
    transform: rotate(calc(var(--rot) * (1 - var(--scroll-p, 0)))) scale(calc(1 - 0.9 * var(--scroll-p, 0)));

    /* Center the point during dock */
    transform-origin: center;
}

/* Profiles Section (Second Page) */
.profiles-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
    position: relative;
    background: transparent;
}

#problem-bar-root,
#company-slider-root {
    width: 100%;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Docked state logic handled by --scroll-p in the calc block above */

.floating-tile:hover {
    transform: scale(1.05) translateZ(10px) rotate(var(--rot)) !important;
    background: rgba(255, 255, 255, 0.85);
    z-index: 50;
    transition: transform 0.3s ease-out;
}

.tile-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tile-text {
    display: flex;
    flex-direction: column;
}

.tile-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
}

.tile-subtitle {
    font-size: 0.75rem;
    color: #86868b;
}

/* Individual Tile Positioning & Rotation */
.tile-1 {
    --start-top: 10%;
    --start-left: 5%;
    --rot: -8deg;
}

.tile-2 {
    --start-top: 25%;
    --start-left: 10%;
    --rot: 5deg;
}

.tile-3 {
    --start-top: 55%;
    --start-left: 6%;
    --rot: -12deg;
}

.tile-4 {
    --start-top: 12%;
    --start-right: 8%;
    --rot: 10deg;
}

.tile-5 {
    --start-top: 35%;
    --start-right: 4%;
    --rot: -6deg;
}

.tile-6 {
    --start-top: 60%;
    --start-right: 10%;
    --rot: 8deg;
}

.tile-7 {
    --start-top: 75%;
    --start-left: 15%;
    --rot: -5deg;
}

.tile-8 {
    --start-top: 80%;
    --start-right: 15%;
    --rot: 4deg;
}

.tile-1,
.tile-2,
.tile-3,
.tile-4,
.tile-5,
.tile-6,
.tile-7,
.tile-8 {
    transform: rotate(var(--rot));
}

/* Scroll disappearing state disabled for normal scroll */
.floating-tiles-container.scrolled-away .floating-tile {
    opacity: 1;
    transform: rotate(var(--rot, 0deg));
}

@keyframes tileFloat {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }

    50% {
        transform: translateY(-15px) rotate(calc(var(--rot, 0deg) + 2deg));
    }
}

/* Fix animation with individual rotations */
.tile-1 {
    --rot: -8deg;
}

.tile-2 {
    --rot: 5deg;
}

.tile-3 {
    --rot: -12deg;
}

.tile-4 {
    --rot: 10deg;
}

.tile-5 {
    --rot: -6deg;
}

.tile-6 {
    --rot: 8deg;
}

.tile-7 {
    --rot: -5deg;
}

.tile-8 {
    --rot: 4deg;
}

.feature-card {
    position: absolute;
    width: 100%;
    left: 0;
    /* Stack exactly */
    opacity: 0;
    transform: none;
    /* Removed scale */
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255, 255, 255, 0.08);
    /* Stable crystal glass */
    backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

.feature-card h2 {
    font-size: 1.6rem !important;
    /* Override large section title size */
    margin-bottom: 12px;
    color: #1d1d1f;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #48484a;
}

.feature-card.active {
    opacity: 1;
    transform: none;
    z-index: 2;
    pointer-events: auto;
}

.feature-card.past {
    opacity: 0;
    transform: none;
    z-index: 1;
}

.section-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
}


.section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 90px 80px;
    border-radius: 60px;
    max-width: 700px;
    /* Slightly narrower */
    width: 95%;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    border: none;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 20px rgba(255, 255, 255, 0.1),
        inset -5px -5px 40px rgba(255, 255, 255, 0.05),
        inset 5px 5px 40px rgba(0, 0, 0, 0.02);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    animation: breathe 12s ease-in-out infinite;
    z-index: 1;
}

.section.active {
    opacity: 1;
    transform: none;
}

.section:hover {
    transform: scale(1.01) translateY(-8px);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(90px) saturate(210%);
    -webkit-backdrop-filter: blur(90px) saturate(210%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 0 60px rgba(255, 255, 255, 0.1),
        inset -10px -10px 80px rgba(255, 255, 255, 0.08),
        inset 10px 10px 80px rgba(0, 0, 0, 0.03);
    animation: breathe 12s ease-in-out infinite, flashColors 4s linear infinite;
}

.section::before,
#hero-liquid-frame::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 25%,
            transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
    filter: blur(40px);
}

.section:hover::before,
#hero-liquid-frame:hover::before {
    opacity: 1;
    animation: liquidGlassFlow 4s ease-in-out infinite;
}

.section::after,
#hero-liquid-frame::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: all 1s ease;
    filter: blur(60px);
}

.section:hover::after,
#hero-liquid-frame:hover::after {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    animation: liquidCaustic 4s ease-in-out infinite;
}

#hero-liquid-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 20px rgba(255, 255, 255, 0.1),
        inset -5px -5px 40px rgba(255, 255, 255, 0.05),
        inset 5px 5px 40px rgba(0, 0, 0, 0.02);
    transition: all 1.2s cubic-bezier(0.15, 0, 0.05, 1);
}

#hero-liquid-frame:hover {
    transform: scale(1.01);
    animation: flashColors 4s linear infinite;
}

.header-glass-pill {
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* The "Racing" colors following the mouse */
.header-glass-pill::before {
    content: "";
    position: absolute;
    inset: -150%;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 0, 100, 0.5) 0%,
            rgba(0, 255, 200, 0.5) 15%,
            rgba(255, 200, 0, 0.5) 30%,
            rgba(100, 0, 255, 0.5) 45%,
            transparent 60%),
        radial-gradient(circle at calc(100% - var(--mouse-x, 50%)) calc(100% - var(--mouse-y, 50%)),
            rgba(0, 100, 255, 0.3) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

/* The spinning prismatic border/glow - REMOVED per user request
.header-glass-pill::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--angle, 0deg),
            #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}
*/

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

/* No prismatic border on hover */
.header-glass-pill:hover::before {
    opacity: 1;
}

.header-glass-pill:hover {
    transform: scale(1.03);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(255, 255, 255, 0.05);
}

@keyframes flashColors {
    0% {
        background-color: rgba(255, 200, 200, 0.4);
    }

    33% {
        background-color: rgba(200, 255, 200, 0.4);
    }

    66% {
        background-color: rgba(200, 200, 255, 0.4);
    }

    100% {
        background-color: rgba(255, 200, 200, 0.4);
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.005);
    }
}

@keyframes liquidGlassFlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1, 0.9) rotate(5deg);
    }

    50% {
        transform: translate(0, 20px) scale(0.9, 1.1) rotate(0deg);
    }

    75% {
        transform: translate(-20px, -20px) scale(1.05, 0.95) rotate(-5deg);
    }
}

@keyframes liquidCaustic {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        border-radius: 50%;
    }

    33% {
        transform: translate(-45%, -55%) scale(1.25, 1.15);
        border-radius: 45% 55% 50% 50%;
    }

    66% {
        transform: translate(-55%, -50%) scale(1.15, 1.3);
        border-radius: 55% 45% 50% 50%;
    }
}


.section h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #1d1d1f;
    z-index: 2;
    transition: all 0.6s ease;
    position: relative;
}

.section h2::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(20px);
    pointer-events: none;
}

#capture .section:hover h2 {
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.4), 0 2px 4px rgba(255, 255, 255, 0.5);
}

#capture .section:hover h2::before {
    opacity: 1;
    background: radial-gradient(ellipse at center,
            rgba(138, 43, 226, 0.1) 40%,
            transparent 100%);
}

#document .section:hover h2 {
    filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.6));
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.4), 0 2px 4px rgba(255, 255, 255, 0.5);
}

#document .section:hover h2::before {
    opacity: 1;
    background: radial-gradient(ellipse at center,
            rgba(30, 144, 255, 0.1) 40%,
            transparent 100%);
}

#automate .section:hover h2 {
    filter: drop-shadow(0 0 15px rgba(0, 206, 209, 0.6));
    text-shadow: 0 0 20px rgba(0, 206, 209, 0.4), 0 2px 4px rgba(255, 255, 255, 0.5);
}

#automate .section:hover h2::before {
    opacity: 1;
    background: radial-gradient(ellipse at center,
            rgba(0, 206, 209, 0.1) 40%,
            transparent 100%);
}

#share .section:hover h2 {
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.6));
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.4), 0 2px 4px rgba(255, 255, 255, 0.5);
}

#share .section:hover h2::before {
    opacity: 1;
    background: radial-gradient(ellipse at center,
            rgba(255, 105, 180, 0.1) 40%,
            transparent 100%);
}

#privacy .section:hover h2 {
    filter: drop-shadow(0 0 15px rgba(50, 205, 50, 0.6));
    text-shadow: 0 0 20px rgba(50, 205, 50, 0.4), 0 2px 4px rgba(255, 255, 255, 0.5);
}

#privacy .section:hover h2::before {
    opacity: 1;
    background: radial-gradient(ellipse at center,
            rgba(50, 205, 50, 0.1) 40%,
            transparent 100%);
}

.section p {
    font-size: 1.25rem;
    color: #48484a;
    line-height: 1.6;
    font-weight: 400;
    max-width: 580px;
    z-index: 2;
}

.social-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Main CTA Animation */
.main-cta {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-cta:hover {
    transform: scale(1.02);
}

.main-cta .glass-button-text {
    transition: color 0.4s ease, transform 0.4s ease;
}

.main-cta:hover .glass-button-text {
    color: #007aff !important;
    /* Apple Blue */
}

/* Title & Subtitle Animations */
.main-cta {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.subtitle {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dual Section Layout */
.dual-section {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.glass-card {
    flex: 1 1 350px;
    min-width: 300px;
    max-width: 550px;
    padding: 60px 40px;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(90%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.15, 0, 0.05, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
}

.glass-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.glass-card p {
    font-size: 1.1rem;
    color: #48484a;
    max-width: 100%;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
    width: 100%;
}

.benefit-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #48484a;
    position: relative;
    padding-left: 28px;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007aff;
    font-size: 1.1rem;
    font-weight: 800;
    top: -2px;
}

@media (max-width: 768px) {
    .dual-section {
        flex-direction: column;
        align-items: center;
    }

    .glass-card {
        width: 100%;
        min-width: unset;
    }
}

/* Glass Text Effect */
.glass-text {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.4) 25%,
            rgba(200, 200, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.4) 75%,
            rgba(255, 255, 255, 1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0px 2px 3px rgba(255, 255, 255, 0.3),
        0px 4px 12px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    animation: shine 8s linear infinite;
    display: inline-block;
    position: relative;
    z-index: 2;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 3D Glass Depth for larger headers */
h1.glass-text {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    letter-spacing: -0.015em;
}

h2.glass-text {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* FAQ Accordion Styles */
.accordion-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Autoscrolling Problem Bar */
.problem-bar-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

/* Company Logo Slider */
.company-bar-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    z-index: 4;
}

.company-bar-content {
    display: flex;
    white-space: nowrap;
    animation: scrollBar 80s linear infinite;
    /* Slightly faster than problem bar */
    width: max-content;
}

.company-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.company-logo-item:hover {
    opacity: 1;
}

.company-logo-img {
    height: 35px;
    /* Slightly larger */
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(80%) brightness(0.8);
    /* Better visibility but still subtle */
    transition: filter 0.3s ease;
}

.company-logo-item:hover .company-logo-img {
    filter: grayscale(0%) brightness(1);
}

.company-bar-container:hover .company-bar-content {
    animation-play-state: paused;
}

.problem-bar-content {
    display: flex;
    white-space: nowrap;
    animation: scrollBar 120s linear infinite;
    /* Slower speed */
    width: max-content;
    perspective: 1000px;
    /* Enable 3D for children */
}

/* ... existing hover pause ... */
.problem-bar-container:hover .problem-bar-content {
    animation-play-state: paused;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    transform-style: preserve-3d;
    /* Enable flip */
    transition: transform 0.6s;
}

/* Motion Graph Pulse Effect */
/* Use Cases Scroller */
/* Use Cases Museum Gallery */
.use-cases-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 100px;
    position: relative;
    overflow: visible; /* No scrolling */
}

.use-cases-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    animation: none; /* No movement */
    padding-bottom: 50px;
}

@media (max-width: 1024px) {
    .use-cases-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .use-cases-content { grid-template-columns: 1fr; }
}

.use-case-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 520px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(30px) saturate(180%) contrast(90%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 35px;
    margin: 0;
    white-space: normal;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    justify-content: space-between;
}

.use-case-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.use-case-image-container {
    width: 100%;
    height: 240px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.use-case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.use-case-card:hover .use-case-image {
    transform: scale(1.1);
}

.use-case-header {
    font-family: inherit; /* Nomal sans-serif */
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.use-case-description {
    font-size: 15px;
    line-height: 1.6;
    color: #48484a;
    opacity: 0.9;
    margin-top: 0;
    font-style: normal; /* No italic */
    border-left: none; /* No border-left */
    padding-left: 0;
}

.profile-container {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 168, 255, 0.6) 0%, rgba(93, 168, 255, 0) 70%);
    opacity: 0;
    z-index: 1;
    animation: profilePulse 3s infinite;
}

/* Randomize animation delays on children if possible, mostly we rely on natural timing */
.problem-item:nth-child(even) .profile-glow {
    animation-delay: 1.5s;
}

@keyframes profilePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Flip content swap point is handled in JS, 
   but 360 rotation brings it back to upright. 
   If we swap at 90/270 it might be upside down if we don't manage it.
   Let's do a 360 flip. 
   0-90 (up) -> Swap -> 270 (down, coming up) -> 360.
   Or 0 -> 180 (upside down) ? 
   Better visual: 0 -> 90 (flat) -> swap -> -90 (flat from bottom) -> 0.
   Let's stick to 0 -> 360 for "tumbling" effect or 0->180->0 */

@keyframes profileFlip {
    0% {
        transform: rotateX(0deg);
    }

    100% {
        transform: rotateX(360deg);
    }
}

.profile-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.problem-text {
    font-size: 12px;
    font-weight: 500;
    color: #1d1d1f;
    opacity: 0.9;
}

@keyframes scrollBar {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.accordion-header {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: #1d1d1f;
    transition: background 0.3s ease;
}

.accordion-header span {
    pointer-events: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 800px;
    padding-bottom: 30px;
    opacity: 1;
}

.accordion-content p {
    line-height: 1.6;
    font-size: 16px;
    color: #1d1d1f;
    margin-top: 0;
}

.accordion-content .benefit-list {
    margin-top: 20px;
}

/* Software Integrations Section */
.integrations-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.integrations-header {
    text-align: center;
    margin-bottom: 60px;
}

.integrations-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.integrations-header p {
    font-size: 18px;
    color: #48484a;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    cursor: default;
    width: 100%;
    max-width: 90px;
    height: 90px;
    justify-content: center;
    box-sizing: border-box;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.integration-item.flipping {
    animation: rubiksFlip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rubiksFlip {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(180deg);
    }
}

.integration-content {
    /* Existing styles + backface visibility management if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    /* removed transition opacity */
}

/* Fix for text mirroring when flipped */
.integration-item.flipping .integration-content {
    /* We swap content at 90deg, so we don't necessarily need backface-visibility hidden if we handle it right. 
       However, simplified approach: Run 0->180. At 90deg swap content and verify orientation.
       Actually, if we rotate 180, the text will be backwards unless we rotate the content itself or the container ends up -180.
       
       Better Rubik's:
       0% -> 90% (Edge on) -> Swap -> -90% (Edge on from other side) -> 0%
       This simulates a full 180 rotation but we cheat the coordinates so content is never mirrored.
    */
    animation: contentFix 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentFix {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(0deg);
    }

    /* Wait for swap point */
    50.1% {
        transform: rotateY(180deg);
    }

    /* Flip content relative to container so it's upright */
    100% {
        transform: rotateY(180deg);
    }
}

.integration-item:hover {
    transform: translateY(-4px) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.integration-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.integration-item:hover svg {
    transform: scale(1.1);
}

.integration-item span {
    font-size: 9px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}

/* Integration categories */
.integrations-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.integration-category-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.integration-category-btn:hover,
.integration-category-btn.active {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.4);
    color: #007aff;
}

/* Feature showcase tiles */
.feature-showcase {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5%;
}

.feature-tile {
    flex: 1 1 350px;
    max-width: 500px;
    min-height: 300px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    position: relative;
}

.feature-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.feature-tile-image {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.feature-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-tile:hover .feature-tile-image img {
    transform: scale(1.05);
}

.feature-tile-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-tile:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.feature-tile-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.feature-tile-icon svg {
    width: 100%;
    height: 100%;
}

.feature-tile h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.feature-tile p {
    font-size: 16px;
    color: #48484a;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.feature-tile ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 1;
}

.feature-tile ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    color: #1d1d1f;
}

.feature-tile ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007aff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .integrations-header h2 {
        font-size: 36px;
    }

    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .integration-item {
        padding: 18px 12px;
        max-width: 100px;
    }

    .integration-item svg {
        width: 36px;
        height: 36px;
    }

    .integration-item span {
        font-size: 10px;
    }

    .feature-tile {
        flex: 1 1 100%;
    }
}

/* Anchor Navigation Fix */
.section-wrapper, .integrations-section, .accordion-item, #pricing, #privacy, #integrations {
    scroll-margin-top: 100px;
}