/* ============================================
   AICOM — Landing Page
   ============================================ */

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

:root {
    --space-xl: 2rem;
    --purple-50: #f5f0ff;
    --purple-100: #ede5ff;
    --purple-200: #d4c4ff;
    --purple-300: #b89cff;
    --purple-400: #9b6dff;
    --purple-500: #7c4daa;
    --purple-600: #6b3fa0;
    --purple-700: #5a2d8c;
    --purple-800: #3d1d66;
    --purple-900: #1e0e33;

    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --black: #09090b;

    --bg: var(--white);
    --bg-subtle: var(--gray-50);
    --bg-dark: var(--gray-900);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-on-dark: var(--gray-100);
    --border: var(--gray-200);
    --accent: var(--purple-500);
    --accent-light: var(--purple-50);
    --accent-gradient: linear-gradient(135deg, var(--purple-400), var(--purple-600));

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.35s;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;  }
body { font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-xl, 2rem); }

.section { padding: 6rem 0; }
.section--subtle { background: var(--bg-subtle); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.section-desc {
    margin-top: 1.25rem;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-sm); border-radius: var(--radius-md); }
.btn-lg { padding: 1rem 2rem; font-size: var(--text-lg); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(124, 77, 170, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 77, 170, 0.4); }

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo-img {
    height: 36px;
    width: auto;
    transition: height 0.4s var(--ease);
}
.navbar.scrolled .nav-logo-img { height: 28px; }

.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration);
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--duration) var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-login { color: var(--text-secondary); }

/* Connexion/Inscription inside .nav-links are mobile-drawer-only
   (on desktop, .nav-actions already shows them — avoid duplication) */
.nav-link--login,
.nav-link--cta { display: none; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--duration); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(8rem + 60px);
    padding-bottom: 4rem;
    text-align: center;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

/* MacBook hero with scroll animation */

/* ---------- Video Slots ---------- */
.video-slot {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
    transition: all var(--duration) var(--ease);
}
.video-slot:hover { box-shadow: var(--shadow-lg); }

.video-slot__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-slot__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--duration);
}
.video-slot:hover .video-slot__overlay { opacity: 1; }

.video-slot__play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(124, 77, 170, 0.4);
    transition: transform var(--duration) var(--ease);
}
.video-slot:hover .video-slot__play { transform: scale(1.1); }

.video-slot__meta { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.video-slot__dim { font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }
.video-slot__idea { font-size: var(--text-sm); color: rgba(255,255,255,0.8); font-style: italic; }

/* Hero video */

/* About video */
.video-slot--about {
    flex-shrink: 0;
    width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
}

/* How it works video */
.video-slot--how {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

/* ---------- 3D Carousel (perspective cylinder) ---------- */
.carousel-3d-wrapper {
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.carousel-3d {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.carousel-3d:active { cursor: grabbing; }

.carousel-3d-scene {
    width: 220px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(0deg);
}

.carousel-3d-arm {
    position: absolute;
    width: 220px;
    height: 320px;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transform: rotateY(var(--angle)) translateZ(580px);
}

.carousel-3d-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-200);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    backface-visibility: hidden;
}

.carousel-3d-card img,
.carousel-3d-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.carousel-3d-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0 0 16px 16px;
}

/* Responsive 3D carousel */
@media (max-width: 1024px) {
    .carousel-3d { height: 380px; }
    .carousel-3d-scene { width: 180px; height: 260px; }
    .carousel-3d-arm { width: 180px; height: 260px; transform: rotateY(var(--angle)) translateZ(440px); }
}
@media (max-width: 768px) {
    .carousel-3d { height: 320px; }
    .carousel-3d-scene { width: 160px; height: 230px; }
    .carousel-3d-arm { width: 160px; height: 230px; transform: rotateY(var(--angle)) translateZ(340px); }
}
@media (max-width: 480px) {
    .carousel-3d { height: 260px; }
    .carousel-3d-scene { width: 140px; height: 200px; }
    .carousel-3d-arm { width: 140px; height: 200px; transform: rotateY(var(--angle)) translateZ(260px); }
}

/* ---------- Side Flowers Animation ---------- */

/* ---------- Splash Cursor ---------- */

/* ---------- Trust Bar ---------- */

/* ---------- About ---------- */
.about-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}
.about-content { flex: 1; }
.about-content .section-title { text-align: left; }
.about-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    text-align: left;
    margin-top: 5rem;
}
.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 2.75rem 2rem;
    border-right: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-50); }
.stat-number {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--gray-900);
    background: none;
    -webkit-text-fill-color: currentColor;
    line-height: 1;
    letter-spacing: -0.04em;
    display: inline;
}
.stat-suffix {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: currentColor;
    letter-spacing: -0.03em;
    margin-left: 0.15rem;
}
.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}

/* ---------- How It Works: Carousel ---------- */
/* Carousel: explicit 3-col grid (prev | viewport | next), controls span full row */
.carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 1.75rem;
}
.carousel .carousel-prev { grid-column: 1; grid-row: 1; }
.carousel-viewport {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    border-radius: inherit;
    min-width: 0;
}
.carousel .carousel-next { grid-column: 3; grid-row: 1; }
.carousel-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s var(--ease);
}
@media (max-width: 768px) {
    .carousel { column-gap: 0.5rem; row-gap: 1.25rem; }
    .carousel .carousel-arrow { width: 40px; height: 40px; }
}
.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.how-card {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
    padding: 3.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--purple-50) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 24px 60px -40px rgba(124, 77, 170, 0.25);
}
.how-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(184, 156, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.how-card__content {
    position: relative;
    z-index: 1;
}
.how-card__content h3 {
    font-size: clamp(var(--text-2xl), 2.6vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}
.how-card__content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}
.how-card .video-slot--how {
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: currentColor;
    margin-bottom: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
}
.step-number::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--duration);
    background: var(--white);
}
.carousel-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--duration);
    padding: 0;
}
.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ---------- Benefits ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all var(--duration) var(--ease);
}
.benefit-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.benefit-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 0.5rem; }
.benefit-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ---------- Feature Slider (bento bg + floating glass card, swipeable) ---------- */
.feature-slider {
    margin-top: 4rem;
    counter-reset: feature-slide;
}
.feature-slider__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
}
.feature-slider__stage .feature-slider__viewport {
    grid-column: 2;
    min-width: 0;
}
.feature-slider__stage .feature-slider__btn--prev { grid-column: 1; }
.feature-slider__stage .feature-slider__btn--next { grid-column: 3; }
.feature-slider__viewport {
    overflow: hidden;
    border-radius: 32px;
    box-shadow:
        0 60px 80px -50px rgba(15, 14, 26, 0.30),
        0 24px 40px -24px rgba(124, 77, 170, 0.14);
}
.feature-slider__track {
    display: flex;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.feature-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-900);
    counter-increment: feature-slide;
    isolation: isolate;
}
.feature-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.feature-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 14, 26, 0.18) 100%);
    z-index: 2;
    pointer-events: none;
}
.feature-slide__card {
    position: absolute;
    bottom: 1.75rem;
    left: 1.75rem;
    z-index: 3;
    max-width: 460px;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.35),
        0 8px 20px -10px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.feature-slide:nth-child(2) .feature-slide__card {
    left: auto;
    right: 1.75rem;
}
.feature-slide__card::before {
    content: counter(feature-slide, decimal-leading-zero);
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--purple-600);
    margin-bottom: 0.7rem;
    font-feature-settings: "tnum";
}
.feature-slide__card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
    color: var(--gray-900);
}
.feature-slide__card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Navigation — arrows overlay on the sides, dots below */
.feature-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}
.feature-slider__btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gray-900);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.18);
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                opacity var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.feature-slider__btn:hover:not(:disabled) {
    background: var(--purple-50);
    border-color: var(--purple-300);
    transform: scale(1.06);
    box-shadow: 0 12px 28px -10px rgba(124, 77, 170, 0.35);
}
.feature-slider__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .feature-slider__stage { gap: 0.5rem; }
    .feature-slider__btn { width: 40px; height: 40px; }
}
.feature-slider__dots {
    display: flex;
    gap: 0.5rem;
}
.feature-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: var(--gray-300, #d4d4d4);
    cursor: pointer;
    transition: width var(--duration) var(--ease), background var(--duration) var(--ease);
}
.feature-slider__dot.is-active {
    background: var(--purple-500);
    width: 26px;
}

@media (max-width: 768px) {
    .feature-slide { aspect-ratio: 4 / 5; }
    .feature-slide__card,
    .feature-slide:nth-child(2) .feature-slide__card {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        padding: 1.1rem 1.25rem;
        border-radius: 14px;
    }
    .feature-slide__card h3 { font-size: 1.15rem; }
    .feature-slide__card p { font-size: 0.88rem; line-height: 1.5; }
    .feature-slider__viewport { border-radius: 24px; }
}

/* Magic gallery */

/* ---------- Before/After Comparison Slider ---------- */
.ba-heading {
    margin-top: 4rem;
    text-align: center;
}
.ba-heading h3 {
    margin-top: 0.75rem;
    font-size: var(--text-3xl);
}
.ba-compare {
    --p: 50%;
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    margin: 2rem auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: ew-resize;
    user-select: none;
    background: var(--gray-900);
    touch-action: none;
}
.ba-compare .ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    will-change: clip-path;
}
.ba-compare .ba-img--before {
    clip-path: inset(0 calc(100% - var(--p)) 0 0);
}
.ba-compare .ba-img--after {
    clip-path: inset(0 0 0 var(--p));
}
.ba-compare .ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--p);
    width: 2px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 12%,
        rgba(255, 255, 255, 0.85) 88%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-50%);
    pointer-events: none;
    will-change: left;
}
.ba-compare .ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(124, 77, 170, 0.35),
        0 0 0 6px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-compare .ba-handle__bars {
    display: flex;
    gap: 4px;
}
.ba-compare .ba-handle__bars span {
    width: 2px;
    height: 14px;
    background: var(--purple-500);
    border-radius: 1px;
}
.ba-compare .ba-label {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    background: rgba(15, 14, 26, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
}
.ba-compare .ba-label--before { left: 16px; }
.ba-compare .ba-label--after { right: 16px; }

@media (max-width: 768px) {
    .ba-compare { aspect-ratio: 4 / 5; margin-top: 2.5rem; }
    .ba-compare .ba-handle { width: 38px; height: 38px; }
}

.product-video {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 980px;
    margin: 5rem auto 0;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.product-video__content h3 {
    margin: 0.8rem 0;
    font-size: var(--text-3xl);
    line-height: 1.15;
}
.product-video__content p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.product-video__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    padding: 2rem;
    border: 2px dashed rgba(124, 77, 170, 0.32);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 193, 120, 0.55), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(142, 116, 255, 0.38), transparent 38%),
        var(--accent-light);
    color: var(--purple-700);
    font-weight: 700;
    text-align: center;
}
.product-video__play {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(124, 77, 170, 0.28);
}

@media (max-width: 768px) {
    .product-video {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    .product-video__slot { min-height: 190px; }
}

/* ---------- Testimonial Cards ---------- */
.carousel--testimonials .carousel-slide { padding: 0 2rem; }

.testimonial-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border);
    height: 100%;
    transition: all var(--duration) var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.testimonial-stars { color: #f59e0b; font-size: var(--text-xl); margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; min-height: 100px; }

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-light);
}
.testimonial-initial {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
}
.testimonial-author strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.testimonial-author span { font-size: var(--text-xs); color: var(--gray-400); }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
    transition: all var(--duration) var(--ease);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(124, 77, 170, 0.15);
    transform: scale(1.05);
}
.pricing-card--featured:hover { transform: scale(1.05) translateY(-4px); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1.25rem;
    background: var(--accent-gradient);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-trial {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--purple-100);
    color: var(--purple-700);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.pricing-header { margin-bottom: 1.5rem; }
.pricing-name { font-size: var(--text-2xl); font-weight: 700; }

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.price-currency { font-size: var(--text-lg); font-weight: 600; color: var(--text-secondary); }
.price-amount { font-size: var(--text-5xl); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price-period { font-size: var(--text-sm); color: var(--text-secondary); }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.pricing-features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}
.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- CTA Section ---------- */
.section--cta { text-align: center; background: var(--bg-dark); color: var(--text-on-dark); }
.cta-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.cta-desc { font-size: var(--text-lg); color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.cta-actions { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; max-width: 280px; }

.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--duration);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.footer-col h4 { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--text-secondary); padding: 0.25rem 0; transition: color var(--duration); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: var(--text-sm); color: var(--gray-400); text-align: center; }

/* ---------- Animations ---------- */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
[data-animate].visible .benefit-card,
[data-animate].visible .pricing-card {
    animation: fadeUp 0.5s var(--ease) forwards;
    opacity: 0;
}
[data-animate].visible .benefit-card:nth-child(1),
[data-animate].visible .pricing-card:nth-child(1) { animation-delay: 0s; }
[data-animate].visible .benefit-card:nth-child(2),
[data-animate].visible .pricing-card:nth-child(2) { animation-delay: 0.1s; }
[data-animate].visible .benefit-card:nth-child(3),
[data-animate].visible .pricing-card:nth-child(3) { animation-delay: 0.2s; }
[data-animate].visible .benefit-card:nth-child(4) { animation-delay: 0.3s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-layout { flex-direction: column; }
    .video-slot--about { width: 100%; max-width: 600px; }
    .about-content .section-title { text-align: center; }
    .about-content { text-align: center; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .how-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .how-card .video-slot--how { width: 100%; }
    /* feature-slider mobile rules live next to the desktop ones above */
    
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .nav-links, .nav-actions .nav-login { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
    }
    /* Show duplicated buttons inside the mobile drawer */
    .nav-links.open .nav-link--login,
    .nav-links.open .nav-link--cta { display: inline-flex; }
    .hero { padding-top: calc(5rem + 60px); }
    .benefits-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card--featured { transform: none; }
    .pricing-card--featured:hover { transform: translateY(-4px); }
    .carousel--testimonials .carousel-slide { padding: 0 0.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stats-bar { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; }

}

/* ========================================================================
   Hummingbird catch-modal
   ======================================================================== */
.hb-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.hb-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.hb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hb-modal__card {
    position: relative;
    width: min(440px, calc(100% - 32px));
    margin: clamp(10vh, 18vh, 22vh) auto 0;
    background: #fff;
    border-radius: 24px;
    padding: 44px 36px 32px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.18, 0.9, 0.28, 1.15), opacity 0.35s ease;
}
.hb-modal.open .hb-modal__card {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.hb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #555;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.hb-modal__close:hover { background: rgba(0, 0, 0, 0.1); color: #000; }
.hb-modal__badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hb-modal__card h2 {
    font-size: clamp(56px, 10vw, 88px);
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
    line-height: 1;
}
.hb-modal__card p {
    color: #555;
    margin: 0 0 22px;
    line-height: 1.5;
    font-size: 15px;
}
.hb-modal__code {
    display: inline-block;
    padding: 12px 24px;
    background: #f3f0ff;
    color: #7c3aed;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-weight: 700;
    font-size: 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    letter-spacing: 0.14em;
}

/* ========================================================================
   Accessibility additions
   ======================================================================== */

/* Skip link — visible only on focus */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px 18px;
    background: oklch(0.18 0.018 290);
    color: white;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(-200%);
    transition: transform 0.2s;
}
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid oklch(0.55 0.18 295);
    outline-offset: 2px;
}

/* Body scroll lock when mobile drawer is open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ticker__track,
    .hero__scroll-line {
        animation: none !important;
    }
}

/* Improve before/after slider focus state (now keyboard-accessible) */
.ba-slider:focus-visible {
    outline: 3px solid oklch(0.55 0.18 295);
    outline-offset: 4px;
    border-radius: 4px;
}

/* aria-current state on carousel dots */
.carousel-dot[aria-current="true"],
.feature-slider__dot[aria-current="true"] {
    background: oklch(0.50 0.18 295);
}
