@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
    --color-bg: #080808;
    --color-fg: #F8F8F8;
    --color-cyan: #00aaff;
    --color-violet: #A855F7;
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-fg);
    overflow-x: hidden;
    overflow-y: auto;
    cursor: none;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Header */
.header {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mode-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
}

.mode-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--color-cyan);
    color: var(--color-bg);
}

.mode-btn:hover:not(.active) {
    color: var(--color-fg);
    background: rgba(255, 255, 255, 0.1);
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    min-height: min-content;
}

.typography-container {
    text-align: center;
}

.kinetic-text {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.kinetic-text .char {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Interactive Zone */
.interactive-zone {
    width: 600px;
    height: 200px;
    border: 2px dashed rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hint {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

input[type="range"] {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-cyan);
    border-radius: 50%;
    cursor: pointer;
}

/* Info */
.info {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.info-item .label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.info-item .value {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.controls,
.info {
    animation: fadeIn 1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 5rem 1rem 1rem;
        /* Space for navbar */
    }

    .logo {
        font-size: 1.5rem;
    }

    .kinetic-text {
        font-size: clamp(3rem, 15vw, 6rem);
        /* Reduced max size */
    }

    .interactive-zone {
        width: 90%;
        height: 120px;
    }

    .controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .info {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .main {
        padding: 1rem 0;
        justify-content: flex-start;
    }
}