/* Página inicial do MemeHut — landing page básica.
   Identidade: laranja #F95C3A e azul-marinho #020562, com temas claro/escuro. */

:root {
    --brand-orange: #f95c3a;
    --brand-orange-deep: #d1441f;
    --brand-orange-soft: #ffede7;
    --brand-blue: #020562;
    --brand-blue-light: #7c86ff;
    --brand-blue-soft: #e9eaf8;

    --bg: #ffffff;
    --surface: #f7f7f7;
    --text: #111111;
    --muted: #6b6b6b;
    --border: #e5e5e5;
    --header-bg: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 45px rgba(2, 5, 98, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --surface: #1c1c1c;
        --text: #e5e5e5;
        --muted: #9c9c9c;
        --border: #3a3a3a;
        --header-bg: rgba(18, 18, 18, 0.88);
        --brand-orange-soft: #3a1f16;
        --brand-blue: #7c86ff;
        --brand-blue-soft: #171a3d;
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand-blue);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

/* Cabeçalho ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
    padding: 6px 0;
}

.brand__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand__name {
    color: var(--text);
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.home-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.home-nav__link:hover {
    color: var(--text);
    background: var(--surface);
}

/* Hero --------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(1100px 420px at 15% -10%, var(--brand-orange-soft), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, var(--brand-blue-soft), transparent 55%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    background: var(--brand-orange-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero__lead {
    margin-top: 16px;
    font-size: 18px;
    color: var(--muted);
    max-width: 32rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.btn--primary {
    background: var(--brand-orange);
    color: #111111;
    box-shadow: 0 10px 24px rgba(249, 92, 58, 0.35);
}

.btn--primary:hover {
    background: var(--brand-orange-deep);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--surface);
    border-color: var(--brand-orange);
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__card {
    width: min(320px, 80vw);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
}

.hero__logo {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

/* Seção de destaques ------------------------------------------------------- */

.section {
    padding: 56px 0 72px;
    border-top: 1px solid var(--border);
}

.section__title {
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.01em;
    color: var(--text);
    text-align: center;
}

.section__lead {
    margin: 10px auto 0;
    max-width: 40rem;
    text-align: center;
    color: var(--muted);
}

.features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    margin-bottom: 14px;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
}

.feature__title {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
}

.feature__text {
    font-size: 15px;
    color: var(--muted);
}

/* Rodapé ------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 32px 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.site-footer__brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.site-footer__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.site-footer__links a:hover {
    color: var(--brand-orange);
}

.site-footer__copy {
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

/* Responsivo --------------------------------------------------------------- */

@media (max-width: 820px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0 56px;
    }
}

@media (max-width: 480px) {
    .brand__name {
        display: none;
    }

    .home-nav__link {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Impressão ---------------------------------------------------------------- */

@media print {
    .site-header,
    .site-footer,
    .hero__actions {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero__card {
        box-shadow: none;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
