:root {
    --neon-blue: #00BFFF;
    --neon-purple: #9C27B0;
    --neon-orange: #FF851B;
    --neon-green: #50ff80;
    --neon-red: #ff5050;
    --dark-bg: #05050f;
    --dark-panel: #0d0d1e;
    --border: rgba(97, 218, 251, 0.25);
    --text: #e0e0e0;
    --text-muted: #8899aa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    overflow-x: hidden;
}

#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    background: linear-gradient(90deg, #61dafb, #bf80ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

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

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

.nav-links a:hover {
    color: var(--neon-blue);
}

.nav-buy-btn {
    background: linear-gradient(135deg, #1a6b8a, #0d3a4a);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.3);
    transition: box-shadow 0.2s, transform 0.2s !important;
}

.nav-buy-btn:hover {
    box-shadow: 0 0 24px rgba(0, 191, 255, 0.6) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 780px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(60, 0, 120, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: var(--neon-orange);
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    text-shadow: 0 0 8px var(--neon-orange);
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.3;
    background: linear-gradient(135deg, #61dafb 0%, #bf80ff 60%, #61dafb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(97, 218, 251, 0.6));
    margin-bottom: 6px;
}

.hero-title-accent {
    filter: drop-shadow(0 0 14px rgba(191, 128, 255, 0.8));
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 20px 0 36px;
    max-width: 420px;
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1565a0, #0d3d6b);
    color: #fff;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.35), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a7ab8, #1050a0);
    box-shadow: 0 0 35px rgba(0, 191, 255, 0.65), 0 6px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 191, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 0.85rem;
    padding: 18px 38px;
}

.steam-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-board-preview {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(8, 52px);
    grid-template-rows: repeat(8, 52px);
    gap: 4px;
    border: 1px solid rgba(97, 218, 251, 0.3);
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(5, 5, 30, 0.9), rgba(10, 5, 25, 0.95));
    box-shadow:
        0 0 30px rgba(0, 191, 255, 0.3),
        0 0 60px rgba(80, 0, 160, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.7);
    animation: board-float 6s ease-in-out infinite;
}

@keyframes board-float {
    0%, 100% { transform: translateY(0px) rotateX(2deg) rotateY(-2deg); }
    50%       { transform: translateY(-8px) rotateX(0deg) rotateY(0deg); }
}

.preview-cell {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    background: linear-gradient(135deg, rgba(15, 20, 50, 0.9), rgba(5, 10, 35, 0.95));
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.preview-cell.pos {
    color: var(--neon-green);
    border-color: rgba(80, 255, 80, 0.35);
    background: linear-gradient(135deg, rgba(0, 40, 15, 0.9), rgba(0, 25, 10, 0.95));
    text-shadow: 0 0 6px var(--neon-green);
}

.preview-cell.neg {
    color: var(--neon-red);
    border-color: rgba(255, 80, 80, 0.35);
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.9), rgba(25, 0, 0, 0.95));
    text-shadow: 0 0 6px var(--neon-red);
}

.preview-cell.zero {
    color: #ffee60;
    border-color: rgba(255, 230, 50, 0.35);
    background: linear-gradient(135deg, rgba(30, 28, 0, 0.9), rgba(20, 18, 0, 0.95));
    text-shadow: 0 0 6px #ffee60;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: rgba(0, 0, 10, 0.5);
}

.section-tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: var(--neon-orange);
    letter-spacing: 0.2em;
    text-shadow: 0 0 6px var(--neon-orange);
    display: block;
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1rem, 3vw, 1.6rem);
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    line-height: 1.5;
}

.section-desc {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.section-desc code {
    background: rgba(156, 39, 176, 0.3);
    border: 1px solid rgba(156, 39, 176, 0.5);
    color: #df80ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75em;
}

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

.about-card {
    background: linear-gradient(160deg, rgba(10, 10, 30, 0.9), rgba(15, 10, 35, 0.95));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.2), 0 15px 40px rgba(0, 0, 0, 0.5);
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.about-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    color: var(--neon-blue);
    margin-bottom: 14px;
    line-height: 1.6;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 820px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.step-num {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 191, 255, 0.4);
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    line-height: 1;
    padding-top: 4px;
}

.step-body h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--neon-blue);
    margin-bottom: 12px;
    line-height: 1.6;
}

.step-body p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.step-body code {
    background: rgba(156, 39, 176, 0.3);
    border: 1px solid rgba(156, 39, 176, 0.5);
    color: #df80ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75em;
}

.pos { color: var(--neon-green); font-weight: 700; }
.neg { color: var(--neon-red); font-weight: 700; }

.command-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.cmd {
    background: linear-gradient(160deg, rgba(20, 15, 5, 0.9), rgba(50, 30, 0, 0.9));
    border: 1px solid var(--neon-orange);
    border-bottom: 3px solid var(--neon-orange);
    border-radius: 6px;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    min-width: 90px;
    box-shadow: 0 0 10px rgba(255, 133, 27, 0.25);
}

.cmd span {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--neon-orange);
    text-shadow: 0 0 6px var(--neon-orange);
    display: block;
    margin-bottom: 4px;
}

.cmd small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cmd-tip {
    font-size: 0.85rem !important;
    color: rgba(200, 200, 200, 0.6) !important;
    font-style: italic;
}

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

.feature-item {
    background: linear-gradient(160deg, rgba(10, 10, 30, 0.85), rgba(15, 10, 35, 0.9));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(97, 218, 251, 0.5);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-item h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: var(--neon-blue);
    margin-bottom: 12px;
    line-height: 1.7;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

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

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.dev-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.twitch-link {
    background: linear-gradient(135deg, #3a1060, #1e0840);
    color: #bf80ff;
    border: 1px solid #9147ff;
    box-shadow: 0 0 16px rgba(145, 71, 255, 0.3);
}

.twitch-link:hover {
    box-shadow: 0 0 30px rgba(145, 71, 255, 0.55);
    transform: translateY(-2px);
    color: #fff;
}

.cta-section {
    padding: 120px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 100, 200, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.cta-eyebrow {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: var(--neon-orange);
    letter-spacing: 0.2em;
    text-shadow: 0 0 6px var(--neon-orange);
    margin-bottom: 16px;
}

.cta-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    background: linear-gradient(90deg, #61dafb, #bf80ff, #61dafb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-desc strong {
    color: var(--neon-blue);
}

.cta-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(3, 3, 10, 0.7);
}

.footer-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background: linear-gradient(90deg, #61dafb, #bf80ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

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

.footer-credit a {
    color: var(--neon-blue);
    text-decoration: none;
}

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

.footer-copy {
    color: rgba(136, 153, 170, 0.5);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 48px;
        padding-top: 100px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .board-grid {
        grid-template-columns: repeat(8, 40px);
        grid-template-rows: repeat(8, 40px);
    }

    .preview-cell {
        width: 40px;
        height: 40px;
        font-size: 0.5rem;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .step-num {
        font-size: 1.2rem;
        width: auto;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }
}

@media (max-width: 600px) {
    .board-grid {
        grid-template-columns: repeat(8, 34px);
        grid-template-rows: repeat(8, 34px);
        gap: 3px;
    }

    .preview-cell {
        width: 34px;
        height: 34px;
        font-size: 0.42rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}
