:root {
    --bg-dark: #010816;
    --navy: #0B1B3C;
    --cyan: #00F0FF;
    --blue: #2E7DFF;
    --purple: #BC13FE;
    --pink: #FF33CC;
    --yellow: #FFC900;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass: rgba(11, 27, 60, 0.7);
    --neon-blue: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(46, 125, 255, 0.3);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* Nav */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    position: relative;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--cyan);
    text-shadow: var(--neon-blue);
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-sm {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--cyan);
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
}

.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
}

#hero {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 100%;
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 2rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.grid-showcase {
    position: relative;
    z-index: 2;
}

/* Grid Animation */
.grid-container {
    display: grid;
    grid-template-columns: repeat(10, 22px);
    grid-template-rows: repeat(10, 22px);
    gap: 2px;
    padding: 10px;
    background: var(--navy);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.grid-node {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.5s;
}

/* Floating Elements */
.block {
    position: absolute;
    border-radius: 4px;
    animation: float 6s infinite ease-in-out;
}

.b1 {
    width: 30px;
    height: 30px;
    background: var(--cyan);
    top: -15px;
    right: 5%;
    filter: blur(2px);
}

.b2 {
    width: 45px;
    height: 45px;
    background: var(--purple);
    bottom: 5%;
    left: 0;
    filter: blur(5px);
    animation-delay: 2s;
}

.b3 {
    width: 25px;
    height: 25px;
    background: var(--pink);
    top: 15%;
    left: -15px;
    filter: blur(1px);
    animation-delay: 4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch 5s infinite linear alternate;
}

@keyframes glitch {
    0% { clip: rect(10px, 9999px, 9px, 0); }
    10% { clip: rect(60px, 9999px, 5px, 0); }
    20% { clip: rect(20px, 9999px, 80px, 0); }
    30% { clip: rect(70px, 9999px, 15px, 0); }
    40% { clip: rect(30px, 9999px, 50px, 0); }
    50% { clip: rect(50px, 9999px, 90px, 0); }
    60% { clip: rect(80px, 9999px, 30px, 0); }
    70% { clip: rect(15px, 9999px, 70px, 0); }
    80% { clip: rect(90px, 9999px, 20px, 0); }
    90% { clip: rect(40px, 9999px, 60px, 0); }
    100% { clip: rect(10px, 9999px, 9px, 0); }
}

/* Tablet (min-width: 640px) */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0;
    }

    .nav-wrapper {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-wrapper {
        gap: 4rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .btn-primary, .btn-secondary {
        display: inline-block;
        width: auto;
    }

    .btn-secondary {
        margin-top: 0;
        margin-left: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(10, 26px);
        grid-template-rows: repeat(10, 26px);
        gap: 3px;
        padding: 15px;
    }

    .grid-node {
        width: 26px;
        height: 26px;
    }

    .footer-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    body {
        overflow: hidden;
    }

    h1 {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    nav {
        padding: 2rem 0;
    }

    .nav-wrapper {
        gap: 3rem;
    }

    .nav-links {
        gap: 2rem;
    }

    #hero {
        text-align: left;
        flex-direction: row;
    }

    .hero-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .grid-container {
        grid-template-columns: repeat(10, 30px);
        grid-template-rows: repeat(10, 30px);
        gap: 4px;
        padding: 20px;
    }

    .grid-node {
        width: 30px;
        height: 30px;
    }

    .b1 { width: 40px; height: 40px; top: -20px; right: 10%; }
    .b2 { width: 60px; height: 60px; bottom: 10%; left: 0; }
    .b3 { width: 30px; height: 30px; top: 20%; left: -20px; }
}