/* ===================================
   DailyBugFix - Premium Landing Page
   2026 Enhanced Edition
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-secondary: #0A0A0A;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-surface-active: rgba(255, 255, 255, 0.09);
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --color-text: #EDEDED;
    --color-text-secondary: #A1A1A1;
    --color-text-muted: #525252;
    
    --color-primary: #7C3AED;
    --color-primary-light: #A78BFA;
    --color-accent: #22D3EE;
    --color-success: #10B981;
    
    /* Effects */
    --glow-primary: 0 0 60px rgba(124, 58, 237, 0.15);
    --glow-text: 0 0 40px rgba(124, 58, 237, 0.3);
    
    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% -20%, rgba(124, 58, 237, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Animations */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFF;
}

p {
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ===================================
   Components
   =================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    background: #FFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-border-hover);
}

.btn-xl {
    padding: 20px 48px;
    font-size: 1.125rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    background: linear-gradient(to right, #FFF, #A1A1A1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    position: absolute;
    transition: 0.3s var(--ease-out);
}

.hamburger-line:nth-child(1) { transform: translateY(-8px); }
.hamburger-line:nth-child(3) { transform: translateY(8px); }

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 1000px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--color-text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

/* ===================================
   Features Grid (Problem/Solution)
   =================================== */
.grid-section {
    background: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

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

.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: 0.3s var(--ease-out);
}

.card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

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

/* ===================================
   Steps Section
   =================================== */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 280px;
    position: relative;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

/* ===================================
   Tech Stack
   =================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: 0.3s ease;
}

.tech-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.tech-icon {
    font-size: 2.5rem;
}

/* ===================================
   Pricing
   =================================== */
.pricing-section {
    background: var(--color-bg-secondary);
}

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

.price-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    background: rgba(124, 58, 237, 0.03);
}

.price-header {
    margin-bottom: 32px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.check-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.check-icon {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ===================================
   FAQ
   =================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.faq-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: var(--radius-lg);
}

/* ===================================
   CTA
   =================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 160px 0;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* ===================================
   Mobile & Responsive
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh; /* Ensure full viewport height */
        width: 100%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s var(--ease-out);
        z-index: 1001;
        padding: 40px; /* Add padding so items aren't on edge */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(0); top: 50%; }
    .mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(0); top: 50%; }

    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        border-top: none;
    }

    .steps-container {
        flex-direction: column;
    }
    
    .step-item {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}
