* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 400 1rem/1.5 var(--font-body), system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
summary:focus-visible,
#plataformas:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
    padding: 0 clamp(22px, 5vw, 72px);
}

.hero picture {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: brightness(var(--hero-brightness, 100%));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--background) calc(88% * var(--hero-vertical, 1)), transparent), transparent calc(28% * var(--hero-top-height, 1)),
        color-mix(in srgb, var(--background) calc(16% * var(--hero-vertical, 1)), transparent) calc(100% - 58% * var(--hero-bottom-height, 1)),
        color-mix(in srgb, var(--background) calc(72% * var(--hero-vertical, 1)), transparent) calc(100% - 26% * var(--hero-bottom-height, 1)),
        color-mix(in srgb, var(--background) calc(100% * var(--hero-vertical, 1)), transparent)),
        radial-gradient(ellipse at center, color-mix(in srgb, var(--background) calc(69% * var(--hero-radial, 1)), transparent), transparent 66%);
}

.top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-shadow: 0 1px 5px var(--background);
}

.symbol {
    display: flex;
    align-items: center;
    max-width: min(var(--symbol-width, 244px), 36vw);
    flex: 0 1 auto;
}

.symbol img {
    display: block;
    width: auto;
    height: var(--symbol-height, 55px);
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.desktop-nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px clamp(16px, 3vw, 44px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-nav {
    display: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 54px 0 72px;
}

.kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font: 500 clamp(20px, 2.3vw, 30px)/1 var(--font-accent), sans-serif;
    letter-spacing: .17em;
    text-shadow: 0 1px 6px var(--background);
}

.hero-wordmark {
    width: min(100%, clamp(320px, 47vw, 675px));
    margin: 0;
    font-family: var(--font-heading), system-ui, sans-serif;
}

.hero-wordmark img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 14px #000b);
}

.hero-text { color: var(--hero-text-color); font-family: var(--hero-text-font), sans-serif; font-size: var(--hero-text-size); font-weight: var(--hero-text-weight); font-style: var(--hero-text-style); }
.hero-text-bottom { margin-top: 18px; max-width: min(100%, 68ch); text-shadow: 0 1px 6px var(--background); }
.hero-text-bottom p { margin: .3em 0; }
.hero-text-bottom img { max-width: 100%; height: auto; }
.hero-text--projector { animation: hero-projector .8s linear infinite; }
.hero-text--glitch { animation: hero-glitch 2s infinite; }
.hero-text--typewriter.is-typing::after { content: '▍'; display: inline; animation: hero-cursor .85s steps(2, start) infinite; }
@keyframes hero-projector { 0%, 100% { opacity: 1; } 12% { opacity: .5; } 18% { opacity: .96; } 36% { opacity: .62; } 43% { opacity: 1; } 68% { opacity: .48; } 76% { opacity: .94; } 88% { opacity: .7; } }
@keyframes hero-glitch { 0%, 92%, 100% { transform: none; text-shadow: 0 1px 6px var(--background); } 93% { transform: translateX(-2px); text-shadow: 2px 0 #ff4d34, -2px 0 #00c6e8; } 94% { transform: translateX(2px); } 95% { transform: none; text-shadow: -2px 0 #ff4d34, 2px 0 #00c6e8; } }
@keyframes hero-cursor { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero-text--projector, .hero-text--glitch, .hero-text--typewriter.is-typing::after { animation: none; }
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 23px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    transition: filter .16s ease;
}

.action:hover {
    filter: brightness(1.15);
}

.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--background);
}

.secondary {
    border-color: var(--muted);
    background: color-mix(in srgb, var(--background) 52%, transparent);
}

.hero-links {
    border-top: 1px solid var(--border);
    padding: 14px 0 12px;
}

.icon-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.icon-links a,
.icon-links span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.icon-links a:hover img {
    filter: brightness(1.3);
}

.icon-links span {
    opacity: .7;
}

.platforms {
    gap: 7px clamp(14px, 2vw, 32px);
}

.platforms li {
    width: clamp(60px, 6.3vw, 98px);
    min-height: 34px;
}

.platforms img {
    width: 100%;
    height: 28px;
    object-fit: contain;
}

.socials {
    gap: 9px clamp(10px, 1.9vw, 22px);
    margin-top: 9px;
}

.socials li {
    width: 34px;
    height: 34px;
}

.socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .hero {
        padding: 0 18px;
    }

    .top {
        padding: 11px 0;
    }

    .symbol {
        max-width: min(var(--symbol-mobile-width, 183px), 48vw);
    }

    .symbol img { height: var(--symbol-mobile-height, 45px); }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .mobile-nav summary {
        padding: 12px 0 12px 12px;
        cursor: pointer;
    }

    .mobile-nav nav {
        position: absolute;
        z-index: 1;
        inset: 100% 0 auto auto;
        min-width: 12rem;
        width: max-content;
        max-width: 100%;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface);
    }

    .mobile-nav a {
        display: block;
        padding: 12px 4px;
        overflow-wrap: anywhere;
    }

    .hero-photo {
        object-position: 50% 20%;
    }

    .hero::after {
        background: linear-gradient(0deg, color-mix(in srgb, var(--background) calc(100% * var(--hero-vertical, 1)), transparent) calc(3% * var(--hero-bottom-height, 1)),
            color-mix(in srgb, var(--background) calc(85% * var(--hero-vertical, 1)), transparent) calc(23% * var(--hero-bottom-height, 1)),
            color-mix(in srgb, var(--background) calc(13% * var(--hero-vertical, 1)), transparent) calc(100% - 33% * var(--hero-top-height, 1)),
            color-mix(in srgb, var(--background) calc(75% * var(--hero-vertical, 1)), transparent));
    }

    .hero-copy {
        align-items: flex-start;
        justify-content: flex-end;
        text-align: left;
        padding: 190px 0 19px;
    }

    .hero-wordmark {
        width: min(100%, 390px);
    }

    .kicker {
        margin-bottom: 9px;
    }

    .actions {
        margin-top: 19px;
    }

    .action {
        padding-inline: 17px;
    }

    .hero-links {
        padding: 10px 0 6px;
    }

    .platforms {
        gap: 4px 8px;
    }

    .platforms li {
        width: calc((100% - 32px) / 5);
        max-width: 84px;
        min-height: 29px;
    }

    .platforms img {
        height: 21px;
    }

    .socials {
        gap: 8px 12px;
        margin-top: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action {
        transition: none;
    }
}
