/* ============================================================
   HoreX Marketing Website — Components
   
   Navbar, Hero, Buttons, Cards, Footer, FAQ, Badges.
   All responsive and mobile-first.
   ============================================================ */

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--container-xl);
    z-index: var(--z-nav);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--container-padding);
    max-width: var(--container-xl);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .navbar__inner {
        height: 72px;
    }
}

.navbar__logo {
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-gray-900);
    letter-spacing: var(--tracking-tight);
}

.navbar__logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__links {
    display: none;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 1024px) {
    .navbar__links {
        display: flex;
    }
}

.navbar__link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-600);
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar__link:hover {
    color: var(--color-gray-900);
}

.navbar__cta {
    display: none;
}

@media (min-width: 1024px) {
    .navbar__cta {
        display: flex;
    }
}

/* Mobile menu toggle */
.navbar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-gray-700);
}

@media (min-width: 1024px) {
    .navbar__toggle {
        display: none;
    }
}

.navbar__toggle svg {
    width: 24px;
    height: 24px;
}

/* ── Navbar Dropdown Item ─────────────────────────── */
.navbar__item {
    position: static; /* mega-menu positions relative to .navbar */
}

.navbar__dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    padding: 0;
}

.navbar__chevron {
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.navbar__item.open .navbar__chevron {
    transform: rotate(180deg);
}

/* ── Mega Menu Panel ─────────────────────────────── */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: #ffffff;
    border-top: 1px solid var(--color-gray-100);
    box-shadow: 0 20px 60px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    margin-top: -1px;
}

.navbar__item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 32px var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Narrow variant for Solutions (single column) */
.mega-menu--narrow {
    left: auto;
    right: auto;
    width: 300px;
    border-radius: 0 0 16px 16px;
}

.mega-menu--narrow .mega-menu__inner {
    grid-template-columns: 1fr;
    padding: 20px 24px;
    gap: 0;
}

/* Position narrow menu under its trigger */
.navbar__item[data-dropdown="solutions"] {
    position: relative;
}

.navbar__item[data-dropdown="solutions"] .mega-menu--narrow {
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
}

.navbar__item[data-dropdown="solutions"].open .mega-menu--narrow {
    transform: translateX(-50%) translateY(0);
}

/* ── Mega Menu Group ─────────────────────────────── */
.mega-menu__group-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.mega-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: background 150ms ease, color 150ms ease;
}

.mega-menu__link:hover {
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}

/* ── Mega Menu Icon Badges ───────────────────────── */
.mega-menu__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #EFF6FF;
    color: #2563EB;
}

.mega-menu__icon--green {
    background: #ECFDF5;
    color: #059669;
}

.mega-menu__icon--amber {
    background: #FFFBEB;
    color: #D97706;
}

.mega-menu__icon--violet {
    background: #F5F3FF;
    color: #7C3AED;
}

/* Hide mega-menus on mobile */
@media (max-width: 1023px) {
    .mega-menu { display: none !important; }
    .navbar__item { display: none; }
}

/* ── Mobile Bottom-Sheet Menu ──────────────────────── */

/* Backdrop overlay */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay) - 1);
    background: rgba(0, 0, 0, 0);
    transition: background 300ms ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-backdrop.open {
    display: block;
    background: rgba(0, 0, 0, 0.4);
}

/* Bottom sheet container */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: var(--color-white);
    border-radius: 20px 20px 0 0;
    padding: 8px var(--space-5) var(--space-8);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px -10px rgba(0, 0, 0, 0.15);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Drag handle pill */
.mobile-menu__handle {
    width: 36px;
    height: 4px;
    background: var(--color-gray-300);
    border-radius: 2px;
    margin: 8px auto 20px;
    flex-shrink: 0;
}

/* Nav links */
.mobile-menu__link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    border-radius: 12px;
    transition: background 150ms ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}

/* Accordion sections */
.mobile-menu__section {
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: var(--space-1);
}

.mobile-menu__section:last-of-type {
    border-bottom: none;
}

.mobile-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 12px;
    transition: background 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__trigger:active {
    background: var(--color-gray-50);
}

.mobile-menu__chev {
    transition: transform 200ms ease;
    flex-shrink: 0;
    color: var(--color-gray-400);
}

.mobile-menu__section.open .mobile-menu__chev {
    transform: rotate(180deg);
}

.mobile-menu__panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 var(--space-2) 0 var(--space-6);
    transition: max-height 350ms cubic-bezier(0.32, 0.72, 0, 1),
                opacity 250ms ease,
                padding 350ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu__section.open .mobile-menu__panel {
    max-height: 600px;
    opacity: 1;
    padding: 0 var(--space-2) var(--space-2) var(--space-6);
}

.mobile-menu__panel .mobile-menu__link {
    font-size: 0.9375rem;
    padding: 10px 12px;
    color: var(--color-gray-500);
}

.mobile-menu__group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-3) 12px var(--space-1);
    margin-top: var(--space-1);
}

.mobile-menu__group-title:first-child {
    margin-top: 0;
}

/* CTA at bottom */
.mobile-menu__cta {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-100);
}

.mobile-menu__cta .btn {
    font-size: 1rem;
    padding: 16px;
    border-radius: 14px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0);
}

.btn--primary:hover {
    background: var(--gradient-primary-hover);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn--outline:hover {
    border-color: var(--color-gray-400);
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}

.btn--ghost {
    background: transparent;
    color: var(--color-gray-600);
    border: none;
    font-weight: 500;
}

.btn--ghost:hover {
    color: var(--color-gray-900);
    background: var(--color-gray-50);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--full {
    width: 100%;
}

@media (min-width: 640px) {
    .btn--full {
        width: auto;
    }
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
    padding-top: calc(64px + var(--space-16));
    padding-bottom: var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, #f8faff 0%, #f0f4ff 40%, #ffffff 100%);
}

/* Dot-grid background pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Radial gradient accent blobs */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 30%, rgba(99, 102, 241, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 55% 85%, rgba(59, 130, 246, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero>.container {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
        text-align: left;
        overflow-x: clip;
    }

    .hero>.container {
        display: flex;
        align-items: center;
        gap: var(--space-8);
    }
}

.hero__content {
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .hero__content {
        max-width: 540px;
        flex-shrink: 0;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

/* Badge shimmer effect */
.hero__badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.hero__title {
    max-width: 900px;
    margin: 0 auto var(--space-6);
    font-weight: var(--font-semibold);
}

@media (min-width: 1024px) {
    .hero__title {
        margin: 0 0 var(--space-6);
    }
}

.hero__subtitle {
    max-width: 640px;
    margin: 0 auto var(--space-8);
    font-size: var(--text-lg);
    color: var(--color-gray-500);
}

@media (min-width: 1024px) {
    .hero__subtitle {
        font-size: var(--text-xl);
        margin: 0 0 var(--space-8);
    }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--space-4);
        width: auto;
        max-width: none;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .hero__actions {
        justify-content: flex-start;
    }
}

.hero__demo-window {
    margin-top: var(--space-12);
    overflow: visible;
}

@media (min-width: 1024px) {
    .hero__demo-window {
        margin-top: 0;
        flex: 1;
        min-width: 0;
        margin-right: -80px;
    }
}

/* ── Feature Cards ──────────────────────────────────── */
.card {
    padding: var(--space-8);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover .card__icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    transform: scale(1.05);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.card__text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
}

/* ── Pain Point Cards ───────────────────────────────── */
.pain-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.pain-card:hover {
    background: var(--color-white);
    border-color: var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.pain-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-error-light);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--text-xl);
}

.pain-card__text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

.pain-card__text strong {
    color: var(--color-gray-900);
}

/* ── Section Header ─────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-3);
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-500);
}

/* ── FAQ Accordion ──────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--color-gray-200);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) 0;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    text-align: left;
    cursor: pointer;
}

.faq-item__question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
    transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item.open .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    padding-bottom: var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr repeat(4, 1fr);
        gap: var(--space-12);
    }
}

.footer__brand p {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    max-width: 300px;
}

.footer__col-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    transition: color var(--duration-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-800);
    font-size: var(--text-sm);
}

@media (min-width: 640px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ── Badge / Tag ────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.badge--blue {
    background: var(--color-primary-50);
    color: var(--color-primary);
}

.badge--green {
    background: var(--color-success-light);
    color: var(--color-success);
}

/* ── CTA Banner ─────────────────────────────────────── */
.cta-banner {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    color: var(--color-white);
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-banner p {
    color: var(--color-gray-300);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Comparison Table ───────────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.comparison-table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-semibold);
    color: var(--color-gray-500);
    border-bottom: 2px solid var(--color-gray-200);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.comparison-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700);
}

.comparison-table tr:hover td {
    background: var(--color-gray-50);
}

/* ── Scroll animations ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

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

/* ── Trust Strip ────────────────────────────────────── */
.trust-strip {
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.trust-strip__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    text-align: center;
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .trust-strip__stats {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: var(--space-12);
    }
}

.trust-strip__stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--color-gray-900);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    margin-bottom: var(--space-1);
}

@media (min-width: 1024px) {
    .trust-strip__stat-number {
        font-size: var(--text-4xl);
    }
}

.trust-strip__stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-medium);
}

.trust-strip__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.trust-strip__logo {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-300);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    white-space: nowrap;
}

/* ── How It Works ───────────────────────────────────── */
.how-it-works {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    position: relative;
}

@media (min-width: 768px) {
    .how-it-works {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.how-it-works__step {
    text-align: center;
    position: relative;
}

.how-it-works__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
    .how-it-works__step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 28px;
        left: calc(50% + 36px);
        width: calc(100% - 72px);
        height: 2px;
        background: var(--color-gray-200);
        z-index: 0;
    }
}

.how-it-works__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.how-it-works__text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
    max-width: 280px;
    margin: 0 auto;
}

/* ── Differentiator Blocks ──────────────────────────── */
.differentiator {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .differentiator {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .differentiator--reverse .differentiator__visual {
        order: -1;
    }
}

.differentiator__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.differentiator__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.differentiator__label svg {
    width: 18px;
    height: 18px;
}

.differentiator__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    line-height: var(--leading-tight);
}

@media (min-width: 1024px) {
    .differentiator__title {
        font-size: var(--text-3xl);
    }
}

.differentiator__text {
    font-size: var(--text-base);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
}

.differentiator__visual {
    aspect-ratio: 4 / 3;
    background: var(--gradient-subtle);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.differentiator__visual-placeholder {
    color: var(--color-gray-300);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* ── Feature Showcase (Stripe-style split + stacked cards) ── */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

@media (min-width: 1024px) {
    .feature-showcase {
        grid-template-columns: 5fr 6fr;
        gap: var(--space-16);
    }
}

/* -- Left column: content -- */
.feature-showcase__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.feature-showcase__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.feature-showcase__label svg {
    width: 18px;
    height: 18px;
}

.feature-showcase__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    line-height: var(--leading-tight);
}

@media (min-width: 1024px) {
    .feature-showcase__title {
        font-size: var(--text-4xl);
    }
}

.feature-showcase__text {
    font-size: var(--text-base);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
    max-width: 480px;
}

/* Checklist items */
.feature-showcase__checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.feature-showcase__check-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
}

.feature-showcase__check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-showcase__check-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-white);
    stroke-width: 3;
    fill: none;
}

/* -- Right column: scrolling card deck (Stripe-style) -- */
.feature-showcase__cards {
    position: relative;
    height: 320px;
    overflow: hidden;
    /* Gradient mask: fade bottom cards to white — no ugly flat edge */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

@media (min-width: 768px) {
    .feature-showcase__cards {
        height: 360px;
    }
}

.showcase-card {
    position: absolute;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    will-change: transform, opacity;
    /* Default hidden state */
    opacity: 0;
    pointer-events: none;
}

/* 
 * Slot system: 3 visible cards
 * Slot 0 = top, flush left, full opacity
 * Slot 1 = middle, offset right, slightly faded 
 * Slot 2 = bottom, SAME offset as slot 1, more faded
 */

/* All transitions use the same smooth easing */
.showcase-card.sc-animate {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slot 0: Top card — full width, prominent */
.showcase-card[data-slot="0"] {
    top: 0;
    left: 0;
    right: 8%;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 3;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
}

/* Slot 1: Middle card — offset right, dimmed */
.showcase-card[data-slot="1"] {
    top: 0;
    left: 6%;
    right: 2%;
    opacity: 0.7;
    pointer-events: none;
    transform: translateY(105px);
    z-index: 2;
}

@media (min-width: 768px) {
    .showcase-card[data-slot="1"] {
        transform: translateY(115px);
    }
}

/* Slot 2: Bottom card — same offset as slot 1, more faded */
.showcase-card[data-slot="2"] {
    top: 0;
    left: 6%;
    right: 2%;
    opacity: 0.4;
    pointer-events: none;
    transform: translateY(210px);
    z-index: 1;
}

@media (min-width: 768px) {
    .showcase-card[data-slot="2"] {
        transform: translateY(230px);
    }
}

/* Exit UP: top card peels upward and shrinks — physical leafing feel */
.showcase-card[data-slot="exit-up"] {
    top: 0;
    left: 0;
    right: 8%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110px) scale(0.95);
    z-index: 4;
}

/* Enter from bottom: new card slides in from below */
.showcase-card[data-slot="enter-bottom"] {
    top: 0;
    left: 6%;
    right: 2%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(300px);
    z-index: 0;
}

/* Card icon badge — inline layout */
.showcase-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.showcase-card__icon svg {
    width: 20px;
    height: 20px;
}

.showcase-card__icon--purple {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
}

.showcase-card__icon--blue {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
}

.showcase-card__icon--teal {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}

.showcase-card__icon--amber {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.showcase-card__icon--rose {
    background: linear-gradient(135deg, #E11D48 0%, #F43F5E 100%);
}

/* Card body */
.showcase-card__body {
    flex: 1;
    min-width: 0;
}

/* Card title */
.showcase-card__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

/* Card metadata row */
.showcase-card__meta {
    display: flex;
    gap: var(--space-6);
}

.showcase-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.showcase-card__meta-label {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    font-weight: var(--font-medium);
}

.showcase-card__meta-value {
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
}

/* Divider between meta columns */
.showcase-card__divider {
    width: 1px;
    align-self: stretch;
    background: var(--color-gray-200);
}

/* Reversed variant (visual on the left, content on the right) */
@media (min-width: 768px) {
    .feature-showcase--reverse .feature-showcase__cards {
        order: -1;
    }
}

/* ── Integrations Strip ─────────────────────────────── */
.integrations__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .integrations__logos {
        gap: var(--space-6);
    }
}

.integrations__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-600);
    transition: all var(--duration-normal) var(--ease-out);
}

.integrations__logo:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.integrations__logo svg {
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
}

/* ── Testimonial ────────────────────────────────────── */
.testimonial {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial__quote {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    color: var(--color-gray-800);
    line-height: var(--leading-relaxed);
    font-style: italic;
    margin-bottom: var(--space-8);
    position: relative;
}

@media (min-width: 1024px) {
    .testimonial__quote {
        font-size: var(--text-2xl);
    }
}

.testimonial__quote::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--color-primary-200);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial__author {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-top: var(--space-1);
}

/* ── Pain Card Title (refactored) ───────────────────── */
.pain-card__title {
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
}

.pain-card__desc {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════════════════════
   HERO FLOW ANIMATION
   Stripe-style animated product demo
   ══════════════════════════════════════════════════════ */

/* ── Flow Stage Container ──────────────────────────── */
.flow-stage {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: var(--space-12);
}

@media (min-width: 1024px) {
    .flow-stage {
        margin-top: 0;
        height: 540px;
    }
}

/* ── Shared UI Window ──────────────────────────────── */
.ui-window {
    position: absolute;
    border-radius: 12px;
    border: 1px solid #e3e3e0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: white;
    opacity: 0;
    transform: translateY(20px);
    font-family: 'Inter', -apple-system, sans-serif;
}

.ui-window.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-window.glow {
    box-shadow: 0 8px 60px rgba(79, 70, 229, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.win-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #e3e3e0;
}

.win-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #ffbd2e;
}

.dot-g {
    background: #28c840;
}

.win-title {
    margin-left: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
}

/* ── Phone Mockup (Invoice Scanner) ────────────────── */
.win-phone {
    top: 0;
    left: 0;
    width: 200px;
    border-radius: 24px;
    border: 3px solid #1a1a1a;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 10;
}

.win-phone .win-bar {
    display: none;
}

.phone-notch {
    width: 80px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.phone-header-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-header-badge {
    font-size: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1px 6px;
    border-radius: 100px;
}

/* Invoice Receipt Styling (realistic) */
.invoice-body {
    padding: 12px;
    font-size: 0.63rem;
    color: #6b7280;
    position: relative;
    background: white;
    min-height: 280px;
}

.inv-company {
    text-align: center;
    font-weight: 800;
    font-size: 0.72rem;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.inv-sub {
    text-align: center;
    font-size: 0.52rem;
    color: #9ca3af;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #d1d5db;
    line-height: 1.4;
}

.inv-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.58rem;
}

.inv-row.bold {
    font-weight: 700;
    color: #1a1a1a;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    padding-top: 5px;
    font-size: 0.65rem;
}

/* Scan Beam */
.scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4f46e5 30%, rgba(79, 70, 229, 0.6) 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.scan-beam.active {
    opacity: 1;
    animation: scanBeam 2s ease-in-out forwards;
}

@keyframes scanBeam {
    from {
        top: 0;
    }

    to {
        top: calc(100% - 3px);
    }
}

/* ── Stock Warehouse Window ────────────────────────── */
.win-stock {
    bottom: 0;
    left: 20px;
    width: 340px;
    z-index: 15;
}

.stock-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e3e3e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
}

.stock-header h3 {
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-header h3 svg {
    width: 14px;
    height: 14px;
    color: #4f46e5;
}

.stock-live {
    font-size: 0.6rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
    opacity: 0;
    transition: opacity 0.3s;
}

.live-dot.pulse {
    opacity: 1;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 4px rgba(5, 150, 105, 0);
    }
}

.stock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f0f0ee;
}

.stock-item {
    background: white;
    padding: 10px 12px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stock-item.show {
    opacity: 1;
    transform: scale(1);
}

.stock-item.highlight {
    background: #eef2ff;
    transition: background 0.3s;
}

.stock-item.highlight-off {
    background: white;
    transition: background 1.5s ease;
}

.stock-item.highlight-red {
    background: #fef2f2;
    transition: background 0.3s;
}

.stock-item.highlight-red-off {
    background: white;
    transition: background 1.5s ease;
}

.stock-item-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stock-qty {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}

.stock-qty.updated {
    color: #4f46e5;
}

.stock-qty.decreased {
    color: #dc2626;
}

.stock-unit {
    font-size: 0.55rem;
    color: #9ca3af;
    font-weight: 500;
}

.stock-delta {
    font-size: 0.62rem;
    font-weight: 700;
    color: #059669;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s;
}

.stock-delta.show {
    opacity: 1;
    transform: translateY(0);
}

.stock-delta.negative {
    color: #dc2626;
}

/* ── Receipt Confirmation Window ───────────────────── */
.win-receipt {
    top: 10px;
    right: 0;
    width: 340px;
    z-index: 5;
}

.receipt-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e3e3e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
}

.receipt-badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    background: #f3f4f6;
    color: #9ca3af;
    transition: all 0.3s;
}

.receipt-table {
    width: 100%;
    font-size: 0.68rem;
}

.receipt-table th {
    padding: 6px 10px;
    font-size: 0.56rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 1px solid #e3e3e0;
    background: #fafafa;
}

.receipt-table th:last-child {
    text-align: right;
}

.receipt-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 0.64rem;
}

.receipt-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.new-row {
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.new-row.show {
    opacity: 1;
    transform: translateY(0);
}

.new-row.flash td {
    background: #eef2ff;
    transition: background 1.2s ease;
}

.new-row.flash-off td {
    background: transparent;
}

.status-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 100px;
}

.status-matched {
    background: #ecfdf5;
    color: #059669;
}

.status-new {
    background: #fffbeb;
    color: #d97706;
}

/* Approve bar */
.approve-row {
    padding: 10px 14px;
    border-top: 1px solid #e3e3e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.approve-total {
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 0.3s;
}

.approve-total.show {
    opacity: 1;
}

.approve-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.approve-btn.hidden {
    background: #f3f4f6;
    color: #9ca3af;
}

.approve-btn.ready {
    background: #4f46e5;
    color: white;
}

.approve-btn.loading {
    background: #4f46e5;
    color: white;
    opacity: 0.85;
}

.approve-btn.done {
    background: #059669;
    color: white;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── POS Terminal Window ───────────────────────────── */
.win-pos {
    bottom: 50px;
    right: 10px;
    width: 200px;
    z-index: 20;
    border-radius: 14px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pos-header {
    padding: 8px 12px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px 14px 0 0;
}

.pos-header-title {
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pos-header-title svg {
    width: 12px;
    height: 12px;
}

.pos-order-badge {
    font-size: 0.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 100px;
}

.pos-body {
    padding: 8px;
}

.pos-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 6px;
    font-size: 0.6rem;
    border-radius: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pos-item.show {
    opacity: 1;
    transform: translateX(0);
}

.pos-item.flash {
    background: #fef2f2;
}

.pos-item-name {
    font-weight: 600;
    color: #1a1a1a;
}

.pos-item-price {
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.pos-total {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.68rem;
    font-weight: 800;
    color: #1a1a1a;
    opacity: 0;
    transition: opacity 0.3s;
}

.pos-total.show {
    opacity: 1;
}

.pos-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 7px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.pos-pay-btn.hidden {
    background: #e5e7eb;
    color: #9ca3af;
}

.pos-pay-btn.ready {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

.pos-pay-btn.done {
    background: #059669;
    color: white;
}

/* ── Animated Cursor ───────────────────────────────── */
.fake-cursor {
    position: absolute;
    width: 18px;
    height: 22px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: top 1s cubic-bezier(0.22, 1, 0.36, 1),
        left 1s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s;
}

.fake-cursor.show {
    opacity: 1;
}

.fake-cursor svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.click-ripple {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.3);
    pointer-events: none;
    transform: scale(0);
    opacity: 1;
    z-index: 99;
}

.click-ripple.animate {
    animation: ripple 0.5s ease-out forwards;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ── Flow Stage Responsive ─────────────────────────── */
@media (max-width: 1023px) {
    .flow-stage {
        height: 400px;
        overflow: visible;
        margin-top: var(--space-6);
    }
}

/* Phones: hide the complex multi-window animation entirely */
@media (max-width: 640px) {
    .hero__demo-window {
        display: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero__content {
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .ui-window {
        font-size: 13px;
    }

    /* Phone: narrow, left side */
    .win-phone {
        width: 190px !important;
        top: 10px !important;
        left: 2% !important;
        z-index: 2;
    }

    .win-phone .invoice-body {
        font-size: 11px;
        min-height: 280px;
        padding: 14px 12px;
    }

    /* Receipt: slightly offset, layered on top */
    .win-receipt {
        width: 88% !important;
        top: 0 !important;
        left: 6% !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 3;
    }

    /* Stock: bigger, shifted down */
    .win-stock {
        width: 92% !important;
        top: 30px !important;
        left: 4% !important;
        bottom: auto !important;
        z-index: 4;
    }

    /* POS: compact, right side */
    .win-pos {
        width: 190px !important;
        top: 5px !important;
        right: 2% !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 5;
    }

    .stock-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
}

/* ── Accessibility ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .ui-window,
    .scan-beam,
    .new-row,
    .stock-item,
    .pos-item,
    .fake-cursor {
        transition: none !important;
        animation: none !important;
    }

    .hero__badge::after {
        animation: none !important;
    }
}