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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292f;
    background-color: #ffffff;
}

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

/* Header */
.header {
    background-color: #24292f;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: #58a6ff;
}

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

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #58a6ff;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #24292f;
}

.hero p {
    font-size: 1.25rem;
    color: #656d76;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #2da44e;
    color: white;
    border-color: #2da44e;
}

.btn-primary:hover {
    background-color: #2c974b;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #24292f;
    border-color: #d0d7de;
}

.btn-secondary:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
}

.btn-download {
    background-color: #0969da;
    color: white;
    border-color: #0969da;
    flex-direction: column;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-download:hover {
    background-color: #0860ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

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

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

.phone-mockup {
    width: 250px;
    height: 500px;
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f7fafc;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-bubble.user {
    background-color: #0969da;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-bubble.ai {
    background-color: #e5e7eb;
    color: #374151;
    align-self: flex-start;
}

/* Sections */
section {
    padding: 4rem 0;
}

.about {
    background-color: #f6f8fa;
}

.about h2, .download h2, .api h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #24292f;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
}

.feature i {
    font-size: 3rem;
    color: #0969da;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #24292f;
}

/* Download Section */
.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.version-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.version-badge {
    display: inline-block;
    background-color: #2da44e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin: 0.5rem 0;
}

.release-date {
    color: #656d76;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.release-notes {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.release-notes h3 {
    margin-bottom: 1rem;
    color: #24292f;
}

.release-notes p {
    margin-bottom: 0.5rem;
    color: #656d76;
}

.download-actions {
    text-align: center;
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #656d76;
}

.stat i {
    color: #0969da;
}

.release-link {
    margin-top: 1.5rem;
    text-align: center;
}

.release-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* API Section */
.api {
    background-color: #f6f8fa;
}

.api-content {
    max-width: 800px;
    margin: 0 auto;
}

.api-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #656d76;
}

.api-endpoints {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.endpoint {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.method {
    background-color: #2da44e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.url {
    font-family: 'Monaco', 'Menlo', monospace;
    background-color: #f6f8fa;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.api-example {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.api-example h3 {
    margin-bottom: 1rem;
    color: #24292f;
}

.api-example pre {
    background-color: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #24292f;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-info .logo {
    margin-bottom: 0.5rem;
}

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

.footer-links a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .download-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .endpoint {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0969da;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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