:root {
    --primary-cyan: #00D4FF;
    --primary-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --background-dark: #0D0D1A;
    --surface-dark: #1A1A2E;
    --surface-light: #252540;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-start: #8B5CF6;
    --gradient-end: #00D4FF;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

/* Hero Section */
.hero {
    background: var(--background-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-cyan) 50%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 60px 0 32px;
    color: var(--text-primary);
}

/* Features */
.features {
    background: var(--background-dark);
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
    background: var(--surface-dark);
}

.screenshots-category {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 48px 0 24px;
    color: var(--primary-cyan);
}

.screenshots-category:first-of-type {
    margin-top: 0;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.screenshots-grid.main-screenshots .screenshot-item img {
    width: 280px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 220px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
}

.screenshot-item img:hover {
    transform: scale(1.02);
}

.screenshot-item p {
    margin-top: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Architecture */
.architecture {
    background: var(--background-dark);
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 60px;
}

.arch-layer {
    width: 100%;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.arch-layer.presentation {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.3);
}

.arch-layer.domain {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
    border-color: rgba(0, 212, 255, 0.3);
}

.arch-layer.data {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    border-color: rgba(236, 72, 153, 0.3);
}

.layer-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.layer-items {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.layer-items span {
    padding: 6px 12px;
    background: var(--glass-bg);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.arch-arrow {
    color: var(--text-secondary);
}

.modules-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.2s;
}

.module-card:hover {
    border-color: var(--primary-cyan);
}

.module-icon {
    font-size: 1.25rem;
}

.module-name {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-cyan);
}

/* Tech Stack */
.tech-stack {
    background: var(--surface-dark);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    min-width: 160px;
    transition: all 0.2s;
}

.tech-item:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.tech-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.platform-icon {
    font-size: 1.25rem;
}

/* Getting Started */
.getting-started {
    background: var(--background-dark);
}

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

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-card code {
    display: block;
    background: var(--surface-dark);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    border: 1px solid var(--border-color);
    word-break: break-all;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
    position: relative;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--surface-dark);
    color: var(--text-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 12px;
}

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

.footer a:hover {
    text-decoration: underline;
}

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

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-item img {
        width: 180px;
    }

    .screenshots-grid.main-screenshots .screenshot-item img {
        width: 220px;
    }

    .arch-diagram {
        padding: 0 16px;
    }

    .tech-item {
        min-width: 140px;
        padding: 20px 24px;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-description br {
        display: none;
    }

    .screenshot-item img {
        width: 160px;
    }

    .screenshots-grid.main-screenshots .screenshot-item img {
        width: 180px;
    }

    .step-card code {
        font-size: 0.75rem;
    }
}
