/* =====================================================
   HUMMING HERO — LANDING PAGE
===================================================== */

:root {
    --background: #03120f;
    --background-light: #08241d;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-hover: rgba(255, 255, 255, 0.095);

    --primary: #73ffad;
    --primary-strong: #28dc7d;
    --secondary: #57dfff;
    --warning: #ffd75f;
    --danger: #ff6f8c;

    --text: #f5fff9;
    --text-soft: rgba(245, 255, 249, 0.72);
    --border: rgba(115, 255, 173, 0.2);

    --container: 1180px;
    --radius-large: 28px;
    --radius-medium: 20px;
}

/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-width: 320px;

    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(34, 185, 117, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at 15% 58%,
            rgba(87, 223, 255, 0.09),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #061914 0%,
            var(--background) 55%,
            #020b09 100%
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
a {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   ELEMENTOS GERAIS
===================================================== */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 100px 0;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-tag,
.hero-tag {
    display: inline-block;

    color: var(--primary);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 14px 0 12px;

    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.section-header p {
    margin: 0;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.7;
}

.hidden {
    display: none !important;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 54px 24px 70px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    top: 160px;
    left: 50%;

    width: 600px;
    height: 600px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(35, 224, 128, 0.13);
    filter: blur(120px);

    pointer-events: none;
}

.hero-banner {
    position: relative;
    z-index: 1;

    width: min(100%, 820px);

    margin-bottom: 34px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(115, 255, 173, 0.18),
            rgba(87, 223, 255, 0.08)
        );

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(35, 224, 128, 0.1);
}

.hero-banner img {
    display: block;

    width: 100%;
    min-height: 230px;

    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 780px;

    text-align: center;
}

.hero-content h1 {
    margin: 14px 0 18px;

    font-size: clamp(2.7rem, 7vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 680px;

    margin: 0 auto;

    color: var(--text-soft);

    font-size: clamp(1rem, 2.3vw, 1.22rem);
    line-height: 1.65;
}

.device-title {
    position: relative;
    z-index: 1;

    max-width: 680px;

    margin-top: 62px;

    text-align: center;
}

.device-title h2 {
    margin: 10px 0 10px;

    font-size: clamp(2rem, 4.5vw, 3rem);
}

.device-title p {
    margin: 0;

    color: var(--text-soft);
    line-height: 1.6;
}

/* =====================================================
   CARDS DE DISPOSITIVO
===================================================== */

.device-grid {
    position: relative;
    z-index: 1;

    width: min(100%, 1120px);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    margin-top: 32px;
}

.device-card {
    position: relative;

    min-height: 235px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px 24px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    color: var(--text);

    cursor: pointer;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.device-card::before {
    content: "";

    position: absolute;
    inset: auto -30% -70%;

    height: 160px;

    background: var(--primary);
    opacity: 0.12;
    filter: blur(55px);

    transition: opacity 180ms ease;
}

.device-card:hover,
.device-card:focus-visible,
.device-card.active {
    transform: translateY(-8px);

    border-color: rgba(115, 255, 173, 0.75);

    background:
        linear-gradient(
            145deg,
            rgba(115, 255, 173, 0.11),
            rgba(87, 223, 255, 0.055)
        );

    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.32),
        0 0 30px rgba(35, 224, 128, 0.14);
}

.device-card:hover::before,
.device-card.active::before {
    opacity: 0.25;
}

.device-card .icon {
    position: relative;

    display: block;

    margin-bottom: 22px;

    font-size: 4.2rem;
    line-height: 1;

    transition: transform 180ms ease;
}

.device-card:hover .icon,
.device-card.active .icon {
    transform: scale(1.1);
}

.device-card strong {
    position: relative;

    display: block;

    margin-bottom: 10px;

    font-size: 1.05rem;
    line-height: 1.3;
}

.device-card small {
    position: relative;

    display: block;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.device-card small::after {
    content: "PLAY";

    display: block;

    width: fit-content;

    margin: 20px auto 0;
    padding: 8px 18px;

    border: 1px solid rgba(115, 255, 173, 0.32);
    border-radius: 999px;

    background: rgba(115, 255, 173, 0.08);

    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

/* =====================================================
   CÁPSULAS DO HERO
===================================================== */

.hero-footer {
    position: relative;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin-top: 42px;
}

.hero-footer span {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.04);

    color: var(--text-soft);

    font-size: 0.86rem;
}

/* =====================================================
   GAMEPLAY
===================================================== */

.gameplay-section {
    background:
        radial-gradient(
            circle at center,
            rgba(35, 224, 128, 0.12),
            transparent 66%
        );
}

.game-placeholder {
    min-height: 390px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px;

    border: 1px dashed rgba(115, 255, 173, 0.3);
    border-radius: var(--radius-large);

    background: rgba(255, 255, 255, 0.025);

    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
}

.game-placeholder h3 {
    margin: 18px 0 8px;

    font-size: 1.65rem;
}

.game-placeholder p {
    margin: 0;
    color: var(--text-soft);
}

.game-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;
}

.game-platform-info {
    margin-right: auto;
}

.game-platform-info span {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.game-platform-info strong {
    font-size: 1.05rem;
}

.toolbar-button {
    width: auto;

    padding: 11px 18px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.055);
    color: var(--text);

    cursor: pointer;
}

.toolbar-button:hover {
    border-color: var(--primary);
}

.toolbar-button.danger {
    color: var(--danger);
}

.game-frame-container {
    margin-inline: auto;

    overflow: hidden;

    border: 1px solid rgba(115, 255, 173, 0.32);
    border-radius: var(--radius-large);

    background: #020907;

    box-shadow:
        0 30px 85px rgba(0, 0, 0, 0.48),
        0 0 40px rgba(35, 224, 128, 0.09);
}

.game-frame-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #020907;
}

.game-frame-container.pc-mode {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
}

.game-frame-container.mobile-mode {
    width: min(100%, 430px);
    aspect-ratio: 9 / 16;
}

.game-frame-container.tablet-mode {
    width: min(100%, 820px);
    aspect-ratio: 4 / 3;
}

.game-frame-container:fullscreen {
    width: 100vw;
    height: 100vh;

    border: 0;
    border-radius: 0;
}

/* =====================================================
   MISSION E FEATURES
===================================================== */

.mission-grid,
.features-grid {
    display: grid;
    gap: 20px;
}

.mission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-card,
.feature-card {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-medium);

    background: var(--surface);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.mission-card:hover,
.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(115, 255, 173, 0.45);
    background: var(--surface-hover);
}

.mission-card > span,
.feature-card > span {
    display: block;

    margin-bottom: 18px;

    font-size: 2.8rem;
}

.mission-card h3,
.feature-card h3 {
    margin: 0 0 10px;

    font-size: 1.25rem;
}

.mission-card p,
.feature-card p {
    margin: 0;

    color: var(--text-soft);
    line-height: 1.65;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    padding: 44px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(0, 0, 0, 0.24);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-content strong {
    color: var(--primary);
    letter-spacing: 0.12em;
}

.footer-content p {
    margin: 8px 0 0;

    color: var(--text-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: var(--text-soft);
}

.footer-links a:hover {
    color: var(--primary);
}

/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 900px) {
    .device-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .device-card {
        min-height: 190px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 28px 16px 60px;
    }

    .hero-banner {
        border-radius: 20px;
    }

    .hero-banner img {
        min-height: 180px;
    }

    .device-title {
        margin-top: 48px;
    }

    .section {
        padding: 72px 0;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .game-platform-info {
        width: 100%;
        margin-right: 0;
    }

    .toolbar-button {
        flex: 1;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}