/* Bolt-inspired Design System */
:root {
    --primary: #2563eb; /* Keeping Qwan Blue */
    --primary-dark: #1d4ed8;
    --text-main: #1a1a1a;
    --text-light: #4b5563;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Buttons - Bolt Style (Pill Shaped) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1010; /* Increased to sit above the overlay */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Hamburger Menu - The Bolt Way */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition);
}

.hamburger:hover {
    background: #e5e7eb;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
    margin: 0 auto;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Overlay */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1001;
}

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

.nav-links li {
    list-style: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.nav-links.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu items */
.nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
.nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
.nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

.nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s;
}

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

.mobile-auth-btn {
    display: none;
}

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
    margin-right: 24px;
}

/* Hero Section - Bolt Style */
.hero {
    padding: 160px 24px 100px;
    min-height: 100vh;
    background: var(--white);
    overflow: hidden;
    position: relative;
    color: var(--text-main);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-content p {
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Hero specific button overrides for blue background */
.hero .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.hero .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero .btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.hero .btn-secondary:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}

/* Floating Images Animation */
.hero-image {
    position: relative;
    height: 600px;
    width: 100%;
}

.animated-image {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease-out;
}

.animated-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific Image Positioning & Animation */
.image-1 {
    width: 380px;
    height: 480px;
    right: 0;
    top: 0;
    z-index: 1;
    animation: float-slow 8s ease-in-out infinite;
}

.image-2 {
    width: 300px;
    height: 220px;
    left: 0;
    top: 100px;
    z-index: 2;
    animation: float-medium 6s ease-in-out infinite;
}

.image-3 {
    width: 260px;
    height: 260px;
    left: 40px;
    bottom: 40px;
    z-index: 3;
    animation: float-fast 7s ease-in-out infinite;
}

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

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

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

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--white);
}

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

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

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

.feature-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid #f3f4f6;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 20px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

/* Pricing Cards - Bolt Style */
.pricing {
    padding: 140px 24px 100px;
    background: #f9fafb;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-image {
        height: 500px;
        margin-top: 40px;
    }

    .image-1 {
        width: 60%;
        right: 10%;
    }

    .image-2 {
        width: 45%;
        left: 5%;
    }

    .image-3 {
        width: 40%;
        left: 15%;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .auth-buttons {
        display: none;
    }

    .mobile-auth-btn {
        display: block;
        margin-top: 10px;
    }
    
    .nav-links {
        width: 100%;
        max-width: 100%;
    }
}

/* Footer */
.footer {
    background: #111827;
    color: var(--white);
    padding: 80px 24px 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-section ul li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-section a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

/* Overlay for menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Page Specific Styles --- */

/* Common Page Header Padding (to clear fixed header) */
.pricing, .about, .contact {
    padding: 140px 24px 100px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
    margin-top: 40px;
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.feature i {
    color: var(--primary);
    font-size: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-buttons .btn {
    width: 100%;
}

/* CTA Inline Buttons (for CTA sections) */
.cta-buttons-inline {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Pricing Card Internals */
.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-name {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.period {
    color: var(--text-light);
}

.plan-features {
    margin: 32px 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.plan-features li i {
    color: var(--primary);
    flex-shrink: 0;
}

.plan-features li i.fa-times {
    color: #9ca3af;
}

.plan-additional-info {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.plan-additional-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    background: var(--white);
    text-align: center;
    color: var(--text-main);
}

.cta-section h2 {
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.cta-section .btn-secondary:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Security Page */
.security {
    padding: 140px 24px 100px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Page Header for Inner Pages */
.page-header {
    padding: 140px 24px 60px;
    background: var(--white);
    color: var(--text-main);
    text-align: center;
}

.page-header .section-title {
    color: var(--text-main);
}

.page-header .section-description {
    color: var(--text-light);
}

/* Page Header Images */
.page-header-image {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 2rem auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

/* Section Title */
.section-title {
    color: var(--text-main);
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Title and Description */
.feature-title {
    color: var(--text-main);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact CTA Fix */
.contact-cta {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
    color: var(--text-main);
}

.contact-cta h3 {
    margin-bottom: 16px;
    color: var(--text-main);
}

.contact-cta p {
    margin-bottom: 32px;
    color: var(--text-light);
}

.contact-cta .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.contact-cta .btn-primary:hover {
    background: var(--primary-dark);
}

.contact-cta .btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.contact-cta .btn-secondary:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}

/* Mobile Responsive for Pages */
@media (max-width: 768px) {
    .pricing, .about, .contact, .security {
        padding: 120px 16px 60px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .cta-section {
        padding: 60px 16px;
    }
    
    .pricing-card {
        padding: 32px;
    }
    
    .footer {
        padding: 60px 16px 30px;
    }
    
    .footer-content {
        gap: 32px;
    }
    
    .about-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contact-cta {
        padding: 32px;
    }
}
