:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A8A;
    --secondary: #FF4500;
    --secondary-light: #FF6347;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --success: #10B981;
    --error: #EF4444;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.text-center { text-align: center; }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23);
}

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

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 40px;
    width: auto;
    border-radius: 8px; /* Assuming it's slightly rounded or needs cleanup */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.color-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    animation-delay: -5s;
}

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

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.social-proof-mini {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-stars {
    color: #FBBF24;
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: #FBBF24;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-img {
    width: 100%;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float-card 6s infinite alternate ease-in-out;
}

.floating-card i {
    color: var(--primary);
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 12px;
}

.stat-num {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: -30px;
    left: -20px;
    animation-delay: -3s;
}

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

/* Story Sections */
.story-section {
    padding: 6rem 0;
}

.bg-subtle {
    background-color: var(--bg-white);
}

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

.chapter-reverse .chapter-container {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.chapter-reverse .chapter-content,
.chapter-reverse .chapter-visual {
    direction: ltr;
}

.chapter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.chapter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.chapter-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.visual-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.error-state {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--error);
}

.ai-state {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.success-state {
    background: linear-gradient(135deg, #D1FAE5, #10B981);
    color: white;
}

.pulse-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.stat-box h3 {
    display: inline;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
}

.stat-box span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.bg-alt { background: var(--success); }
.bg-primary { background: var(--primary); }

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

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

/* Footer CTA */
.cta-footer {
    position: relative;
    padding-top: 6rem;
    background-color: var(--primary-dark);
    color: white;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary) 0%, transparent 60%);
    opacity: 0.5;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding-bottom: 4rem;
}

.footer-content h2 {
    font-size: 3rem;
    color: white;
}

.footer-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-logo {
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

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

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

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .chapter-container, .chapter-reverse .chapter-container {
        grid-template-columns: 1fr;
    }
    
    .chapter-visual {
        order: -1;
    }
    
    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile handling */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .chapter-content h2 {
        font-size: 2rem;
    }
    
    .footer-actions {
        flex-direction: column;
    }
    
    .flex-between {
        flex-direction: column;
        gap: 1rem;
    }
}
