/* ===== SF Pro Rounded local font mapping ===== */
@supports (font-family: -apple-system) {
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded'), local('SFProRounded-Regular'); font-weight: 400; }
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded-Medium'), local('SFProRounded-Medium'); font-weight: 500; }
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded-Semibold'), local('SFProRounded-Semibold'); font-weight: 600; }
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded-Bold'), local('SFProRounded-Bold'); font-weight: 700; }
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded-Heavy'), local('SFProRounded-Heavy'); font-weight: 800; }
    @font-face { font-family: 'SF Pro Rounded'; src: local('.SFNSRounded-Black'), local('SFProRounded-Black'); font-weight: 900; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-500: #6366F1;
    --primary-600: #4F46E5;
    --primary-700: #4338CA;

    --blue-500: #3B82F6;
    --blue-600: #2563EB;

    --cyan-400: #22D3EE;
    --cyan-500: #06B6D4;
    --cyan-600: #0891B2;

    --green-400: #60A5FA;
    --green-500: #3B82F6;
    --green-600: #2563EB;

    --red-500: #EF4444;
    --amber-500: #F59E0B;
    --purple-500: #8B5CF6;

    --dark-950: #030712;
    --dark-900: #0A0F1E;
    --dark-800: #0F172A;
    --dark-700: #1E293B;
    --dark-600: #334155;
    --dark-500: #475569;
    --dark-400: #64748B;
    --dark-300: #94A3B8;
    --dark-200: #CBD5E1;
    --dark-100: #E2E8F0;
    --dark-50: #F8FAFC;

    --white: #FFFFFF;
    --font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--dark-200);
    background: var(--dark-950);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
    transition: transform 0.05s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--blue-500));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--dark-300);
    border: 1.5px solid var(--dark-600);
}
.btn-outline:hover {
    border-color: var(--primary-500);
    color: var(--white);
    background: rgba(99, 102, 241, 0.1);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}
.btn-cyan:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}
.btn-salmon {
    background: linear-gradient(135deg, #FA8072, #FF6B6B);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(250, 128, 114, 0.35);
}
.btn-salmon:hover {
    box-shadow: 0 6px 20px rgba(250, 128, 114, 0.5);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--dark-900);
    box-shadow: var(--shadow-lg);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-xl); }

.btn-ghost-light {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

.btn-green-real {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-green-real:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.btn-red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-red:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--dark-400);
    cursor: pointer;
    transition: all 0.2s;
}
.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--white);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Show sun in dark mode (to switch to light), hide moon */
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }

/* In light mode, show moon (to switch to dark), hide sun */
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: none; }

[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: #475569;
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #1E293B;
    border-color: rgba(99, 102, 241, 0.3);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] body {
    background: #FFFFFF;
    color: #334155;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .logo-text { color: #0F172A; }

[data-theme="light"] .nav-link { color: #64748B; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #0F172A; }

[data-theme="light"] .hero-gradient {
    background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 30%, #F0F9FF 60%, #FFFFFF 100%);
}
[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-orb-1 { opacity: 0.08; }
[data-theme="light"] .hero-orb-2 { opacity: 0.05; }
[data-theme="light"] .hero-orb-3 { opacity: 0.04; }

[data-theme="light"] .hero-title { color: #0F172A; }
[data-theme="light"] .hero-subtitle { color: #64748B; }



[data-theme="light"] .logo-bar {
    background: #F8FAFC;
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .logo-bar-title { color: #94A3B8; }
[data-theme="light"] .partner-logo { color: #94A3B8; }
[data-theme="light"] .partner-icon { opacity: 0.5; }

[data-theme="light"] .stats-section {
    background: #FFFFFF;
    border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .stat-label { color: #64748B; }
[data-theme="light"] .stat-divider { background: #E2E8F0; }

[data-theme="light"] .features-section { background: #FFFFFF; }
[data-theme="light"] .section-title { color: #0F172A; }
[data-theme="light"] .section-subtitle { color: #64748B; }

[data-theme="light"] .feature-deep-card {
    background: #F8FAFC;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .feature-deep-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 0 20px rgba(99,102,241,0.08);
}
[data-theme="light"] .feature-deep-card h3 { color: #0F172A; }
[data-theme="light"] .feature-deep-card > p { color: #64748B; }
[data-theme="light"] .product-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .product-card:hover {
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .product-card h4 { color: #0F172A; }
[data-theme="light"] .product-card p { color: #64748B; }

[data-theme="light"] .showcase-section,
[data-theme="light"] .showcase-section:nth-of-type(even) { background: #FFFFFF; }
[data-theme="light"] .showcase-list li { color: #334155; }

[data-theme="light"] .showcase-demo-card {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .demo-card-header { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .demo-card-title { color: #334155; }
[data-theme="light"] .demo-attendance-row { color: #475569; border-bottom-color: rgba(0,0,0,0.04); }
[data-theme="light"] .demo-time { color: #94A3B8; }

[data-theme="light"] .kiosk-section { background: #FFFFFF; }
[data-theme="light"] .kiosk-content .section-subtitle { color: #64748B; }

[data-theme="light"] .phone-mockup {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}
[data-theme="light"] .phone-notch { background: #F1F5F9; }
[data-theme="light"] .phone-app-name { color: #0F172A; }
[data-theme="light"] .phone-period { color: #64748B; background: rgba(0,0,0,0.04); }
[data-theme="light"] .phone-status-card { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.12); }
[data-theme="light"] .phone-check-circle { background: rgba(59,130,246,0.1); }
[data-theme="light"] .phone-status-detail { color: #64748B; }
[data-theme="light"] .phone-menu-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); color: #475569; }
[data-theme="light"] .phone-menu-item:hover { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.15); }

[data-theme="light"] .districts-section {
    background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 50%, #F5F3FF 100%);
}
[data-theme="light"] .district-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .district-card:hover {
    background: #FFFFFF;
    border-color: rgba(99,102,241,0.3);
}
[data-theme="light"] .district-card h3 { color: #0F172A; }
[data-theme="light"] .district-card p { color: #64748B; }

[data-theme="light"] .how-it-works-section { background: #F8FAFC; }
[data-theme="light"] .step-card h3 { color: #0F172A; }
[data-theme="light"] .step-card p { color: #64748B; }
[data-theme="light"] .step-connector svg line { stroke: #CBD5E1; }

[data-theme="light"] .testimonials-section { background: #FFFFFF; }
[data-theme="light"] .testimonial-card {
    background: #F8FAFC;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .testimonial-card:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
[data-theme="light"] .testimonial-text { color: #475569; }
[data-theme="light"] .testimonial-author strong { color: #0F172A; }
[data-theme="light"] .testimonial-author span { color: #94A3B8; }

[data-theme="light"] .faq-section { background: #F8FAFC; }
[data-theme="light"] .faq-item {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .faq-item.active { border-color: rgba(99,102,241,0.3); }
[data-theme="light"] .faq-question { color: #0F172A; }
[data-theme="light"] .faq-chevron { color: #94A3B8; }
[data-theme="light"] .faq-answer p { color: #64748B; }

[data-theme="light"] .footer {
    background: #F1F5F9;
    border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .footer-grid { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .footer-desc { color: #64748B; }
[data-theme="light"] .footer-address { color: #64748B; }
[data-theme="light"] .social-link { background: rgba(0,0,0,0.06); color: #64748B; }
[data-theme="light"] .social-link:hover { background: rgba(99,102,241,0.15); color: #4F46E5; }
[data-theme="light"] .footer-links-group h4 { color: #0F172A; }
[data-theme="light"] .footer-links-group a { color: #64748B; }
[data-theme="light"] .footer-links-group a:hover { color: #4F46E5; }
[data-theme="light"] .footer-bottom { color: #94A3B8; }
[data-theme="light"] .footer-legal a { color: #94A3B8; }
[data-theme="light"] .footer-legal a:hover { color: #4F46E5; }

[data-theme="light"] .mobile-toggle span { background: #0F172A; }

/* ===== TOP RIBBON ===== */
.top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 40px;
    background: #1E1B4B;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
}
.top-ribbon .ribbon-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.top-ribbon .ribbon-label { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500; }
.top-ribbon a {
    color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease;
}
.top-ribbon a:hover { color: #A5B4FC; }
.top-ribbon .ribbon-sep { width: 1px; height: 15px; background: rgba(255,255,255,0.22); }
.top-ribbon.hidden { transform: translateY(-100%); pointer-events: none; }

/* ===== TESTIMONIAL TICKER ===== */
.testimonial-bar { background: #12102E; }
.testimonial-bar .tb-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 40px;
    margin: 0 auto;
    padding: 0 24px;
}
.tb-quote {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-size: 13.5px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    pointer-events: none;
}
.tb-quote.active { opacity: 1; transform: none; }
.tb-quote .tb-star { color: #FBBF24; font-size: 10px; letter-spacing: 1px; }
.tb-quote cite { font-style: normal; color: #A5B4FC; font-weight: 600; }
@media (max-width: 640px) {
    .tb-quote cite { display: none; }
    .tb-quote { font-size: 12.5px; }
}

/* ===== ANIMATED HERO ===== */
.hero-anim .container.hero-center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    position: relative;
    z-index: 5;
    grid-template-columns: none;
}
.hero-center { text-align: center; max-width: 1000px; width: 100%; margin: 0 auto; }
/* the centered tagline is a full-width box over the float cards — let clicks fall through
   its empty areas (and text) to the cards behind, but keep the actual buttons clickable */
.hero-center-wrap, .hero-center, .hero-center * { pointer-events: none; }
.hero-center a, .hero-center button, .hero-center .tap-card { pointer-events: auto; }
.hero-center .tap-card { cursor: pointer; }
.hero-center .hero-title { text-align: center; font-size: 60px; }
.hero-center .hero-subtitle { text-align: center; justify-content: center; }
.hero-center .hero-actions { justify-content: center; }
/* nudge the tagline block down a touch so it sits more vertically centered on laptop */
@media (min-width: 1025px) {
    .hero-center { transform: translateY(48px); }
}

/* ===== PINNED INTRO ===== */
.intro-scroll { position: relative; height: 230vh; }
#introSticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    display: block;
}
#introSticky .container.hero-center-wrap { min-height: 100vh; }

.intro-opening {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: max(15vh, 132px) 24px 5vh;
    pointer-events: none;
    text-align: center;
}
.intro-top { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.intro-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: var(--radius-full);
    background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.30);
    font-size: 13px; font-weight: 600; color: #A5B4FC; letter-spacing: 0.02em;
}
.intro-headline {
    font-size: 42px; font-weight: 800; line-height: 1.08;
    letter-spacing: -0.02em; color: var(--white); margin: 0; max-width: 760px;
}
[data-theme="light"] .intro-headline { color: #0F172A; }
.intro-bottom { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro-sub { font-size: 19px; line-height: 1.6; color: var(--dark-300); max-width: 580px; margin: 0; }
[data-theme="light"] .intro-sub { color: #475569; }
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-400);
    animation: hintBounce 1.8s ease-in-out infinite;
}
@keyframes hintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* hero text hidden until the scrub reveals it (prevents flash before JS) */
#introSticky.intro .hero-title,
#introSticky.intro .hero-actions,
#introSticky.intro .tap-text { opacity: 0; }

/* fallback: no pin on small screens / reduced motion */
.intro-scroll.no-pin { height: auto; }
.intro-scroll.no-pin #introSticky { position: static; height: auto; min-height: auto; padding: 130px 0 80px; }
.intro-scroll.no-pin #introSticky .container.hero-center-wrap { min-height: 0; }
.intro-scroll.no-pin .intro-opening { display: none; }

/* floating testimonial thumbnails */
.hero-float-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float-card {
    position: absolute;
    width: 170px;
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 0));
    transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
    pointer-events: auto;
}
.float-card.in { opacity: 1; transform: translate(0, 0); }
.float-card-inner {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #0B1120;
    box-shadow: 0 16px 40px rgba(2, 12, 40, 0.30);
    animation: drift 12s ease-in-out infinite;
}
.float-card-inner img,
.float-card-inner iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; border: 0; display: block;
    transition: transform 0.4s ease;
}
.float-card:hover .float-card-inner { box-shadow: 0 22px 55px rgba(2, 12, 40, 0.45); }
.float-card:hover .float-card-inner img { transform: scale(1.06); }
/* let clicks fall through the background video to the card so the whole thing opens the lightbox */
.float-card-inner iframe { pointer-events: none; }
.float-name {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 9px 7px;
    font-size: 10.5px; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    z-index: 2;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(0, -10px) rotate(-1deg); }
    66% { transform: translate(0, 7px) rotate(1deg); }
}
@media (max-width: 900px) {
    .hero-float-layer { display: none; }
}
/* Mobile: keep the pinned video→ID-card scrub, with fewer floating testimonials */
@media (max-width: 768px) {
    .hero-float-layer { display: block; }
    .intro-headline { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.1; max-width: 16em; }
    /* headline + video are centered as a group via JS translate — clear the top padding
       and float the scroll hint so it doesn't push the group off-center */
    .intro-opening { justify-content: flex-start; padding-top: 0; }
    .intro-opening .scroll-hint { position: absolute; left: 0; right: 0; bottom: 24px; }
    .float-card { width: 38vw; max-width: 148px; }
    .float-card:nth-child(3),
    .float-card:nth-child(4),
    .float-card:nth-child(7),
    .float-card:nth-child(8) { display: none; }
    .float-card:nth-child(1) { left: 3% !important; top: 12% !important; }
    .float-card:nth-child(2) { left: auto !important; right: 3%; top: 8% !important; }
    .float-card:nth-child(5) { left: 4% !important; top: 80% !important; }
    .float-card:nth-child(6) { left: auto !important; right: 3%; top: 84% !important; }
    .float-name { display: none; }
}

/* the "tap" card — holds the opening video, shrinks to an ID card at the end of the line */
.tap-line { transition: color 0.4s ease; }
.tap-slot {
    position: relative;
    display: inline-block;
    width: 40px; height: 25px;
    vertical-align: middle;
    margin-left: 10px;
}
.tap-card {
    position: absolute;
    left: 50%; top: 50%;
    width: 460px; height: 288px;
    margin: -144px 0 0 -230px;
    border-radius: 16px;
    overflow: hidden;
    background: #0B1120;
    transform: scale(0.087);
    transform-origin: center center;
    box-shadow: 0 20px 50px rgba(2, 12, 40, 0.45);
    transition: transform 1.4s cubic-bezier(.16,1,.3,1), box-shadow 0.5s ease;
    z-index: 20;
}
.tap-card iframe {
    position: absolute; top: 50%; left: 50%;
    height: 100%; width: auto; aspect-ratio: 16 / 9; min-width: 100%;
    transform: translate(-50%, -50%);
    border: 0; display: block; z-index: 1;
    pointer-events: none;
}
.tap-poster {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 2; pointer-events: none;
    transition: opacity 0.5s ease;
}
.tap-card.is-playing .tap-poster { opacity: 0; }
.tap-face {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    background: #0B1120;
    opacity: 0; transition: opacity 0.45s ease;
}
.tap-face-logo {
    width: 46%; max-width: 210px; aspect-ratio: 1 / 1;
    background: #fff;
    -webkit-mask: url(images/moov-logo.png) center / contain no-repeat;
    mask: url(images/moov-logo.png) center / contain no-repeat;
    transition: background 0.5s ease;
}
.tap-face.tapped .tap-face-logo { background: #3B82F6; }
.tap-line.tapped .tap-text { color: #3B82F6; }
.tap-line.tapped .tap-card {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.55), 0 18px 45px rgba(59,130,246,0.4);
}

/* ===== OPENING COVERFLOW CAROUSEL ===== */
.coverflow { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; overflow: hidden; }
.cf-track { display: flex; align-items: center; gap: 26px; will-change: transform; }
.cf-item {
    flex: 0 0 min(38vw, 420px);
    max-height: calc(100vh - 170px);
    display: flex; flex-direction: column; gap: 9px;
    background: #fff; border-radius: 20px;
    padding: 14px 22px 14px; text-align: left; text-decoration: none;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 12, 40, 0.28);
    opacity: 0.3; transform: scale(0.84);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.cf-item.is-center { opacity: 1; transform: scale(1); box-shadow: 0 30px 70px rgba(2, 12, 40, 0.4); }
.cf-qmark { font-family: Georgia, serif; font-size: 32px; line-height: 0.5; font-weight: 800; color: #6366F1; height: 13px; }
.cf-quote {
    font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; line-height: 1.24;
    letter-spacing: -0.01em; color: #0F172A; margin: 0; text-wrap: balance;
}
.cf-media {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; flex: none;
    max-width: calc((100vh - 410px) * 1.778); margin: 0 auto;
    border-radius: 12px; overflow: hidden; background: #0B1120;
}
.cf-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cf-media .cf-poster-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-watch { color: #6366F1; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cf-author { display: flex; align-items: center; gap: 12px; }
.cf-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,0.08); flex: none; display: flex; align-items: center; justify-content: center; }
.cf-avatar img { max-width: 78%; max-height: 78%; object-fit: contain; }
.cf-name { display: block; font-weight: 700; color: #0F172A; font-size: 14px; }
.cf-role { font-size: 12px; color: #64748B; }
@media (max-width: 900px) {
    .cf-item { flex-basis: min(82vw, 420px); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
/* only reserve room for the ribbon on pages that actually have one */
body:has(.top-ribbon) .navbar { top: 40px; }
/* once scrolled, the ribbon collapses — pull the nav flush to the top */
body:has(.top-ribbon) .navbar.scrolled { top: 0; }
.navbar.scrolled { top: 0; box-shadow: var(--shadow-md); background: rgba(3, 7, 18, 0.95); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    color: var(--white);
    letter-spacing: 0.02em;
}
.logo-icon { display: flex; }
.logo-icon img {
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}
[data-theme="light"] .logo-icon img { filter: none; }
.logo-text { color: var(--white); transition: color 0.3s ease; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mobile-menu-cta { display: none; }
.mobile-feature-cta { display: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-400);
    border-radius: var(--radius-md);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
}

/* ===== NAV DROPDOWNS ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-chevron { display: none; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px; left: 0; right: 0;
    height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-link {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-300);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-link:hover {
    background: rgba(99, 102, 241, 0.14);
    color: var(--white);
}
[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255,255,255,0.98);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
[data-theme="light"] .nav-dropdown-link { color: #64748B; }
[data-theme="light"] .nav-dropdown-link:hover { background: rgba(99,102,241,0.08); color: #0F172A; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--dark-950) 0%, #0A0F2E 30%, #0F172A 60%, var(--dark-950) 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--primary-500);
    top: -150px; right: -100px;
    opacity: 0.12;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--blue-500);
    bottom: -100px; left: -100px;
    opacity: 0.08;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: var(--cyan-500);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 24px;
    transition: all 0.2s;
}
.hero-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary-500);
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-500), var(--blue-500), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-cyan {
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-salmon {
    background: linear-gradient(135deg, #FA8072, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-green {
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-green-real {
    background: linear-gradient(135deg, #4ADE80, #22C55E, #16A34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-red {
    background: linear-gradient(135deg, #F87171, #EF4444, #DC2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--dark-400);
    margin-bottom: 36px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== HERO VISUAL ===== */
.hero-visual { position: relative; }

.hero-screenshot-wrap {
    position: relative;
}
.hero-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}



/* ===== LOGO BAR ===== */
.logo-bar {
    padding: 40px 0;
    background: var(--dark-900);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.logo-bar-title {
    text-align: center;
    font-size: 13px; font-weight: 600;
    color: var(--dark-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.logo-scroll {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.logo-track {
    display: flex;
    gap: 48px;
    animation: scroll 60s linear infinite;
    width: max-content;
}
.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 13px; font-weight: 700;
    color: var(--dark-600);
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}
.partner-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.7;
}
.partner-icon {
    flex-shrink: 0;
    opacity: 0.7;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== STATS ===== */
.stats-section {
    padding: 60px 0;
    background: var(--dark-950);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 42px; font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-500), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label { font-size: 14px; color: var(--dark-400); font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: var(--dark-700); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-500);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    margin-bottom: 16px;
}
.badge-cyan {
    background: rgba(34, 211, 238, 0.22);
    color: var(--cyan-400);
    border-color: rgba(34, 211, 238, 0.4);
}
.badge-salmon {
    background: rgba(250, 128, 114, 0.15);
    color: #FA8072;
    border-color: rgba(250, 128, 114, 0.2);
}
.badge-green {
    background: rgba(59, 130, 246, 0.15);
    color: var(--green-400);
    border-color: rgba(59, 130, 246, 0.2);
}
.badge-green-real {
    background: rgba(74, 222, 128, 0.22);
    color: #4ADE80;
    border-color: rgba(74, 222, 128, 0.4);
}
.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.25);
}

/* Structural section labels: small purple text, not a pill */
.badge-dark {
    background: transparent;
    color: var(--primary-500);
    border: none;
    padding: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 42px; font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 16px;
}
.section-title-light { color: var(--white); }

.section-subtitle {
    font-size: 18px;
    color: var(--dark-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-subtitle-light { color: rgba(255,255,255,0.5); }

/* ===== FEATURES ===== */
.features-section {
    padding: 100px 0;
    background: var(--dark-950);
}

.features-deep {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-deep-card {
    padding: 40px;
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}
.feature-deep-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.feature-deep-card-full {
    grid-column: 1 / -1;
}

.feature-deep-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.feature-icon-blue { background: rgba(99, 102, 241, 0.15); }
.feature-icon-cyan { background: rgba(6, 182, 212, 0.15); }
.feature-icon-red { background: rgba(239, 68, 68, 0.15); }

.feature-deep-card h3 {
    font-size: 22px; font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.feature-deep-card > p {
    font-size: 16px;
    color: var(--dark-300);
    line-height: 1.7;
}

/* Product sub-cards inside Safer Entry */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.product-card {
    padding: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(255,255,255,0.05);
}
.product-card h4 {
    font-size: 16px; font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.product-card p {
    font-size: 14px;
    color: var(--dark-400);
    line-height: 1.65;
}

/* ===== KIOSK SECTION ===== */
.kiosk-section {
    padding: 40px 0 120px;
    scroll-margin-top: 116px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.kiosk-section .section-title { color: #0F172A; }
.kiosk-section .section-subtitle { color: #64748B; }
.kiosk-section::before {
    content: '';
    display: none;
}

.kiosk-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.kiosk-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.kiosk-image-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.kiosk-photo {
    width: 420px;
    height: 560px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.55));
}

.kiosk-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    background: transparent;
    transform: scale(1.05);
}

[data-theme="light"] .kiosk-photo {
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.15));
}

.kiosk-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: kioskPulse 4s ease-in-out infinite;
}

@keyframes kioskPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.kiosk-content {
    position: relative;
    z-index: 1;
}
.kiosk-content .section-badge { display: inline-flex; }
.kiosk-content .section-title { text-align: left; }
.kiosk-content .section-subtitle { text-align: left; margin: 0 0 28px 0; }

.badge-emerald {
    background: rgba(59, 130, 246, 0.15);
    color: var(--green-400);
    border-color: rgba(59, 130, 246, 0.25);
}
.gradient-text-emerald {
    background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.check-emerald { background: rgba(59, 130, 246, 0.15); }

.btn-emerald {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-emerald:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.kiosk-placement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.placement-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--green-400);
}

@media (max-width: 1024px) {
    .kiosk-layout { gap: 50px; }
    .kiosk-image-wrap { width: 100%; max-width: 480px; height: auto; }
    .kiosk-photo { width: 340px; height: 453px; }
}
@media (max-width: 768px) {
    .kiosk-layout { grid-template-columns: 1fr; gap: 40px; }
    /* Mobile ordering: badge → h2 → kiosk video → description → "see it in action" */
    .kiosk-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .kiosk-content { display: contents; }
    .kiosk-content .section-badge { order: 1; align-self: flex-start; }
    .kiosk-content .section-title { order: 2; }
    .kiosk-visual { order: 3; margin: 18px 0 22px; }
    .kiosk-content .section-subtitle { order: 4; }
    .kiosk-content .inline-demo { order: 5; }
    .kiosk-image-wrap { width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
    .kiosk-photo { width: 300px; height: 400px; }
    .kiosk-section { padding: 80px 0; }
}

/* ===== SHOWCASE ===== */
.showcase-section {
    padding: 100px 0;
    background: var(--dark-900);
}
.showcase-section:nth-of-type(even) { background: var(--dark-950); }

.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.showcase-reverse .showcase-layout { direction: rtl; }
.showcase-reverse .showcase-layout > * { direction: ltr; }

.showcase-content .section-badge { display: inline-flex; }
.showcase-content .section-title { text-align: left; }
.showcase-content .section-subtitle { text-align: left; margin: 0 0 28px 0; }

/* ===== SEE IT IN ACTION (small clip under the feature copy) ===== */
.inline-demo { margin-top: 8px; width: 70%; }
.inline-demo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dark-900, #0F172A);
    margin-bottom: 12px;
}
.inline-demo-label svg { display: block; }
.inline-demo-media {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    box-shadow: 0 1px 2px rgba(15,23,42,0.05), 0 12px 30px -14px rgba(15,23,42,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.inline-demo-media:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 22px 46px -16px rgba(15,23,42,0.38);
}
.inline-demo-media video { display: block; width: 100%; height: auto; }
.inline-demo-expand {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15,23,42,0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease;
    pointer-events: none;
}
.inline-demo-expand svg { display: block; }
.inline-demo-media:hover .inline-demo-expand { background: rgba(15,23,42,0.94); }

/* fullscreen video lightbox */
.demo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    background: rgba(6,10,20,0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.demo-lightbox.open { display: flex; }
.demo-lightbox-inner {
    position: relative;
    width: min(1100px, 92vw);
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,0.75);
}
.demo-lightbox-inner video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 86vh;
}
/* 16:9 responsive Vimeo embed for the floating testimonial videos */
.demo-lightbox-inner--video { width: min(1000px, 92vw); }
.demo-lightbox-inner--video .vimeo-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.demo-lightbox-inner--video .vimeo-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.demo-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.demo-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--dark-200);
}

.check-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    margin-top: 1px;
}
.check-cyan { background: rgba(6, 182, 212, 0.15); }
.check-salmon { background: rgba(250, 128, 114, 0.15); }
.check-green-real { background: rgba(34, 197, 94, 0.15); }
.check-red { background: rgba(239, 68, 68, 0.15); }

/* Demo cards in showcase */
.showcase-card-stack { position: relative; height: 400px; }
.showcase-demo-card {
    position: absolute;
    background: var(--dark-800);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    width: 320px;
    transition: all 0.3s ease;
}
.showcase-demo-card:hover { transform: translateY(-4px) !important; }

.card-1 { top: 0; left: 0; z-index: 3; }
.card-2 { top: 80px; left: 60px; z-index: 2; }
.card-3 { top: 160px; left: 120px; z-index: 1; }

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-card-icon {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
}
.demo-card-title { font-size: 13px; font-weight: 600; color: var(--dark-200); }

.demo-card-body { padding: 12px 16px; }

.demo-attendance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--dark-300);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.demo-attendance-row:last-child { border-bottom: none; }

.demo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green { background: var(--green-500); }
.dot-yellow { background: var(--amber-500); }
.dot-blue { background: var(--blue-500); }

.demo-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--dark-500);
    font-weight: 500;
}

/* ===== PRODUCT IMAGES ===== */
.product-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

/* Reader / handheld videos have white backgrounds — drop the shadow filter so they sit flat on the white section */
#attendance .product-photo,
#handheld .product-photo { filter: none; }
#attendance .product-photo { max-width: 320px; }
/* MOOV Academy ID card (Hall Pass section) — 20% larger */
#ztp .product-photo { transform: scale(1.2); transform-origin: center; }
/* Student Accountability handheld video — enlarged */
#handheld .product-photo { transform: scale(1.5); transform-origin: center; }

/* Visitor Management diagonal layout */
#visitor-management .product-image-wrap {
    min-height: 300px;
    align-items: flex-start;
    justify-content: flex-start;
}

#visitor-management .product-photo {
    position: relative;
    top: 0;
    left: 0;
    animation: floatVM 5s ease-in-out infinite;
}

.floating-pass {
    position: absolute;
    width: 225px;
    height: auto;
    right: 40px;
    bottom: 30px;
    border-radius: 0;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
    animation: floatPass 4.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatVM {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatPass {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}
.product-card-photo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.feature-card-photo {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

/* ===== VIDEO PREVIEW ===== */
.video-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 2.4 / 1;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-preview.playing {
    aspect-ratio: 16 / 9;
}
.video-preview.playing .video-thumbnail {
    display: none;
}
.video-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1;
    transition: opacity 0.4s ease;
}
.video-preview.playing .video-preview-overlay {
    opacity: 0;
    pointer-events: none;
}
.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}
.video-play-btn:hover {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 1);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}
.video-play-btn svg {
    margin-left: 3px;
}
.video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-preview.playing .video-iframe {
    display: block !important;
}


/* ===== ABOUT SECTION (INLINE) ===== */
.about-section {
    padding: 140px 0 100px;
    background: var(--dark-900);
}
.about-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-team-header {
    text-align: center;
    margin: 120px 0 40px;
}
.about-team-header .section-badge { display: inline-flex; }
.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px 20px;
    border-radius: 24px;
    background: #0A66C2;
    transition: all 0.2s;
}
.team-linkedin:hover {
    background: #08508f;
    transform: translateY(-1px);
}
.team-linkedin svg { flex-shrink: 0; }

[data-theme="light"] .about-section { background: #F8FAFC; }

/* ===== PHONE MOCKUP ===== */
.student-visual {
    display: flex;
    justify-content: center;
}
.phone-mockup {
    width: 280px;
    background: var(--dark-800);
    border-radius: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
}
.phone-notch {
    width: 120px; height: 28px;
    background: var(--dark-950);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}
.phone-screen { padding: 16px 20px 32px; }

.phone-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.phone-app-name {
    font-size: 18px; font-weight: 800;
    color: var(--white);
}
.phone-period {
    font-size: 12px; font-weight: 600;
    color: var(--dark-400);
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
}

.phone-status-card {
    text-align: center;
    padding: 28px 20px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.phone-check-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.phone-status-text {
    font-size: 16px; font-weight: 700;
    color: var(--green-400);
    margin-bottom: 4px;
}
.phone-status-detail {
    font-size: 12px; color: var(--dark-400);
}

.phone-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.phone-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--dark-300);
    transition: all 0.2s;
}
.phone-menu-item span:first-child { font-size: 22px; }
.phone-menu-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ===== HARDWARE ===== */
.hardware-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
[data-theme="light"] .hardware-section { background: #F8FAFC; }

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}
.hardware-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}
.hardware-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}
[data-theme="light"] .hardware-card {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hardware-card:hover {
    background: #FFFFFF;
    border-color: rgba(99,102,241,0.3);
}
.hardware-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 264px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}
[data-theme="light"] .hardware-photo { background: #FFFFFF; border-color: #E2E8F0; }
.hardware-photo img,
.hardware-photo video {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.hardware-nameplate {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    background: rgba(15,23,42,0.92);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.hardware-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}
.hardware-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-300);
    margin-bottom: 10px;
}
.hardware-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}
[data-theme="light"] .hardware-body h3 { color: #0F172A; }
.hardware-body p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--dark-300);
    margin-bottom: 20px;
    flex: 1;
}
[data-theme="light"] .hardware-body p { color: #64748B; }
.hardware-powers-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-400);
    margin-bottom: 10px;
}
.hardware-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hw-chip {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.hw-chip-green { background: rgba(34,197,94,0.14); color: #16A34A; }
.hw-chip-salmon { background: rgba(250,128,114,0.16); color: #E5674F; }
.hw-chip-blue { background: rgba(59,130,246,0.14); color: #2563EB; }
.hw-chip-cyan { background: rgba(6,182,212,0.16); color: #0891B2; }

@media (max-width: 900px) {
    .hardware-grid { grid-template-columns: 1fr; }
}

/* ===== DISTRICTS ===== */
.districts-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #030712 0%, #0A0F2E 50%, #0F0A2A 100%);
}
.district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Admin dashboard screenshot */
.admin-dashboard-shot {
    max-width: 1040px;
    margin: 0 auto 56px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.15);
}
[data-theme="light"] .admin-dashboard-shot {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 24px 60px -18px rgba(15,23,42,0.28);
}
.admin-dashboard-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1E1B4B;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-dashboard-bar .adb-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,0.28);
}
.admin-dashboard-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.district-card {
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}
.district-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}
.district-icon { margin-bottom: 20px; }
.district-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.district-card p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works-section {
    padding: 100px 0;
    background: var(--dark-900);
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step-card {
    text-align: center;
    padding: 40px 32px;
    max-width: 320px;
}
.step-number {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500), var(--blue-500));
    color: var(--white);
    font-size: 22px; font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.step-card h3 {
    font-size: 20px; font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.step-card p {
    font-size: 14px;
    color: var(--dark-400);
    line-height: 1.6;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--dark-950);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    padding: 32px;
    background: var(--dark-800);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars span { color: #F59E0B; font-size: 18px; }
.testimonial-text {
    font-size: 15px;
    color: var(--dark-300);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--white); }
.testimonial-author span { font-size: 13px; color: var(--dark-500); }

/* ===== FAQ ===== */
.faq-section {
    padding: 100px 0;
    background: var(--dark-900);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-align: left;
}
.faq-chevron {
    color: var(--dark-400);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--primary-500); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--dark-400);
    line-height: 1.7;
}

/* ===== CTA ===== */
/* ===== Video testimonials (homepage) ===== */
.vtest-section { padding: 100px 0; background: var(--dark-950); }
[data-theme="light"] .vtest-section { background: #F8FAFC; }

.vtest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.vtest-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vtest-card:hover {
    transform: translateY(-4px);
    border-color: var(--vt-accent);
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
[data-theme="light"] .vtest-card {
    background: #FFFFFF;
    border-color: rgba(15,23,42,0.08);
}
[data-theme="light"] .vtest-card:hover { box-shadow: 0 24px 50px rgba(15,23,42,0.12); }

.vtest-reel {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #070b14;
}
/* 16:9 background video scaled to COVER the 16:10 tile — no bars */
.vtest-iframe {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    height: 100%; width: calc(100% * 10 / 9);
    border: 0; background: #070b14;
}
.vtest-play {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(7,11,20,0.5); border: 1.5px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    transition: background .25s ease, transform .25s ease;
}
.vtest-card:hover .vtest-play { background: var(--vt-accent); transform: scale(1.06); }

.vtest-quote {
    font-size: 16px; font-weight: 600; line-height: 1.5;
    color: var(--white); margin: 18px 4px 16px;
}
[data-theme="light"] .vtest-quote { color: #0F172A; }

.vtest-author { display: flex; align-items: center; gap: 11px; margin: auto 4px 4px; }
.vtest-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--vt-accent); color: #fff; font-weight: 700; font-size: 13px;
}
.vtest-avatar--logo { background: #fff; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.06); }
.vtest-avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.vtest-meta { display: flex; flex-direction: column; font-size: 13px; color: var(--dark-400); line-height: 1.4; }
.vtest-meta strong { color: var(--white); font-size: 14px; }
[data-theme="light"] .vtest-meta { color: #64748B; }
[data-theme="light"] .vtest-meta strong { color: #0F172A; }

.vtest-cta { text-align: center; margin-top: 48px; }

@media (max-width: 900px) {
    .vtest-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E1065, var(--primary-600), #0F172A);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: var(--primary-500);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: var(--blue-500);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-title {
    font-size: 48px; font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 0;
    background: var(--dark-950);
    color: var(--dark-400);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-desc {
    font-size: 14px; line-height: 1.6;
    color: var(--dark-500);
    margin-bottom: 20px;
    max-width: 280px;
}
.footer-address {
    font-style: normal;
    font-size: 14px; line-height: 1.6;
    color: var(--dark-500);
    margin-bottom: 20px;
    max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    color: var(--dark-400);
    transition: all 0.2s;
}
.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
}

.footer-links-group h4 {
    font-size: 13px; font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.footer-links-group li { margin-bottom: 10px; }
.footer-links-group a {
    font-size: 14px; color: var(--dark-500);
    transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--primary-500); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--dark-500); transition: color 0.2s; }
.footer-legal a:hover { color: var(--primary-500); }

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 44px; }
    .hero-visual { max-width: 600px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .district-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        border-radius: 16px;
        padding: 8px;
    }
    .mobile-toggle { display: flex; z-index: 10; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        background: rgba(28, 28, 30, 0.98);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 2px;
        animation: menuSlideDown 0.25s ease-out;
        /* Fallback for older browsers; dvh handles iOS Safari's URL bar toggle */
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    [data-theme="light"] .nav-links.active {
        background: rgba(255, 255, 255, 0.99);
        border-color: rgba(0,0,0,0.08);
        box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    }
    @keyframes menuSlideDown {
        from { opacity: 0; transform: translateY(-8px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .nav-links.active .nav-link {
        font-size: 17px;
        font-weight: 500;
        padding: 14px 16px;
        border-radius: 10px;
        color: var(--white);
    }
    .nav-links.active .nav-link:hover {
        background: rgba(255,255,255,0.08);
    }
    .nav-links.active .nav-link.active {
        background: none;
    }
    [data-theme="light"] .nav-links.active .nav-link {
        color: #1E293B;
    }
    [data-theme="light"] .nav-links.active .nav-link:hover {
        background: rgba(0,0,0,0.05);
    }
    [data-theme="light"] .nav-links.active .nav-link.active {
        background: none;
    }
    .nav-links.active .nav-link + .nav-link {
        border-top: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
    }
    .nav-links.active .nav-link:first-child { border-radius: 10px 10px 0 0; }
    .nav-links.active .nav-link:last-child { border-radius: 0 0 10px 10px; }
    .nav-links.active .nav-link:only-child { border-radius: 10px; }
    [data-theme="light"] .nav-links.active .nav-link + .nav-link {
        border-top-color: rgba(0,0,0,0.06);
    }
    /* Get a Demo stays visible in the top bar, left of the menu icon */
    .nav-actions {
        display: flex;
        position: static;
        margin-left: auto;
        margin-right: 12px;
        gap: 8px;
    }
    .nav-actions .btn {
        display: inline-flex;
        padding: 9px 18px;
        font-size: 14px;
        border-radius: var(--radius-full);
    }
    .mobile-menu-cta { display: none; }

    /* Dropdowns: stack + tap to expand on mobile */
    .nav-dropdown { width: 100%; }
    .nav-links.active .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        font-size: 17px;
        font-weight: 500;
        padding: 14px 16px;
        border-radius: 10px;
        color: var(--white);
    }
    [data-theme="light"] .nav-links.active .nav-dropdown-trigger { color: #1E293B; }
    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        box-shadow: none;
        margin: 2px 0 6px 18px;
        padding: 2px 0 4px 12px;
        border-left: 2px solid rgba(255,255,255,0.12);
        transition: none;
    }
    .nav-dropdown-menu::before { display: none; }
    [data-theme="light"] .nav-dropdown-menu {
        background: none;
        border: none;
        border-left: 2px solid rgba(0,0,0,0.1);
        border-radius: 0;
        box-shadow: none;
    }
    .nav-chevron { display: none; }
    .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
    .nav-links.active .nav-dropdown-link {
        font-size: 15px;
        padding: 11px 14px;
        color: var(--dark-300);
    }
    [data-theme="light"] .nav-links.active .nav-dropdown-link { color: #475569; }
    .mobile-menu-cta {
        display: none;
        margin-top: 6px;
        padding: 14px 16px;
        border-radius: 10px;
        text-align: center;
        justify-content: center;
        font-size: 17px;
        font-weight: 600;
    }

    .hero { padding: 110px 0 60px; min-height: auto; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 20px; }
    .section-title { font-size: 32px; }

    /* intro hero (tagline screen) on phones */
    .hero-center .hero-title { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.1; }
    .hero-center .hero-subtitle { font-size: 18px; }
    .hero-center .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .hero-center .hero-actions .btn { flex: 0 0 auto; }

    .showcase-layout { grid-template-columns: 1fr; gap: 48px; }
    .showcase-reverse .showcase-layout { direction: ltr; }
    /* Mobile ordering: badge → h2 → rotating video → description → list → "see it in action" */
    .showcase-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .showcase-content { display: contents; }
    .showcase-content .section-badge { order: 1; align-self: flex-start; }
    .showcase-content .section-title { order: 2; }
    .showcase-visual { order: 3; margin: 18px 0 22px; }
    .showcase-content .section-subtitle { order: 4; }
    .showcase-content .showcase-list { order: 5; }
    .showcase-content .inline-demo { order: 6; }
    /* "See it in action" video on mobile — near-full width, polished rounded corners */
    .inline-demo { width: 100%; }
    .inline-demo-media {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
    }
    .inline-demo-media:hover { transform: none; }
    /* Mobile-only Get a Demo button at the end of the feature sections */
    .mobile-feature-cta {
        display: flex;
        justify-content: center;
        margin-top: -76px; /* cancels the section's 100px bottom padding, leaving 1.5rem below the last text */
        padding: 0 24px 40px;
    }
    .mobile-feature-cta .btn {
        background: #475569;
        color: #fff;
        padding: 15px 38px;
        border-radius: var(--radius-full);
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    }
    .mobile-feature-cta .btn:hover { background: #334155; }
    /* MOOV reader video 30% smaller on mobile */
    #attendance .product-photo { max-width: 224px; margin: 0 auto; }
    /* On mobile, scale transforms overflow their box and overlap the text.
       Let these videos size naturally so they sit cleanly between the h2 and the description. */
    #handheld .product-photo,
    #ztp .product-photo { transform: none; }
    #ztp .showcase-visual,
    #handheld .showcase-visual { margin: 20px 0 24px; }
    /* trim ~30% of the empty top/bottom band baked into the rotating handheld video */
    #handheld .product-image-wrap { overflow: hidden; }
    #handheld .product-photo { margin-top: -13%; margin-bottom: -13%; }
    .showcase-card-stack {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .showcase-demo-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100%;
    }

    .features-deep { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .product-photo { filter: none; }
    .floating-pass { width: 140px; right: 0; bottom: 0; filter: none; }
    #visitor-management .product-image-wrap { min-height: 260px; }
    .district-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .stats-grid { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
    .stat-divider { display: none; }
    .stat-item {
        flex: none; width: 100%; min-width: 0;
        background: #F7F9FC;
        border: 1px solid #E9EBEF;
        border-radius: 16px;
        padding: 24px 20px;
        box-shadow: 0 1px 2px rgba(15,23,42,0.03);
    }
    .stat-number { font-size: 30px; margin-bottom: 6px; }
    .stat-label { font-size: 13.5px; line-height: 1.45; max-width: 34ch; margin: 0 auto; }

    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { padding-top: 0; transform: rotate(90deg); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .cta-title { font-size: 36px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1080px) {
    /* Stack the statistics vertically so they never get cut off on narrower screens (the nowrap
       stat numbers push the inline row past the viewport below ~1080px, e.g. iPad landscape) */
    .stats-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        max-width: none;
        margin: 0;
        padding: 0 8px; /* +24px container padding = 2rem side gutters */
    }
    .stat-divider { display: none; }
    .stat-item {
        text-align: center;
        background: #F7F9FC;
        border: 1px solid #E9EBEF;
        border-radius: 16px;
        padding: 24px 20px;
        box-shadow: 0 1px 2px rgba(15,23,42,0.03);
    }
    .stat-number { font-size: 34px; margin-bottom: 6px; }
    .stat-label { font-size: 14px; line-height: 1.45; max-width: 40ch; margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .section-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}
