:root {
    --primary: #001CAD;
    --primary-light: #54C5F8;
    --accent: #11FF00;
    --dark: #07080C;
    --surface: rgba(15, 16, 22, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --font: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: var(--font);
    overflow-x: hidden;
    width: 100%;
}

.cursor-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 28, 173, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(7, 8, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-pitch {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 800 !important;
}

/* Sections General */
section {
    padding: 4rem 5%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.2;
}

.section-desc {
    color: #888;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 2px;
    display: inline-block;
}

.badge.neon {
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Hero */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1.2;
    min-width: 320px;
}

.hero-content h1 {
    font-size: calc(2.5rem + 2vw);
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-content p {
    color: #AAA;
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 28, 173, 0.3);
    font-size: 0.95rem;
}

.btn-secondary {
    background: var(--border);
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
}

.hero-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--accent);
}

/* Story Section */
.story-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.story-image-wrapper {
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.story-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.story-step {
    opacity: 0;
    transform: translateY(15px);
    transition: 0.6s ease;
    position: absolute;
    width: 85%;
}

.story-step.active {
    opacity: 1;
    transform: translateY(0);
}

.story-step h4 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.story-step p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #EEE;
}

.story-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

.btn-story {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #888;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: 0.3s;
    text-align: left;
}

.btn-story.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(10px);
}

/* Simulation Area */
.main-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simulation-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding-bottom: 40px;
    width: 100%;
}

.phone-container {
    position: relative;
}

.phone-container::before {
    content: attr(data-label);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: #555;
    letter-spacing: 1px;
}

.phone-frame {
    width: 260px;
    height: 530px;
    border-radius: 40px;
    background: #000;
    padding: 8px;
    border: 2px solid #222;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.s-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    scale: 1.05;
}

.s-img.active {
    opacity: 1;
    scale: 1;
    z-index: 10;
}

.sync-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sync-line {
    width: 80px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.sync-dot {
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--accent);
    left: -100%;
}

.sync-dot.transmitting {
    animation: sync 1s infinite linear;
}

.sync-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #444;
}

/* HUD v2 */
.narrative-hud-v2 {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(25px);
    margin-top: 2rem;
    overflow: hidden;
}

.hud-top {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.4s ease;
}

.hud-main {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hud-info {
    flex: 1;
}

.step-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 2px;
    display: block;
}

#stepTitle {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
}

#narrativeText {
    font-size: 0.85rem;
    color: #AAA;
    line-height: 1.3;
}

.hud-controls {
    display: flex;
    gap: 8px;
}

.btn-ctrl {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 0.8rem;
}

.btn-ctrl:hover:not(:disabled) {
    background: var(--primary);
}

.play-btn {
    background: var(--primary);
    transform: scale(1.1);
}

/* Pitch */
.pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pitch-card {
    background: var(--surface);
    padding: 3rem 1.5rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    text-align: center;
}

.icon-box {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.btn-major {
    background: white;
    color: black;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 800;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-stats {
        width: 100%;
    }

    .story-container {
        grid-template-columns: 1fr;
    }

    .story-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .simulation-layout {
        flex-direction: column;
        gap: 4rem;
    }

    .sync-hub {
        transform: rotate(90deg);
        margin: -10px 0;
    }

    .phone-frame {
        width: 240px;
        height: 490px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

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

    .btn-major {
        padding: 15px 25px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hud-main {
        flex-direction: column;
        text-align: center;
    }

    .hud-controls {
        order: -1;
        margin-bottom: 1rem;
    }

    .phone-frame {
        width: 220px;
        height: 450px;
    }
}