@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Inter:wght@300;400;500&display=swap');

/* Reset */
*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Helper Var */
:root {
    --ml-text-hero: clamp(3rem, 5vw + 1rem, 7rem);
    --ml-text-lg: clamp(1rem, 2vw, 1.25rem);
    --ml-space-md: 20px;
    --ml-space-lg: 30px;
    --ml-space-xl: 50px;
}

/* Container */
.ml-hero-blob {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #050505;
}

.ml-hero-blob__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let mouse pass through to section for listener */
}

/* Layout Variants */
.ml-hero-blob--right .ml-hero-blob__canvas {
    left: auto;
    right: 0;
    width: 60%;
}

.ml-hero-blob--left .ml-hero-blob__canvas {
    width: 60%;
}

.ml-hero-blob--center .ml-hero-blob__canvas {
    left: 20%;
    width: 60%;
}

/* Content */
.ml-hero-blob__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 600px;
    /* Constrain text width */
    padding: 0 40px;
    margin-right: auto;
}

.ml-hero-blob--right .ml-hero-blob__content {
    margin-right: auto;
}

.ml-hero-blob--left .ml-hero-blob__content {
    margin-left: auto;
    text-align: right;
}

.ml-hero-blob--center .ml-hero-blob__content {
    margin: 0 auto;
    text-align: center;
}

/* Typography */
.ml-hero-blob__pretitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--ml-space-md);
    opacity: 0;
    transform: translateY(20px);
}

.ml-hero-blob__title-wrap {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 0.9;
}

.ml-hero-blob__title {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--ml-text-hero);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    display: block;
    overflow: hidden;
    color: #fff;
}

/* Subtitle */
.ml-hero-blob__subtitle {
    font-size: var(--ml-text-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--ml-space-lg);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    max-width: 400px;
}

.ml-hero-blob--left .ml-hero-blob__subtitle {
    margin-left: auto;
}

.ml-hero-blob--center .ml-hero-blob__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Scroll */
.ml-hero-blob__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    z-index: 3;
}

.ml-hero-blob__scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
}

.ml-hero-blob__scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ml-hero-blob__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%
    }

    50% {
        top: 100%
    }

    100% {
        top: 100%
    }
}

/* GUI */
.demo-gui {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gui-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gui-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gui-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gui-range {
    flex: 1;
    accent-color: #fff;
}

.gui-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    width: 100%;
    outline: none;
    font-size: 13px;
}

.gui-color {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
}

.gui-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.gui-btn:hover {
    background: #e0e0e0;
}

@media(max-width: 768px) {
    .ml-hero-blob {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .ml-hero-blob__canvas {
        width: 100% !important;
        height: 50vh !important;
        top: auto;
        bottom: 0;
        opacity: 0.6;
    }

    .ml-hero-blob__content {
        margin: 0 auto !important;
        width: 100%;
        text-align: center !important;
    }

    .ml-hero-blob__subtitle {
        margin: 20px auto !important;
    }
}