/* ── CSS Reset & Base ── */
:root {
    --dark: #050A11;
    --gold: #D4AF37;
    --light: #F5F5F3;
}

body {
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    color: var(--light);
    background-color: var(--dark);
}

/* ── Header Navigation ── */
.header-main {
    color: var(--light);
}

.header-main nav a {
    color: var(--light);
    text-decoration: none;
}

/* Esconder cursor customizado em telas touch */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ── Noise Overlay (Film Grain Effect) ── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;

    /* intensidade reduzida */
    opacity: 0.035;

    background: url('data:image/svg+xml;utf8,\
%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E\
%3Cfilter id="noiseFilter"%3E\
%3CfeTurbulence type="fractalNoise" baseFrequency="0.18" numOctaves="2" stitchTiles="stitch"/%3E\
%3C/filter%3E\
%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E\
%3C/svg%3E');

    /* suavização extra opcional */
    backdrop-filter: blur(0.2px);
}

/* ── Custom Magnetic Cursor ── */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    transition: background-color 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition:
        width 0.3s,
        height 0.3s,
        border-color 0.3s,
        background-color 0.3s;

    mix-blend-mode: difference;
}

/* ── Lenis Smooth Scroll Needs ── */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ── Specific Premium Elements ── */
.split-lines .line,
.split-words .word,
.split-chars .char {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;

    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: bottom right;

    transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

body.loading {
    overflow: hidden;
}

/* Image Mask Reveal */
.img-mask {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-mask.is-revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-footer {
        font-size: 18vw;
    }

    .hero-section h1 {
        font-size: 14vw;
        line-height: 1.2;
    }
}

/* Form Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(5, 10, 17, 0.2);
    padding: 10px 0;
    font-size: 1rem;
    color: var(--dark);

    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.form-label {
    position: absolute;
    top: 10px;
    left: 0;

    font-size: 0.85rem;
    color: rgba(5, 10, 17, 0.5);

    pointer-events: none;

    transition: 0.3s ease all;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -15px;
    font-size: 0.7rem;
    color: var(--gold);
}