/* ===== PlineAI Landing — v2 Redesign ===== */
/* Monochrome dark theme, matching the real app interface */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Variables (from app's base.css) --- */
:root {
    --bg-body: #171717;
    --bg-surface: #212121;
    --bg-card: #2f2f2f;
    --bg-card-hover: #353535;
    --bg-input: #303030;
    --border: hsla(0, 0%, 100%, 0.08);
    --border-hover: hsla(0, 0%, 100%, 0.15);
    --border-focus: hsla(0, 0%, 100%, 0.3);

    --text-primary: #ececec;
    --text-secondary: #b4b4b4;
    --text-muted: #777;
    --text-bright: #ffffff;

    --accent-warm: #f5a623;
    --accent-green: #5cb85c;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.15s ease;
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body.landing {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.landing::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 100%);
}

/* --- Floating Nav (matching app's nav) --- */
/* === SCROLL PROGRESS BAR === */
.l-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #5cb85c, #38bdf8);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* === CURSOR GLOW === */
.l-cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 184, 92, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .l-cursor-glow {
        display: none;
    }
}

/* === PROVIDER MARQUEE === */
.l-marquee {
    overflow: hidden;
    padding: 0;
    position: relative;
    top: -100px;
    margin-bottom: -40px;
    z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.l-marquee:hover .l-marquee-track {
    animation-play-state: paused;
}

.l-marquee-track {
    display: flex;
    width: max-content;
    animation: l-marquee-scroll 30s linear infinite;
}

.l-marquee-set {
    display: flex;
    flex-shrink: 0;
}

.l-marquee-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 10px 24px;
    flex-shrink: 0;
    white-space: nowrap;
}

.l-marquee-item:hover {
    color: rgba(255, 255, 255, 0.6);
}

@keyframes l-marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

.l-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

.l-nav.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: none;
}

.l-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(33, 33, 33, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 8px;
    height: 46px;
}

.l-nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.3px;
}

.l-nav-logo svg {
    flex-shrink: 0;
}

.l-nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.l-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.l-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.l-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.l-nav-cta {
    display: flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.l-nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--border-hover);
}

/* --- Layout --- */
.l-section {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 32px;
    width: 100%;
}

.l-section--wide {
    max-width: 1280px;
}

.l-section--narrow {
    max-width: 900px;
}

/* Tab panels */
.l-tab-panel {
    display: none;
}

.l-tab-panel.active {
    display: block;
}

.l-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.l-heading {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.l-heading span {
    color: var(--text-secondary);
}

.l-subheading {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 520px;
}

.l-center {
    text-align: center;
}

.l-center .l-subheading {
    margin: 0 auto;
}

/* === HERO === */
.l-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.l-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.l-hero-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.l-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 32px;
}

.l-hero .l-heading {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.l-hero .l-subheading {
    font-size: 1rem;
    margin: 0 auto 32px;
    max-width: 480px;
}

.l-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bg-body);
    background: var(--text-primary);
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.l-hero-cta:hover {
    background: #fff;
    transform: translateY(-1px);
}

.l-hero-cta svg {
    width: 16px;
    height: 16px;
}

.l-hero-meta {
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Hero Timeline Bar */
.l-hero-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.l-hero-timeline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.l-htl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.l-htl-step span {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.l-htl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s;
}

.l-htl-line {
    width: 40px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background 0.4s;
}

/* States */
.l-htl-step--done .l-htl-dot {
    background: #5cb85c;
    border-color: rgba(92, 184, 92, 0.5);
    box-shadow: 0 0 6px rgba(92, 184, 92, 0.3);
}

.l-htl-step--done span {
    color: #5cb85c;
}

.l-htl-line--done {
    background: rgba(92, 184, 92, 0.3);
}

.l-htl-step--active .l-htl-dot {
    background: #5cb85c;
    border-color: rgba(92, 184, 92, 0.6);
    box-shadow: 0 0 12px rgba(92, 184, 92, 0.4);
    animation: l-htl-pulse 2s ease-in-out infinite;
}

.l-htl-step--active span {
    color: #5cb85c;
    font-weight: 600;
}

@keyframes l-htl-pulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(92, 184, 92, 0.3);
    }

    50% {
        box-shadow: 0 0 16px rgba(92, 184, 92, 0.6);
    }
}

.l-htl-step--pending .l-htl-dot {
    opacity: 0.3;
}

.l-htl-step--pending span {
    opacity: 0.3;
}

.l-htl-step--final .l-htl-dot {
    background: transparent;
    border-color: rgba(92, 184, 92, 0.3);
}

.l-htl-step--final span {
    color: var(--text-muted);
}

/* Floating UI fragments on mouse-track */
.l-hero-fragments {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.l-fragment {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
    pointer-events: none;
}

.l-fragment.visible {
    opacity: 1;
}

/* UI snippet cards (fragments + bento insides) */
.l-ui-snippet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.l-ui-snippet--wide {
    width: 300px;
}

.l-ui-snippet__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.l-ui-snippet__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.l-ui-snippet__dot--warm {
    background: var(--accent-warm);
}

.l-ui-snippet__dot--green {
    background: var(--accent-green);
}

.l-ui-snippet__bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    flex: 1;
}

.l-ui-snippet__bar--fill {
    background: rgba(255, 255, 255, 0.12);
    width: 60%;
    flex: none;
}

.l-ui-snippet__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.l-ui-snippet__value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.l-ui-snippet__input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.l-ui-snippet__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.l-ui-snippet__pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-warm);
}

.l-ui-snippet__pill--green {
    background: rgba(92, 184, 92, 0.15);
    color: var(--accent-green);
}

/* === SHOWCASE FRAME (interface mockups) === */
.l-showcase {
    position: relative;
    perspective: 1200px;
}

/* === PIPELINE NODE GRAPH === */
.l-pipe-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 24px auto 0;
    max-width: 650px;
}

.l-pipe-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.l-pipe-node__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.l-pipe-node__name {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 500;
}

.l-pipe-node--done .l-pipe-node__icon {
    border-color: rgba(92, 184, 92, 0.3);
    box-shadow: 0 0 10px rgba(92, 184, 92, 0.1);
}

.l-pipe-node--done .l-pipe-node__name {
    color: #5cb85c;
}

.l-pipe-node--active .l-pipe-node__icon {
    border-color: rgba(92, 184, 92, 0.5);
    box-shadow: 0 0 16px rgba(92, 184, 92, 0.2);
    animation: l-node-pulse 2s ease-in-out infinite;
}

.l-pipe-node--active .l-pipe-node__name {
    color: #5cb85c;
    font-weight: 600;
}

@keyframes l-node-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(92, 184, 92, 0.15);
    }

    50% {
        box-shadow: 0 0 20px rgba(92, 184, 92, 0.35);
    }
}

.l-pipe-node--pending .l-pipe-node__icon {
    opacity: 0.4;
}

.l-pipe-node--pending .l-pipe-node__name {
    opacity: 0.4;
}

.l-pipe-conn {
    flex: 1;
    min-width: 30px;
    max-width: 60px;
    height: 2px;
    position: relative;
    margin: 0 4px;
    margin-bottom: 18px;
}

.l-pipe-conn__line {
    position: absolute;
    inset: 0;
    background: rgba(92, 184, 92, 0.2);
    border-radius: 1px;
}

.l-pipe-conn--pending .l-pipe-conn__line {
    background: rgba(255, 255, 255, 0.06);
}

.l-pipe-conn__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5cb85c;
    top: -2px;
    box-shadow: 0 0 6px rgba(92, 184, 92, 0.6);
    animation: l-particle-flow 1.5s ease-in-out infinite;
}

@keyframes l-particle-flow {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 6px);
        opacity: 0;
    }
}

.l-pipe-conn:nth-child(4) .l-pipe-conn__particle {
    animation-delay: 0.4s;
}

.l-showcase-frame {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotateX(6deg) scale(0.95);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.l-showcase-frame.scrolled-in {
    transform: rotateX(0) scale(1);
}

.l-showcase-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(33, 33, 33, 0.6);
}

.l-showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.l-showcase-dot:nth-child(1) {
    background: #ff5f57;
}

.l-showcase-dot:nth-child(2) {
    background: #febc2e;
}

.l-showcase-dot:nth-child(3) {
    background: #28c840;
}

.l-showcase-body {
    padding: 20px;
    min-height: 340px;
    display: flex;
    gap: 16px;
}

/* Internal mockup sidebar */
.l-mock-sidebar {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.l-mock-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.l-mock-sidebar-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.l-mock-sidebar-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Internal mockup content area */
.l-mock-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.l-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.l-mock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.l-mock-toolbar {
    display: flex;
    gap: 6px;
}

.l-mock-toolbar-btn {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
}

.l-mock-toolbar-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Segment card mock */
.l-mock-segment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.l-mock-segment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
}

.l-mock-segment-pill {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-warm);
}

.l-mock-segment-toggles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.l-mock-segment-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.l-mock-toggle-track {
    width: 24px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.l-mock-toggle-track::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    position: absolute;
    top: 2px;
    left: 2px;
}

.l-mock-toggle-track.on {
    background: rgba(92, 184, 92, 0.3);
}

.l-mock-toggle-track.on::after {
    background: var(--accent-green);
    left: auto;
    right: 2px;
}

.l-mock-textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    min-height: 50px;
    font-style: italic;
}

.l-mock-sub-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* === TABS (matching app style) === */
.l-tab-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 48px;
}

.l-tab {
    padding: 7px 20px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all var(--transition);
}

.l-tab:hover {
    color: var(--text-secondary);
}

.l-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* === BENTO GRID === */
.l-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.l-bento-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
    transition: border-color 0.3s;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.l-bento-card:hover {
    border-color: var(--border-hover);
}

.l-bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.l-bento-card:hover::after {
    opacity: 1;
}

.l-bento-card--span2 {
    grid-column: span 2;
}

.l-bento-card--tall {
    grid-row: span 2;
}

.l-bento-card__label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.l-bento-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.l-bento-card__desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Bento card internal UI mockups */
.l-bento-ui {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* === GEO CARDS ROW === */
/* === GEO VIDEO COMPARISON === */
.l-geo-videos {
    display: flex;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 36px;
}

.l-geo-video {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.l-geo-video video {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.l-geo-video__label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    z-index: 2;
}

@media (max-width: 768px) {
    .l-geo-videos {
        flex-direction: column;
    }
}

/* === BEFORE/AFTER SLIDER === */
.l-ba-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: ew-resize;
    user-select: none;
    aspect-ratio: 1 / 1;
}

.l-ba-before,
.l-ba-after {
    position: absolute;
    inset: 0;
}

.l-ba-before img,
.l-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.l-ba-after {
    clip-path: inset(0 0 0 50%);
}

.l-ba-label {
    position: absolute;
    bottom: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.62rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.l-ba-label--before {
    left: 12px;
}

.l-ba-label--after {
    right: 12px;
}

.l-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.l-ba-handle__line {
    flex: 1;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.l-ba-handle__grip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    cursor: ew-resize;
}

/* === GEO ADAPTATION FLOW === */
.l-geo-flow {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.l-geo-source {
    width: 260px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    overflow: hidden;
}

.l-geo-source__topbar {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.l-geo-source__body {
    padding: 14px 16px;
}

/* Flow arrow */
.l-geo-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 80px;
}

.l-geo-arrow__line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--border), rgba(92, 184, 92, 0.4), var(--border));
    position: relative;
}

.l-geo-arrow__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5cb85c;
    animation: l-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(92, 184, 92, 0.4);
}

.l-geo-arrow__label {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5cb85c;
    font-weight: 600;
    white-space: nowrap;
}

/* Target cards */
.l-geo-targets {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.l-geo-target {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 14px 16px;
    transition: border-color 0.3s, transform 0.3s;
    border-left: 2px solid var(--border);
}

.l-geo-target:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.l-geo-target--br {
    border-left-color: rgba(0, 156, 59, 0.4);
}

.l-geo-target--tr {
    border-left-color: rgba(227, 10, 23, 0.4);
}

.l-geo-target--in {
    border-left-color: rgba(255, 153, 51, 0.4);
}

.l-geo-target--mx {
    border-left-color: rgba(0, 104, 71, 0.4);
}

.l-geo-target__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.l-geo-target__flag {
    font-size: 1.2rem;
}

.l-geo-target__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.l-geo-target__badge {
    margin-left: auto;
    font-size: 0.52rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.l-geo-target__preview {
    font-size: 0.6rem;
    color: #999;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 26px;
}

.l-geo-target__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.l-geo-tag {
    font-size: 0.48rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    font-weight: 500;
}

.l-geo-tag--changed {
    background: rgba(92, 184, 92, 0.1);
    color: #5cb85c;
}


/* === BENTO MICRO-INTERACTIONS === */

/* Character speech bubbles */
.l-char-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.l-char-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.l-char-card:hover img {
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.4);
}

.l-speech-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.55rem;
    font-style: italic;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    z-index: 10;
}

.l-speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.95);
}

.l-char-card:hover .l-speech-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* QC animated checkpoints */
.l-qc-list>div {
    transition: all 0.3s;
    padding: 3px 6px;
    border-radius: 4px;
}

#bentoQC:hover .l-qc-list>div:nth-child(2) {
    color: #5cb85c !important;
}

#bentoQC:hover .l-qc-list>div:nth-child(2) .l-anim-pulse {
    background: #5cb85c !important;
    animation: none;
}

#bentoQC:hover .l-qc-list>div:nth-child(3) {
    color: var(--accent-warm) !important;
}

#bentoQC:hover .l-qc-list>div:nth-child(3) span:first-child {
    background: var(--accent-warm) !important;
    animation: l-pulse 1.5s ease-in-out infinite;
}

/* Generator button hover */
.l-gen-btn:hover {
    background: rgba(92, 184, 92, 0.15) !important;
    border-color: rgba(92, 184, 92, 0.3) !important;
    color: #5cb85c !important;
}

/* Generator image stagger reveal */
.l-gen-img {
    transition: opacity 0.4s, transform 0.4s;
}

#bentoGenerator:hover .l-gen-img {
    opacity: 0.3;
}

#bentoGenerator:hover .l-gen-img:nth-child(1) {
    opacity: 1;
    transform: scale(1.03);
    transition-delay: 0s;
}

#bentoGenerator:hover .l-gen-img:nth-child(2) {
    opacity: 1;
    transform: scale(1.03);
    transition-delay: 0.1s;
}

#bentoGenerator:hover .l-gen-img:nth-child(3) {
    opacity: 1;
    transform: scale(1.03);
    transition-delay: 0.2s;
}

#bentoGenerator:hover .l-gen-img:nth-child(4) {
    opacity: 1;
    transform: scale(1.03);
    transition-delay: 0.3s;
}

/* === BENTO SPAN3 MODIFIER === */

/* Editor ghost cursor animation */
.l-ghost-cursor {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    filter: drop-shadow(0 0 6px rgba(92, 184, 92, 0.4));
}

.l-ghost-cursor.is-active {
    opacity: 1;
}

.l-editor-body:hover .l-ghost-cursor,
.l-editor-body.is-touched .l-ghost-cursor {
    opacity: 0 !important;
}

.l-ghost-target {
    position: relative;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s;
}

.l-ghost-target.is-selected {
    background: rgba(92, 184, 92, 0.2);
    color: #a8e6a8;
    box-shadow: 0 0 0 1px rgba(92, 184, 92, 0.15);
}

.l-editor-body:hover .l-ghost-target.is-selected,
.l-editor-body.is-touched .l-ghost-target.is-selected {
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.l-ghost-line {
    position: relative;
}

.l-bento--3col {
    grid-template-columns: repeat(3, 1fr);
}

.l-bento-card--span3 {
    grid-column: span 3;
}

/* === SCRIPT EDITOR DEMO === */
.l-editor-demo {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
}

.l-editor-topbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.l-editor-body {
    padding: 20px 24px;
    user-select: text;
    cursor: text;
    position: relative;
}

.l-editor-line {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.6;
    margin: 0;
    transition: background 0.2s;
}

.l-editor-line:last-child {
    border-bottom: none;
}

.l-editor-line:hover {
    background: rgba(255, 255, 255, 0.01);
}

.l-editor-time {
    font-size: 0.6rem;
    color: #555;
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-width: 32px;
    padding-top: 2px;
    flex-shrink: 0;
}

.l-editor-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Inline highlights */
.l-editor-highlight {
    position: relative;
    padding: 1px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.l-editor-highlight--insert {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.3);
}

.l-editor-highlight--emotion {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
}

.l-editor-highlight--pause {
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    letter-spacing: 3px;
}

.l-editor-highlight:hover {
    filter: brightness(1.3);
}

.l-editor-highlight::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 4px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.55rem;
    font-style: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 10;
}

.l-editor-highlight:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Floating toolbar */
.l-editor-toolbar {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    z-index: 100;
}

.l-editor-toolbar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.l-toolbar-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #bbb;
    font-size: 0.62rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.l-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.l-toolbar-btn--accent {
    color: #5cb85c;
}

.l-toolbar-btn--accent:hover {
    background: rgba(92, 184, 92, 0.15);
    color: #7ed67e;
}

.l-toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

/* === AI BRIEF FLOW === */
.l-brief-flow {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 36px;
}

.l-brief-step {
    flex: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.l-brief-step__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(92, 184, 92, 0.1);
    color: #5cb85c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.l-brief-step__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.l-brief-step__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.l-brief-step__ui {
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 12px;
}

.l-brief-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
}

/* === COMPARISON TABLE === */
.l-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.l-compare-table th {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.l-compare-table td {
    font-size: 0.84rem;
    color: var(--text-secondary);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
}

.l-compare-table tr:last-child td {
    border-bottom: none;
}

.l-compare-table .l-val-fast {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-green);
}

/* === STATS ROW === */
.l-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.l-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.l-stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.l-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* === ROI CALCULATOR === */
.l-roi-calc {
    margin-top: 36px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.l-roi-slider-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.l-roi-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.l-roi-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.l-roi-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.l-roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5cb85c;
    box-shadow: 0 0 12px rgba(92, 184, 92, 0.4);
    cursor: grab;
    transition: box-shadow 0.2s;
}

.l-roi-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(92, 184, 92, 0.6);
}

.l-roi-value {
    min-width: 48px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(92, 184, 92, 0.1);
    border: 1px solid rgba(92, 184, 92, 0.2);
    color: #5cb85c;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.l-roi-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.l-roi-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s, border-color 0.3s;
}

.l-roi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.l-roi-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.l-roi-num {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s;
}

.l-roi-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.l-roi-card--accent {
    border-color: rgba(92, 184, 92, 0.2);
    background: rgba(92, 184, 92, 0.04);
}

.l-roi-card--accent .l-roi-num {
    color: #5cb85c;
}

/* === CTA === */
.l-cta-section {
    text-align: center;
    padding: 120px 32px;
}

/* Mesh gradient CTA */
.l-cta-mesh {
    position: relative;
    overflow: visible;
}

.l-mesh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.5;
}

.l-mesh-blob {
    position: absolute;
    border-radius: 50%;
}

.l-mesh-blob--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 184, 92, 0.6), transparent 70%);
    top: -10%;
    left: 10%;
    animation: l-mesh-drift-1 12s ease-in-out infinite;
}

.l-mesh-blob--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
    top: 20%;
    right: 5%;
    animation: l-mesh-drift-2 15s ease-in-out infinite;
}

.l-mesh-blob--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
    bottom: -15%;
    left: 30%;
    animation: l-mesh-drift-3 10s ease-in-out infinite;
}

.l-mesh-blob--4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.3), transparent 70%);
    bottom: 10%;
    right: 25%;
    animation: l-mesh-drift-4 8s ease-in-out infinite;
}

@keyframes l-mesh-drift-1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, 20px);
    }

    66% {
        transform: translate(-20px, 10px);
    }
}

@keyframes l-mesh-drift-2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-25px, 15px);
    }

    66% {
        transform: translate(15px, -25px);
    }
}

@keyframes l-mesh-drift-3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes l-mesh-drift-4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, 15px);
    }
}

.l-cta-content {
    position: relative;
    z-index: 1;
}

/* CTA button base */
.l-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-body);
    background: var(--text-primary);
    border: none;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

/* Glassmorphism CTA button */
.l-cta-btn--glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(92, 184, 92, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.l-cta-btn--glass:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 30px rgba(92, 184, 92, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
}

.l-cta-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* === FOOTER === */
.l-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.l-footer-links {
    display: flex;
    gap: 20px;
}

.l-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* === SCROLL REVEAL === */
.l-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.l-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.l-reveal--d1 {
    transition-delay: 0.08s;
}

.l-reveal--d2 {
    transition-delay: 0.16s;
}

.l-reveal--d3 {
    transition-delay: 0.24s;
}

.l-reveal--d4 {
    transition-delay: 0.32s;
}

/* === AVATAR IMAGES === */
.l-avatar {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.l-avatar--sm {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.l-avatar--md {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.l-avatar--thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 4px;
    object-fit: cover;
}

/* === SNIPPET ANIMATIONS === */
@keyframes l-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes l-shimmer {
    0% {
        background-position: -200% 0;
    }

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

@keyframes l-typing {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes l-progress {
    0% {
        width: 0;
    }

    100% {
        width: var(--progress, 72%);
    }
}

@keyframes l-countup {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

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

.l-anim-pulse {
    animation: l-pulse 2s ease infinite;
}

.l-anim-shimmer {
    background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: l-shimmer 2.5s infinite;
}

.l-anim-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    animation: l-progress 2s ease-out forwards;
}

.l-anim-typing {
    overflow: hidden;
    white-space: nowrap;
    animation: l-typing 3s steps(40) infinite alternate;
    border-right: 1px solid var(--text-muted);
}

/* Interactive snippet hover */
.l-bento-card:hover .l-bento-ui {
    border-color: var(--border-hover);
}

.l-mock-segment:hover {
    border-color: var(--border-hover);
}

.l-mock-toolbar-btn:hover {
    border-color: var(--border-hover);
    cursor: pointer;
}

/* === CONTAINER SCROLL ANIMATION === */
.l-scroll-section {
    position: relative;
    padding: 80px 0 240px;
    overflow: visible;
}

.l-scroll-section .l-center {
    position: relative;
    z-index: 2;
    padding: 0 32px;
    max-width: 1140px;
    margin: 0 auto;
}

.l-scroll-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1400px;
    padding: 60px 32px 0;
}

.l-scroll-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: rotateX(25deg) scale(0.88);
    transform-origin: center top;
    will-change: transform;
}

.l-scroll-frame--animated {
    transform: rotateX(0deg) scale(1);
}

.l-scroll-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(33, 33, 33, 0.7);
}

.l-scroll-topbar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.l-scroll-topbar .dot:nth-child(1) {
    background: #ff5f57;
}

.l-scroll-topbar .dot:nth-child(2) {
    background: #febc2e;
}

.l-scroll-topbar .dot:nth-child(3) {
    background: #28c840;
}

.l-scroll-content {
    position: relative;
}

.l-scroll-content img {
    display: block;
    width: 100%;
    height: auto;
}

/* Gradient overlay at bottom of scroll frame */
.l-scroll-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-body) 10%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Stats row that sits over the bottom of the scroll frame */
.l-scroll-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 32px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .l-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .l-bento--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .l-bento-card--span3 {
        grid-column: span 2;
    }

    .l-geo-flow {
        flex-direction: column;
    }

    .l-geo-source {
        width: 100%;
    }

    .l-geo-arrow {
        width: auto;
        flex-direction: row;
    }

    .l-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .l-hero .l-heading {
        font-size: 2.2rem;
    }

    .l-brief-flow {
        flex-direction: column;
    }

    .l-brief-arrow {
        width: auto;
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .l-bento {
        grid-template-columns: 1fr;
    }

    .l-bento-card--span2 {
        grid-column: span 1;
    }

    .l-bento-card--span3 {
        grid-column: span 1;
    }

    .l-geo-targets {
        grid-template-columns: 1fr;
    }

    .l-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .l-section {
        padding: 64px 20px;
    }

    .l-hero .l-heading {
        font-size: 1.8rem;
    }

    .l-heading {
        font-size: 1.6rem;
    }

    .l-nav-links {
        display: none;
    }

    .l-showcase-body {
        flex-direction: column;
    }

    .l-mock-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
}