/* Flight Mode Chat - Modern Design System */

/* CSS Variables */
:root {
    /* Brand Colors - Vibrant yet Pastel */
    --primary-blue: #007AFF;
    --primary-blue-light: #4DA3FF;
    --primary-blue-dark: #0056CC;
    --secondary-orange: #FF9500;
    --secondary-orange-light: #FFB366;
    --accent-mint: #30D158;
    --accent-peach: #FF6B6B;
    --accent-sky: #5AC8FA;
    --accent-purple: #AF52DE;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F7;
    --gray-200: #E5E5EA;
    --gray-300: #D1D1D6;
    --gray-400: #8E8E93;
    --gray-500: #636366;
    --gray-600: #48484A;
    --gray-700: #3A3A3C;
    --gray-800: #2C2C2E;
    --gray-900: #1C1C1E;
    
    /* Background Gradients */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    --hero-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.15);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    pointer-events: none;
    z-index: -2;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-chat {
    position: absolute;
    width: 60px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.floating-chat.bubble-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-chat.bubble-2 {
    top: 60%;
    right: 8%;
    animation-delay: 2s;
}

.floating-chat.bubble-3 {
    top: 80%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    filter: drop-shadow(var(--shadow-sm));
}

.nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-blue);
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--hero-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.hero-main {
    display: block;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-peach), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1C1C1E, #2C2C2E);
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    pointer-events: none;
}

.floating-signals {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.signal-wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.signal-wave.wave-1 {
    width: 400px;
    height: 400px;
    margin: -200px;
    animation-delay: 0s;
}

.signal-wave.wave-2 {
    width: 500px;
    height: 500px;
    margin: -250px;
    animation-delay: 0.5s;
}

.signal-wave.wave-3 {
    width: 600px;
    height: 600px;
    margin: -300px;
    animation-delay: 1s;
}

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

/* Sections */
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--card-gradient);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 122, 255, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-orange), var(--secondary-orange-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: var(--white);
}

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

.use-case-card {
    background: var(--card-gradient);
    padding: 24px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.use-case-card p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--gray-600);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

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

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 32px 24px;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--hero-gradient);
    color: white;
    text-align: center;
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--white);
    color: var(--gray-900);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.app-store-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

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

.store-line1 {
    font-size: 12px;
    color: var(--gray-600);
}

.store-line2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.download-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

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

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-social p {
    color: var(--gray-400);
    margin-bottom: 8px;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-blue-dark);
    box-shadow: var(--shadow-xl);
}

.back-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .features,
    .how-it-works,
    .use-cases,
    .gallery,
    .download {
        padding: 80px 0;
    }
    
    .features-grid,
    .use-cases-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .back-to-top-btn {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* Airplane-specific animations */
@keyframes airplane-fly {
    0% { transform: translateX(-100px) translateY(10px); }
    50% { transform: translateX(50px) translateY(-5px); }
    100% { transform: translateX(200px) translateY(0px); }
}

.airplane-animation {
    position: relative;
    overflow: hidden;
}

.airplane-animation::before {
    content: '✈️';
    position: absolute;
    font-size: 24px;
    top: 20px;
    left: -100px;
    animation: airplane-fly 15s infinite linear;
    opacity: 0.3;
    pointer-events: none;
}

/* Add airplane animation to hero section */
.hero::after {
    content: '✈️';
    position: absolute;
    font-size: 32px;
    top: 15%;
    left: -100px;
    animation: airplane-fly 20s infinite linear;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

/* Bluetooth pulse animation for feature cards */
.feature-card.bluetooth .feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 122, 255, 0.3);
    border-radius: 50%;
    animation: bluetooth-pulse 2s infinite;
}

@keyframes bluetooth-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Special hover effects for flight-specific cards */
.use-case-card.long-flight:hover,
.use-case-card.delayed:hover {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.use-case-card.families:hover,
.use-case-card.business:hover {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
}

.use-case-card.solo:hover,
.use-case-card.nervous:hover {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
}

@media (max-width: 480px) {
    .hero-main {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .feature-card,
    .use-case-card {
        padding: 24px 20px;
    }
}