/* ==========================================================================
   1. CSS Reset & Variables
   ========================================================================== */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #ffd700;
    --accent-hover: #e6c200;
    --border-color: #27272a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Crucial for anchor links with a fixed navbar */
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.8)), url('1.png');
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-user-select: none;
    user-select: none;
    padding-top: 250px; /* Spacing for the new floating navbar */
}

/* ==========================================================================
   2. Floating Island Navbar (Dark Theme)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    /* Dark frosted glass background */
    background-color: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Scrolled State */
.navbar.scrolled {
    top: 1rem;
    padding: 0.8rem 2.5rem;
    background-color: rgba(10, 10, 10, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* --- Logo --- */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main); /* White text */
    text-decoration: none;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .logo .logo-icon {
    height: 32px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo {
    font-size: 1.3rem;
}

.navbar.scrolled .logo .logo-icon {
    height: 24px;
}

/* --- Navigation Links --- */
.navbar nav a {
    margin-left: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: var(--text-muted); /* Light grey text */
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar nav a:hover {
    background-color: rgba(255, 215, 0, 0.08); /* Subtle yellow tint */
    color: var(--accent); /* Yellow text */
    transform: translateY(-2px);
}

.navbar nav a:active {
    transform: translateY(0) scale(0.96);
}

/* --- Mobile Menu Toggle Icon (Hamburger) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main); /* White bars */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Premium Animation: Hamburger turns into an 'X' when active */
.navbar.active .menu-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar.active .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}
.navbar.active .menu-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   3. Buttons & Glow Effects
   ========================================================================== */
.btn {
    text-align: center;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Primary Button */
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.5);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

/* ==========================================================================
   4. Landing Page Sections (Hero, Value Prop, Steps, CTA)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 2rem 1rem 5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.compact-hero {
    padding: 3rem 1rem 1rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

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

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

.feature {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.steps-section {
    padding-bottom: 5rem;
    padding-top: 1rem;
}

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

.step-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.step-number {
    background-color: var(--accent);
    color: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.cta-section {
    background-color: transparent;
    padding: 5rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   5. Database Layout & Cards
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 60%;
    margin: 0 auto;
    padding: 2rem 0;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.badge {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

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

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 65px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.card-stat-item h4 {
    font-size: 1.2rem;
}

.card-stat-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   6. Bundle Card
   ========================================================================== */
.bundle-card {
    background: linear-gradient(145deg, var(--card-bg), #1a1a00);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.bundle-content {
    flex: 1;
    min-width: 300px;
}

.bundle-badge {
    background-color: var(--accent);
    color: var(--bg-color);
}

.bundle-card h2 {
    font-size: 2.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.bundle-stats {
    max-width: 400px;
    border: none;
    padding: 0;
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.bundle-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-btn {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    animation: pulse-glow 2s infinite;
}

/* Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 5rem 1rem 1.5rem 1rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-footer .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

/* Feature/Step Cards Glassmorphism */
.feature, .step-card, .card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Pulsing steps */
.step-number {
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    z-index: -1;
    animation: premiumPulse 2s infinite;
}

.step-card:nth-child(1) .step-number::before { animation-delay: 0s; }
.step-card:nth-child(2) .step-number::before { animation-delay: 0.4s; }
.step-card:nth-child(3) .step-number::before { animation-delay: 0.8s; }

@keyframes premiumPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* ==========================================================================
   8. Responsive Menu (Dark Theme Dropdown & Mobile Adjustments)
   ========================================================================== */

/* --- Triggers at 1400px (Tablets / Small Laptops) --- */
@media (max-width: 1400px) {
    .navbar {
        width: 85vw;
        padding: 1rem 1.5rem;
        overflow: visible; /* Required so dropdown isn't cut off */
    }

    .menu-toggle {
        display: flex;
        pointer-events: auto;
        z-index: 1005;
    }

    .navbar nav {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;

        /* Premium Dark Dropdown Background */
        background-color: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);

        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* Active (Open) state */
    .navbar.active nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Styling the links inside the dark dropdown */
    .navbar nav a {
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.03); /* Subtle dark card look */
        border: 1px solid transparent;
        border-radius: 8px;
    }

    /* Hover effect for mobile links */
    .navbar nav a:hover {
        background-color: rgba(255, 215, 0, 0.1); /* Subtle yellow background */
        border: 1px solid rgba(255, 215, 0, 0.3); /* Yellow glow edge */
        color: var(--accent);
        transform: translateY(-2px);
    }
}

/* --- Phone Adjustments (Triggers at 768px) --- */
@media (max-width: 768px) {
    .navbar {
        width: 90vw;
    }

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

    .hero {
        padding: 3rem 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .bundle-card {
        padding: 1.5rem;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   9. Preloader & Anti-Flicker
   ========================================================================== */
html {
    background-color: var(--bg-color);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
