:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --accent: #ebff00;
    --secondary: #888;
    --angle: -3deg;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    z-index: 1002;
    position: relative;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

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

.nav-btn {
    margin-left: 2rem;
    border: 1px solid var(--text);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 1002;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
    padding: 120px 20px 60px 20px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
}

h1 {
    font-size: clamp(3.5rem, 12vw, 8rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    text-shadow: 4px 4px 0px transparent, -2px -2px 0px var(--accent);
    opacity: 0.95;
    margin-bottom: 1rem;
}

h1 span {
    display: block;
    transform: translateX(5%);
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
}

@media (min-width: 768px) {
    h1 span {
        -webkit-text-stroke: 2px var(--text);
        transform: translateX(10%);
    }
}

.tagline {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--secondary);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* --- THE VIDEO SCANNER --- */
.scanner-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    position: relative;
    margin-top: 2rem;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    /* Slight rounding looks more app-like */
    overflow: hidden;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(20%) contrast(120%);
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    z-index: 5;
    transition: all 0.3s ease;
}

.scanner-container:hover .corner {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 15px var(--accent);
}

.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    position: absolute;
    top: 0;
    z-index: 4;
    animation: scan 3s ease-in-out infinite;
}

.scan-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 5;
    white-space: nowrap;
}

@keyframes scan {

    0%,
    100% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    90% {
        top: 100%;
        opacity: 0;
    }
}

/* --- MARQUEE --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    transform: rotate(var(--angle));
    margin-top: 4rem;
    margin-bottom: 2rem;
    background: var(--accent);
    padding: 1rem 0;
}

.marquee {
    width: 100%;
    white-space: nowrap;
    /* Remove margins that caused overflow */
    transform: none;
    background: transparent;
    padding: 0;
}

.marquee-content {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--bg);
    font-weight: 700;
    text-transform: uppercase;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

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

/* --- DETAILS SECTION --- */
.details {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    color: var(--text);
}

.feature p {
    color: var(--secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* --- CTA --- */
.cta {
    text-align: center;
    padding: 6rem 5%;
    border-top: 1px solid #222;
    background: #0f0f0f;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.input-group {
    display: inline-flex;
    border: 1px solid var(--secondary);
    padding: 0.4rem;
    border-radius: 50px;
    width: 100%;
    max-width: 500px;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent);
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    flex-grow: 1;
    font-family: inherit;
    outline: none;
    font-size: 1rem;
}

.btn-submit {
    background: var(--text);
    color: var(--bg);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-submit:hover {
    background: var(--accent);
    transform: scale(1.02);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        padding-bottom: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    .nav-btn {
        margin: 1.5rem 0 0 0;
        width: 80%;
        text-align: center;
        padding: 1rem;
    }

    /* Overlay for mobile info */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(4px);
    }

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding-top: 100px;
    }

    .scanner-container {
        width: 100%;
        margin-top: 2rem;
    }

    .details {
        gap: 2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
        border: none;
        background: transparent;
        padding: 0;
        gap: 1rem;
    }

    .input-group input {
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        text-align: center;
        border: 1px solid transparent;
    }

    .input-group input:focus {
        border-color: var(--accent);
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
}