:root {
    /* Color Palette - Deep Space Geek */
    --bg-deep: #0d1117;
    --bg-card: #161b22;
    --bg-glass: rgba(22, 27, 34, 0.7);

    --accent-blue: #0078D6;
    --accent-blue-glow: rgba(0, 120, 214, 0.4);

    --accent-green: #2ea44f;
    --accent-green-glow: rgba(46, 164, 79, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #8b949e;

    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

.mono {
    font-family: var(--font-mono);
}

.text-blue {
    color: var(--accent-blue);
}

.text-green {
    color: var(--accent-green);
}

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

/* Layout Utilities */
.text-center {
    text-align: center;
}

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

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

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

/* Components */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-blue-glow);
    background: #0086ef;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 4rem;
    /* For Nav */
    overflow: hidden;
}

/* Background Grid Animation */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-screenshot {
    margin-top: 3rem;
    transform: perspective(1000px) rotateX(10deg) scale(0.9);
    transition: transform 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateX(2deg) scale(0.95);
}

.hero-screenshot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

/* Stats Section */
.stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

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

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-green);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Architecture Section */
.architecture-diagram {
    padding: 4rem 0;
    background: radial-gradient(circle at center, #1a202c 0%, var(--bg-deep) 70%);
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    background: var(--bg-card);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.format-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.format-tag:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards */
.geek-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s;
}

.geek-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-links a:hover {
    color: #fff;
}

.lang-switcher {
    position: relative;
}

.lang-switcher button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.2s;
}

.lang-switcher button:hover {
    color: #fff;
    border-color: #fff;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 101;
    margin-top: 0.5rem;
}

.lang-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-menu div {
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.lang-menu div:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

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