:root {
    --bg: #0f0e17;
    --bg-surface: #1a1a2e;
    --bg-raised: #232342;
    --text: #fffffe;
    --text-dim: #a7a9be;
    --text-muted: #5a5a7a;
    --pink: #e53170;
    --cyan: #3cbcfc;
    --gold: #f8b800;
    --green: #58d854;
    --border: #3a3a5c;
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 3px solid var(--border);
}

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

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.logo-mark {
    width: 24px;
    height: 24px;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text);
    image-rendering: pixelated;
}

.logo-mark svg {
    width: 14px;
    height: 14px;
    fill: var(--text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    transition: color 0.15s;
    text-transform: uppercase;
}

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

.nav-cta {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    padding: 8px 14px;
    background: var(--pink);
    color: var(--text);
    text-decoration: none;
    border: 2px solid var(--text);
    transition: background 0.15s;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: #ff4090;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 3px;
    background: var(--text);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    border-bottom: 3px solid var(--border);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 49, 112, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.hero h1 .accent {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: 2px solid var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--pink);
    color: var(--text);
}

.btn-primary:hover {
    background: #ff4090;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--text);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-dim);
}

.btn-secondary:hover {
    color: var(--text);
    background: var(--bg-raised);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border);
}

/* Dongle Mockup */
.hero-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.dongle-mockup {
    animation: float 3s steps(8) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.dongle-body {
    width: 180px;
    height: 60px;
    background: var(--bg-raised);
    border: 3px solid var(--text);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.dongle-label {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.dongle-led {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 6px;
    height: 6px;
    background: var(--green);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dongle-port {
    position: absolute;
    background: #060608;
    border: 2px solid var(--border);
}

.usb-port {
    left: -12px;
    width: 12px;
    height: 24px;
}

.sd-port {
    right: -8px;
    width: 8px;
    height: 16px;
}

/* Stats */
.stats {
    padding: 48px 0;
    background: var(--bg-surface);
    border-bottom: 3px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--cyan);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-pixel);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    line-height: 2;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.section-header h2 .accent {
    color: var(--gold);
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 440px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 100px 0;
    border-bottom: 3px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: var(--border);
    border: 3px solid var(--border);
}

.feature-card {
    padding: 28px 24px;
    background: var(--bg);
}

.feature-card:hover {
    background: var(--bg-surface);
}

.feature-highlight {
    background: var(--bg-surface);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid var(--cyan);
    background: rgba(60, 188, 252, 0.08);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.feature-icon.warm {
    border-color: var(--gold);
    background: rgba(248, 184, 0, 0.08);
}

.feature-icon.warm svg {
    stroke: var(--gold);
}

.feature-card h3 {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.6;
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-surface);
    border-bottom: 3px solid var(--border);
}

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

.step-card {
    padding: 32px 24px;
    border: 3px solid var(--border);
    background: var(--bg);
}

.step-number {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--pink);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.step-card h3 {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.step-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Compatibility */
.compatibility {
    padding: 100px 0;
    border-bottom: 3px solid var(--border);
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: var(--border);
    border: 3px solid var(--border);
}

.compat-category {
    padding: 28px 24px;
    background: var(--bg);
}

.compat-category h4 {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    margin-bottom: 18px;
    line-height: 1.8;
}

.compat-category ul {
    list-style: none;
}

.compat-category li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-dim);
    font-size: 0.82rem;
}

.compat-category li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* App Section */
.app-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-bottom: 3px solid var(--border);
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text h2 {
    font-family: var(--font-pixel);
    font-size: clamp(0.7rem, 1.8vw, 0.95rem);
    line-height: 2;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.app-text h2 .accent {
    color: var(--gold);
}

.app-text > p {
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 0.88rem;
}

.app-features {
    list-style: none;
    margin-bottom: 24px;
}

.app-features li {
    padding: 6px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding-left: 20px;
    position: relative;
}

.app-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    top: 10px;
}

.app-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-coming {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    padding: 8px 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Phone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 220px;
    height: 420px;
    background: var(--bg);
    border: 3px solid var(--text);
    padding: 12px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    padding: 14px 10px;
    overflow: hidden;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-pixel);
    font-size: 0.45rem;
}

.phone-status {
    color: var(--green);
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.phone-game {
    aspect-ratio: 1;
    background: var(--bg);
    border: 2px solid var(--border);
}

.phone-game:nth-child(1) { border-color: var(--pink); }
.phone-game:nth-child(2) { border-color: var(--cyan); }
.phone-game:nth-child(3) { border-color: var(--gold); }
.phone-game:nth-child(4) { border-color: var(--green); }
.phone-game:nth-child(5) { border-color: var(--pink); }
.phone-game:nth-child(6) { border-color: var(--cyan); }

/* Waitlist */
.waitlist {
    padding: 100px 0;
}

.waitlist-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 36px;
    border: 3px solid var(--border);
    background: var(--bg-surface);
}

.waitlist-card h2 {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 2;
}

.waitlist-card h2 .accent {
    color: var(--gold);
}

.waitlist-card > p {
    color: var(--text-dim);
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 0.88rem;
}

.waitlist-form {
    display: flex;
    gap: 0;
    max-width: 380px;
    margin: 0 auto 14px;
}

.waitlist-form input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-right: none;
    color: var(--text);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.waitlist-form input:focus {
    border-color: var(--cyan);
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form .btn {
    border-left: none;
}

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

/* Footer */
.footer {
    padding: 36px 0 24px;
    border-top: 3px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

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

    .app-mockup { order: -1; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1rem; }
    .hero-subtitle { font-size: 0.88rem; }

    .waitlist-form { flex-direction: column; }
    .waitlist-form input { border-right: 2px solid var(--border); border-bottom: none; }
    .waitlist-form .btn { border-left: 2px solid var(--text); }
    .waitlist-card { padding: 32px 20px; }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
