/* MenuXS Marketing Website - Custom styles layer on top of Tailwind CDN */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Subtle hero gradient background */
.hero-bg {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
                linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

/* Feature icon ring */
.feature-icon {
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
}

/* CTA button glow */
.btn-primary:hover {
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

/* Animation utilities */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out both;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Product-led hero */
.hero-bg {
    overflow: hidden;
}

.hero-product-stage {
    position: relative;
    min-height: 600px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 36px;
    isolation: isolate;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.14);
}

.hero-restaurant-backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center 58%;
}

.hero-product-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(248, 250, 252, 0.82));
}

.hero-product-glow {
    position: absolute;
    z-index: -1;
    inset: 18% 16% 10%;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.24);
    filter: blur(70px);
}

.product-window {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.window-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 10px;
}

.window-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

.window-bar > span:first-child { background: #fca5a5; }
.window-bar > span:nth-child(2) { background: #fde68a; }
.window-bar > span:nth-child(3) { background: #86efac; }
.window-bar b { margin-left: auto; margin-right: auto; font-weight: 600; }

.hero-dashboard {
    position: absolute;
    width: 72%;
    left: 7%;
    top: 11%;
    transform: perspective(1800px) rotateX(2deg) rotateY(4deg) rotateZ(-1deg);
}

.dashboard-shell { display: flex; min-height: 425px; }
.mini-sidebar { width: 82px; padding: 18px 14px; background: #0f172a; }
.mini-brand { color: white; font-size: 13px; font-weight: 800; margin-bottom: 30px; }
.mini-brand span { color: #fb7185; }
.mini-sidebar i { display: block; width: 38px; height: 8px; margin: 0 auto 20px; border-radius: 99px; background: #334155; }
.mini-sidebar i.active { background: #818cf8; }
.dashboard-content { flex: 1; padding: 26px; background: #f8fafc; text-align: left; }
.ui-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ui-heading small, .metric-card small, .chart-head small, .orders-card > small { display: block; color: #94a3b8; font-size: 10px; font-style: normal; }
.ui-heading strong { display: block; color: #0f172a; font-size: 20px; }
.live-pill { color: #059669; background: #ecfdf5; border-radius: 99px; padding: 6px 9px; font-size: 8px; font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card { position: relative; padding: 14px; background: white; border: 1px solid #eef2f7; border-radius: 12px; }
.metric-card strong { display: block; margin-top: 5px; color: #0f172a; font-size: 19px; }
.metric-card em { color: #10b981; font-size: 9px; font-style: normal; }
.metric-card.accent { color: white; border: 0; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.metric-card.accent small, .metric-card.accent strong, .metric-card.accent em { color: white; }
.dashboard-lower { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin-top: 12px; }
.chart-card, .orders-card { min-height: 190px; padding: 16px; background: white; border: 1px solid #eef2f7; border-radius: 12px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-head b { color: #0f172a; font-size: 13px; }
.bar-chart { height: 125px; display: flex; align-items: flex-end; gap: 8px; padding-top: 20px; }
.bar-chart i { flex: 1; height: 40%; border-radius: 5px 5px 2px 2px; background: #c7d2fe; }
.bar-chart i:nth-child(2) { height: 57%; }
.bar-chart i:nth-child(3) { height: 46%; }
.bar-chart i:nth-child(4) { height: 72%; background: #818cf8; }
.bar-chart i:nth-child(5) { height: 64%; }
.bar-chart i:nth-child(6) { height: 90%; background: #6366f1; }
.bar-chart i:nth-child(7) { height: 78%; }
.orders-card > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 9px; }
.orders-card b { color: #0f172a; }
.orders-card span { color: #64748b; }
.orders-card em { grid-column: 1 / -1; width: fit-content; color: #047857; background: #ecfdf5; border-radius: 99px; padding: 2px 5px; font-style: normal; font-size: 7px; }

.product-phone {
    overflow: hidden;
    border: 7px solid #0f172a;
    border-radius: 32px;
    background: #f8fafc;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    text-align: left;
}

.hero-phone { position: absolute; z-index: 3; width: 238px; height: 475px; right: 6%; bottom: 4%; transform: rotate(3deg); }
.phone-speaker { width: 68px; height: 16px; margin: -2px auto 10px; border-radius: 0 0 10px 10px; background: #0f172a; }
.phone-menu-head { display: flex; align-items: center; gap: 8px; padding: 4px 13px 10px; }
.restaurant-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: white; background: linear-gradient(135deg, #6366f1, #ec4899); font-weight: 800; }
.phone-menu-head b, .phone-menu-head small { display: block; color: #0f172a; font-size: 10px; }
.phone-menu-head small { color: #94a3b8; font-size: 7px; }
.menu-chips { display: flex; gap: 5px; padding: 0 12px 10px; }
.menu-chips span { padding: 5px 8px; color: #64748b; background: #e2e8f0; border-radius: 99px; font-size: 7px; font-weight: 700; }
.menu-chips span:first-child { color: white; background: #0f172a; }
.dish-card { position: relative; display: grid; grid-template-columns: 54px 1fr 20px; gap: 8px; align-items: center; margin: 0 10px 8px; padding: 8px; background: white; border: 1px solid #eef2f7; border-radius: 12px; box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04); }
.dish-photo { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #fecaca, #fed7aa); }
.dish-two { background: linear-gradient(135deg, #dcfce7, #fef3c7); }
.dish-card b, .dish-card small, .dish-card strong { display: block; }
.dish-card b { color: #0f172a; font-size: 9px; }
.dish-card small { margin: 3px 0; color: #94a3b8; font-size: 6px; }
.dish-card strong { color: #4f46e5; font-size: 8px; }
.dish-card button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 7px; color: white; background: #4f46e5; }
.phone-cart { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; padding: 10px; border-radius: 11px; color: white; background: #4f46e5; font-size: 8px; }
.hero-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 13px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14); backdrop-filter: blur(12px); text-align: left; }
.hero-float-order { left: 3%; bottom: 9%; }
.hero-float-qr { right: 1.5%; top: 11%; }
.hero-float > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: white; background: #10b981; font-size: 12px; }
.hero-float small, .hero-float b { display: block; }
.hero-float small { color: #94a3b8; font-size: 7px; }
.hero-float b { color: #0f172a; font-size: 9px; }
.tiny-qr, .big-qr { background: repeating-conic-gradient(#0f172a 0 25%, white 0 50%) 0 / 7px 7px; }
.hero-float > .tiny-qr { background-color: white; border: 4px solid white; border-radius: 4px; }

/* Feature showcases */
.section-eyebrow { display: block; margin-bottom: 10px; color: #4f46e5; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-showcases { display: grid; gap: 42px; }
.feature-showcases, .feature-showcase, .feature-copy, .feature-visual { min-width: 0; max-width: 100%; }
.feature-showcase { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 54px; min-height: 520px; padding: 54px; border: 1px solid #e8eaf4; border-radius: 32px; background: linear-gradient(145deg, #fff, #fafaff); box-shadow: 0 25px 70px rgba(15, 23, 42, .07); }
.feature-showcase-reverse .feature-copy { order: 2; }
.feature-showcase-reverse .feature-visual { order: 1; }
.feature-kicker { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 12px; color: #4f46e5; background: #eef2ff; font-size: 12px; font-weight: 800; }
.feature-copy h3 { color: #0f172a; font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.feature-copy > p { margin-top: 16px; color: #64748b; font-size: 1rem; line-height: 1.7; }
.feature-companion { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.feature-companion > span { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: white; background: #10b981; font-size: 12px; }
.feature-companion strong { color: #0f172a; font-size: 14px; }
.feature-companion p { margin-top: 4px; color: #94a3b8; font-size: 12px; line-height: 1.55; }
.feature-visual { position: relative; min-width: 0; height: 405px; border-radius: 26px; background: radial-gradient(circle at 50% 30%, #fff 0, #eef2ff 54%, #e0e7ff 100%); overflow: hidden; }
.visual-orbit { position: absolute; border: 1px solid rgba(99, 102, 241, .22); border-radius: 50%; }
.orbit-one { width: 320px; height: 320px; top: 38px; left: 40px; }
.orbit-two { width: 460px; height: 460px; top: -34px; left: -30px; }
.feature-phone { position: absolute; z-index: 2; width: 205px; height: 370px; top: 18px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.feature-phone .dish-card { grid-template-columns: 45px 1fr 18px; }
.feature-phone .dish-photo { width: 45px; height: 45px; }
.qr-card { position: absolute; z-index: 3; right: 18px; bottom: 20px; display: flex; align-items: center; gap: 10px; width: 235px; padding: 13px; border: 1px solid white; border-radius: 15px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px rgba(15, 23, 42, .15); }
.big-qr { flex: 0 0 46px; height: 46px; border: 5px solid white; box-shadow: 0 0 0 1px #e5e7eb; }
.qr-card b, .qr-card small { display: block; color: #0f172a; font-size: 9px; }
.qr-card small { margin-top: 4px; color: #6366f1; font-size: 7px; }
.feature-visual-orders { overflow: visible; background: radial-gradient(circle at 50% 50%, #fff, #f5f3ff 68%, #ede9fe); }
.orders-board { position: absolute; width: 94%; left: 3%; top: 32px; transform: rotate(1deg); box-shadow: 0 18px 45px rgba(15, 23, 42, .16); }
.orders-board .window-bar b { color: #64748b; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 8px; color: #0f172a; }
.kanban-head span { color: #64748b; font-size: 9px; }
.kanban-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 12px 18px; background: #f8fafc; }
.kanban-column { min-width: 0; }
.kanban-column > small { display: block; margin-bottom: 8px; color: #64748b; font-size: 8px; font-weight: 700; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 3px; margin-bottom: 7px; padding: 10px; border-top: 3px solid #f59e0b; border-radius: 9px; background: white; box-shadow: 0 4px 10px rgba(15, 23, 42, .05); font-size: 8px; }
.ticket span { color: #94a3b8; }
.ticket p { grid-column: 1 / -1; margin: 5px 0; color: #64748b; line-height: 1.5; }
.ticket strong { grid-column: 1 / -1; color: #0f172a; }
.ticket.violet { border-color: #8b5cf6; }
.ticket.green { border-color: #10b981; }
.ticket.compact { grid-template-columns: 1fr auto; }
.ticket.compact strong { grid-column: 1 / -1; }
.slots-card { position: absolute; right: -12px; bottom: 14px; z-index: 3; width: 290px; padding: 15px; border: 1px solid white; border-radius: 15px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 35px rgba(15, 23, 42, .16); }
.slots-card small { color: #64748b; font-size: 9px; font-weight: 700; }
.slots-card div { display: flex; gap: 6px; margin-top: 10px; }
.slots-card span { flex: 1; padding: 7px 4px; border-radius: 8px; color: #4f46e5; background: #eef2ff; text-align: center; font-size: 8px; font-weight: 700; }
.slots-card span.full { color: #94a3b8; background: #f1f5f9; text-decoration: line-through; }
.feature-visual-analytics { overflow: visible; background: radial-gradient(circle at 45% 40%, white, #ecfeff 62%, #e0e7ff); }
.analytics-board { position: absolute; width: 92%; left: 3%; top: 30px; transform: rotate(-1deg); }
.analytics-body { padding: 18px; background: #f8fafc; }
.analytics-top { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.analytics-top > div { padding: 13px; border: 1px solid #eef2f7; border-radius: 11px; background: white; }
.analytics-top small, .analytics-top b, .analytics-top em { display: block; }
.analytics-top small { color: #94a3b8; font-size: 8px; }
.analytics-top b { margin-top: 4px; color: #0f172a; font-size: 17px; }
.analytics-top em { color: #10b981; font-size: 8px; font-style: normal; }
.line-chart { position: relative; height: 180px; margin-top: 10px; padding: 14px; border: 1px solid #eef2f7; border-radius: 11px; background: white; }
.line-chart svg { width: 100%; height: 130px; }
.line-chart span { position: absolute; right: 15px; top: 14px; padding: 5px 8px; border-radius: 99px; color: #4f46e5; background: #eef2ff; font-size: 8px; font-weight: 700; }
.checkout-card { position: absolute; z-index: 4; width: 205px; right: -18px; bottom: 8px; padding: 17px; border: 1px solid white; border-radius: 20px; background: white; box-shadow: 0 20px 45px rgba(15, 23, 42, .18); }
.lock-dot { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 9px; border-radius: 9px; color: white; background: #10b981; font-size: 11px; }
.checkout-card small, .checkout-card b { display: block; }
.checkout-card small { color: #94a3b8; font-size: 8px; }
.checkout-card > b { margin: 4px 0 12px; color: #0f172a; font-size: 18px; }
.pay-options { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 4px; }
.pay-options span { overflow: hidden; padding: 7px 4px; border: 1px solid #e5e7eb; border-radius: 7px; color: #475569; font-size: 6px; text-align: center; white-space: nowrap; }
.checkout-card button { width: 100%; margin-top: 9px; padding: 8px; border: 0; border-radius: 8px; color: white; background: #4f46e5; font-size: 8px; font-weight: 700; }

@media (max-width: 900px) {
    .hero-product-stage { min-height: 510px; }
    .hero-dashboard { width: 82%; left: 3%; }
    .dashboard-shell { min-height: 355px; }
    .dashboard-content { padding: 18px; }
    .mini-sidebar { width: 62px; padding-inline: 10px; }
    .hero-phone { width: 195px; height: 405px; right: 3%; }
    .feature-showcase { grid-template-columns: 1fr; gap: 34px; padding: 40px; }
    .feature-showcase-reverse .feature-copy, .feature-showcase-reverse .feature-visual { order: initial; }
    .feature-copy { max-width: 620px; }
}

@media (max-width: 640px) {
    .hero-bg { padding-top: 64px !important; padding-bottom: 64px !important; }
    .hero-bg > div:first-child { width: 100%; max-width: calc(100vw - 32px); }
    .hero-bg h1 { font-size: 1.82rem !important; line-height: 1.14 !important; letter-spacing: -.04em; }
    .hero-bg > div:first-child > p.text-lg { font-size: 1rem !important; line-height: 1.55; }
    .hero-bg .flex { width: 100%; }
    .hero-bg .btn-primary { box-sizing: border-box; width: 100%; max-width: 100%; padding: 13px 12px !important; font-size: .82rem; white-space: normal; }
    .hero-bg a[href="#how-it-works"] { box-sizing: border-box; width: 100%; max-width: 100%; padding: 13px 12px !important; font-size: .9rem; }
    .hero-product-stage { width: 100%; max-width: calc(100vw - 32px); min-height: 430px; margin-top: 42px; border-radius: 24px; }
    .hero-restaurant-backdrop { object-position: 54% center; }
    .hero-dashboard { width: 96%; left: 2%; top: 8%; transform: rotate(-1deg); }
    .dashboard-shell { min-height: 265px; }
    .mini-sidebar { width: 44px; padding: 12px 7px; }
    .mini-brand { font-size: 8px; margin-bottom: 20px; }
    .mini-sidebar i { width: 24px; height: 5px; margin-bottom: 14px; }
    .dashboard-content { padding: 11px; }
    .ui-heading { margin-bottom: 9px; }
    .ui-heading strong { font-size: 12px; }
    .metric-row { gap: 5px; }
    .metric-card { padding: 7px; }
    .metric-card strong { font-size: 10px; }
    .dashboard-lower { gap: 5px; margin-top: 5px; }
    .chart-card, .orders-card { min-height: 105px; padding: 8px; }
    .bar-chart { height: 65px; gap: 3px; padding-top: 8px; }
    .orders-card > div { padding: 4px 0; font-size: 6px; }
    .hero-phone { width: 150px; height: 300px; right: 3%; bottom: 1%; border-width: 5px; border-radius: 23px; }
    .phone-speaker { width: 48px; height: 10px; margin-bottom: 4px; }
    .phone-menu-head { padding: 2px 7px 5px; }
    .restaurant-mark { width: 22px; height: 22px; font-size: 9px; }
    .menu-chips { padding: 0 6px 5px; }
    .dish-card { grid-template-columns: 34px 1fr 16px; gap: 5px; margin: 0 5px 5px; padding: 5px; }
    .dish-photo { width: 34px; height: 34px; }
    .dish-card small { display: none; }
    .phone-cart { left: 6px; right: 6px; bottom: 6px; padding: 7px; font-size: 6px; }
    .hero-float { padding: 7px 9px; }
    .hero-float-order { left: 1%; bottom: 5%; }
    .hero-float-qr { display: none; }
    .hero-float > span:first-child { width: 22px; height: 22px; }
    .feature-showcases { gap: 24px; }
    #features, #features > div, .feature-showcases { width: 100%; min-width: 0; }
    #features h2, .feature-copy h3, .feature-copy p, .feature-companion { max-width: 100%; overflow-wrap: anywhere; }
    .feature-showcase { width: 100%; min-height: 0; padding: 26px 18px 18px; overflow: hidden; border-radius: 24px; }
    .feature-copy h3 { font-size: 1.75rem; }
    .feature-visual { height: 330px; }
    .feature-phone { width: 180px; height: 320px; top: 8px; }
    .qr-card { right: 7px; bottom: 10px; width: 210px; }
    .orders-board { width: 98%; left: 1%; top: 20px; }
    .kanban-grid { gap: 4px; padding: 6px; }
    .ticket { padding: 6px; font-size: 6px; }
    .slots-card { width: 250px; right: -4px; }
    .analytics-board { width: 98%; left: 1%; top: 18px; }
    .checkout-card { width: 180px; right: -3px; bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-dashboard, .hero-phone, .orders-board, .analytics-board { transform: none; }
}
/* Language switcher: image flags avoid platform-dependent emoji rendering. */
.language-switcher {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .25rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .5rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color .15s, border-color .15s, color .15s;
}

.language-switcher a:hover {
    background: #f9fafb;
    color: #374151;
}

.language-switcher a[aria-current="page"] {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4338ca;
}

.language-switcher img {
    width: 1.5rem;
    height: 1rem;
    border-radius: .125rem;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
}

.language-switcher--mobile {
    width: max-content;
    max-width: 100%;
    margin-top: .5rem;
}
