/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #09090b;
    --color-bg-alt: #0f0f12;
    --color-bg-card: #151518;
    --color-bg-elevated: #1c1c21;
    --color-text: #ececf1;
    --color-text-muted: #8e8ea0;
    --color-accent: #6366f1;
    --color-accent-light: #818cf8;
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 900px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/space_explorer.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(9, 9, 11, 0.85) 0%,
        rgba(9, 9, 11, 0.7) 50%,
        rgba(9, 9, 11, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero .tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--color-accent-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

/* Mission Section */
.mission {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
    text-align: center;
}

.mission-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.mission-text strong {
    color: var(--color-text);
    font-weight: 500;
}

.principles-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Sections */
section {
    padding: 100px 0;
}

section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* Projects */
.projects {
    background-color: var(--color-bg);
}

.project {
    padding: 40px;
    margin-bottom: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.project:hover {
    border-color: var(--color-border-light);
}

.project:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.project h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.status-released {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--color-accent-light);
}

.status-progress {
    background-color: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.status-production {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.project-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.project p {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.project-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.project-stats {
    color: var(--color-accent-light);
    font-weight: 500;
}

.project-diagram {
    background-color: var(--color-bg);
    padding: 24px;
    margin: 20px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.project-links {
    margin-top: 24px;
    display: flex;
    gap: 24px;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.project-links a:hover {
    border-bottom-color: var(--color-accent-light);
}

/* Roadmap */
.roadmap {
    background-color: var(--color-bg-alt);
}

.roadmap-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.roadmap-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    padding: 18px 28px;
    border-bottom: 1px solid var(--color-border);
}

.roadmap-row:last-child {
    border-bottom: none;
}

.roadmap-header {
    background-color: var(--color-bg-elevated);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.roadmap-row span {
    font-size: 0.95rem;
}

/* About */
.about {
    background-color: var(--color-bg);
    text-align: center;
}

.about p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.about .location {
    color: var(--color-text-muted);
    margin-top: 24px;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--color-accent-light);
}

/* Footer */
.footer {
    background-color: var(--color-bg-alt);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-author {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent-light);
}

.footer-license {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .mission {
        padding: 60px 0;
    }

    .mission-text {
        font-size: 1.1rem;
    }

    .project {
        padding: 28px 24px;
    }

    .roadmap-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 24px;
    }

    .roadmap-header {
        display: none;
    }

    .roadmap-row span:first-child {
        font-weight: 600;
    }

    .roadmap-row span:nth-child(2)::before {
        content: 'Status: ';
        color: var(--color-text-muted);
    }

    .roadmap-row span:nth-child(3)::before {
        content: 'Next: ';
        color: var(--color-text-muted);
    }

    .principles-badges {
        gap: 8px;
    }

    .badge {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero {
        background-attachment: scroll;
    }

    .cta-button:hover {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
