/* frontend.css - Ultra Premium 3D & Animated UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899;
    --accent: #06b6d4;
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
}

/* ━━ GLASSMORPHISM NAV ━━━━━━━━━━ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.4s;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Toggle for mobile */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-login:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-3px) scale(1.05) !important;
}

/* ━━ HERO SECTION ━━━━━━━━━━━━━━━ */
.hero {
    padding: 180px 8% 100px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    background: linear-gradient(to bottom right, #fff 50%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 600px;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-graphic img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 50px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* ━━ 3D BUTTONS ━━━━━━━━━━━━━━━━━ */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn-3d {
    background: #fff;
    color: var(--bg-dark);
    padding: 16px 35px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 0 #cbd5e1;
}

.btn-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 #cbd5e1;
}

.btn-3d:active {
    transform: translateY(10px);
    box-shadow: 0 0 0 #cbd5e1;
}

.btn-3d.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--glass-border);
    box-shadow: none;
}

.btn-3d.secondary:hover {
    background: var(--glass);
    border-color: #fff;
    box-shadow: none;
}

/* ━━ PRICING SECTION ━━━━━━━━━━━━ */
.pricing {
    padding: 100px 8%;
    text-align: center;
}

.pricing h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pricing p {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.plan-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.plan-card.popular::after {
    content: 'BEST VALUE';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: #fff;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(45deg);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.plan-card .price {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.plan-card .price span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-card ul {
    list-style: none;
    margin: 40px 0;
    text-align: left;
}

.plan-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.plan-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.plan-card:hover .btn-plan {
    background: #fff;
    color: var(--bg-dark);
}

/* ━━ STATIC PAGES ━━━━━━━━━━━━━━━ */
.page-header {
    padding: 150px 8% 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.05), transparent);
}

.page-container {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 60px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(40px);
}

.page-container h2 {
    margin: 40px 0 20px;
    color: #fff;
    font-size: 1.75rem;
}

.page-container p,
.page-container li {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ━━ FOOTER ━━━━━━━━━━━━━━━━━━━━━ */
footer {
    padding: 100px 8% 50px;
    background: rgba(3, 7, 18, 0.8);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #4b5563;
    font-size: 0.9rem;
}

/* ━━ RESPONSIVENESS ━━━━━━━━━━━━━ */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-graphic {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .btn-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 30px;
        gap: 25px;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .pricing,
    .features {
        padding: 60px 5%;
    }

    .plan-card {
        padding: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn-group {
        gap: 10px;
        flex-direction: column;
        width: 100%;
    }

    .btn-3d {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}