/* KaiROS AI - Landing Page Styles */

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --border: #2d2d45;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-github {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.btn-github:hover {
    background: var(--bg-card-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 140px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-badge {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Feature Banner */
.feature-banner {
    margin: 60px auto 40px;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.feature-graphic {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Screenshot Gallery */
.screenshot-gallery {
    margin-top: 60px;
    max-width: 1000px;
    width: 100%;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.gallery-tabs .tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.gallery-tabs .tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.gallery-tabs .tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.gallery-images {
    position: relative;
    min-height: 400px;
}

.gallery-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.3s ease;
}

.gallery-img.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-dark);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Models Section */
.models {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        var(--bg-dark);
}

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

.model-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.model-card.featured {
    border-color: var(--primary);
}

.model-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--gradient);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.model-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.model-size {
    background: var(--bg-card-hover);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
}

.model-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.model-specs {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Download Section */
.download {
    padding: 120px 0;
    background: var(--bg-dark);
}

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

.download-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.download-btn {
    display: inline-block;
    background: var(--gradient);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
}

.system-requirements {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.system-requirements h4 {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.system-requirements ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.system-requirements li {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-table table {
        font-size: 0.85rem;
    }

    .mobile-images img {
        max-width: 300px;
    }
}

/* Comparison Section */
.comparison {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%), var(--bg-dark);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table thead {
    background: var(--bg-card-hover);
}

.comparison-table th {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tr.highlight {
    background: rgba(139, 92, 246, 0.05);
}

.comparison-table .check {
    color: #10b981;
    font-size: 1.2rem;
}

.comparison-table .cross {
    color: #6b6b80;
    font-size: 1.2rem;
}

/* Platform Sections */
.platform-section {
    padding: 100px 0;
}

.desktop-section {
    background: radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.1) 0%, transparent 50%), var(--bg-dark);
}

.mobile-section {
    background: radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 50%), var(--bg-dark);
}

/* Updated Gallery Styles */
.desktop-gallery,
.mobile-gallery {
    display: none;
}

.desktop-gallery.active,
.mobile-gallery.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.desktop-tabs,
.mobile-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.desktop-tab,
.mobile-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.desktop-tab:hover,
.mobile-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.desktop-tab.active,
.mobile-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.desktop-images,
.mobile-images {
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-img,
.mobile-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.3s ease;
}

.desktop-img.active,
.mobile-img.active {
    display: block;
}

.mobile-img {
    max-width: 400px;
    margin: 0 auto;
}