/*  ╔═══════════════════════════════════════════════════════════╗
    ║  United Vision Technologies — Premium Design System v2  ║
    ╚═══════════════════════════════════════════════════════════╝ */

/* ── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    /* Brand Colors */
    --gold: #F1BC38;
    --gold-light: #FFD769;
    --green: #43A143;
    --green-light: #5CC65C;

    /* Neutrals */
    --bg: #060608;
    --bg-elevated: #0c0c10;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-300: #AAAAAA;
    --gray-500: #666666;
    --gray-700: #333333;
    --gray-900: #111111;

    /* Glass */
    --glass-bg: rgba(12, 12, 16, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* Glow */
    --glow-gold: 0 0 60px rgba(241, 188, 56, 0.15);
    --glow-green: 0 0 60px rgba(67, 161, 67, 0.15);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-w: 1280px;
    --section-pad: clamp(80px, 12vh, 140px);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ── Utilities ──────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-pad {
    padding: var(--section-pad) 0;
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--gray-300);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Section Tag */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(241, 188, 56, 0.08);
    border: 1px solid rgba(241, 188, 56, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--gray-300);
    max-width: 600px;
    line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #000;
    box-shadow: 0 4px 20px rgba(241, 188, 56, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(241, 188, 56, 0.4);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--white);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Shine effect on primary button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary:hover::after {
    animation: btnShine 0.6s ease;
}

@keyframes btnShine {
    to {
        left: 125%;
    }
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 16px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--gold);
    font-size: 1.3rem;
    place-items: center;
    z-index: 1001;
    transition: all 0.2s ease;
}

.hamburger:hover {
    border-color: var(--gold);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(241, 188, 56, 0.1);
    border: 1px solid rgba(241, 188, 56, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    animation: heroFadeUp 1s 0.2s both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: heroFadeUp 1s 0.4s both;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--gray-300);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: heroFadeUp 1s 0.6s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroFadeUp 1s 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    animation: heroFadeUp 1s 1s both;
}

.hero-stat h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Glow Orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 188, 56, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 161, 67, 0.1), transparent 70%);
    bottom: 0;
    left: -100px;
    z-index: 0;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Scroll Indicator */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: heroFadeUp 1s 1.5s both;
}

.scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-500);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 3px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ── Glass Cards ────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient border glow on hover */
.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(241, 188, 56, 0), rgba(67, 161, 67, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(241, 188, 56, 0.4), rgba(67, 161, 67, 0.3));
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-gold);
    background: var(--surface-hover);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(241, 188, 56, 0.12), rgba(67, 161, 67, 0.08));
    border: 1px solid rgba(241, 188, 56, 0.15);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.glass-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(241, 188, 56, 0.2), rgba(67, 161, 67, 0.15));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(241, 188, 56, 0.2);
}

/* ── CV Inspection Animation ─────────────────────────────── */
.cv-wrapper {
    position: absolute;
    top: 50%;
    right: 8%;
    margin-top: -200px;
    width: 580px;
    height: 400px;
    z-index: 2;
    animation: heroFadeUp 1.2s 1.2s both;
}

.cv-scene {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 10, 0.92);
    border: 1px solid rgba(67, 161, 67, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ── HUD Overlay ─────────────────────────── */
.cv-hud-line {
    position: absolute;
    border-color: rgba(67, 161, 67, 0.3);
    border-style: solid;
    border-width: 0;
    width: 30px;
    height: 30px;
    z-index: 20;
}

.cv-hud-top-left {
    top: 0;
    left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.cv-hud-top-right {
    top: 0;
    right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
}

.cv-hud-bot-left {
    bottom: 0;
    left: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.cv-hud-bot-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.cv-hud-label {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: rgba(67, 161, 67, 0.6);
    z-index: 20;
    animation: hudFlicker 3s ease-in-out infinite;
}

.cv-hud-sys {
    top: 6px;
    left: 36px;
}

.cv-hud-fps {
    top: 6px;
    right: 36px;
}

.cv-hud-model {
    bottom: 6px;
    left: 36px;
}

@keyframes hudFlicker {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    75% {
        opacity: 0.4;
    }
}

/* ── Camera Unit ─────────────────────────── */
.cv-camera {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv-camera-mount {
    width: 60px;
    height: 8px;
    background: linear-gradient(180deg, #3a3a40, #222228);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.cv-camera-body {
    width: 80px;
    height: 55px;
    background: linear-gradient(180deg, #1e1e24, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(67, 161, 67, 0.1);
}

.cv-camera-lens {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3a3a50, #0a0a14);
    border: 2px solid rgba(67, 161, 67, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(67, 161, 67, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
    animation: lensGlow 2s ease-in-out infinite;
}

.cv-camera-iris {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #5CC65C, #1a6a1a);
    box-shadow: 0 0 8px rgba(92, 198, 92, 0.8);
    animation: irisPulse 1.5s ease-in-out infinite;
}

@keyframes lensGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(67, 161, 67, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(67, 161, 67, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.5);
    }
}

@keyframes irisPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.85);
    }
}

.cv-camera-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5CC65C;
    box-shadow: 0 0 6px rgba(92, 198, 92, 0.8);
    animation: ledBlink 2.5s ease-in-out infinite;
}

@keyframes ledBlink {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    95% {
        opacity: 0.2;
    }
}

.cv-camera-arm-left,
.cv-camera-arm-right {
    position: absolute;
    bottom: -18px;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #2a2a30, #1a1a20);
    border-radius: 0 0 2px 2px;
}

.cv-camera-arm-left {
    left: 18px;
}

.cv-camera-arm-right {
    right: 18px;
}

/* ── FOV Scan Cone ───────────────────────── */
.cv-fov {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 140px;
    clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, rgba(67, 161, 67, 0.15) 0%, rgba(67, 161, 67, 0.02) 100%);
    z-index: 5;
    pointer-events: none;
}

.cv-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(92, 198, 92, 0.8) 20%, rgba(92, 198, 92, 1) 50%, rgba(92, 198, 92, 0.8) 80%, transparent 100%);
    box-shadow: 0 0 10px rgba(92, 198, 92, 0.6), 0 0 30px rgba(92, 198, 92, 0.3);
    animation: scanSweep 2s ease-in-out infinite;
    z-index: 6;
}

@keyframes scanSweep {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }
}

/* ── Belt ─────────────────────────────────── */
.cv-belt {
    position: absolute;
    bottom: 30px;
    left: 10px;
    right: 10px;
    height: 28px;
    z-index: 4;
}

.cv-belt-surface {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1e 50%, #222226 100%);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cv-belt-texture {
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent 0, transparent 24px,
            rgba(255, 255, 255, 0.03) 24px, rgba(255, 255, 255, 0.03) 26px);
    animation: cvBeltMove 1.5s linear infinite;
}

@keyframes cvBeltMove {
    to {
        transform: translateX(-50%);
    }
}

.cv-roller {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #444, #1a1a1a);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.cv-roller-l {
    left: -8px;
}

.cv-roller-r {
    right: -8px;
}

/* ── Products ─────────────────────────────── */
.cv-products {
    position: absolute;
    bottom: 58px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 6;
}

.cv-product {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 50px;
    animation: cvProductSlide 8s linear infinite;
}

/* PCB Board */
.cv-product-pcb {
    width: 50px;
    height: 38px;
    background: linear-gradient(135deg, #1a5c2a, #0d3518);
    border: 1px solid rgba(92, 198, 92, 0.3);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cv-product-pcb::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    box-shadow: 20px 0 0 #333, 0 16px 0 #333, 20px 16px 0 #333;
}

.cv-product-pcb::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
    background: repeating-linear-gradient(0deg,
            transparent 0, transparent 3px,
            rgba(92, 198, 92, 0.1) 3px, rgba(92, 198, 92, 0.1) 4px);
}

/* Gear */
.cv-product-gear {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 45% 45%, #5a5a64, #2a2a30);
    border-radius: 50%;
    border: 3px solid #3a3a42;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.cv-product-gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #1a1a1e;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Bottle */
.cv-product-bottle {
    width: 22px;
    height: 48px;
    position: relative;
}

.cv-product-bottle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 1px;
    height: 34px;
    background: linear-gradient(135deg, rgba(65, 150, 235, 0.4), rgba(30, 90, 160, 0.3));
    border: 1px solid rgba(100, 180, 255, 0.3);
    border-radius: 3px 3px 4px 4px;
    box-shadow: inset 0 0 10px rgba(100, 180, 255, 0.1);
}

.cv-product-bottle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 6px;
    right: 6px;
    height: 16px;
    background: linear-gradient(180deg, #444, #333);
    border-radius: 2px 2px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes cvProductSlide {
    0% {
        left: -60px;
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    97% {
        opacity: 0;
    }

    100% {
        left: calc(100% + 20px);
        opacity: 0;
    }
}

/* ── Detection Boxes ─────────────────────── */
.cv-detections {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}

.cv-bbox {
    position: absolute;
    border: 2px solid var(--green);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(67, 161, 67, 0.3);
}

.cv-bbox.active {
    opacity: 1;
    animation: bboxPulse 1s ease-in-out infinite;
}

.cv-bbox.defect {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(241, 188, 56, 0.3);
}

.cv-bbox-label {
    position: absolute;
    top: -22px;
    left: 0;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    animation: labelFadeIn 0.3s ease both;
}

.cv-bbox-label.pass {
    background: rgba(67, 161, 67, 0.2);
    color: var(--green-light);
    border: 1px solid rgba(67, 161, 67, 0.4);
}

.cv-bbox-label.fail {
    background: rgba(241, 188, 56, 0.2);
    color: var(--gold-light);
    border: 1px solid rgba(241, 188, 56, 0.4);
}

@keyframes bboxPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(67, 161, 67, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(67, 161, 67, 0.5);
    }
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Corner ticks on bounding box */
.cv-bbox::before,
.cv-bbox::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

.cv-bbox::before {
    top: -2px;
    left: -2px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.cv-bbox::after {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* ── Neural Network Viz ──────────────────── */
.cv-neural {
    position: absolute;
    top: 40px;
    right: -10px;
    width: 100px;
    height: 100px;
    z-index: 8;
    opacity: 0.5;
}

.cv-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-light);
    box-shadow: 0 0 6px rgba(92, 198, 92, 0.6);
    animation: nodePulse 2s ease-in-out infinite;
}

.cv-node-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cv-node-2 {
    top: 80%;
    left: 10%;
    animation-delay: 0.4s;
}

.cv-node-3 {
    top: 50%;
    left: 50%;
    animation-delay: 0.2s;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(241, 188, 56, 0.6);
}

.cv-node-4 {
    top: 30%;
    left: 90%;
    animation-delay: 0.6s;
}

.cv-node-5 {
    top: 70%;
    left: 90%;
    animation-delay: 0.8s;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.cv-neural-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cv-neural-lines line {
    stroke: rgba(92, 198, 92, 0.2);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    animation: dashFlow 3s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -30;
    }
}

/* ── Confidence Bar ──────────────────────── */
.cv-confidence {
    position: absolute;
    bottom: 72px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
}

.cv-confidence-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
}

.cv-confidence-track {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.cv-confidence-fill {
    width: 98%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 2px;
    transition: width 0.6s ease;
    box-shadow: 0 0 6px rgba(67, 161, 67, 0.4);
}

.cv-confidence-val {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--green-light);
    min-width: 36px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-text {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.card-list li {
    color: var(--gray-300);
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ── Platform Section ────────────────────────────────────── */
.platform-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.platform-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.platform-media img {
    width: 100%;
    height: auto;
}

.platform-features {
    display: grid;
    gap: 16px;
}

.feature-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover,
.feature-item.active {
    border-color: rgba(241, 188, 56, 0.3);
    background: rgba(241, 188, 56, 0.05);
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-item p {
    color: var(--gray-300);
    font-size: 0.88rem;
}

/* Platform Slider */
.slider-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #0a0a0e;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.25, .8, .25, 1);
}

.slider-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--white);
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(241, 188, 56, 0.5);
}

/* ── Success Stories ─────────────────────────────────────── */
.story-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.story-card.gold::before {
    background: var(--gold);
}

.story-card.green::before {
    background: var(--green);
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow-gold);
}

.story-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.story-text {
    color: var(--gray-300);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.story-metrics {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: grid;
    gap: 8px;
}

.story-metrics p {
    font-size: 0.9rem;
    color: var(--gray-300);
}

.story-metrics strong {
    color: var(--white);
}

/* ── Partners ────────────────────────────────────────────── */
.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.partner-logo {
    height: 45px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: none;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--section-pad) 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(241, 188, 56, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-section .section-subtitle {
    margin: 0 auto 40px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg);
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-500);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-700);
    font-size: 0.8rem;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Scroll Animations ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.25, .8, .25, 1), transform 0.8s cubic-bezier(.25, .8, .25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0;
}

/* ── Responsive Design ──────────────────────────────────── */

/* Tablets */
@media(max-width:992px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .hero-stats {
        gap: 32px;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .scroll-hint {
        display: none;
    }

    .cv-wrapper {
        display: none;
    }
}

/* Mobile */
@media(max-width:768px) {
    .container {
        padding: 0 20px;
    }

    .section-pad {
        padding: 60px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: rgba(6, 6, 8, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(.25, .8, .25, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .hamburger {
        display: inline-grid;
    }

    .nav-cta {
        display: none;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .cv-wrapper {
        display: none;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat h3 {
        font-size: 1.3rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .partners-row {
        gap: 30px;
    }

    .partner-logo {
        height: 35px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small Phones */
@media(max-width:400px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}