/* =======================================
   CSS Variables & Theme Configuration
======================================= */
:root {
    /* Color Palette (Dark Theme - Default) */
    --bg-dark: #030712;
    --bg-surface: #111827;
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-secondary: #a855f7;
    
    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Spacing & Sizes */
    --container-max: 1200px;
    --nav-height: 80px;
}

/* Light Theme Overrides */
.light-theme {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-hover: rgba(0, 0, 0, 0.1);
}

/* Base Theme Transitions - only on elements that actually change */
body,
nav, .navbar, .nav-content,
.feature-card, .glass,
.pricing-card, .chat-container,
footer, .faq-item, .method,
.btn, .btn-primary, .btn-secondary {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* =======================================
   Reset & Base Styles
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Performance: Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    min-height: 100%;
    /* Restore missing theme variables */
    background-color: var(--bg-dark);
    color: var(--text-primary);
    /* Performance: Smooth scrolling */
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Performance: Defer JS to prevent render-blocking */
    text-rendering: optimizeLegibility;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Typography */
/* Performance: Lazy render off-screen sections */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-muted) 100%);
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =======================================
   Navigation Bar
======================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    /* Performance: Use translateZ for GPU composite layer */
    transform: translateZ(0);
    will-change: background-color, border-bottom;
}

.navbar.nav-scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: calc(var(--nav-height) - 10px);
}

.nav-content {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-cta {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.moon-icon, .sun-icon {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(90deg);
}

.light-theme .moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(-90deg);
}

.light-theme .sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Light Theme Specific Fixes */
.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8);
}
.light-theme .glass {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.light-theme .stats-card {
    background: rgba(255, 255, 255, 0.9);
}
.light-theme .demo-chat {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.light-theme .message.ai {
    background: #f1f5f9;
}
.light-theme .chat-input-area {
    background: #f8fafc;
}
.light-theme #chat-input {
    background: #ffffff;
    color: #0f172a;
}
.light-theme .footer-brand h2 { color: #0f172a; }

/* =======================================
   Hero Section & Backgrounds
======================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
    /* Dark subtle grid pattern for 'engineering' aesthetic */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(80px);
    /* Breathing animation */
    animation: pulse-glow 8s ease-in-out infinite alternate, float-glow 20s linear infinite;
    z-index: 0;
    
    /* Performance: Hardware accelerate complex animations */
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.1; }
    50% { transform: scale(1.2) translate(-2%, 2%); opacity: 0.2; }
    100% { transform: scale(0.9) translate(2%, -2%); opacity: 0.1; }
}

@keyframes float-glow {
    0% { top: -20%; left: 0%; }
    25% { top: -10%; left: 30%; }
    50% { top: 10%; left: 20%; }
    75% { top: 0%; left: -10%; }
    100% { top: -20%; left: 0%; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-primary .arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

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

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

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
    overflow: hidden;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar:first-child { margin-left: 0; }

/* =======================================
   Features Section
======================================= */
.features {
    padding: 8rem 0;
    position: relative;
}

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

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

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

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

/* Premium Glowing Border Hover Effect */
.glass::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(234, 182, 118, 0.5) 0%, transparent 40%, rgba(234, 182, 118, 0.1) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.glass:hover::before {
    opacity: 1;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.05);
}

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

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

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

/* =======================================
   Demo / Chatbot Section
======================================= */
.demo-section {
    padding: 6rem 0;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.demo-benefits {
    list-style: none;
}

.demo-benefits li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.check {
    color: #10b981;
    font-weight: bold;
}

.demo-chat {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.chat-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
    /* Performance: Hardware accelerate the pulse */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.message.ai {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--accent);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: var(--accent);
}

#send-btn {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 100px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

#send-btn:hover {
    opacity: 0.9;
}

/* =======================================
   Footer
======================================= */
footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-brand .accent {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* =======================================
   Pricing Section
======================================= */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
}

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

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-primary);
    line-height: 1;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

.pricing-features .disabled span {
    color: #ef4444;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
}

.demo-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.demo-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.demo-arrow {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s;
}

.demo-link-card:hover .demo-arrow {
    transform: translateX(10px);
}

/* =======================================
   Process Section
======================================= */
.process {
    padding: 8rem 0;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    transition: transform 0.4s ease;
}

.step:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    -webkit-text-stroke: 1px var(--accent);
    color: transparent;
    opacity: 0.5;
    flex-shrink: 0;
}

.step:hover .step-number {
    color: var(--accent-glow);
    opacity: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        align-items: flex-start;
    }
    .step {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        flex: 1;
    }
    .step:hover {
        transform: translateY(-10px);
    }
}

/* =======================================
   FAQ Section
======================================= */
.faq {
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

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

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
    opacity: 1;
}

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

/* =======================================
   Why Us Section
======================================= */
.why-us {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.why-us-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .why-us-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .why-text {
        flex: 1;
        padding-right: 2rem;
    }
    
    .why-image {
        flex: 1;
        width: 100%;
    }
}

.why-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-text > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.why-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.why-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.why-list p {
    color: var(--text-muted);
}

.why-image {
    position: relative;
    min-height: 400px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.why-image::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(99, 102, 241, 0.3) 25%, transparent 50%);
    animation: rotate 10s linear infinite;
    z-index: -1;
    /* Performance: Hardware accelerate continuous rotation */
    will-change: transform;
    transform: translateZ(0);
}

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

.stats-card {
    background: rgba(3, 7, 18, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1;
}

.stats-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* =======================================
   Contact Section
======================================= */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.contact-info h2 span {
    color: var(--accent);
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 16px;
}

.method i {
    font-style: normal;
    font-size: 1.5rem;
}

.contact-form {
    padding: 3rem;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 1.2rem;
}

/* =======================================
   Responsive Utilities
======================================= */
@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links, .desktop-only {
        display: none; /* Hide on mobile for simplicity */
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        margin-left: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
}

/* =======================================
   Mobile Menu Overlay
======================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent);
}

.mobile-close-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* =======================================
   Back to Top Button
======================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.arrow-up-svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover .arrow-up-svg {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* =======================================
   Cookie Banner
======================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: var(--text-primary);
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
