/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: linear-gradient(135deg, #f5f5f7 0%, #fafafa 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    height: 96px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.04em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: logoTextShimmer 4s ease-in-out infinite, logoTextFloat 6s ease-in-out infinite 0.5s;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.logo-text:hover::after {
    width: 100%;
}

@keyframes logoTextShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes logoTextFloat {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-2px); 
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    flex-wrap: wrap;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-buttons .nav-link {
    margin-right: 0.75rem;
}

.auth-buttons .cta-button {
    margin-left: 0.75rem;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.nav-link:hover {
    color: #007AFF;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC, #4C44CC);
}

.cta-button:hover::before {
    left: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 50%, #e8e8ed 100%);
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}


.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.gradient-text {
    background: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.125rem;
    color: #86868b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
    margin-bottom: 1rem;
}

.hero-buttons-secondary {
    display: flex;
    justify-content: center;
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.primary-button {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border: none;
    padding: 1.125rem 2.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.primary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC, #4C44CC);
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover .button-icon {
    transform: translateX(4px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1.125rem 2.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #007AFF;
    color: #007AFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.button-icon, .play-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tertiary-button {
    background: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2);
}

.tertiary-button:hover {
    background: #007AFF;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

/* Language Selector */
.language-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.lang-btn.active {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

/* User Indicator */
.user-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
    position: relative;
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.avatar-circle {
    color: white;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
    line-height: 1.2;
}

.user-status {
    font-size: 0.8rem;
    color: #30d158;
    font-weight: 500;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.user-menu-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #007AFF;
}

.dropdown-item.logout {
    color: #ff3b30;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.5rem 0;
}

/* Hide auth buttons when user is logged in */
.user-indicator.active ~ .nav-menu .auth-buttons {
    display: none;
}

/* Admin Webhook Switch */
.admin-switch {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.2);
    animation: adminPulse 2s ease-in-out infinite;
}

@keyframes adminPulse {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(255, 69, 0, 0.2);
        border-color: rgba(255, 69, 0, 0.3);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
        border-color: rgba(255, 69, 0, 0.5);
    }
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.switch-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff4500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-switch {
    display: flex;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff4500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px;
}

.mode-btn.active {
    background: #ff4500;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 69, 0, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    perspective: 1200px;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
}

/* 3D Carousel Animation */
.floating-cards {
    animation: carousel3D 20s linear infinite;
    animation-timing-function: linear;
    pointer-events: none;
    touch-action: none;
    user-select: none;
}

.card {
    position: absolute;
    width: 200px;
    height: 160px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    pointer-events: none;
    user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 3D Positioning */
.card-1 {
    transform: rotateY(0deg) translateZ(180px);
}

.card-2 {
    transform: rotateY(90deg) translateZ(180px);
}

.card-3 {
    transform: rotateY(180deg) translateZ(180px);
}

.card-4 {
    transform: rotateY(270deg) translateZ(180px);
}

@keyframes carousel3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}


/* Responsive adjustments for 3D carousel */
@media (max-width: 1024px) {
    .hero-visual {
        perspective: 1000px;
    }
    
    .floating-cards {
        width: 280px;
        height: 180px;
    }
    
    .card {
        width: 180px;
        height: 140px;
        padding: 1.25rem;
    }
    
    .card-1 { transform: rotateY(0deg) translateZ(160px); }
    .card-2 { transform: rotateY(90deg) translateZ(160px); }
    .card-3 { transform: rotateY(180deg) translateZ(160px); }
    .card-4 { transform: rotateY(270deg) translateZ(160px); }
}

@media (max-width: 768px) {
    .hero-visual {
        perspective: 800px;
    }
    
    .floating-cards {
        width: 240px;
        height: 160px;
        animation-duration: 24s;
    }
    
    .card {
        width: 160px;
        height: 120px;
        padding: 1rem;
    }
    
    .card-1 { transform: rotateY(0deg) translateZ(140px); }
    .card-2 { transform: rotateY(90deg) translateZ(140px); }
    .card-3 { transform: rotateY(180deg) translateZ(140px); }
    .card-4 { transform: rotateY(270deg) translateZ(140px); }
}

@media (max-width: 480px) {
    .hero-visual {
        perspective: 800px;
        height: 450px;
    }
    
    .floating-cards {
        width: 250px;
        height: 160px;
        animation-duration: 28s;
    }
    
    .card {
        width: 160px;
        height: 120px;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .card-1 { transform: rotateY(0deg) translateZ(140px); }
    .card-2 { transform: rotateY(90deg) translateZ(140px); }
    .card-3 { transform: rotateY(180deg) translateZ(140px); }
    .card-4 { transform: rotateY(270deg) translateZ(140px); }
}

/* iPhone specific adjustments - hide cards completely */
@media screen and (max-width: 430px) and (orientation: portrait) {
    .hero-visual {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
}

/* Smaller iPhone models (iPhone SE, etc.) */
@media screen and (max-width: 375px) and (orientation: portrait) {
    .hero-visual {
        display: none;
    }
}


/* iPhone landscape adjustments - hide cards */
@media screen and (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .hero-visual {
        display: none;
    }
}




.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    pointer-events: none;
    user-select: none;
}

.card-content {
    pointer-events: none;
    user-select: none;
}

.card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    pointer-events: none;
    user-select: none;
}

.card-content h4 a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.card-content h4 a:hover {
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.85rem;
    color: #718096;
    pointer-events: none;
    user-select: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #0ea5e9;
    position: relative;
    border-radius: 2px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><polygon points="36 34 25 25 14 34 0 20 0 30 14 44 25 35 36 44 50 30 50 20"/></g></g></svg>');
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #f0f9ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.counting .stat-number::after {
    transform: scaleX(1);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-suffix {
    transform: scale(1.1);
    opacity: 1;
}

/* Counter animation effects */
.stat-number.counting {
    animation: pulse-counter 0.1s ease-in-out;
}

@keyframes pulse-counter {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Individual stat item animations */
.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    transform: rotate(15deg);
}

.tech-item {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: techFloat 4s ease-in-out infinite;
}

.tech-item:nth-child(odd) {
    animation-delay: -2s;
}

.tech-item:hover {
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes techFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .secondary-button {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Footer */
.footer {
    padding: 3rem 0 1rem;
    background: #2d3748;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0ea5e9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* iPad specific navigation adjustments */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
    
    .logo {
        height: 72px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .language-selector {
        margin: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .language-selector {
        margin: 0.5rem 0;
    }
    
    .user-indicator {
        margin-right: 1rem;
        padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .avatar-circle {
        font-size: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons-secondary {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .primary-button,
    .secondary-button,
    .tertiary-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding-top: 140px;
        min-height: calc(100vh - 60px);
        align-items: flex-start;
        justify-content: center;
    }

    .hero-container {
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* iPhone specific adjustments */
@media screen and (max-width: 414px) and (orientation: portrait) {
    .hero {
        padding-top: 160px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        margin-top: 1.5rem;
        line-height: 1.2;
    }
    
}


/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Sparkle animation for counters */
@keyframes sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}