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

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --grid-color: rgba(255, 255, 255, 0.18);
    --accent-cyan: #00f5ff;
    --accent-purple: #bf5fff;
    --accent-green: #39ff14;
}

html,
body {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--black);
    font-family: 'Inter', sans-serif;
    color: var(--white);
}

/* ─── CANVAS ── */
#mesh-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    z-index: 0;
}

/* ─── OVERLAY very subtle vignette ── */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.72) 100%);
}

/* ─── PAGE WRAPPER ── */
.page {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 36px;
}

/* ─── TOP BAR ── */
.top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Corner brackets — top-left */
.bracket-tl {
    width: 36px;
    height: 36px;
    border-top: 2.5px solid var(--white);
    border-left: 2.5px solid var(--white);
}

/* Corner brackets — top-right */
.bracket-tr {
    width: 36px;
    height: 36px;
    border-top: 2.5px solid var(--white);
    border-right: 2.5px solid var(--white);
}

/* Arrow indicators */
.arrows {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.7;
    font-weight: 600;
}

.arrows.left {
    color: var(--white);
}

.arrows.right {
    color: var(--white);
    flex-direction: row-reverse;
}

.top-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

/* ─── HERO CENTER ── */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: clamp(32px, 5vw, 72px);
}

/* Logo real */
.hero-logo {
    flex-shrink: 0;
    width: clamp(180px, 24vw, 340px);
    height: clamp(180px, 24vw, 340px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Text block */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/*
 * PROPORÇÃO TRAVADA:
 * .hero-title define o "token" base (clamp único).
 * .name herda via em  → sempre 46% do TV.
 * .brand usa 1em      → sempre 100% do base.
 * O ratio NUNCA muda independente do viewport.
 */
.hero-title {
    font-size: clamp(88px, 14vw, 220px);
    /* base = tamanho do TV */
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* "Cazé" — sempre 46% do TV */
.hero-title .name {
    display: block;
    font-size: 0.57em;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.1;
}

/* "TV" — 100% do base, sem escape */
.hero-title .brand {
    display: block;
    font-size: 1em;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 0.9;
}

.hero-subtitle {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 18px;
}

/* ─── BOTTOM BAR ── */
.bottom-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.bracket-bl {
    width: 36px;
    height: 36px;
    border-bottom: 2.5px solid var(--white);
    border-left: 2.5px solid var(--white);
}

.bracket-br {
    width: 36px;
    height: 36px;
    border-bottom: 2.5px solid var(--white);
    border-right: 2.5px solid var(--white);
}

.bottom-left-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.bottom-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Rainbow bar like Cazé TV */
.rainbow-bar {
    height: 6px;
    width: 120px;
    border-radius: 0;
    background: linear-gradient(to right,
            #ff0000,
            #ff7700,
            #ffff00,
            #00ff00,
            #00aaff,
            #7700ff,
            #ff00ff);
}

.bottom-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Scanline subtle overlay ── */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.04) 2px,
            rgba(0, 0, 0, 0.04) 4px);
}

/* ─── Fade-in animation ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.hero {
    animation: fadeUp 1s ease 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 1s ease 0.7s both;
}

.top-bar {
    animation: fadeUp 0.8s ease 0.1s both;
}

.bottom-bar {
    animation: fadeUp 0.8s ease 0.2s both;
}
