:root {
    --primary: #556ee6;
    --primary-dark: #4057c8;
    --primary-light: #eef2ff;
    --success: #22c55e;
    --success-dark: #16a34a;
    --dark: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --white: #ffffff;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 65px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(85, 110, 230, 0.16), transparent 32%),
        linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* TOPO */
.topbar {
    padding: 22px 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(85, 110, 230, 0.28);
}

.brand-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--dark);
}

.brand-text span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 86px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.26), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.14), transparent 22%),
        linear-gradient(135deg, #556ee6 0%, #4057c8 52%, #2336a0 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: -160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -2px;
    font-weight: 950;
}

.hero p {
    max-width: 710px;
    margin: 22px 0 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(14px);
}

.hero-card h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 900;
}

.hero-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.check {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
}

/* BOTÕES */
.btn {
    border: 0;
    outline: 0;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.96rem;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-login {
    width: 100%;
    background: #f3f4f6;
    color: var(--dark);
}

.btn-login:hover {
    background: #e5e7eb;
}

.btn-whatsapp {
    width: 100%;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.btn-whatsapp:hover {
    color: #fff;
    filter: brightness(1.03);
}

/* CONTEÚDO */
.main-content {
    padding: 42px 0 72px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-title span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.section-title h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    letter-spacing: -1px;
    font-weight: 950;
}

.section-title p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 680px;
}

.search-box {
    width: min(360px, 100%);
    position: relative;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 16px;
    min-height: 52px;
    padding: 0 16px 0 44px;
    outline: none;
    font-size: 0.98rem;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.search-box input:focus {
    border-color: rgba(85, 110, 230, 0.55);
    box-shadow: 0 0 0 4px rgba(85, 110, 230, 0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.05rem;
}

.apps-count {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
}

/* CATÁLOGO */
#apps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.app-card {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    min-height: 322px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.app-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(85, 110, 230, 0.35);
}

.app-logo-box {
    width: 98px;
    height: 98px;
    margin: 10px auto 18px;
    border-radius: 25px;
    background: linear-gradient(145deg, #f8faff, #eef2ff);
    border: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.app-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-info {
    text-align: center;
}

.app-info h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 950;
    color: var(--dark);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 900;
}

.app-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/* INFORMAÇÕES */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 36px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.info-card h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    color: var(--dark);
    font-weight: 950;
    letter-spacing: -0.5px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.notice {
    border-left: 5px solid var(--primary);
}

.notice strong {
    color: var(--dark);
}

/* FAQ */
.faq {
    margin-top: 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.faq h2 {
    margin: 0 0 18px;
    font-size: 1.65rem;
    color: var(--dark);
    font-weight: 950;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 18px 0;
}

.faq-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.faq-item:last-child {
    padding-bottom: 0;
}

.faq-item h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* RODAPÉ */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
    padding: 28px 0;
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.footer a:hover {
    color: #c7d2fe;
}

/* WHATSAPP FIXO */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.55rem;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.32);
    transition: 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    color: #fff;
}

/* TOAST */
.toast-alert {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 80;
    background: #111827;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: 0.25s ease;
}

.toast-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1199px) {
    #apps-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 520px;
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    #apps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        display: none;
    }
}

@media (max-width: 575px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        padding: 16px 0;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .brand-text span {
        font-size: 0.76rem;
    }

    .hero {
        padding: 54px 0 62px;
    }

    .hero h1 {
        letter-spacing: -1.2px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    #apps-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-card {
        min-height: auto;
        padding: 20px;
    }

    .info-card,
    .faq {
        padding: 24px 20px;
    }

    .footer-inner {
        text-align: center;
        justify-content: center;
    }

    .toast-alert {
        left: 14px;
        right: 14px;
        bottom: 86px;
        text-align: center;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
}