/* ==========================================================================
   RoboVAI PRO POS - Ultra Premium iOS/Windows 11 Style
   ========================================================================== */

/* --- Variables & Core Theme --- */
:root {
    --bg-color: #030406;          /* Deep dark blue-tinted black */
    --card-bg: rgba(12, 16, 24, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --primary: #00e5ff;           /* Bright Cyan (Eagle Eye) */
    --secondary: #0066ff;         /* Deep Blue (Eagle Feathers) */
    
    --text-main: #f5f5f7;         /* Apple typography color */
    --text-muted: #8e9bb0;        /* Soft blue-gray */

    --font-main: 'Tajawal', 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main); background-color: var(--bg-color);
    color: var(--text-main); overflow-x: hidden; position: relative; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.sr-only { display: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Ambient Glows --- */
.ambient-glow {
    position: absolute; width: 800px; height: 800px; border-radius: 50%;
    filter: blur(150px); z-index: -1; opacity: 0.3; pointer-events: none;
}
.glow-blue { background: var(--secondary); top: -200px; left: -300px; }
.glow-cyan { background: var(--primary); bottom: 10%; right: -300px; opacity: 0.15; }

/* --- Typography --- */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}

/* --- Animations --- */
.reveal-blur {
    opacity: 0; filter: blur(20px); transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.is-revealed { opacity: 1; filter: blur(0); transform: translateY(0); }

/* --- iOS/Windows Glassmorphism Utilities --- */
.ios-glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.5);
}

/* --- Navigation (Seamless Blending) --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 1000;
    transition: background 0.5s, padding 0.5s, backdrop-filter 0.5s, border-bottom 0.5s;
    background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none;
}
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.8rem; font-family: 'Inter', sans-serif; letter-spacing: -1px; }
.logo-text .pro { color: var(--primary); font-weight: 300; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-weight: 500; font-size: 1.1rem; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; font-size: 1.15rem; font-weight: 700; border-radius: 14px;
    cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-main);
}
.btn-blue {
    background: rgba(0, 102, 255, 0.15); color: #fff;
    border: 1px solid rgba(0, 102, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.btn-blue:hover {
    background: rgba(0, 102, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
    transform: translateY(-2px);
}
.btn-outline-glow {
    background: transparent; color: #fff; border: 1px solid var(--primary);
    box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1), 0 0 20px rgba(0, 255, 204, 0.15);
}
.btn-outline-glow:hover { background: rgba(0, 255, 204, 0.1); transform: translateY(-2px); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 60px; position: relative; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-content { flex: 1; max-width: 600px; z-index: 10; }
.hero-title { font-size: 4.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 45px; line-height: 1.8; font-weight: 500; }
.hero-image-wrapper { flex: 1; display: flex; justify-content: flex-end; position: relative; z-index: 5; }
.hero-img-ios {
    border-radius: 24px; box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 100%; transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s;
}
.hero-img-ios:hover { transform: perspective(1000px) rotateY(0deg); }

/* --- Sections General --- */
.section { padding: 120px 0; }
.section-title { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.3rem; line-height: 1.8; }
.icon-gradient { font-size: 3rem; margin-bottom: 25px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Bento Grid --- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 24px; }
.bento-card { padding: 40px; display: flex; flex-direction: column; position: relative; }
.bento-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 900; }
.bento-card p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.7; }
.ios-img { border-radius: 16px; margin-top: auto; border: 1px solid rgba(255,255,255,0.05); }

.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* --- Hardware Compatibility --- */
.hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hardware-images { display: flex; flex-direction: column; gap: 20px; }
.hardware-images img { border-radius: 24px; border: 1px solid var(--card-border); }

/* --- Stacked Cards Gallery --- */
.stacked-cards-container { position: relative; padding-bottom: 50px; }
.stack-card { position: sticky; top: calc(120px + (var(--index) * 20px)); margin-bottom: 50px; transform-origin: center top; }
.card-inner { padding: 0; display: flex; align-items: stretch; height: 450px; }
.card-text { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.step-num { color: var(--secondary); font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 900; margin-bottom: 15px; }
.card-text h3 { font-size: 2.2rem; margin-bottom: 20px; }
.card-text p { color: var(--text-muted); font-size: 1.2rem; }
.card-img { flex: 1.2; background: #000; overflow: hidden; border-left: 1px solid var(--card-border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
.card-inner:hover .card-img img { transform: scale(1.05); }

/* --- FAQ Accordion (Native HTML5) --- */
.faq-container { display: flex; flex-direction: column; gap: 15px; max-width: 900px; margin: 0 auto; }
details.faq-item {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden;
    transition: all 0.3s ease;
}
details.faq-item[open] { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,255,204,0.1); }
summary.faq-question {
    padding: 25px 30px; font-size: 1.4rem; font-weight: 700; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; user-select: none;
}
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::after {
    content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--primary); transition: transform 0.3s;
}
details[open] summary.faq-question::after { transform: rotate(45deg); color: var(--secondary); }
.faq-answer { padding: 0 30px 30px; color: var(--text-muted); font-size: 1.2rem; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 10px; padding-top: 20px; }

/* --- Pricing --- */
.pricing-wrapper { display: flex; gap: 30px; justify-content: center; align-items: stretch; }
.price-card { padding: 50px 40px; flex: 1; max-width: 400px; display: flex; flex-direction: column; position: relative; }
.price-card.star { border-color: rgba(0, 102, 255, 0.4); box-shadow: 0 0 50px rgba(0, 102, 255, 0.15); background: rgba(0, 102, 255, 0.05); transform: scale(1.05); z-index: 10; }
.star-badge { position: absolute; top: -15px; right: 30px; background: linear-gradient(90deg, var(--secondary), var(--primary)); color: #000; padding: 5px 20px; border-radius: 8px; font-weight: 900; font-size: 1rem; }
.price-title { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 10px; }
.price-value { font-size: 4rem; font-weight: 900; margin-bottom: 5px; font-family: 'Inter', sans-serif; letter-spacing: -2px; }
.price-value span { font-size: 1.2rem; color: var(--text-muted); font-weight: normal; font-family: var(--font-main); letter-spacing: 0; }
.price-desc { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; min-height: 60px; }
.price-features { margin-bottom: 50px; flex-grow: 1; }
.price-features li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; color: #e0e0e0; font-size: 1.15rem; }
.price-features li.disabled { color: #666; }

/* --- Footer --- */
footer { border-top: 1px solid var(--card-border); padding: 100px 0 30px; background: #000; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); font-size: 1.2rem; margin-top: 20px; max-width: 400px; }
.footer-links h4 { margin-bottom: 30px; font-size: 1.3rem; color: #fff; }
.footer-links li { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2, .span-3, .span-4 { grid-column: span 2; }
    .hero-title { font-size: 3.5rem; }
    .hardware-grid { grid-template-columns: 1fr; }
    .pricing-wrapper { flex-direction: column; align-items: center; }
    .price-card.star { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image-wrapper { justify-content: center; }
    .nav-links { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2, .span-3, .span-4 { grid-column: span 1; }
    .card-inner { flex-direction: column; height: auto; }
    .card-img { height: 300px; }
    .card-text { padding: 40px 30px; }
}

/* --- ROI Calculator --- */
.roi-calculator { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: 24px; padding: 50px; text-align: center; box-shadow: 0 20px 50px rgba(0, 229, 255, 0.05); margin: 60px auto; max-width: 800px; }
.roi-calculator h3 { font-size: 2.2rem; margin-bottom: 20px; color: #fff; }
.roi-slider-container { margin: 40px 0; display: flex; flex-direction: column; align-items: center; }
.range-slider { -webkit-appearance: none; width: 100%; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.1); outline: none; margin-top: 20px; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 15px var(--primary); transition: transform 0.2s; }
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-result { background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.2); padding: 30px; border-radius: 16px; margin-top: 30px; }
.roi-result h4 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.roi-value { font-size: 3.5rem; font-weight: 900; color: var(--primary); letter-spacing: -2px; text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); display: flex; align-items: center; justify-content: center; gap: 10px; }

/* --- Interactive POS Demo --- */
.pos-demo-container { display: flex; gap: 30px; background: rgba(10, 10, 12, 0.8); padding: 20px; border-radius: 20px; border: 1px solid var(--card-border); box-shadow: 0 30px 60px rgba(0,0,0,0.5); margin-top: 50px; position: relative; overflow: hidden; backdrop-filter: blur(20px); }
.pos-demo-items { flex: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.pos-item-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 25px 10px; text-align: center; cursor: pointer; transition: all 0.1s; user-select: none; }
.pos-item-btn:active { transform: scale(0.95); background: var(--primary); border-color: var(--primary); }
.pos-item-btn i { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); transition: color 0.1s; }
.pos-item-btn:active i { color: #000; }
.pos-item-btn:active .pos-item-name, .pos-item-btn:active .pos-item-price { color: #000; }
.pos-item-name { font-weight: 700; font-size: 1.2rem; color: #fff; transition: color 0.1s; }
.pos-item-price { color: var(--text-muted); font-size: 1rem; margin-top: 5px; transition: color 0.1s; }
.pos-demo-receipt { flex: 1; background: #fff; border-radius: 16px; padding: 20px; color: #000; display: flex; flex-direction: column; min-height: 450px; box-shadow: inset 0 0 20px rgba(0,0,0,0.05); }
.receipt-header { text-align: center; border-bottom: 2px dashed #ccc; padding-bottom: 15px; margin-bottom: 15px; font-weight: 900; font-size: 1.3rem; color: #333; }
.receipt-items { flex-grow: 1; overflow-y: auto; font-family: monospace; font-size: 1.2rem; font-weight: bold; }
.receipt-line { display: flex; justify-content: space-between; margin-bottom: 8px; animation: slideIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.receipt-total { border-top: 2px solid #000; padding-top: 15px; margin-top: auto; display: flex; justify-content: space-between; font-size: 1.8rem; font-weight: 900; color: #000; }

@media (max-width: 768px) {
    .pos-demo-container { flex-direction: column; }
    .pos-demo-items { grid-template-columns: repeat(2, 1fr); }
}
