:root {
    --cyan:    #00ffcc;
    --bg:      #080808;
    --white:   #f0ece4;
    --muted:   rgba(240,236,228,0.45);
    --border:  rgba(0,255,204,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg);
    overflow: hidden;
    perspective: 1200px;
    -webkit-font-smoothing: antialiased;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

#waveCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.landing-container {
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.topbar, .bottombar {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 36px;
    border-color: var(--border);
    animation: fadeDown 1s 0.2s ease-out both;
    z-index: 20;
}

.topbar {
    border-bottom: 1px solid;
}

.bottombar {
    border-top: 1px solid;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-tag {
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

.topbar-version {
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.1rem;
    background: rgba(0,255,204,0.06);
    padding: 2px 8px;
    border: 1px solid var(--border);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.18rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link svg {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.contact-link:hover {
    color: var(--cyan);
}

.contact-link:hover svg {
    opacity: 1;
    stroke: var(--cyan);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: 0;
}

.title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 11vw, 7.5rem);
    color: var(--white);
    letter-spacing: clamp(0.3rem, 1.8vw, 1.8rem);
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 80px rgba(0,255,204,0.12);
    animation: fadeUp 1s 0.55s ease-out both;
}

.subtitle {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: clamp(0.2rem, 2vw, 0.7rem);
    margin-bottom: clamp(0.6rem, 2vh, 1.8rem);
    animation: fadeUp 1s 0.7s ease-out both;
}

#qubitCanvas {
    display: block;
    margin: 1.2rem auto;
    width: clamp(140px, 22vmin, 260px);
    height: clamp(140px, 22vmin, 260px);
    animation: fadeUp 1s 0.85s ease-out both;
}

.quantum-quote {
    font-size: clamp(0.48rem, 1.3vw, 0.72rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: clamp(0.14rem, 0.9vw, 0.48rem);
    opacity: 0.45;
    margin-top: clamp(0.8rem, 2vh, 2.2rem);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeUp 1s 1s ease-out both;
}

.quote-dash {
    color: var(--cyan);
    opacity: 0.5;
    font-size: 1.1rem;
}

.bottom-item {
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.15rem;
    white-space: nowrap;
}

.bottom-item strong {
    color: var(--cyan);
    font-weight: 700;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .topbar, .bottombar {
        padding: 14px 24px;
    }
    .topbar-tag, .bottom-item {
        font-size: 0.58rem;
    }
    .contact-link {
        font-size: 0.62rem;
    }
    .quantum-quote {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .topbar, .bottombar {
        padding: 14px 20px;
    }
    .title {
        font-size: clamp(3.4rem, 13vw, 6.4rem);
    }
    .subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.35rem;
    }
    #qubitCanvas {
        width: clamp(140px, 38vw, 220px);
        height: clamp(140px, 38vw, 220px);
    }
    .quantum-quote {
        font-size: 0.64rem;
        letter-spacing: 0.3rem;
        gap: 10px;
        margin-top: 1.2rem;
    }
}

@media (max-width: 360px) {
    .bottombar {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }
    .bottom-item {
        width: 100%;
        font-size: 0.58rem;
    }
}