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

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

        :root {
            --bg: #f5f5f0;
            --dark: #0a0a0a;
            --accent: #ff0;
            --grid: rgba(10, 10, 10, 0.05);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background: var(--bg);
            color: var(--dark);
            overflow-x: hidden;
            font-size: 14px;
            letter-spacing: -0.02em;
        }

        a,
        button,
        select,
        summary,
        .ingredient-chip,
        .remove-item,
        .scan-optimize-btn,
        .heatmap-toggle {
            cursor: pointer;
        }

        input,
        textarea {
            cursor: text;
        }

        .grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            background-image:
                linear-gradient(var(--grid) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid) 1px, transparent 1px);
            background-size: 100px 100px;
            opacity: 0.5;
        }

        .floating-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5;
            overflow: hidden;
            mix-blend-mode: multiply;
        }

        .floating-shape {
            position: absolute;
            opacity: 0.08;
            animation: float-across 30s infinite linear;
        }

        .float-circle {
            width: 400px;
            height: 400px;
            border: 2px solid var(--dark);
            border-radius: 50%;
            top: 20%;
            left: -400px;
            animation-duration: 35s;
        }

        .float-square {
            width: 350px;
            height: 350px;
            border: 2px solid var(--dark);
            top: 60%;
            left: -350px;
            animation-duration: 40s;
            animation-delay: 5s;
            transform: rotate(45deg);
        }

        .float-triangle {
            width: 0;
            height: 0;
            border-left: 200px solid transparent;
            border-right: 200px solid transparent;
            border-bottom: 346px solid rgba(10, 10, 10, 0.08);
            top: 40%;
            left: -400px;
            animation-duration: 45s;
            animation-delay: 10s;
        }

        .float-line-group {
            top: 10%;
            left: -300px;
            animation-duration: 38s;
            animation-delay: 3s;
        }

        .float-line {
            width: 300px;
            height: 2px;
            background: var(--dark);
            margin: 30px 0;
            opacity: 0.08;
        }

        .float-hexagon {
            width: 300px;
            height: 300px;
            top: 70%;
            left: -300px;
            animation-duration: 42s;
            animation-delay: 8s;
        }

        .float-hexagon::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: var(--dark);
            opacity: 0.08;
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
        }

        .float-cross {
            width: 350px;
            height: 350px;
            top: 30%;
            left: -350px;
            animation-duration: 37s;
            animation-delay: 12s;
        }

        .float-cross::before,
        .float-cross::after {
            content: '';
            position: absolute;
            background: var(--dark);
            opacity: 0.08;
        }

        .float-cross::before {
            width: 2px;
            height: 100%;
            left: 50%;
            transform: translateX(-50%);
        }

        .float-cross::after {
            width: 100%;
            height: 2px;
            top: 50%;
            transform: translateY(-50%);
        }

        .float-dots {
            top: 50%;
            left: -400px;
            animation-duration: 50s;
            animation-delay: 15s;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }

        .dot {
            width: 10px;
            height: 10px;
            background: var(--dark);
            border-radius: 50%;
            opacity: 0.08;
        }

        .float-vertical {
            animation: float-vertical 35s infinite linear;
        }

        .float-rect-v {
            width: 280px;
            height: 120px;
            border: 2px solid var(--dark);
            opacity: 0.08;
            top: -150px;
            left: 70%;
            animation-delay: 7s;
        }

        .float-ellipse-v {
            width: 320px;
            height: 180px;
            border: 2px solid var(--dark);
            border-radius: 50%;
            opacity: 0.08;
            top: -300px;
            left: 30%;
            animation-delay: 2s;
        }

        @keyframes float-across {
            0% {
                transform: translateX(0) translateY(0) rotate(0deg) scale(1);
            }

            25% {
                transform: translateX(35vw) translateY(-15vh) rotate(90deg) scale(1.1);
            }

            50% {
                transform: translateX(70vw) translateY(15vh) rotate(180deg) scale(0.9);
            }

            75% {
                transform: translateX(105vw) translateY(-10vh) rotate(270deg) scale(1.05);
            }

            100% {
                transform: translateX(140vw) translateY(0) rotate(360deg) scale(1);
            }
        }

        @keyframes float-vertical {
            0% {
                transform: translateY(0) rotate(0deg);
            }

            100% {
                transform: translateY(calc(100vh + 300px)) rotate(180deg);
            }
        }

        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 28px 44px;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(180deg, var(--bg) 0%, rgba(245, 245, 240, 0.95) 50%, rgba(245, 245, 240, 0) 100%);
            backdrop-filter: blur(10px);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: inherit;
        }

        .logo img {
            height: 40px;
            width: auto;
        }

        .logo span {
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            opacity: 0.6;
        }

        .nav-items {
            display: flex;
            gap: 26px;
            list-style: none;
        }

        .nav-items a {
            color: var(--dark);
            text-decoration: none;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            position: relative;
        }

        .nav-items a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 1px;
            background: var(--dark);
            transition: width .25s ease;
        }

        .nav-items a:hover::after {
            width: 100%;
        }

        .nav-cta {
            text-decoration: none;
            color: var(--bg);
            background: var(--dark);
            border: 1px solid var(--dark);
            padding: 10px 14px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .nav-toggle {
            display: none;
            border: 1px solid var(--dark);
            background: rgba(245, 245, 240, 0.92);
            color: var(--dark);
            padding: 10px 12px;
            font-size: 10px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 78px;
            left: 18px;
            right: 18px;
            z-index: 110;
            border: 1px solid var(--dark);
            background: rgba(245, 245, 240, 0.98);
            padding: 14px;
            gap: 10px;
            box-shadow: 0 14px 34px rgba(10, 10, 10, 0.14);
        }

        .mobile-nav.is-open {
            display: grid;
        }

        .mobile-nav a {
            display: block;
            text-decoration: none;
            color: var(--dark);
            border: 1px solid rgba(10, 10, 10, 0.14);
            padding: 12px 14px;
            font-size: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .mobile-nav .mobile-nav-cta {
            background: var(--dark);
            color: var(--bg);
            border-color: var(--dark);
        }

        .urgency-top {
            position: fixed;
            left: 0;
            right: 0;
            top: 92px;
            z-index: 90;
            background: var(--dark);
            color: var(--bg);
            text-align: center;
            padding: 8px 12px;
            font-size: 11px;
            letter-spacing: .1em;
            text-transform: uppercase;
        }

        .time-display {
            position: fixed;
            bottom: 60px;
            left: 34px;
            font-size: 12px;
            font-weight: 300;
            letter-spacing: 0.05em;
            z-index: 100;
            font-variant-numeric: tabular-nums;
        }

        .floating-badge {
            position: fixed;
            top: 50%;
            right: 60px;
            transform: translateY(-50%) rotate(-90deg);
            font-size: 11px;
            letter-spacing: 0.2em;
            opacity: 0.5;
            z-index: 100;
            font-weight: 400;
        }

        .cursor-dot {
            width: 20px;
            height: 20px;
            border: 1px solid var(--dark);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 200;
            transform: translate(-50%, -50%);
            mix-blend-mode: difference;
        }

        .heatmap-toggle {
            position: fixed;
            right: 22px;
            bottom: 98px;
            z-index: 121;
            border: 1px solid var(--dark);
            background: var(--bg);
            color: var(--dark);
            font-size: 11px;
            letter-spacing: .09em;
            text-transform: uppercase;
            padding: 8px 10px;
            cursor: pointer;
            display: none;
        }

        .heatmap-toggle.is-visible {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .heatmap-overlay {
            position: fixed;
            inset: 0;
            z-index: 122;
            pointer-events: none;
            display: none;
        }

        .heatmap-overlay.is-visible {
            display: block;
        }

        .heatmap-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .heatmap-spot {
            position: absolute;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            background: radial-gradient(circle, rgba(255, 64, 64, 0.58) 0%, rgba(255, 168, 64, 0.34) 38%, rgba(255, 229, 122, 0.16) 68%, rgba(255, 229, 122, 0) 100%);
            mix-blend-mode: multiply;
        }

        .heatmap-panel {
            position: absolute;
            right: 22px;
            top: 92px;
            width: min(360px, calc(100vw - 32px));
            border: 1px solid var(--dark);
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 14px 30px rgba(10, 10, 10, 0.14);
            pointer-events: auto;
            padding: 12px;
        }

        .heatmap-panel h4 {
            margin: 0 0 8px 0;
            font-size: 12px;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .heatmap-stats {
            margin: 0 0 8px 0;
            font-size: 12px;
            line-height: 1.5;
            opacity: .82;
        }

        .heatmap-insights {
            margin: 0;
            padding-left: 16px;
            font-size: 12px;
            line-height: 1.45;
            max-height: 180px;
            overflow: auto;
        }

        .heatmap-actions {
            margin-top: 10px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .heatmap-actions button {
            border: 1px solid var(--dark);
            background: var(--bg);
            color: var(--dark);
            font-size: 10px;
            letter-spacing: .08em;
            text-transform: uppercase;
            padding: 6px 8px;
            cursor: pointer;
        }

        .hero {
            min-height: calc(100vh - 42px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 116px 24px 40px;
            position: relative;
            z-index: 10;
        }

        .hero-wrap {
            max-width: 1480px;
            width: 100%;
            display: block;
        }

        .hero-left,
        .hero-right {
            background: transparent;
            padding: 0;
            min-height: 0;
            position: relative;
            overflow: visible;
        }

        .hero-left {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            max-width: none;
        }

        .hero-right {
            display: none;
        }

        .hero-right::before {
            content: none;
        }

        .hero-right::after {
            content: none;
        }

        @keyframes swarmDrift {
            0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
            50% { transform: translate3d(-2.5%, 2%, 0) scale(1.04); }
        }

        .chip {
            display: inline-block;
            border: 1px solid var(--dark);
            padding: 5px 9px;
            font-size: 10px;
            letter-spacing: .1em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .hero-title {
            font-size: clamp(2.3rem, 4.9vw, 5.6rem);
            font-weight: 800;
            line-height: 0.9;
            letter-spacing: -0.045em;
            margin-bottom: 10px;
            max-width: 11.8ch;
        }

        .hero-detail-grid {
            margin-top: 6px;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
            gap: 28px;
            align-items: end;
            max-width: 1320px;
        }

        .hero-copy-block {
            max-width: 46ch;
        }

        .hero-sub {
            font-size: 18px;
            line-height: 1.36;
            opacity: .88;
            max-width: 38ch;
        }

        .hero-focus {
            margin-top: 12px;
            font-size: 18px;
            font-weight: 700;
            line-height: 1.2;
        }

        .hero-points {
            margin-top: 0;
            display: grid;
            gap: 10px;
            max-width: none;
            padding: 16px 18px;
            border: 1px solid rgba(10, 10, 10, 0.12);
            background: rgba(255, 255, 255, 0.62);
            backdrop-filter: blur(8px);
        }

        .hero-points li {
            list-style: none;
            display: grid;
            gap: 4px;
            font-size: 14px;
            line-height: 1.35;
            opacity: .88;
        }

        .hero-points li::before {
            content: none;
        }

        .hero-point-kicker {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .16em;
            opacity: .56;
        }

        .hero-point-text {
            display: block;
        }

        .hero-cta {
            margin-top: 14px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .hero-live-scores {
            margin-top: 8px;
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 6px;
            max-width: 1320px;
        }

        .live-score {
            border: 1px solid rgba(10, 10, 10, 0.16);
            background: rgba(255, 255, 255, 0.7);
            padding: 5px 6px;
            display: grid;
            gap: 4px;
        }

        .live-score span {
            font-size: 8px;
            letter-spacing: .11em;
            text-transform: uppercase;
            opacity: .7;
        }

        .live-score-track {
            height: 5px;
            border: 1px solid rgba(10, 10, 10, 0.18);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            overflow: hidden;
        }

        .live-score-track i {
            display: block;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, rgba(13, 21, 33, 0.95), rgba(65, 154, 255, 0.85));
            animation: scoreFill 1.6s ease-out forwards;
            animation-delay: .1s;
        }

        @keyframes scoreFill {
            from { width: 0; }
            to { width: var(--target, 72%); }
        }

        .btn {
            text-decoration: none;
            border: 1px solid var(--dark);
            color: var(--dark);
            background: transparent;
            padding: 10px 14px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .09em;
            transition: all .25s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn.primary {
            background: var(--dark);
            color: var(--bg);
        }

        .btn:hover {
            transform: translateY(-2px);
        }

        .hero-metrics {
            margin-top: 12px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2px;
            background: var(--dark);
            max-width: 1320px;
        }

        .metric {
            background: var(--bg);
            padding: 6px;
            min-height: 48px;
        }

        .metric strong {
            display: block;
            font-size: 14px;
        }

        .metric span {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: .09em;
            opacity: .7;
        }

        .builder-bg {
            display: none;
        }

        .builder-bg::before {
            content: none;
        }

        .builder-bg::after {
            content: none;
        }

        .module-lab {
            position: absolute;
            inset: 14px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow: visible;
            border: 0;
            border-radius: 0;
            background: transparent;
            padding: 0;
            box-shadow: none;
        }

        .before-after-showcase {
            position: absolute;
            inset: 14px;
            z-index: 2;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            gap: 10px;
            border: 1px solid rgba(24, 35, 50, 0.16);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.985);
            box-shadow: 0 18px 34px rgba(12, 23, 38, 0.12);
            padding: 12px;
        }

        .hero-preview-compact {
            position: absolute;
            inset: 14px;
            z-index: 2;
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 10px;
            border: 1px solid rgba(24, 35, 50, 0.16);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.985);
            box-shadow: 0 18px 34px rgba(12, 23, 38, 0.12);
            padding: 12px;
        }

        .hero-preview-visual {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(24, 36, 52, 0.16);
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 238, 232, 0.98));
        }

        .hero-preview-visual img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: top center;
            display: block;
            background: #f1efe8;
        }

        .hero-preview-caption {
            display: grid;
            gap: 10px;
            border: 1px solid rgba(24, 36, 52, 0.16);
            border-radius: 14px;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.98);
        }

        .hero-preview-caption strong {
            font-size: 19px;
            line-height: 1.1;
        }

        .hero-preview-caption p {
            margin: 0;
            font-size: 13px;
            line-height: 1.55;
            color: rgba(24, 34, 50, 0.78);
        }

        .before-after-head {
            border: 1px solid rgba(24, 36, 52, 0.15);
            background: rgba(255, 255, 255, 0.98);
            padding: 12px 14px;
            border-radius: 12px;
        }

        .before-after-head h3 {
            margin: 0 0 6px 0;
            font-size: 17px;
            color: #060a12;
            letter-spacing: .01em;
        }

        .before-after-head p {
            margin: 0;
            font-size: 11px;
            line-height: 1.55;
            color: rgba(24, 34, 50, 0.78);
        }

        .before-after-stage {
            position: relative;
            min-height: 0;
            height: 100%;
            border: 1px solid rgba(24, 36, 52, 0.16);
            border-radius: 16px;
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 238, 232, 0.98));
        }

        .before-after-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: top center;
            display: block;
            background: #f1efe8;
        }

        .before-after-image.before {
            object-position: top left;
        }

        .before-after-image.before-after-after {
            object-position: top right;
        }

        .before-after-after {
            clip-path: inset(0 0 0 var(--split, 52%));
        }

        .before-after-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(180deg, rgba(3, 8, 18, 0.04), rgba(3, 8, 18, 0.24)),
                linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04));
        }

        .before-after-label {
            position: absolute;
            top: 8px;
            z-index: 3;
            padding: 7px 10px;
            border: 1px solid rgba(10, 10, 10, 0.14);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            font-size: 9px;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: rgba(12, 19, 31, 0.84);
            transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .before-after-label.active {
            background: rgba(8, 14, 22, 0.92);
            border-color: rgba(132, 214, 255, 0.54);
            color: rgba(214, 238, 255, 0.98);
            box-shadow: 0 10px 24px rgba(7, 14, 24, 0.22);
            transform: translateY(-1px);
        }

        .before-after-label.before {
            left: 16px;
        }

        .before-after-label.after {
            right: 16px;
            background: rgba(10, 15, 23, 0.92);
            color: rgba(240, 245, 249, 0.92);
            border-color: rgba(255, 255, 255, 0.16);
        }

        .before-after-line {
            position: absolute;
            top: 0;
            bottom: 0;
            left: var(--split-px, 52%);
            width: 2px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 0 0 1px rgba(13, 21, 34, 0.2), 0 0 18px rgba(255, 255, 255, 0.45);
            transform: translateX(-50%);
            z-index: 2;
            pointer-events: none;
        }

        .before-after-handle {
            position: absolute;
            left: var(--handle-left, calc(52% - 22px));
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.75);
            background: rgba(8, 14, 22, 0.86);
            color: rgba(247, 250, 252, 0.94);
            font-size: 11px;
            letter-spacing: .12em;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
            pointer-events: none;
            box-shadow: 0 12px 26px rgba(8, 12, 18, 0.22);
        }

        .before-after-range {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: ew-resize;
            z-index: 4;
        }

        .before-after-footer {
            display: grid;
            gap: 10px;
        }

        .before-after-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .before-after-snap {
            border: 1px solid rgba(24, 36, 52, 0.16);
            border-radius: 999px;
            background: rgba(245, 248, 252, 0.96);
            color: rgba(24, 34, 50, 0.88);
            font-size: 11px;
            letter-spacing: .1em;
            text-transform: uppercase;
            padding: 10px 12px;
            cursor: pointer;
            transition: border-color .2s ease, transform .2s ease, background .2s ease;
        }

        .before-after-snap:hover {
            border-color: rgba(12, 22, 39, 0.34);
            background: rgba(255, 255, 255, 0.98);
            transform: translateY(-1px);
        }

        .before-after-snap.active {
            border-color: rgba(132, 214, 255, 0.42);
            background: rgba(8, 14, 22, 0.92);
            color: rgba(214, 238, 255, 0.98);
            box-shadow: 0 12px 22px rgba(7, 14, 24, 0.18);
        }

        .before-after-note {
            display: grid;
            gap: 6px;
            padding: 12px 14px;
            border: 1px solid rgba(24, 36, 52, 0.16);
            border-radius: 12px;
            background: rgba(245, 248, 252, 0.96);
        }

        .before-after-note strong {
            font-size: 12px;
            letter-spacing: .09em;
            text-transform: uppercase;
        }

        .before-after-note p {
            margin: 0;
            font-size: 12px;
            line-height: 1.55;
            color: rgba(24, 34, 50, 0.76);
        }

        .before-after-footer .btn {
            width: 100%;
        }

        .module-tabs {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .module-tab {
            border: 1px solid rgba(132, 214, 255, 0.45);
            background: rgba(9, 22, 42, 0.82);
            color: rgba(214, 238, 255, 0.92);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            padding: 8px 10px;
            transition: transform .2s ease, border-color .2s ease, background .2s ease;
        }

        .module-tab:hover {
            transform: translateY(-1px);
            border-color: rgba(143, 239, 190, 0.72);
        }

        .module-tab.active {
            background: linear-gradient(140deg, rgba(28, 66, 52, 0.92), rgba(14, 40, 33, 0.9));
            border-color: rgba(143, 239, 190, 0.8);
            color: #edfff7;
        }

        .module-panel {
            display: none;
            border: 1px solid rgba(24, 35, 50, 0.18);
            background: rgba(255, 255, 255, 0.985);
            box-shadow: 0 18px 34px rgba(12, 23, 38, 0.12);
            padding: 12px;
            gap: 10px;
            min-height: 0;
            overflow: auto;
            border-radius: 18px;
        }

        .module-panel.active {
            display: grid;
        }

        .module-head {
            border: 1px solid rgba(24, 36, 52, 0.15);
            background: rgba(255, 255, 255, 0.98);
            padding: 10px 12px;
            border-radius: 10px;
        }

        .module-kicker {
            font-size: 10px;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: rgba(35, 47, 63, 0.8);
            margin-bottom: 4px;
        }

        .module-head h3 {
            font-size: 17px;
            color: #060a12;
            margin-bottom: 4px;
            letter-spacing: .01em;
        }

        .module-head p {
            font-size: 11px;
            line-height: 1.45;
            color: rgba(24, 34, 50, 0.78);
        }

        .module-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .ingredient-pool,
        .shaker-zone {
            min-height: 178px;
            border: 1px solid rgba(129, 211, 255, 0.42);
            background: rgba(8, 18, 34, 0.86);
            padding: 10px;
        }

        .ingredient-pool {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-content: start;
            gap: 8px;
            background:
                radial-gradient(circle at 18% 18%, rgba(94, 78, 255, 0.17), transparent 40%),
                radial-gradient(circle at 82% 74%, rgba(77, 214, 255, 0.14), transparent 42%),
                rgba(8, 18, 34, 0.9);
        }

        .ingredient-chip {
            border: 1px solid rgba(148, 223, 255, 0.45);
            background: linear-gradient(160deg, rgba(18, 38, 66, 0.92), rgba(12, 29, 53, 0.92));
            color: #eaf8ff;
            font-size: 11px;
            letter-spacing: .03em;
            padding: 9px 8px;
            text-align: left;
            cursor: grab;
            user-select: none;
            transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
            display: grid;
            grid-template-columns: 24px 1fr;
            align-items: center;
            gap: 8px;
            border-radius: 8px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .ingredient-chip:hover {
            transform: translateY(-1px);
            border-color: rgba(139, 243, 196, 0.8);
            box-shadow: 0 8px 16px rgba(7, 15, 31, 0.42);
        }

        .ingredient-chip.active {
            border-color: rgba(139, 243, 196, 0.72);
            background: linear-gradient(165deg, rgba(25, 66, 54, 0.92), rgba(16, 42, 37, 0.92));
            box-shadow: 0 0 0 1px rgba(120, 233, 181, 0.26), 0 10px 18px rgba(8, 19, 28, 0.46);
        }

        .ingredient-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid rgba(235, 248, 255, 0.42);
            background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.22) 58%, rgba(255, 255, 255, 0));
            box-shadow: 0 0 12px rgba(124, 214, 255, 0.4);
        }

        .ingredient-copy {
            min-width: 0;
        }

        .ingredient-name {
            display: block;
            font-size: 11px;
            color: #eefaff;
            line-height: 1.2;
            letter-spacing: .02em;
        }

        .ingredient-note {
            display: block;
            margin-top: 2px;
            font-size: 9px;
            color: rgba(188, 229, 255, 0.84);
            letter-spacing: .03em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ingredient-chip[data-ingredient="citron"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(255, 247, 180, 0.95), rgba(250, 221, 79, 0.62) 58%, rgba(242, 201, 36, 0.24));
        }
        .ingredient-chip[data-ingredient="menthe"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(190, 255, 223, 0.95), rgba(93, 218, 154, 0.65) 58%, rgba(49, 177, 113, 0.24));
        }
        .ingredient-chip[data-ingredient="gingembre"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(255, 225, 176, 0.95), rgba(255, 171, 95, 0.65) 58%, rgba(217, 105, 42, 0.24));
        }
        .ingredient-chip[data-ingredient="fruits-rouges"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(255, 197, 225, 0.95), rgba(255, 95, 164, 0.65) 58%, rgba(191, 46, 101, 0.24));
        }
        .ingredient-chip[data-ingredient="concombre"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(212, 255, 214, 0.95), rgba(129, 236, 131, 0.65) 58%, rgba(69, 184, 92, 0.24));
        }
        .ingredient-chip[data-ingredient="basilic"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(210, 255, 206, 0.95), rgba(102, 210, 116, 0.65) 58%, rgba(51, 145, 67, 0.24));
        }
        .ingredient-chip[data-ingredient="tonic"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(216, 239, 255, 0.95), rgba(133, 182, 255, 0.62) 58%, rgba(72, 124, 214, 0.24));
        }
        .ingredient-chip[data-ingredient="ananas"] .ingredient-icon {
            background: radial-gradient(circle at 30% 30%, rgba(255, 238, 175, 0.95), rgba(255, 201, 92, 0.62) 58%, rgba(232, 151, 38, 0.24));
        }

        .shaker-zone {
            position: relative;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .shaker-zone.is-dragover {
            border-color: rgba(145, 242, 190, 0.8);
            box-shadow: inset 0 0 18px rgba(74, 224, 174, 0.22);
        }

        .shaker-zone.is-mixing {
            animation: shakerMix .6s ease-in-out 3;
        }

        .shaker-title {
            font-size: 10px;
            letter-spacing: .09em;
            text-transform: uppercase;
            color: rgba(200, 233, 255, 0.9);
            margin-bottom: 9px;
        }

        .shaker-list {
            list-style: none;
            display: grid;
            gap: 7px;
        }

        .shaker-item {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            border: 1px solid rgba(132, 214, 255, 0.38);
            background: rgba(9, 23, 43, 0.9);
            color: #eff8ff;
            font-size: 11px;
        }

        .remove-item {
            border: 1px solid rgba(141, 229, 255, 0.42);
            background: rgba(12, 32, 54, 0.88);
            color: rgba(208, 236, 255, 0.94);
            font-size: 10px;
            letter-spacing: .08em;
            text-transform: uppercase;
            padding: 4px 6px;
        }

        .shaker-empty {
            font-size: 11px;
            color: rgba(191, 227, 251, 0.8);
            line-height: 1.45;
        }

        .module-actions {
            display: grid;
            grid-template-columns: auto auto 1fr;
            align-items: center;
            gap: 8px;
        }

        .mix-btn,
        .mix-reset {
            border: 1px solid rgba(131, 217, 255, 0.58);
            color: #eff8ff;
            background: linear-gradient(120deg, rgba(78, 110, 255, 0.32), rgba(54, 217, 255, 0.24));
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .09em;
            padding: 10px 11px;
            white-space: nowrap;
            transition: transform .2s ease, filter .2s ease;
        }

        .mix-reset {
            background: rgba(12, 27, 48, 0.86);
        }

        .mix-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .mix-btn:hover:not(:disabled),
        .mix-reset:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        .mix-status {
            font-size: 10px;
            line-height: 1.4;
            letter-spacing: .04em;
            color: rgba(205, 236, 255, 0.92);
        }

        .mix-result {
            border: 1px solid rgba(133, 217, 255, 0.44);
            background: rgba(8, 18, 34, 0.82);
            padding: 10px 12px;
            display: grid;
            grid-template-rows: auto auto 1fr auto;
            gap: 5px;
        }

        .mix-result-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .1em;
            color: rgba(201, 235, 255, 0.88);
        }

        .mix-result-name {
            font-size: 19px;
            letter-spacing: .01em;
            color: #f0fbff;
        }

        .mix-result-text {
            font-size: 11px;
            line-height: 1.5;
            color: rgba(212, 237, 255, 0.92);
        }

        .mix-story {
            font-size: 11px;
            line-height: 1.55;
            color: rgba(219, 241, 255, 0.9);
            padding: 6px 8px;
            border: 1px solid rgba(138, 220, 255, 0.34);
            background: rgba(9, 24, 45, 0.72);
            border-radius: 8px;
        }

        .mix-result-meta {
            font-size: 10px;
            letter-spacing: .05em;
            color: rgba(176, 226, 255, 0.82);
        }

        .module-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .module-field {
            display: grid;
            gap: 4px;
        }

        .module-field label {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: .09em;
            color: rgba(205, 236, 255, 0.84);
        }

        .module-select,
        .module-input,
        .module-textarea {
            width: 100%;
            border: 1px solid rgba(131, 217, 255, 0.42);
            background: rgba(10, 24, 44, 0.82);
            color: #eef9ff;
            padding: 8px 9px;
            font-size: 11px;
            letter-spacing: .02em;
            outline: none;
        }

        .module-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .module-field.full {
            grid-column: 1 / -1;
        }

        .module-run {
            border: 1px solid rgba(8, 12, 18, 0.96);
            color: #f2f5f8;
            background: #0a0f17;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .09em;
            padding: 10px 11px;
            transition: transform .2s ease, filter .2s ease;
        }

        .module-run:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        .module-status {
            font-size: 10px;
            letter-spacing: .04em;
            color: rgba(14, 22, 36, 0.72);
            line-height: 1.45;
        }

        .scan-status-row {
            margin-top: 6px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }

        .scan-status-row .module-status {
            margin: 0;
            flex: 1;
        }

        .scan-diagnostic-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 150px;
            padding: 6px 9px;
            border: 1px solid rgba(24, 36, 52, 0.2);
            border-radius: 999px;
            font-size: 9px;
            letter-spacing: .07em;
            text-transform: uppercase;
            white-space: nowrap;
            background: rgba(245, 248, 252, 0.9);
            color: rgba(24, 36, 52, 0.72);
        }

        .scan-diagnostic-badge.is-pending {
            border-color: rgba(24, 36, 52, 0.22);
            color: rgba(24, 36, 52, 0.72);
            background: rgba(245, 248, 252, 0.9);
        }

        .scan-diagnostic-badge.is-running {
            border-color: rgba(25, 87, 148, 0.44);
            color: rgba(16, 68, 120, 0.9);
            background: rgba(233, 244, 255, 0.96);
        }

        .scan-diagnostic-badge.is-complete {
            border-color: rgba(34, 129, 73, 0.46);
            color: rgba(24, 96, 55, 0.92);
            background: rgba(226, 248, 235, 0.98);
        }

        .scan-diagnostic-badge.is-partial {
            border-color: rgba(148, 103, 31, 0.48);
            color: rgba(120, 79, 10, 0.95);
            background: rgba(255, 245, 226, 0.98);
        }

        .assistant-sources {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .assistant-source-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid rgba(134, 221, 255, 0.42);
            background: rgba(10, 25, 46, 0.85);
            color: #eaf8ff;
            font-size: 10px;
            letter-spacing: .04em;
            padding: 6px 8px;
        }

        .assistant-output {
            border: 1px solid rgba(133, 217, 255, 0.44);
            background: rgba(8, 18, 34, 0.82);
            padding: 10px 12px;
            display: grid;
            gap: 6px;
        }

        .scan-form {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
        }

        .scan-input {
            width: 100%;
            border: 1px solid rgba(24, 37, 54, 0.16);
            background: rgba(255, 255, 255, 0.98);
            color: #07101d;
            padding: 10px 12px;
            font-size: 11px;
            letter-spacing: .02em;
            outline: none;
            border-radius: 10px;
        }

        .scan-stage {
            border: 1px solid rgba(24, 36, 52, 0.16);
            background: rgba(245, 248, 252, 0.96);
            padding: 8px;
            display: grid;
            grid-template-columns: 1.1fr .9fr;
            gap: 8px;
            border-radius: 12px;
        }

        .scan-preview {
            position: relative;
            border: 1px solid rgba(24, 39, 58, 0.18);
            background: rgba(6, 12, 24, 0.92);
            min-height: 220px;
            overflow: hidden;
            isolation: isolate;
            border-radius: 10px;
        }

        .scan-preview::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 2;
            background:
                linear-gradient(180deg, rgba(125, 231, 255, 0.18), rgba(125, 231, 255, 0) 42%),
                radial-gradient(120% 55% at 50% 0%, rgba(110, 210, 255, 0.2), rgba(11, 22, 38, 0));
            opacity: 0;
            transition: opacity .25s ease;
            pointer-events: none;
        }

        .scan-preview::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 3;
            pointer-events: none;
            background: repeating-linear-gradient(
                0deg,
                rgba(151, 223, 255, 0.02) 0px,
                rgba(151, 223, 255, 0.02) 2px,
                rgba(6, 13, 25, 0) 2px,
                rgba(6, 13, 25, 0) 4px
            );
            opacity: .35;
        }

        .scan-preview.loading::after {
            content: 'Chargement de la miniature...';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 10px;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: rgba(203, 235, 255, 0.9);
            border: 1px solid rgba(132, 214, 255, 0.42);
            background: rgba(9, 22, 42, 0.84);
            padding: 8px 10px;
            z-index: 4;
        }

        .scan-image-layer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity .5s ease, transform .5s ease, filter .5s ease;
            z-index: 1;
        }

        .scan-image-layer.original {
            opacity: 1;
            filter: saturate(0.9) contrast(1.02);
        }

        .scan-image-layer.optimized {
            opacity: 0;
            filter: saturate(1.2) contrast(1.16) brightness(1.05);
            transform: scale(1.02);
        }

        .scan-preview.show-optimized .scan-image-layer.original {
            opacity: 0;
            transform: scale(1.01);
        }

        .scan-preview.show-optimized .scan-image-layer.optimized {
            opacity: 1;
            transform: scale(1);
        }

        .scan-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(155, 219, 255, 0.11) 1px, transparent 1px),
                linear-gradient(90deg, rgba(155, 219, 255, 0.11) 1px, transparent 1px);
            background-size: 44px 44px;
            pointer-events: none;
            opacity: 0.5;
            z-index: 4;
        }

        .scan-stage.is-scanning .scan-grid {
            opacity: 0.72;
            animation: scanGridDrift .6s linear infinite;
        }

        .scan-beam {
            position: absolute;
            left: 0;
            right: 0;
            top: -30%;
            height: 30%;
            background:
                linear-gradient(
                    180deg,
                    rgba(106, 226, 255, 0),
                    rgba(106, 226, 255, 0.72) 42%,
                    rgba(106, 226, 255, 0.18) 72%,
                    rgba(106, 226, 255, 0)
                );
            box-shadow:
                0 0 26px rgba(106, 220, 255, 0.7),
                0 0 58px rgba(92, 177, 255, 0.42);
            opacity: 0;
            pointer-events: none;
            z-index: 5;
        }

        .scan-stage.is-scanning .scan-beam {
            opacity: 1;
            animation: scanBeamMove 1.35s linear infinite;
        }

        .scan-stage.is-scanning .scan-preview::before {
            opacity: 1;
        }

        .scan-hotspot {
            position: absolute;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.48);
            opacity: 0;
            transform: scale(0.5);
            transition: opacity .28s ease, transform .28s ease;
            pointer-events: none;
            z-index: 6;
        }

        .scan-hotspot.visible {
            opacity: 0.95;
            transform: scale(1);
            animation: scanPulse 1.15s ease-in-out infinite;
        }

        .scan-hotspot[data-tone="red"] {
            background: radial-gradient(circle, rgba(255, 130, 130, 0.92), rgba(255, 63, 87, 0.26));
            box-shadow: 0 0 16px rgba(255, 86, 108, 0.55);
        }

        .scan-hotspot[data-tone="yellow"] {
            background: radial-gradient(circle, rgba(255, 226, 135, 0.92), rgba(255, 197, 53, 0.26));
            box-shadow: 0 0 16px rgba(255, 208, 70, 0.56);
        }

        .scan-hotspot[data-tone="green"] {
            background: radial-gradient(circle, rgba(168, 255, 193, 0.92), rgba(87, 224, 137, 0.28));
            box-shadow: 0 0 16px rgba(97, 231, 149, 0.56);
        }

        .scan-hotspot.a { top: 16%; left: 18%; }
        .scan-hotspot.b { top: 36%; left: 66%; }
        .scan-hotspot.c { top: 64%; left: 34%; }
        .scan-hotspot.d { top: 72%; left: 74%; }
        .scan-hotspot.e { top: 28%; left: 44%; }

        .scan-steps {
            border: 1px solid rgba(24, 37, 54, 0.14);
            background: rgba(255, 255, 255, 0.98);
            padding: 8px;
            display: grid;
            gap: 6px;
            align-content: start;
            border-radius: 10px;
        }

        .scan-idle-hint {
            font-size: 10px;
            line-height: 1.45;
            color: rgba(17, 31, 47, 0.72);
            border: 1px dashed rgba(26, 40, 58, 0.12);
            background: rgba(245, 249, 255, 0.82);
            padding: 8px;
            border-radius: 8px;
        }

        .scan-steps:not(.idle) .scan-idle-hint {
            display: none;
        }

        .scan-steps.idle .scan-meter-list {
            display: none;
        }

        .scan-meter-list {
            margin-top: 3px;
            border-top: 1px solid rgba(24, 37, 54, 0.14);
            padding-top: 7px;
            display: grid;
            gap: 5px;
        }

        .scan-meter {
            border: 1px solid rgba(25, 39, 57, 0.12);
            background: rgba(246, 250, 255, 0.95);
            padding: 5px 6px 6px;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 4px;
            align-items: center;
            transition: border-color .22s ease, background .22s ease;
            border-radius: 8px;
        }

        .scan-meter-label {
            font-size: 9px;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: rgba(17, 31, 47, 0.78);
        }

        .scan-meter-value {
            font-size: 10px;
            letter-spacing: .04em;
            color: rgba(12, 24, 38, 0.88);
            min-width: 32px;
            text-align: right;
        }

        .scan-meter-track {
            grid-column: 1 / -1;
            height: 6px;
            border: 1px solid rgba(26, 40, 58, 0.14);
            background: rgba(236, 241, 248, 0.95);
            overflow: hidden;
            border-radius: 999px;
        }

        .scan-meter-fill {
            display: block;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, rgba(43, 134, 255, 0.84), rgba(28, 202, 147, 0.84));
            box-shadow: 0 0 8px rgba(52, 144, 255, 0.34);
            transition: width .52s cubic-bezier(.22, .86, .22, 1);
        }

        .scan-meter.active {
            border-color: rgba(17, 46, 80, 0.72);
            background: rgba(234, 243, 255, 0.98);
        }

        .scan-results {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .scan-group {
            border: 1px solid rgba(24, 36, 52, 0.16);
            background: rgba(255, 255, 255, 0.98);
            padding: 8px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }

        .scan-group h5 {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            margin-bottom: 6px;
            color: rgba(8, 17, 31, 0.92);
        }

        .scan-group ul {
            list-style: none;
            display: grid;
            gap: 4px;
        }

        .scan-group li {
            font-size: 10px;
            line-height: 1.4;
            color: rgba(20, 32, 49, 0.88);
        }

        .scan-intel {
            border: 1px solid rgba(24, 36, 52, 0.16);
            background: rgba(255, 255, 255, 0.98);
            padding: 10px;
            display: grid;
            gap: 7px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }

        .scan-intel h5 {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: rgba(8, 17, 31, 0.92);
        }

        .scan-intel ul {
            list-style: none;
            display: grid;
            gap: 6px;
        }

        .scan-intel li {
            font-size: 10px;
            line-height: 1.45;
            color: rgba(20, 32, 49, 0.9);
            border: 1px solid rgba(25, 39, 57, 0.1);
            background: rgba(245, 249, 255, 0.98);
            padding: 7px 8px;
            border-radius: 8px;
        }

        .scan-footer {
            border: 1px solid rgba(24, 36, 52, 0.16);
            background: rgba(255, 255, 255, 0.98);
            padding: 9px 10px;
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 8px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }

        .scan-panel.is-pristine .scan-results,
        .scan-panel.is-pristine .scan-intel,
        .scan-panel.is-pristine .scan-footer {
            display: none;
        }

        .scan-potential {
            font-size: 11px;
            color: rgba(14, 26, 42, 0.92);
            letter-spacing: .04em;
        }

        .scan-potential strong {
            color: #146f4c;
            font-size: 14px;
            margin-left: 4px;
        }

        .scan-optimize-btn {
            border: 1px solid rgba(8, 14, 24, 0.95);
            color: #f2f7ff;
            background: #0d141f;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            padding: 8px 10px;
            transition: transform .2s ease, filter .2s ease;
            border-radius: 10px;
        }

        .scan-optimize-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        .scan-optimize-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

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

        @keyframes scanGridDrift {
            from { transform: translateY(0); }
            to { transform: translateY(4px); }
        }

        @keyframes scanBeamMove {
            from { transform: translateY(-100%); }
            to { transform: translateY(480%); }
        }

        @keyframes shakerMix {
            0% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(5px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
            100% { transform: translateX(0); }
        }

        .builder-shell {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: grid;
            grid-template-rows: auto auto auto auto 1fr;
            gap: 6px;
            padding: 14px;
        }

        .builder-controls {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
        }

        .builder-input {
            width: 100%;
            border: 1px solid rgba(131, 217, 255, 0.45);
            background: rgba(6, 14, 28, 0.72);
            color: #eefbff;
            padding: 10px 12px;
            font-size: 12px;
            letter-spacing: 0.02em;
            outline: none;
        }

        .builder-input::placeholder {
            color: rgba(207, 232, 255, 0.7);
        }

        .builder-btn {
            border: 1px solid rgba(131, 217, 255, 0.62);
            background: linear-gradient(120deg, rgba(78, 110, 255, 0.32), rgba(54, 217, 255, 0.24));
            color: #eff8ff;
            padding: 10px 12px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            white-space: nowrap;
            transition: transform .2s ease, filter .2s ease;
        }

        .builder-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        .builder-helper {
            min-height: 16px;
            font-size: 10px;
            line-height: 1.35;
            letter-spacing: .04em;
            color: rgba(207, 236, 255, 0.9);
            opacity: 0.95;
        }

        .builder-status {
            min-height: 18px;
            font-size: 11px;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #c8e7ff;
            opacity: .92;
        }

        .keyword-strip {
            min-height: 18px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .keyword-tag {
            font-size: 10px;
            letter-spacing: .07em;
            text-transform: uppercase;
            color: #d4f3ff;
            border: 1px solid rgba(133, 220, 255, 0.45);
            background: rgba(9, 22, 40, 0.65);
            padding: 3px 6px;
        }

        .diagram-stage {
            position: absolute;
            left: 14px;
            right: 14px;
            top: 124px;
            bottom: 138px;
            z-index: 3;
            border: 1px solid rgba(132, 214, 255, 0.28);
            background: rgba(4, 10, 20, 0.72);
            overflow: hidden;
        }

        .diagram-svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 3;
        }

        .edge-path {
            stroke: rgba(129, 218, 255, 0.54);
            stroke-width: 1.2;
            fill: none;
            filter: drop-shadow(0 0 6px rgba(116, 212, 255, 0.5));
            transition: stroke-dashoffset .6s ease;
            stroke-dasharray: 1;
            stroke-dashoffset: 1;
            opacity: .5;
        }

        .edge-path.visible {
            stroke-dashoffset: 0 !important;
        }

        .edge-label {
            fill: rgba(196, 237, 255, 0.94);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .03em;
            text-anchor: middle;
            dominant-baseline: middle;
            paint-order: stroke;
            stroke: rgba(6, 16, 32, 0.98);
            stroke-width: 3px;
            stroke-linejoin: round;
            opacity: 0;
            transition: opacity .2s ease;
            pointer-events: none;
            filter: drop-shadow(0 0 5px rgba(89, 196, 255, 0.42));
        }

        .edge-label.visible {
            opacity: 0.95;
        }

        .diagram-grid {
            position: absolute;
            inset: 26px 10px 10px;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-template-rows: repeat(2, minmax(0, 1fr));
            gap: 10px;
            grid-template-areas:
                "acq qual conv"
                ". crm opt";
            pointer-events: none;
        }

        .diagram-card {
            border: 1px solid rgba(129, 211, 255, 0.46);
            background: rgba(10, 20, 36, 0.92);
            border-radius: 10px;
            padding: 8px;
            color: #eaf8ff;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity .28s ease, transform .28s ease, border-color .28s ease, background .28s ease;
            display: grid;
            grid-template-rows: auto auto auto auto auto;
            gap: 5px;
        }

        .diagram-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .diagram-card.validated {
            border-color: rgba(133, 239, 187, 0.7);
            background: rgba(10, 28, 21, 0.94);
        }

        .diagram-card[data-node="acquisition"] { grid-area: acq; }
        .diagram-card[data-node="qualification"] { grid-area: qual; }
        .diagram-card[data-node="conversion"] { grid-area: conv; }
        .diagram-card[data-node="crm"] { grid-area: crm; }
        .diagram-card[data-node="optimisation"] { grid-area: opt; }

        .card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .card-title {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: .02em;
            line-height: 1.2;
        }

        .card-state {
            font-size: 8px;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: rgba(255, 218, 138, 0.95);
        }

        .diagram-card.validated .card-state {
            color: rgba(137, 247, 187, 0.96);
        }

        .card-mission {
            font-size: 9px;
            line-height: 1.3;
            color: rgba(205, 233, 255, 0.9);
        }

        .card-input {
            font-size: 9px;
            line-height: 1.3;
            color: rgba(163, 220, 255, 0.95);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-output {
            font-size: 9px;
            line-height: 1.3;
            color: rgba(231, 248, 255, 0.94);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-kpi {
            font-size: 8px;
            line-height: 1.3;
            color: rgba(194, 240, 255, 0.95);
            border: 1px solid rgba(138, 220, 255, 0.5);
            border-radius: 6px;
            padding: 3px 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .builder-bottom {
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 42px;
            z-index: 3;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .builder-rules,
        .builder-impact {
            border: 1px solid rgba(131, 217, 255, 0.45);
            background: rgba(8, 18, 34, 0.82);
            color: #e7f8ff;
            min-height: 84px;
            padding: 8px 10px;
            font-size: 10px;
            letter-spacing: .04em;
            line-height: 1.45;
            overflow: hidden;
        }

        .builder-rules strong,
        .builder-impact strong {
            display: block;
            margin-bottom: 4px;
            font-size: 11px;
            letter-spacing: .06em;
        }

        .builder-note {
            position: absolute;
            left: 14px;
            right: 210px;
            bottom: 14px;
            z-index: 3;
            font-size: 10px;
            letter-spacing: .04em;
            color: rgba(236, 245, 255, 0.94);
            background: rgba(14, 20, 30, 0.84);
            border: 1px solid rgba(255, 255, 255, 0.32);
            padding: 5px 9px;
            text-shadow: none;
            pointer-events: none;
        }

        .builder-privacy {
            position: absolute;
            right: 14px;
            bottom: 14px;
            z-index: 4;
            color: rgba(232, 243, 255, 0.76);
            font-size: 9px;
            letter-spacing: .04em;
            text-transform: uppercase;
            pointer-events: none;
            border: 1px solid rgba(159, 221, 255, 0.34);
            background: rgba(8, 15, 28, 0.68);
            padding: 4px 8px;
        }

        .builder-impact {
            opacity: 0.6;
            transform: translateY(0);
            transition: opacity .2s ease;
        }

        .builder-impact.active {
            opacity: 1;
        }

        .builder-rules {
            opacity: 0.6;
            transition: opacity .2s ease;
        }

        .builder-rules.active {
            opacity: 1;
        }

        .section {
            padding: 80px 24px 16px;
            position: relative;
            z-index: 10;
        }

        .wrap {
            max-width: 1320px;
            margin: 0 auto;
        }

        .section-title {
            font-size: clamp(1.6rem, 3vw, 2.6rem);
            letter-spacing: -0.03em;
            margin-bottom: 10px;
        }

        .section-sub {
            font-size: 15px;
            line-height: 1.7;
            opacity: .8;
            max-width: 82ch;
        }

        .pillars {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2px;
            background: var(--dark);
        }

        .chatbot-section {
            padding-top: 26px;
        }

        .chatbot-grid {
            margin-top: 18px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2px;
            background: var(--dark);
        }

        .chatbot-col {
            background: var(--bg);
            border: 0;
            padding: 16px;
            display: grid;
            gap: 10px;
        }

        .chatbot-col h3 {
            font-size: 20px;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .chatbot-col ul {
            margin: 0;
            padding-left: 18px;
            display: grid;
            gap: 7px;
            font-size: 14px;
            line-height: 1.45;
        }

        .chatbot-col-strong {
            background: #070d16;
            color: #edf7ff;
        }

        .chatbot-result {
            margin-top: 10px;
            border: 1px solid var(--dark);
            padding: 12px 14px;
            font-size: 15px;
            line-height: 1.55;
            background: rgba(242, 248, 255, 0.92);
        }

        .chatbot-result strong {
            font-size: 18px;
            letter-spacing: -0.02em;
        }

        .pillar {
            background: var(--bg);
            padding: 18px;
            min-height: 220px;
            transition: all .25s ease;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .pillar:hover {
            background: var(--dark);
            color: var(--bg);
            transform: translateY(-3px);
        }

        .pillar-number {
            position: absolute;
            top: 14px;
            right: 14px;
            font-size: 11px;
            opacity: 0.55;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .pillar em {
            font-style: normal;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .1em;
            opacity: .7;
        }

        .pillar h3 {
            margin-top: 8px;
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .pillar p {
            margin-top: 8px;
            font-size: 14px;
            line-height: 1.6;
            opacity: .85;
        }

        /* V1 animated geometric language */
        .shape {
            width: 60px;
            height: 60px;
            margin: 0 0 10px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            flex: 0 0 auto;
        }

        .shape-lines {
            width: 80px;
            height: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 10px;
        }

        .line {
            height: 2px;
            background: currentColor;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .line:nth-child(1) {
            width: 80%;
            animation: lineMove1 3s ease-in-out infinite;
        }

        .line:nth-child(2) {
            width: 100%;
            animation: lineMove2 3s ease-in-out infinite 0.2s;
        }

        .line:nth-child(3) {
            width: 60%;
            animation: lineMove3 3s ease-in-out infinite 0.4s;
        }

        @keyframes lineMove1 {
            0%, 100% {
                width: 80%;
                transform: translateX(0);
            }
            50% {
                width: 100%;
                transform: translateX(10px);
            }
        }

        @keyframes lineMove2 {
            0%, 100% {
                width: 100%;
                transform: translateX(0);
            }
            50% {
                width: 70%;
                transform: translateX(-5px);
            }
        }

        @keyframes lineMove3 {
            0%, 100% {
                width: 60%;
                transform: translateX(0);
            }
            50% {
                width: 90%;
                transform: translateX(5px);
            }
        }

        .pillar:hover .line {
            background: var(--bg);
        }

        .shape-diamond {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .shape-diamond::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            background: var(--dark);
            transform: translate(-50%, -50%) rotate(45deg);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: translate(-50%, -50%) rotate(45deg) scale(1);
            }
            50% {
                transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
            }
        }

        .pillar:hover .shape-diamond::before {
            background: var(--bg);
            transform: translate(-50%, -50%) rotate(225deg);
        }

        .shape-star {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .shape-star::before {
            content: '✦';
            position: absolute;
            font-size: 56px;
            font-weight: 300;
            line-height: 1;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ff6600;
            animation: starRotateBoost 3s linear infinite;
        }

        @keyframes starRotateBoost {
            0% {
                transform: translate(-50%, -50%) rotate(0deg) scale(1);
            }
            50% {
                transform: translate(-50%, -50%) rotate(180deg) scale(1.18);
            }
            100% {
                transform: translate(-50%, -50%) rotate(360deg) scale(1);
            }
        }

        .pillar:hover .shape-star::before {
            color: var(--bg);
        }

        .shape-arrows {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .arrow {
            position: absolute;
            width: 20px;
            height: 20px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
            animation: vectorFlow 2s ease-in-out infinite;
        }

        .arrow:nth-child(1) {
            top: 20px;
            left: 10px;
            animation-delay: 0s;
        }

        .arrow:nth-child(2) {
            top: 20px;
            left: 25px;
            animation-delay: 0.2s;
        }

        .arrow:nth-child(3) {
            top: 20px;
            left: 40px;
            animation-delay: 0.4s;
        }

        @keyframes vectorFlow {
            0%, 100% {
                opacity: 0.3;
                transform: rotate(-45deg) translate(0, 0);
            }
            50% {
                opacity: 1;
                transform: rotate(-45deg) translate(5px, -5px);
            }
        }

        .pillar:hover .arrow {
            border-color: var(--bg);
        }

        .shape-nodes {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .body-orbit {
            position: absolute;
            width: 8px;
            height: 8px;
            background: currentColor;
            border-radius: 50%;
            top: 50%;
            left: 50%;
        }

        .body-orbit:nth-child(1) {
            animation: threeBody1 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        }

        .body-orbit:nth-child(2) {
            animation: threeBody2 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        }

        .body-orbit:nth-child(3) {
            animation: threeBody3 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        }

        @keyframes threeBody1 {
            0% { transform: translate(-20px, 0px); }
            25% { transform: translate(10px, -15px); }
            50% { transform: translate(15px, 10px); }
            75% { transform: translate(-10px, 15px); }
            100% { transform: translate(-20px, 0px); }
        }

        @keyframes threeBody2 {
            0% { transform: translate(15px, -10px); }
            25% { transform: translate(-15px, -10px); }
            50% { transform: translate(-10px, 20px); }
            75% { transform: translate(20px, 5px); }
            100% { transform: translate(15px, -10px); }
        }

        @keyframes threeBody3 {
            0% { transform: translate(5px, 15px); }
            25% { transform: translate(5px, -20px); }
            50% { transform: translate(-20px, -5px); }
            75% { transform: translate(10px, 10px); }
            100% { transform: translate(5px, 15px); }
        }

        .body-orbit::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: currentColor;
            border-radius: 50%;
            opacity: 0.3;
            animation: fadeTrail 0.5s ease-out infinite;
        }

        @keyframes fadeTrail {
            0% {
                transform: scale(1);
                opacity: 0.3;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        .pillar:hover .body-orbit,
        .pillar:hover .body-orbit::after {
            background: var(--bg);
        }

        .shape-catalyst {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .catalyst-ring {
            position: absolute;
            border: 2px solid currentColor;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .catalyst-ring:nth-child(1) {
            width: 20px;
            height: 20px;
            animation: catalystExpand1 2s ease-in-out infinite;
        }

        .catalyst-ring:nth-child(2) {
            width: 35px;
            height: 35px;
            animation: catalystExpand2 2s ease-in-out infinite 0.3s;
        }

        .catalyst-ring:nth-child(3) {
            width: 50px;
            height: 50px;
            animation: catalystExpand3 2s ease-in-out infinite 0.6s;
        }

        @keyframes catalystExpand1 {
            0%, 100% {
                width: 20px;
                height: 20px;
                opacity: 1;
            }
            50% {
                width: 25px;
                height: 25px;
                opacity: 0.6;
            }
        }

        @keyframes catalystExpand2 {
            0%, 100% {
                width: 35px;
                height: 35px;
                opacity: 0.7;
            }
            50% {
                width: 40px;
                height: 40px;
                opacity: 0.4;
            }
        }

        @keyframes catalystExpand3 {
            0%, 100% {
                width: 50px;
                height: 50px;
                opacity: 0.4;
            }
            50% {
                width: 55px;
                height: 55px;
                opacity: 0.2;
            }
        }

        .pillar:hover .catalyst-ring {
            border-color: var(--bg);
        }

        .demo {
            margin-top: 20px;
            border: 1px solid var(--dark);
            background: var(--bg);
            padding: 18px;
        }

        .lab-preview {
            margin-top: 20px;
            border: 1px solid var(--dark);
            background: var(--bg);
            padding: 18px;
            display: grid;
            gap: 12px;
        }

        .lab-preview p {
            margin: 0;
            font-size: 14px;
            line-height: 1.6;
            opacity: 0.84;
        }

        .lab-preview-points {
            margin: 0;
            padding-left: 18px;
            display: grid;
            gap: 5px;
            font-size: 13px;
            line-height: 1.45;
        }

        .lab-preview-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .demo-input {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
        }

        .demo-input input,
        input,
        select,
        textarea {
            width: 100%;
            border: 1px solid var(--dark);
            background: var(--bg);
            color: var(--dark);
            padding: 12px;
            font-family: inherit;
            font-size: 14px;
        }

        .demo-progress {
            margin-top: 10px;
            height: 8px;
            border: 1px solid var(--dark);
            position: relative;
            overflow: hidden;
        }

        .demo-progress span {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 0;
            background: var(--dark);
            transition: width .4s ease;
        }

        .demo-output {
            margin-top: 12px;
            border: 1px solid var(--dark);
            padding: 14px;
            min-height: 140px;
            white-space: pre-line;
        }

        .demo-output.is-rich {
            white-space: normal;
        }

        .demo-plan-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 11px;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .demo-plan-head strong {
            font-size: 12px;
        }

        .demo-plan-summary {
            margin: 0 0 10px 0;
            font-size: 13px;
            line-height: 1.5;
        }

        .demo-plan-context {
            margin: 0 0 10px 0;
            border: 1px solid var(--dark);
            padding: 8px;
            background: rgba(255, 255, 255, 0.84);
        }

        .demo-plan-goal {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
        }

        .demo-plan-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0 0 8px 0;
        }

        .demo-plan-chip {
            border: 1px solid var(--dark);
            padding: 3px 7px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .06em;
            background: rgba(255, 255, 255, 0.92);
        }

        .demo-plan-explainers {
            margin: 8px 0 0 0;
            padding-left: 16px;
            font-size: 12px;
            line-height: 1.4;
        }

        .demo-plan-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .demo-plan-node {
            border: 1px solid var(--dark);
            padding: 8px;
            background: rgba(255, 255, 255, 0.88);
        }

        .demo-plan-node.is-wide {
            grid-column: 1 / -1;
        }

        .demo-plan-node h4 {
            margin: 0 0 4px 0;
            font-size: 12px;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: .05em;
        }

        .demo-plan-node p {
            margin: 0 0 6px 0;
            font-size: 12px;
            line-height: 1.45;
        }

        .demo-node-why {
            margin: 0 0 6px 0;
            font-size: 11px;
            line-height: 1.45;
            opacity: 0.8;
        }

        .demo-plan-node ul,
        .demo-plan-meta ul {
            margin: 0;
            padding-left: 16px;
            font-size: 12px;
            line-height: 1.4;
        }

        .demo-plan-meta {
            margin-top: 10px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .demo-plan-meta-block {
            border: 1px solid var(--dark);
            padding: 8px;
        }

        .demo-plan-meta-block.is-wide {
            grid-column: 1 / -1;
        }

        .demo-plan-meta-block h5 {
            margin: 0 0 6px 0;
            font-size: 11px;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .demo-plan-foot {
            margin: 10px 0 0 0;
            font-size: 11px;
            opacity: 0.7;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .demo-clarify {
            border: 1px solid var(--dark);
            padding: 12px;
            background: rgba(255, 255, 255, 0.9);
        }

        .demo-clarify h4 {
            margin: 0 0 6px 0;
            font-size: 14px;
            letter-spacing: .03em;
            text-transform: uppercase;
        }

        .demo-clarify p {
            margin: 0 0 8px 0;
            font-size: 13px;
            line-height: 1.5;
        }

        .demo-clarify ul {
            margin: 0;
            padding-left: 16px;
            font-size: 12px;
            line-height: 1.45;
        }

        .ab-live {
            margin-top: 20px;
            border: 1px solid var(--dark);
            background: rgba(255, 255, 255, 0.95);
            padding: 18px;
            display: grid;
            gap: 12px;
        }

        .ab-live-head {
            display: grid;
            gap: 8px;
        }

        .ab-live-head p {
            margin: 0;
            font-size: 13px;
            line-height: 1.5;
            opacity: 0.82;
        }

        .ab-live-controls {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
        }

        .ab-live-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .ab-variant {
            border: 1px solid var(--dark);
            background: rgba(255, 255, 255, 0.92);
            padding: 10px;
            display: grid;
            gap: 8px;
            transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
        }

        .ab-variant.is-leading {
            background: rgba(240, 248, 255, 0.97);
            box-shadow: 0 10px 22px rgba(8, 18, 30, 0.08);
            transform: translateY(-2px);
        }

        .ab-variant-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .ab-variant-label {
            font-size: 11px;
            letter-spacing: .09em;
            text-transform: uppercase;
        }

        .ab-variant-badge {
            border: 1px solid var(--dark);
            padding: 3px 6px;
            font-size: 9px;
            letter-spacing: .07em;
            text-transform: uppercase;
            background: rgba(255, 255, 255, 0.95);
        }

        .ab-variant-title {
            margin: 0;
            font-size: 15px;
            line-height: 1.35;
        }

        .ab-variant-copy {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            opacity: .82;
        }

        .ab-variant-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--dark);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            padding: 7px 9px;
            width: fit-content;
            background: rgba(255, 255, 255, 0.95);
        }

        .ab-variant-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            font-size: 11px;
        }

        .ab-variant-stats strong {
            display: block;
            font-size: 18px;
            letter-spacing: -0.02em;
        }

        .ab-rate {
            grid-column: 1 / -1;
            border: 1px solid var(--dark);
            height: 8px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(245, 248, 252, 0.98);
        }

        .ab-rate span {
            display: block;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, rgba(43, 134, 255, 0.9), rgba(28, 202, 147, 0.9));
            transition: width .28s ease;
        }

        .ab-live-metrics {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .ab-metric {
            border: 1px solid var(--dark);
            background: rgba(255, 255, 255, 0.95);
            padding: 9px;
            display: grid;
            gap: 3px;
        }

        .ab-metric span {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            opacity: .72;
        }

        .ab-metric strong {
            font-size: 20px;
            letter-spacing: -0.02em;
        }

        .ab-live-status {
            margin: 0;
            border: 1px solid var(--dark);
            padding: 10px;
            font-size: 12px;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.95);
        }

        .ab-live-proof {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            align-items: center;
            border: 1px solid var(--dark);
            background: rgba(242, 248, 255, 0.95);
            padding: 10px;
        }

        .ab-live-proof strong {
            font-size: 13px;
            letter-spacing: .02em;
        }

        .ab-live-proof p {
            margin: 4px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            opacity: .84;
        }

        .proof-grid {
            margin-top: 20px;
            display: grid;
            grid-template-columns: 1.18fr .82fr;
            gap: 2px;
            background: var(--dark);
        }

        .proof-card,
        .proof-stack {
            background: var(--bg);
            padding: 16px;
        }

        .proof-stack {
            display: grid;
            gap: 10px;
        }

        .proof-slider-card {
            padding: 12px;
            display: flex;
            align-items: stretch;
        }

        .proof-slider-card .before-after-showcase {
            position: relative;
            inset: auto;
            width: 100%;
            min-height: clamp(1040px, 104vh, 1460px);
        }

        .proof-slider-card .before-after-stage {
            min-height: clamp(920px, 92vh, 1280px);
        }

        .proof-slider-card .before-after-image {
            object-fit: contain;
            background: #f1efe8;
        }

        .proof-quick-stat {
            border: 1px solid var(--dark);
            padding: 12px 14px;
            display: grid;
            gap: 6px;
            background: rgba(242, 248, 255, 0.95);
        }

        .proof-quick-stat strong {
            font-size: 32px;
            line-height: 1;
        }

        .proof-quick-stat p {
            font-size: 14px;
            line-height: 1.5;
            opacity: .86;
        }

        .proof-case {
            border: 1px solid var(--dark);
            padding: 14px;
            display: grid;
            gap: 8px;
        }

        .proof-case span {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            opacity: 0.62;
        }

        .proof-case h3 {
            font-size: 20px;
            line-height: 1.08;
        }

        .proof-case ul {
            list-style: none;
            display: grid;
            gap: 6px;
            font-size: 14px;
            line-height: 1.45;
        }

        .proof-case li {
            padding-left: 14px;
            position: relative;
        }

        .proof-case li::before {
            content: '•';
            position: absolute;
            left: 0;
            top: 0;
        }

        .proof-sectors {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .proof-sector {
            border: 1px solid var(--dark);
            padding: 12px;
            display: grid;
            gap: 8px;
            align-content: start;
        }

        .proof-sector em {
            font-style: normal;
            font-size: 10px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            opacity: 0.58;
        }

        .proof-sector h4 {
            font-size: 17px;
            line-height: 1.15;
        }

        .proof-sector p {
            font-size: 13px;
            line-height: 1.5;
            opacity: 0.84;
        }

        .proof-sector strong {
            font-size: 13px;
            line-height: 1.45;
        }

        .proof-note {
            margin-top: 12px;
            border-top: 1px solid rgba(10, 10, 10, 0.14);
            padding-top: 10px;
            font-size: 13px;
            line-height: 1.5;
            opacity: 0.82;
        }

        .counter {
            font-size: clamp(2rem, 6vw, 3.8rem);
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .testimonials {
            display: grid;
            gap: 8px;
        }

        .testimonial {
            border: 1px solid var(--dark);
            padding: 12px;
        }

        .testimonial strong {
            font-size: 20px;
            display: block;
        }

        .testimonial p {
            font-size: 14px;
            opacity: .8;
        }

        .audit {
            margin-top: 22px;
            display: grid;
            grid-template-columns: .92fr 1.08fr;
            gap: 2px;
            background: var(--dark);
        }

        .side-cta,
        .form-box {
            background: var(--bg);
            padding: 16px;
        }

        .side-cta a {
            display: block;
            text-decoration: none;
            margin-bottom: 8px;
            border: 1px solid var(--dark);
            color: var(--dark);
            padding: 11px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: .09em;
            text-align: center;
            transition: all .25s ease;
        }

        .side-cta a:hover {
            background: var(--dark);
            color: var(--bg);
        }

        .side-cta a.is-hot {
            border-color: #b01616;
            background: #cc1b1b;
            color: #fff;
            font-weight: 700;
        }

        .side-cta a.is-hot:hover {
            background: #ab1515;
            border-color: #8f1111;
            color: #fff;
        }

        .side-cta iframe {
            width: 100%;
            min-height: 420px;
            border: 1px solid var(--dark);
            background: #fff;
        }

        .row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 10px;
        }

        .submit {
            width: 100%;
            border: 1px solid var(--dark);
            background: var(--dark);
            color: var(--bg);
            padding: 13px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .tiny {
            margin-top: 8px;
            font-size: 12px;
            opacity: .75;
        }

        .statement {
            margin-top: 70px;
            background: var(--dark);
            color: var(--bg);
            padding: 84px 24px;
            text-align: center;
        }

        .statement p {
            font-size: clamp(2rem, 5vw, 3.8rem);
            line-height: 1.12;
            letter-spacing: -0.03em;
            font-weight: 300;
            max-width: 980px;
            margin: 0 auto;
        }

        .sticky-slots {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 95;
            padding: 9px 12px;
            text-align: center;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.09em;
            background: var(--dark);
            color: var(--bg);
        }

        .footer {
            padding: 56px 24px 74px;
            text-align: center;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .1em;
            opacity: .65;
        }

        .exit-pop {
            position: fixed;
            inset: 0;
            z-index: 130;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(4px);
        }

        .exit-pop.active {
            display: flex;
        }

        .exit-card {
            width: min(680px, 92vw);
            border: 1px solid var(--dark);
            background: var(--bg);
            padding: 20px;
        }

        .exit-card h3 {
            font-size: 32px;
            line-height: 1.06;
            margin-bottom: 10px;
        }

        .exit-card p {
            margin-bottom: 14px;
            line-height: 1.6;
            opacity: .82;
        }

        .exit-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .close-pop {
            margin-top: 12px;
            display: inline-block;
            font-size: 12px;
            text-decoration: underline;
            cursor: pointer;
            opacity: .7;
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
        }

        @media (max-width: 1140px) {
            .hero-wrap,
            .proof-grid,
            .audit {
                grid-template-columns: 1fr;
            }

            .proof-sectors {
                grid-template-columns: 1fr;
            }

            .hero-title {
                font-size: clamp(1.7rem, 8.2vw, 3.6rem);
                max-width: 12ch;
            }

            .hero-detail-grid {
                grid-template-columns: 1fr;
                gap: 22px;
            }

            .hero-copy-block {
                max-width: none;
            }

            .hero-sub {
                max-width: none;
                font-size: 19px;
            }

            .hero-focus {
                font-size: 22px;
            }

            .hero-points {
                padding: 18px 18px;
            }

            .hero-live-scores {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .chatbot-grid {
                grid-template-columns: 1fr;
            }

            .hero-right {
                min-height: 900px;
            }

            .before-after-showcase {
                inset: 12px;
            }

            .hero-preview-compact {
                inset: 12px;
            }

            .before-after-stage {
                min-height: 0;
            }

            .proof-slider-card .before-after-showcase,
            .proof-slider-card .before-after-stage {
                min-height: 0;
            }

            .module-grid {
                grid-template-columns: 1fr;
            }

            .ingredient-pool,
            .shaker-zone {
                min-height: 150px;
            }

            .module-actions {
                grid-template-columns: 1fr 1fr;
            }

            .mix-status {
                grid-column: 1 / -1;
            }

            .module-form {
                grid-template-columns: 1fr;
            }

            .scan-stage {
                grid-template-columns: 1fr;
            }

            .scan-results {
                grid-template-columns: 1fr;
            }

            .scan-footer {
                grid-template-columns: 1fr;
                align-items: start;
            }

            .pillars {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 860px) {
            nav {
                padding: 18px 18px;
            }

            .nav-items,
            .nav-cta,
            .floating-shapes,
            .grid-overlay,
            .cursor-dot,
            .time-display,
            .floating-badge {
                display: none;
            }

            .nav-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .urgency-top {
                top: 0;
            }

            .hero {
                padding-top: 82px;
            }

            .module-lab {
                inset: 10px;
                gap: 8px;
            }

            .hero-right {
                min-height: 760px;
            }

            .before-after-showcase {
                inset: 10px;
                padding: 10px;
                gap: 8px;
            }

            .hero-preview-compact {
                inset: 10px;
                padding: 10px;
                gap: 8px;
            }

            .before-after-head {
                padding: 10px 12px;
            }

            .before-after-head h3 {
                font-size: 15px;
            }

            .before-after-head p,
            .before-after-note p {
                font-size: 11px;
            }

            .before-after-stage {
                min-height: 0;
            }

            .before-after-label {
                top: 6px;
                padding: 6px 8px;
                font-size: 8px;
            }

            .before-after-label.before {
                left: 12px;
            }

            .before-after-label.after {
                right: 12px;
            }

            .before-after-handle {
                width: 38px;
                height: 38px;
                font-size: 10px;
                left: var(--handle-left, calc(52% - 19px));
            }

            .module-tabs {
                grid-template-columns: 1fr;
            }

            .ingredient-pool {
                grid-template-columns: 1fr 1fr;
            }

            .module-actions {
                grid-template-columns: 1fr;
            }

            .scan-form {
                grid-template-columns: 1fr;
            }

            .scan-status-row {
                flex-direction: column;
                align-items: stretch;
            }

            .scan-diagnostic-badge {
                width: fit-content;
            }

            .builder-note {
                right: 14px;
                bottom: 20px;
                font-size: 9px;
            }

            .pillars,
            .row,
            .demo-input {
                grid-template-columns: 1fr;
            }

            .hero-live-scores {
                grid-template-columns: 1fr;
            }

            .ab-live-controls,
            .ab-live-grid,
            .ab-live-metrics,
            .ab-live-proof {
                grid-template-columns: 1fr;
            }

            .demo-plan-grid,
            .demo-plan-meta {
                grid-template-columns: 1fr;
            }

            .sticky-slots {
                font-size: 10px;
                letter-spacing: 0.06em;
            }
        }
