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

:root {
    --bg-dark: #070b19;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 58, 138, 0.1);
    --glass-border: rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
    position: relative;
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    filter: blur(40px);
    opacity: 0;
}

.mouse-glow.active {
    opacity: 1;
}

.click-ripple {
    position: fixed;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: ripple-out 0.6s ease-out forwards;
}

@keyframes ripple-out {
    from {
        width: 0;
        height: 0;
        opacity: 1;
    }
    to {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(7, 11, 25, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), #1e3a8a);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(7,11,25,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    animation: fadeUp 1s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 58, 138, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Devices Section */
.devices-section {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.device-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}

.device-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.device-icon svg {
    width: 80px;
    height: 80px;
    fill: url(#blue-gradient);
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
}

.device-item span {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Pricing */
.pricing {
    padding: 5rem 5%;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.15);
    position: relative;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.pricing-card:hover {
    border-color: var(--accent);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price span {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.pricing-card .btn-primary {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: #040713;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .admin-sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }
    .admin-sidebar span { display: none; }
    .admin-main { margin-left: 80px; }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* Consider a hamburger menu if complex */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    
    /* Responsive Table Solution */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(0,0,0,0.2);
        border-radius: 12px;
        margin-top: 1rem;
    }
    
    .admin-table {
        min-width: 600px;
    }

    /* Admin Sidebar Fix for Mobile */
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
    }
    .sidebar-links {
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-links a {
        white-space: nowrap;
    }
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}
