/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #ffffff;
    --text-primary: #0d0d0d;
    --text-secondary: #676767;
    --text-tertiary: #8e8ea0;
    --border-color: #e5e5e5;
    --accent-color: #ff6b35;
    --accent-hover: #f7931e;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --icon-filter: invert(0.4) sepia(1) saturate(5) hue-rotate(15deg) brightness(1.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    --error-color: #ef4444;
    --success-color: #22c55e;
}

[data-theme="dark"] {
    /* Dark mode colors - Professional dark blue-purple theme */
    --bg-primary: linear-gradient(135deg, #0f0c29 0%, #24243e 50%, #302b63 100%);
    --bg-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-tertiary: linear-gradient(135deg, #232526 0%, #414345 100%);
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-tertiary: #8892b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #ff6b35;
    --accent-hover: #ff8c42;
    --card-bg: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(15, 12, 41, 0.9);
    --icon-filter: invert(0.4) sepia(1) saturate(5) hue-rotate(15deg) brightness(1.4);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(135deg, #0f0c29 0%, #24243e 50%, #302b63 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --hero-gradient: linear-gradient(135deg, #0f0c29 0%, #24243e 30%, #302b63 70%, #24243e 100%);
    --error-color: #f87171;
    --success-color: #34d399;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: none;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll on all containers */
    .container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix any elements that might cause horizontal scroll */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent pull-to-refresh and overscroll */
    body {
        overscroll-behavior: none;
        -webkit-overscroll-behavior: none;
    }
}

[data-theme="dark"] body {
    background: var(--bg-primary);
    background-attachment: fixed;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.theme-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

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

/* Mobile-specific button behavior */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* Remove focus outline and background on mobile */
    .btn:focus {
        outline: none !important;
        background: var(--accent-color) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    .btn-primary:focus {
        background: var(--accent-color) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    .btn-secondary:focus {
        background: transparent !important;
        color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    /* Remove tap highlight */
    .btn {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Ensure buttons return to normal state after touch */
    .btn:not(:active) {
        background: var(--accent-color) !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-secondary:not(:active) {
        background: transparent !important;
        color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #667eea 100%);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

[data-theme="dark"] .hero {
    background: var(--hero-gradient);
    background-attachment: fixed;
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-top: 8px;
}

[data-theme="dark"] .hero-icon {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* iPhone Frame */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

[data-theme="dark"] .iphone-frame {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 107, 53, 0.1);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.app-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-theme="dark"] .app-content {
    background: linear-gradient(135deg, var(--accent-color) 0%, #667eea 100%);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 4px;
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.signal, .battery {
    font-size: 10px;
    opacity: 0.9;
}

.app-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.quote-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-size: 14px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: center;
}

.quote-source {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    text-align: center;
}

.app-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.app-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.action-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: white;
    color: var(--accent-color);
}

.action-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.action-btn.tertiary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn:hover {
    transform: translateY(-1px);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    line-height: 1.2;
}

[data-theme="dark"] .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #b8bcc8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Problem Section */
.problem {
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .problem {
    background: var(--bg-secondary);
    background-attachment: fixed;
}

[data-theme="dark"] .problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-content {
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

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

.problem-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter);
}

.problem-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.problem-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Solution Section */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-text {
    text-align: left;
}

.solution-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter);
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.traditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tradition-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tradition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0.9;
    z-index: 1;
    transition: all 0.3s ease;
}

[data-theme="dark"] .tradition-card::before {
    background: linear-gradient(135deg, var(--accent-color) 0%, #667eea 100%);
    opacity: 0.8;
}

.tradition-card * {
    position: relative;
    z-index: 2;
    color: white;
}

.tradition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .tradition-card:hover {
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.tradition-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .how-it-works {
    background: var(--bg-secondary);
    background-attachment: fixed;
}

[data-theme="dark"] .how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .step-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, #667eea 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-hover) 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-number::before {
    opacity: 1;
}

.step-number * {
    position: relative;
    z-index: 1;
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .feature-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .feature-card:hover::before {
    opacity: 1;
}

.feature-icon-large {
    width: 32px;
    height: 32px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large img {
    width: 32px;
    height: 32px;
    filter: var(--icon-filter);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Traction Section */
.traction {
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

[data-theme="dark"] .traction {
    background: var(--bg-secondary);
    background-attachment: fixed;
}

[data-theme="dark"] .traction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 60%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.traction-content {
    max-width: 600px;
    margin: 0 auto;
}

.traction-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.traction-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Team Section */
.team {
    background: var(--bg-primary);
    position: relative;
}

[data-theme="dark"] .team {
    background: var(--bg-primary);
    background-attachment: fixed;
}

[data-theme="dark"] .team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .team-member {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .team-member:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.member-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.member-role {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.member-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive Team Section */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .team-member {
        padding: 32px 24px;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .member-info h3 {
        font-size: 20px;
    }
    
    .member-role {
        font-size: 14px;
    }
    
    .member-description {
        font-size: 14px;
    }
}

/* Final CTA Section */
.final-cta {
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

[data-theme="dark"] .final-cta {
    background: var(--bg-secondary);
    background-attachment: fixed;
}

[data-theme="dark"] .final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

[data-theme="dark"] .footer {
    background: var(--bg-tertiary);
    background-attachment: fixed;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact {
    margin-top: 20px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
}

.contact-email:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .contact-email:hover {
    background: rgba(255, 107, 53, 0.15);
}

.contact-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.contact-btn:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

/* Contact Modal Specific Styles */
.contact-modal {
    max-width: 600px;
}

.contact-intro {
    margin-bottom: 32px;
    text-align: center;
}

.contact-intro p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.contact-form {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form select {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.contact-form select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
}

[data-theme="dark"] .contact-form select option {
    background-color: #1a1a2e;
    color: #ffffff;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Success/Error Messages */
.contact-success,
.contact-error {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    margin-top: 24px;
}

.contact-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .contact-success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

.contact-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .contact-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.contact-success .success-icon,
.contact-error .error-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-success .success-icon {
    background: var(--success-color);
    color: white;
}

.contact-error .error-icon {
    background: var(--error-color);
    color: white;
}

.contact-success h3,
.contact-error h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-success p,
.contact-error p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-error a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-error a:hover {
    text-decoration: underline;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-modal {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-intro {
        margin-bottom: 24px;
    }
    
    .contact-form .form-group {
        margin-bottom: 20px;
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.footer-column a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-link-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer-link-disabled:hover {
    color: var(--text-secondary) !important;
    transform: none !important;
}

.teaching-link {
    position: relative;
}

.teaching-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.teaching-link:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-email {
        font-size: 13px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        height: 60px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-title-container {
        justify-content: center;
        text-align: left;
    }
    
    .hero-icon {
        width: 48px;
        height: 48px;
        margin-top: 4px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .iphone-frame {
        width: 220px;
        height: 440px;
    }
    
    .app-content {
        padding: 30px 16px 16px;
    }
    
    .quote-card {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .traditions-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 24px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .feature-card, .source-card, .waitlist-form {
        padding: 32px 24px;
    }
}

/* Floating particles for dark theme */
[data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(102, 126, 234, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 107, 53, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(102, 126, 234, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(-5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Enhanced glow effects for dark theme */
[data-theme="dark"] .feature-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 107, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.4),
        0 0 30px rgba(255, 107, 53, 0.2);
}

/* Gradient text effects */
[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions for theme switching */
* {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glass morphism effects */
[data-theme="dark"] .nav {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* iPhone Animation Effects */
.iphone-frame {
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.nav-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

.nav-dot.active {
    animation: dotPulse 2s ease-in-out infinite, activeDot 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes activeDot {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

/* Hero icon hover effect */
.hero-icon {
    transition: all 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

/* Status bar animation */
.status-bar {
    animation: statusFade 4s ease-in-out infinite;
}

@keyframes statusFade {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}
/* Sources Section */
.sources {
    background: var(--bg-primary);
    position: relative;
}

[data-theme="dark"] .sources {
    background: var(--bg-primary);
    background-attachment: fixed;
}

[data-theme="dark"] .sources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.source-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .source-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .source-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.source-card.bhagavad-gita {
    border-left: 4px solid var(--accent-color);
}

[data-theme="dark"] .source-card.bhagavad-gita {
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.source-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.source-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.source-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.source-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.source-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 16px;
}

.source-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.source-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.source-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.source-link:hover::after {
    transform: translateX(4px);
}

/* Community Section */
.community-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .community-section {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-section h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.community-section > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.community-feature {
    text-align: center;
}

.community-feature h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.community-feature p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Responsive Sources */
@media (max-width: 768px) {
    .sources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .source-card {
        padding: 24px;
    }
    
    .source-features {
        grid-template-columns: 1fr;
    }
    
    .community-section {
        padding: 32px 24px;
    }
    
    .community-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Quotes Only Cards */
.source-card.quotes-only {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.quotes-container {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 16px;
}

.scrolling-quotes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: scrollQuotes 15s linear infinite;
    min-height: 200px;
}

.quote-item {
    opacity: 0;
    animation: fadeInOut 15s linear infinite;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-item:nth-child(1) { animation-delay: 0s; }
.quote-item:nth-child(2) { animation-delay: 5s; }
.quote-item:nth-child(3) { animation-delay: 10s; }

.quote-item p {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.quote-author {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    text-align: center;
}

@keyframes fadeInOut {
    0%, 20% { opacity: 0; transform: translateY(20px); }
    25%, 65% { opacity: 1; transform: translateY(0); }
    70%, 100% { opacity: 0; transform: translateY(-20px); }
}

/* Pause animation on hover */
.source-card.quotes-only:hover .scrolling-quotes {
    animation-play-state: paused;
}

.source-card.quotes-only:hover .quote-item {
    animation-play-state: paused;
}

/* Interactive Teaching Cards */
.source-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.source-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .source-card.clickable:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.click-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-theme="dark"] .click-indicator {
    background: rgba(255, 107, 53, 0.15);
}

.source-card.clickable:hover .click-indicator {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
}

.click-indicator svg {
    transition: transform 0.3s ease;
}

.source-card.clickable:hover .click-indicator svg {
    transform: translateX(4px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-content {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 32px 40px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-section h3 svg {
    color: var(--accent-color);
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.modal-section li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-quotes {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.modal-quote {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

[data-theme="dark"] .modal-quote {
    background: rgba(255, 255, 255, 0.05);
}

.modal-quote p {
    font-style: italic;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-quote .quote-author {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 14px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-section {
        margin-bottom: 24px;
    }
}
/* Waiting List Form */
.waitlist-form-container {
    max-width: 500px;
    margin: 0 auto 32px;
}

.waitlist-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .waitlist-form {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .form-group input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.form-group input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

.form-extras {
    display: flex;
    justify-content: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .checkmark {
    border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Message */
.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

[data-theme="dark"] .success-message {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
    animation: bounce 0.6s ease-out;
}

.success-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.success-stats {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-block;
}

.stat {
    font-weight: 600;
    color: var(--accent-color);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Waiting List */
@media (max-width: 768px) {
    .waitlist-form {
        padding: 24px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"] {
        margin-bottom: 12px;
    }
    
    .success-message {
        padding: 24px;
    }
    
    /* Fix mobile button states */
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: translateY(1px);
        background: var(--accent-hover);
    }
    
    .btn-primary:active {
        background: var(--accent-hover);
    }
}
/* Error Message */
.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
    margin-bottom: 24px;
}

[data-theme="dark"] .error-message {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.error-icon {
    width: 60px;
    height: 60px;
    background: var(--error-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
}

.error-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.error-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Formspree field errors */
[data-fs-error] {
    color: var(--error-color, #ef4444);
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* Form field validation states */
[data-fs-field][aria-invalid="true"] {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] [data-fs-field][aria-invalid="true"] {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1) !important;
}

/* Loading state for Formspree */
[data-fs-submit-btn]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Mobile-specific overflow and scroll fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scroll and whitespace issues */
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: none !important;
        overscroll-behavior: none !important;
        -webkit-overscroll-behavior: none !important;
        -webkit-text-size-adjust: 100%;
        touch-action: pan-y !important;
    }
    
    /* Fix container overflow */
    .container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Prevent all sections from causing horizontal scroll */
    section {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix text overflow */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix grid layouts */
    .features-grid,
    .sources-grid,
    .team-grid,
    .steps-grid,
    .problem-grid,
    .hero-content,
    .solution-content,
    .footer-content {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix hero section specifically */
    .hero {
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .hero-title-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .hero-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .hero-subtitle {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix iPhone frame positioning */
    .iphone-frame {
        margin: 0 auto !important;
        max-width: 280px !important;
        box-sizing: border-box;
    }
    
    /* Fix modal on mobile */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    /* Prevent form overflow */
    .waitlist-form,
    .contact-form {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix any images that might cause overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    
    /* Fix any flex containers */
    .nav-content,
    .hero-cta,
    .cta-buttons,
    .form-group {
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}tant;
    }
    
    .form-group {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* Additional mobile button fixes */
@media (max-width: 768px) {
    /* Remove focus states on mobile for buttons and links only */
    button:focus,
    .btn:focus,
    .contact-btn:focus,
    .contact-email:focus,
    .teaching-link:focus,
    .nav-link:focus,
    .footer-link:focus {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        background: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Keep input focus working for form fields */
    input:focus,
    select:focus,
    textarea:focus {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Keep the normal focus styles for inputs */
        border-color: var(--accent-color) !important;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
    }
    
    /* Specific button focus fixes */
    .btn:focus {
        background: var(--accent-color) !important;
        color: white !important;
    }
    
    .btn-secondary:focus {
        background: transparent !important;
        color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Ensure buttons return to normal state */
    .btn:not(:active):not(:hover) {
        background: var(--accent-color) !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-secondary:not(:active):not(:hover) {
        background: transparent !important;
        color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Remove sticky hover states */
    .btn,
    .contact-btn,
    .contact-email,
    .teaching-link,
    .nav-link,
    .footer-link {
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
        tap-highlight-color: rgba(0,0,0,0) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Contact and footer links */
    .contact-btn:focus,
    .contact-email:focus {
        color: var(--text-secondary) !important;
        background: none !important;
        transform: none !important;
    }
    
    .teaching-link:focus,
    .nav-link:focus,
    .footer-link:focus {
        color: var(--text-secondary) !important;
        transform: none !important;
    }
    
    /* Remove hover effects on mobile */
    .btn:hover,
    .contact-btn:hover,
    .contact-email:hover,
    .teaching-link:hover,
    .nav-link:hover,
    .footer-link:hover {
        transform: none !important;
    }
}

/* Comprehensive Mobile Fixes */
@media (max-width: 768px) {
    /* Prevent any horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Fix viewport issues */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none !important;
        -webkit-overscroll-behavior: none !important;
    }
    
    /* Ensure all containers respect viewport */
    .container, section, div, header, footer, main {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Fix button states completely - but keep inputs working */
    button, .btn, a {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        outline: none !important;
    }
    
    /* Keep inputs functional */
    input, select, textarea {
        -webkit-tap-highlight-color: transparent !important;
        /* Allow user selection and touch callout for inputs */
        -webkit-user-select: text !important;
        user-select: text !important;
        outline: none !important;
    }
    
    /* Remove all hover effects on mobile for buttons and links only */
    button:hover, .btn:hover, a:hover {
        transform: none !important;
        background: initial !important;
        color: initial !important;
    }
    
    /* Keep input hover effects */
    input:hover, select:hover, textarea:hover {
        /* Allow normal input hover behavior */
    }
    
    /* Specific button resets */
    .btn:focus, .btn:active {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .btn-primary:focus, .btn-primary:active {
        background: var(--accent-color) !important;
        color: white !important;
    }
    
    .btn-secondary:focus, .btn-secondary:active {
        background: transparent !important;
        color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Prevent text selection on interactive elements but allow on inputs */
    .btn, .contact-btn, .nav-link, .footer-link, .teaching-link {
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Allow text selection in inputs */
    input, textarea, select {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }
}

/* Touch device specific fixes */
@media (hover: none) and (pointer: coarse) {
    /* Remove all hover states */
    *:hover {
        transform: none !important;
    }
    
    /* Ensure buttons work properly on touch */
    .btn:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    .btn:not(:active) {
        transform: none !important;
    }
}
/* App Store Button Styling */
.app-store-container {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .app-store-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .app-store-btn:hover {
        transform: none;
    }
}