:root {
    /* DEFAULT LIGHT THEME */
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    
    --nav-bg: rgba(255, 255, 255, 0.75);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    
    --glow-1: rgba(59, 130, 246, 0.15);
    --glow-2: rgba(139, 92, 246, 0.15);
    
    --btn-outline-hover: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    /* DARK THEME */
    --bg-main: #09090b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --nav-bg: rgba(9, 9, 11, 0.75);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    --glow-1: rgba(59, 130, 246, 0.12);
    --glow-2: rgba(139, 92, 246, 0.12);
    
    --btn-outline-hover: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradients */
.glow-bg, .glow-bg-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    transition: background 0.3s ease;
}

.glow-bg {
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, var(--glow-1) 0%, rgba(0,0,0,0) 70%);
}

.glow-bg-2 {
    top: 20%;
    right: -10%;
    background: radial-gradient(circle, var(--glow-2) 0%, rgba(0,0,0,0) 70%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

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

/* Buttons */
.btn-primary, .btn-primary-outline, .btn-secondary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-primary-outline:hover {
    background: var(--btn-outline-hover);
    border-color: var(--text-muted);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

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

.w-100 {
    width: 100%;
}

/* Sections */
.section-padding {
    padding: 100px 5%;
}

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

.section-badge {
    display: inline-block;
    color: var(--accent-1);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    padding-top: 80px;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
    color: var(--accent-1);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #3b82f6, #a855f7, #3b82f6);
    background-size: 200% auto;
    animation: gradientShine 4s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes gradientShine {
    to { background-position: 200% center; }
}

/* Floating Shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.shape { position: absolute; filter: blur(60px); opacity: 0.3; animation: float 12s infinite ease-in-out alternate; transition: transform 0.1s ease; }
.shape-1 { width: 350px; height: 350px; background: var(--accent-1); border-radius: 50%; top: -10%; left: 0%; animation-delay: -2s; }
.shape-2 { width: 300px; height: 300px; background: var(--accent-2); border-radius: 50%; bottom: -5%; right: 5%; animation-delay: -5s; }

/* Construction Reactive Elements */
.const-element {
    position: absolute;
    opacity: 0.25; /* slightly more visible */
    z-index: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
[data-theme="dark"] .const-element {
    opacity: 0.15;
}

.const-gear { width: 180px; height: 180px; top: 15%; right: 12%; }
.const-crane { width: 300px; height: 300px; bottom: 0; left: -2%; }
.const-ruler { width: 140px; height: 140px; top: 60%; left: 10%; }
.const-blueprint { width: 220px; height: 220px; bottom: 15%; right: -2%; }

.spin-slow { animation: spin 20s linear infinite; transform-origin: center; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.float-animation { animation: constFloat 8s ease-in-out infinite alternate; }
.float-animation-alt { animation: constFloat 6s ease-in-out infinite alternate-reverse; }
@keyframes constFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(8deg); }
}

.crane-line { animation: craneLineDrop 4s ease-in-out infinite alternate; }
.crane-block { animation: craneBlockDrop 4s ease-in-out infinite alternate; }
@keyframes craneLineDrop {
    0% { stroke-dasharray: 40; stroke-dashoffset: 40; }
    100% { stroke-dasharray: 40; stroke-dashoffset: 0; }
}
@keyframes craneBlockDrop {
    0% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

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

/* Magnetic Button Base */
.magnetic-btn { display: inline-flex; transition: transform 0.2s cubic-bezier(0.1, 0.7, 0.1, 1); }
.magnetic-btn .btn-text { display: inline-flex; align-items: center; transition: transform 0.2s cubic-bezier(0.1, 0.7, 0.1, 1); pointer-events: none; }

/* Text Reveal CSS */
.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) rotateX(-20deg);
    animation: revealWord 0.6s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}
@keyframes revealWord {
    to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    perspective: 1000px;
}

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

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    padding-left: 2rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--glass-border);
    position: absolute;
    top: -40px;
    left: -10px;
    z-index: -1;
    opacity: 0.5;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-muted);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.popular {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px var(--accent-1), var(--card-shadow);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent-1);
    flex-shrink: 0;
}

.pricing-features li.disabled svg {
    color: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.stars {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Bottom */
.cta-box {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 32px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.cta-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-box p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--accent-1);
    box-shadow: none;
}

.cta-box .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* --- BUTTONS & MISC --- */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.scroll-to-top {
    position: fixed;
    bottom: -60px; /* hidden by default */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-1);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
}
.scroll-to-top.visible {
    bottom: 30px;
}
.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-2);
}

.btn-spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
.btn-spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.slider-captcha {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    margin: 1.5rem auto;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.slider-captcha-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s;
}
.slider-captcha-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(16, 185, 129, 0.2);
    z-index: 2;
    transition: background 0.3s;
}
.slider-captcha-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px;
    height: 40px;
    background: var(--accent-1);
    border-radius: 50%;
    cursor: grab;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    transition: transform 0.1s, background 0.3s;
}
.slider-captcha-thumb:active {
    cursor: grabbing;
}
.slider-captcha.unlocked .slider-captcha-thumb {
    background: #10b981; /* green */
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}
.slider-captcha.unlocked .slider-captcha-text {
    color: #10b981;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--card-shadow);
        
        /* Animation setup */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .stats-container {
        gap: 2rem;
        padding: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .cta-box {
        padding: 3rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}

/* FAQ & CONTACT STYLES */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.map-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}
