@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: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Helper Var */
:root {
    --ml-text-hero: clamp(3rem, 5vw + 1rem, 8rem);
    --ml-text-lg: clamp(1rem, 2vw, 1.5rem);
    --ml-text-sm: 12px;
    --ml-space-md: 20px;
    --ml-space-lg: 30px;
    --ml-space-xl: 50px;
    --text-color: #ffffff;
}

/* Widget Container */
.ml-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.ml-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* Pretitle */
.ml-hero__pretitle {
    display: block;
    font-size: var(--ml-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--ml-space-md);
    opacity: 0;
    /* JS Fade in */
}

/* Title */
.ml-hero__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.9;
    margin-bottom: var(--ml-space-md);
    overflow: hidden;
    /* Important for reveal */
}

.ml-hero__title {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--ml-text-hero);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
    color: var(--text-color);
    /* GSAP will handle opacity/transform */
}

.ml-hero__title.is-stroke {
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
}

/* Subtitle */
.ml-hero__subtitle {
    font-size: var(--ml-text-lg);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0;
}

/* CTA */
.ml-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--ml-space-xl);
    font-size: var(--ml-text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: #fff;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: all 0.3s ease;
    opacity: 0;
    background: transparent;
}

.ml-hero__cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.ml-hero__cta-arrow {
    transition: transform 0.3s ease;
}

.ml-hero__cta:hover .ml-hero__cta-arrow {
    transform: translateX(4px);
}

/* Scroll Indicator */
.ml-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.ml-hero__scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

.ml-hero__scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ml-hero__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(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 250px;
}

.gui-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gui-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gui-select,
.gui-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.gui-select:hover,
.gui-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gui-btn.primary {
    background: #fff;
    color: #000;
    font-weight: 500;
}

.gui-btn.primary:hover {
    background: #e0e0e0;
}

/* SplitType required styles to prevent FOUC (though JS handles splitting) */
.line {
    overflow: hidden;
}