/* ========================================
   RESQ+ Website Styles
   Modern Emergency App Landing Page
   ======================================== */

/* ========================================
   1. CSS Reset & Base Styles
   ======================================== */

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

/* Prevent text overflow globally */
p, h1, h2, h3, h4, h5, h6, span, div, a, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

:root {
    /* Emergency Colors */
    --emergency-red: #E53935;
    --emergency-blue: #1565C0;
    --emergency-blue-dark: #0D47A1;
    --medical-green: #00C853;
    --warning-orange: #FF9800;
    
    /* UI Colors */
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --secondary: #E53935;
    --accent: #00C853;
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0f172a;
    
    /* Gradients */
    --gradient-emergency: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #E53935 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-section: 3.5rem; /* 56px - optimized spacing between sections */
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    padding-top: 110px; /* Exact header height: logo (50px) + logo padding (16px) + nav-wrapper padding (24px) + extra space (20px) */
}

@media (max-width: 768px) {
    body {
        padding-top: 140px; /* More space on mobile for wrapped nav */
    }
}

/* Calculate exact header height and add padding */
header {
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Optimized section spacing */
section {
    padding: var(--spacing-section) 0;
}

section + section {
    margin-top: 0; /* Remove double spacing between sections */
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

/* ========================================
   2. Navigation
   ======================================== */

/* Navbar styles are defined below - removing duplicate */

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1001;
}

.logo img {
    width: auto;
    height: 50px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-icon {
    font-size: 2rem;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

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

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .nav-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 0;
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        gap: 0.75rem;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .lang-switcher {
        order: 2;
        display: flex;
        gap: 0.5rem;
        flex-wrap: nowrap;
        margin-left: auto;
    }
    
    .lang-btn {
        font-size: 1.2rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   3. Hero Section
   ======================================== */

.hero {
    padding: 2rem 0 4rem;
    background: var(--gradient-emergency);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    scroll-margin-top: 100px; /* Prevent content hiding under header */
}

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 0 3rem;
        scroll-margin-top: 150px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.hero-text {
    color: white;
    padding-top: 0;
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    padding-top: 0;
    scroll-margin-top: 100px; /* Prevent hiding when scrolling */
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-icon {
    font-size: 1.25rem;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.phone-frame {
    width: 300px;
    max-width: 100%;
    height: 600px;
    background: #1a1a1a;
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000;
    border-radius: 0 0 1rem 1rem;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-emergency);
    border-radius: 2rem;
    overflow: hidden;
}

.screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   4. Features Section
   ======================================== */

.features {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(21, 101, 192, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

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

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

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-icon.emergency {
    background: rgba(229, 57, 53, 0.1);
}

.feature-icon.medical {
    background: rgba(0, 200, 83, 0.1);
}

.feature-icon.services {
    background: rgba(21, 101, 192, 0.1);
}

.feature-icon.profile {
    background: rgba(156, 39, 176, 0.1);
}

.feature-icon.firstaid {
    background: rgba(255, 152, 0, 0.1);
}

.feature-icon.alerts {
    background: rgba(244, 67, 54, 0.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
}

/* ========================================
   5. Screenshots Section
   ======================================== */

.screenshots {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.screenshots-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.screenshot-card {
    text-align: center;
}

.screenshot-placeholder {
    background: var(--gradient-emergency);
    border-radius: var(--radius-lg);
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-placeholder {
    transform: scale(1.05);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.screenshot-card:hover .screenshot-img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.placeholder-text {
    font-size: 1.125rem;
}

.screenshot-caption {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   6. How It Works Section
   ======================================== */

.how-it-works {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 1;
    /* Gradient text handled by theme-toggle.css */
}

.step-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   7. Download Section
   ======================================== */

.download {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.download-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.download-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    margin-bottom: var(--spacing-xl);
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
}

.store-icon {
    width: 32px;
    height: 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.download-info {
    display: flex;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-icon {
    font-size: 1.125rem;
}

.download-phone {
    display: flex;
    justify-content: center;
}

.phone-frame-large {
    width: 250px;
    max-width: 100%;
    height: 500px;
    background: #1a1a1a;
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.phone-screen-large {
    width: 100%;
    height: 100%;
    background: var(--gradient-emergency);
    border-radius: 1.5rem;
    overflow: hidden;
}

.screen-placeholder-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.placeholder-icon-large {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   8. Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-md);
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--spacing-sm);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   9. Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        display: flex;
        justify-content: center;
    }
    
    .download-info {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 1rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        gap: 0.75rem;
    }
    
    .faq-icon {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .testimonial-summary {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .screenshots-slider {
        grid-template-columns: 1fr;
    }
    
    .phone-frame {
        width: 250px;
        height: 500px;
    }
}

/* ========================================
   8. Stats Section
   ======================================== */

.stats-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-sublabel {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   9. Use Cases Section
   ======================================== */

.use-cases {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.use-case:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.use-case h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.use-case-story {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.use-case-story strong {
    color: #1565C0;
    font-weight: 600;
}

.use-case-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(21, 101, 192, 0.1);
    color: #1565C0;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   10. Testimonials Section
   ======================================== */

.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: #111827;
}

.author-role {
    font-size: 0.875rem;
    color: #6b7280;
}

.testimonial-summary {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
}

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

.summary-number {
    font-size: 3rem;
    font-weight: 900;
    color: #1565C0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   11. FAQ Section
   ======================================== */

.faq {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.faq-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding-top: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.faq-answer {
    line-height: 1.7;
    color: #4b5563;
    padding-left: 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .faq-answer {
        padding-left: 0;
        padding-top: 0.5rem;
    }
}

/* ========================================
   12. Animations & Effects
   ======================================== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Scroll Reveal Classes - DISABLED FOR NOW (causing visibility issues) */
/* Will be re-enabled after testing */
.scroll-reveal,
.scroll-reveal-up,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-scale,
.scroll-reveal-stagger {
    /* Animations disabled - elements visible by default */
    opacity: 1 !important;
    transform: none !important;
}

/* Optionally re-enable with JavaScript check
.scroll-reveal {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
}
*/

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ========================================
   13. Share Story Section
   ======================================== */

.share-story {
    padding: var(--spacing-section) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.story-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.story-content {
    padding: 1.5rem;
}

.story-text {
    font-size: 0.938rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}

.story-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.share-story-cta:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px 20px !important;
        max-width: 100% !important;
    }
    
    .share-story-cta {
        padding: 40px 20px !important;
    }
}

/* ========================================
   14. Enhanced UI/UX Effects
   ======================================== */

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1565C0, #E53935, #00C853);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Enhanced Card Hover */
.feature-card,
.use-case-card,
.story-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.use-case-card:hover,
.story-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Shine Effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s;
}

.shine:hover::after {
    left: 100%;
}

/* Improved Input Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(21, 101, 192, 0.1);
    border-top-color: #1565C0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: #1F2937;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1F2937;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Badge Pulse - DISABLED */
/* .badge {
    animation: badgePulse 2s ease-in-out infinite;
} */

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(21, 101, 192, 0);
    }
}

/* Image Zoom on Hover */
.screenshot-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover img {
    transform: scale(1.1);
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced Section Headers */
.section-header {
    position: relative;
}

.section-badge {
    display: inline-block;
    /* animation: float 3s ease-in-out infinite; */
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable transitions for instant changes */
input,
textarea,
select {
    transition: none;
}

input:focus,
textarea:focus,
select:focus {
    transition: all 0.3s ease;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========================================
   15. Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
    /* Larger touch targets */
    .btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved mobile spacing */
    section {
        padding: var(--spacing-xl) 0; /* 3rem = 48px on mobile */
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Better mobile typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    /* Mobile-optimized cards */
    .feature-card,
    .use-case-card,
    .story-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Touch-friendly forms */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
    }
    
    /* Improve modal on mobile */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Mobile-friendly navigation */
    .nav-links a {
        padding: var(--spacing-md);
        font-size: 1.1rem;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile scroll hint */
    .screenshots-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .screenshot-card {
        scroll-snap-align: center;
    }
}

/* ========================================
   16. Accessibility Improvements
   ======================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #1565C0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1565C0;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* ========================================
   17. Print Styles
   ======================================== */

@media print {
    .navbar,
    .btn,
    footer,
    .modal,
    .scroll-progress {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}
