/* Variables */
:root {
    /* Colors */
    --bg-color: #050505;
    --bg-secondary: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #7c3aed; /* Neon Purple */
    --accent-secondary: #00f2fe; /* Neon Blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Elements */
.ambient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -150px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: 40%;
    right: -200px;
    animation-delay: -5s;
    opacity: 0.2;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* Glass Panel Utility */
.glass-panel {
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.4) 0%, rgba(15, 15, 19, 0.6) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Modules Grid (Product Page) */
.module-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1002;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

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

.nav-links .nav-link {
    color: #ffffff;
    opacity: 0.7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links .nav-link.active {
    color: #ffffff;
    opacity: 1;
    font-weight: 600;
}

.nav-links .nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.nav-links .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links .btn-outline.active {
    border-color: var(--accent-primary);
    color: #ffffff;
    opacity: 1;
    background: var(--accent-primary);
}

.nav-links .btn-outline:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff !important;
    opacity: 1;
}

.nav-links .btn-outline.nav-cta {
    border: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #5b21b6);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: white;
}

.btn-outline:hover {
    background: var(--accent-primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    color: #c4b5fd;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

/* Hero Visual & 2D Animations */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-illustration {
    position: relative;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.book-cover {
    width: 260px;
    height: 360px;
    background: linear-gradient(145deg, #18181b, #09090b);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.book-cover h2 {
    font-size: 2rem;
    background: linear-gradient(to bottom, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-spine {
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #09090b, #18181b);
    border-radius: 4px 0 0 4px;
    transform-origin: right;
    transform: rotateY(90deg);
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-1 {
    top: 20%;
    left: -5%;
    animation: float-y 6s infinite ease-in-out;
}

.card-2 {
    bottom: 25%;
    right: -5%;
    animation: float-y 5s infinite ease-in-out reverse;
}

.icon {
    font-size: 1.5rem;
}

.card-text h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-text p {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header span {
    color: var(--accent-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    padding: 4rem 2rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.pricing-card {
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.6) 0%, rgba(15, 15, 19, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 2rem;
    vertical-align: top;
    margin-left: 0.15rem;
}

.cents {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.pricing-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: #e4e4e7;
    font-size: 1rem;
}

.secure-checkout {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }
}

/* Showcase Grid & Cards */
.showcase-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary) !important;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2) !important;
}

.showcase-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.showcase-card:hover img {
    transform: scale(1.06) !important;
}

/* Mobile Overlay (dims background when menu open) */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Tablet & Mobile: Hamburger + Side Menu */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    /* Show Hamburger */
    .hamburger {
        display: flex;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Sidebar Navigation - hidden off-screen by default */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        transform: translateX(100%) !important;
        width: 260px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(10, 10, 12, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6) !important;
        padding: 2rem 0 !important;
        gap: 1.5rem !important;
        display: flex !important;
    }

    /* Slide in when active */
    .nav-links.active {
        transform: translateX(0) !important;
    }

    /* Show all nav items in sidebar */
    .nav-links .nav-cta,
    .nav-links .btn-outline {
        display: block !important;
    }

    /* Reset all link styles for sidebar */
    .nav-links a {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 0.8rem 2rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        display: block !important;
        border: none !important;
        background: transparent !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        width: 100% !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: #ffffff !important;
        opacity: 0.9 !important;
    }

    /* Style the CTA button in sidebar */
    .nav-links .nav-cta {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
        color: white !important;
        border-radius: 50px !important;
        width: 80% !important;
        margin: 0.5rem auto !important;
        padding: 0.9rem 1rem !important;
    }

    /* Style the outline button in sidebar */
    .nav-links .btn-outline {
        border: 1px solid var(--accent-primary) !important;
        border-radius: 50px !important;
        width: 80% !important;
        margin: 0 auto !important;
        padding: 0.9rem 1rem !important;
    }
}

/* Small Mobile Devices (iPhone & Android) */
@media (max-width: 576px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 1rem 2rem;
        gap: 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
        text-align: center;
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    /* Hero Visual & Cards */
    .hero-visual {
        height: 280px !important;
        margin-top: 1rem !important;
        overflow: visible;
    }

    .book-cover {
        width: 160px !important;
        height: 220px !important;
    }

    .book-cover h2 {
        font-size: 1.4rem !important;
    }

    .glow-orb {
        width: 200px;
        height: 200px;
    }

    .floating-card {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
        transform: scale(0.75) !important;
    }

    .card-1 {
        top: 0% !important;
        left: 15% !important;
        animation: float-y-mobile-1 6s infinite ease-in-out !important;
    }

    .card-2 {
        bottom: 5% !important;
        right: 15% !important;
        animation: float-y-mobile-2 5s infinite ease-in-out reverse !important;
    }

    @keyframes float-y-mobile-1 {
        0%, 100% { transform: translateY(0) scale(0.75); }
        50% { transform: translateY(-15px) scale(0.75); }
    }

    @keyframes float-y-mobile-2 {
        0%, 100% { transform: translateY(0) scale(0.75); }
        50% { transform: translateY(-15px) scale(0.75); }
    }

    .card-text p {
        font-size: 1rem;
    }
    .card-text h4 {
        font-size: 0.75rem;
    }

    /* Sections */
    .features, .pricing, .stats {
        padding: 3rem 1rem !important;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Assistance Page Grid */
    section[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-form-container {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    /* Stats */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Grids */
    .showcase-grid, .pricing-grid, .features-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-item h2 {
        font-size: 2.2rem !important;
    }
    .stat-item p {
        font-size: 0.75rem !important;
    }

    /* Pricing Card */
    .pricing-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    .price {
        font-size: 3.2rem;
    }
    .currency {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem !important;
    }
    footer {
        padding-bottom: 2rem;
    }
}
