/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1c1c1e;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 500;
}

.description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: #007aff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: #1c1c1e;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f2f2f7;
    transform: translateY(-1px);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 20px;
    background: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.icon-block {
    width: 24px;
    height: 24px;
    background: #007aff;
    border-radius: 4px;
    position: relative;
}

.icon-block::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #34c759;
    border-radius: 3px;
}

.icon-code {
    width: 32px;
    height: 20px;
    background: #007aff;
    border-radius: 4px;
    position: relative;
}

.icon-code::before {
    content: '</>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.icon-play {
    width: 0;
    height: 0;
    border-left: 20px solid #34c759;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.icon-responsive {
    width: 28px;
    height: 20px;
    background: #007aff;
    border-radius: 3px;
    position: relative;
}

.icon-responsive::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -12px;
    width: 16px;
    height: 28px;
    background: #34c759;
    border-radius: 2px;
}

.feature h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature p {
    color: #8e8e93;
    font-size: 1rem;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 6rem 2rem;
    background: #f2f2f7;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}

.demo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.demo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.demo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 48px;
    height: 48px;
    background: #007aff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 0.5rem;
}

.step p {
    color: #8e8e93;
    font-size: 0.9375rem;
}

.demo-cta {
    margin-top: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem 2rem;
    background: white;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: #8e8e93;
    font-size: 0.875rem;
}

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

.footer-nav a {
    color: #007aff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: #0056cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .features {
        padding: 4rem 1rem;
    }
    
    .demo {
        padding: 4rem 1rem;
    }
    
    .demo h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.feature, .step {
    animation: fadeInUp 0.6s ease forwards;
}

.feature:nth-child(2) { animation-delay: 0.1s; }
.feature:nth-child(3) { animation-delay: 0.2s; }
.feature:nth-child(4) { animation-delay: 0.3s; }

.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }

/* Alpha Release Banner */
.alpha-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    margin-top: 30px;
    margin-bottom: 20px;
    animation: alphaPulse 2s ease-in-out infinite;
}

.alpha-icon {
    font-size: 16px;
    animation: rocketBounce 1.5s ease-in-out infinite;
}

.alpha-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes alphaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* SEO and Accessibility Improvements */

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

/* Focus indicators for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

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