@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #06B6D4;
    --dark: #0F172A;
    --dark-card: #1E293B;
    --light: #F8FAFC;
    --text-main: #334155;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
}

/* --- Typography --- */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 20px; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.brand {
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    transition: background 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 10001;
}

.menu-toggle i {
    pointer-events: none;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-btn-item {
    display: none;
}

.nav-btn-desktop {
    display: inline-block;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: white;
}
.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--secondary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, rgba(15,23,42,0) 70%);
    z-index: 1;
}

.hero-dashboard-mockup {
    width: 100%;
    height: 100%;
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.hero-dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(0deg);
}

/* --- Features Section --- */
.section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 5% 30px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-links h4 {
    margin-bottom: 20px;
    color: white;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    h1 { font-size: 3rem; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add a hamburger menu later if needed */
    .section { padding: 60px 5%; }
}

/* --- Live Demo Banner Section --- */
.demo-section {
    padding: 60px 5%;
    background: linear-gradient(180deg, #0b0f19 0%, #0f172a 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.demo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-top-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.demo-roles-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 1100px) {
    .demo-roles-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .demo-roles-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.demo-role-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.demo-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0.8;
}

.demo-role-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
}

.demo-role-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.demo-role-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.icon-admin { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.icon-taker { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.icon-cashier { background: linear-gradient(135deg, #10b981, #059669); }
.icon-rider { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-kitchen { background: linear-gradient(135deg, #ec4899, #db2777); }

.demo-role-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.demo-role-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.demo-cred-list {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.demo-cred-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.demo-cred-item:last-child {
    margin-bottom: 0;
}

.demo-cred-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.demo-cred-val-user {
    color: #60a5fa;
    font-weight: 700;
}

.demo-cred-val-pass {
    color: #34d399;
    font-family: monospace;
    font-weight: 700;
    background: rgba(52, 211, 153, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
}

.btn-demo-launch {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.btn-demo-launch:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================================
   Responsive Styles / Mobile & Tablet Optimization
   ========================================================================== */

@media (max-width: 992px) {
    .navbar {
        padding: 14px 20px;
    }

    section.section[style*="padding-top: 150px"],
    section[style*="padding-top: 150px"] {
        padding-top: 90px !important;
    }

    .brand {
        font-size: 1.6rem;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-btn-desktop {
        display: none !important;
    }

    .nav-btn-item {
        display: block !important;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: #0f172a !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 8px;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        z-index: 9999 !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.05rem;
        padding: 10px 14px;
        border-radius: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        padding-top: 100px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }

    p {
        font-size: 1rem;
    }

    .hero-content > div {
        justify-content: center;
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-content .btn {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        height: 250px;
        margin-top: 25px;
    }

    /* Section Mobile Layouts */
    .section {
        padding: 50px 20px;
    }

    h2 {
        font-size: 1.8rem !important;
    }

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

    /* Demo Cards & Launch Buttons Mobile */
    .demo-roles-grid {
        grid-template-columns: 1fr !important;
    }

    .btn-demo-launch, 
    .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .brand {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}



/* Swiper Hero Slider */
.hero-swiper {
    width: 100%;
    height: 60vh;
    min-height: 450px;
    margin: 100px auto 40px auto; /* 100px top margin ensures it sits below the navbar */
    position: relative;
    background: var(--bg-dark);
    border-radius: 0;
    overflow: hidden;
}
.hero-swiper .swiper-slide {
    display: flex;
    align-items: flex-end; /* Bottom aligned */
    justify-content: flex-start; /* Left aligned */
    position: relative;
    padding-bottom: 80px;
    padding-left: 5%;
}
.slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 100% 100%; /* Stretch image to perfectly fit width and height */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 2;
    text-align: left; /* Left aligned text */
    max-width: 800px;
}
.slide-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.slide-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
    .hero-swiper { margin-top: 80px; height: 50vh; min-height: 400px; width: 100%; border-radius: 0; }
    .slide-content h1 { font-size: 2rem !important; }
    .slide-content p { font-size: 1rem !important; margin-bottom: 15px; }
}
