/*
 * Sistema desenvolvido pela de Bruin Sistemas usando Aya Core
 * Framework: Aya Core
 * Desenvolvido por: de Bruin Sistemas
 * Site: www.debruinsistemas.com.br
 */

:root {
    --bg: #08110c;
    --bg-soft: #102218;
    --surface: rgba(16, 34, 24, 0.78);
    --surface-strong: #163324;
    --text: #edf6ef;
    --muted: #b7cbbd;
    --line: rgba(190, 228, 198, 0.16);
    --accent: #71d291;
    --accent-strong: #3fb669;
    --accent-contrast: #07100b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(79, 138, 98, 0.18), transparent 32%),
        linear-gradient(180deg, #09140e 0%, #08110c 100%);
    font-family: "Segoe UI", sans-serif;
}

a,
button {
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.page-shell {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 20px 0 120px;
}

.topbar,
.hero,
.section-grid,
.cards,
.footer {
    display: grid;
    gap: 24px;
}

.topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, #28583c, #0c1e14);
    box-shadow: var(--shadow);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
}

.brand-copy small,
.section-kicker,
.eyebrow,
.hero-stats span,
.panel p,
.card p,
.footer p {
    color: var(--muted);
}

.topnav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topnav a,
.topnav button {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
}

.topnav a:hover,
.topnav button:hover,
.button:hover,
.mobile-dock a:hover,
.mobile-dock button:hover {
    transform: translateY(-2px);
}

.hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    padding: 24px 0 34px;
}

.hero-copy h1,
.section-head h2,
.panel h2 {
    margin: 0;
    line-height: 1.04;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 5.1rem);
    max-width: 12ch;
}

.hero-copy p {
    max-width: 60ch;
    margin: 20px 0 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.button-primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: var(--accent-contrast);
    font-weight: 700;
}

.button-secondary,
.button-ghost {
    background: rgba(255, 255, 255, 0.02);
}

.button-full {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.hero-stats li,
.panel,
.card,
.modal {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-stats li {
    padding: 18px;
    border-radius: 22px;
}

.hero-card {
    position: relative;
    min-height: 540px;
    border-radius: 34px;
    border: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(26, 66, 45, 0.9) 0%, rgba(7, 17, 12, 0.96) 100%);
    box-shadow: var(--shadow);
}

.hero-card__mist,
.hero-card__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.hero-card__mist {
    inset: 16% auto auto 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(123, 219, 157, 0.26), transparent 70%);
    transform: translateX(-50%);
}

.hero-card__orb {
    right: 16%;
    top: 12%;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(183, 255, 208, 0.72), rgba(81, 184, 114, 0.08));
}

.hero-card__panel {
    position: absolute;
    left: 22px;
    top: 22px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(6, 12, 9, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card__panel--bottom {
    top: auto;
    bottom: 22px;
    left: auto;
    right: 22px;
}

.section {
    padding: 24px 0;
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.card,
.modal {
    border-radius: var(--radius);
}

.panel {
    padding: 28px;
}

.panel-highlight {
    background: linear-gradient(180deg, rgba(41, 87, 59, 0.82), rgba(12, 25, 18, 0.88));
}

.feature-list,
.roadmap-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 24px;
}

.footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 24px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
}

.mobile-dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 15;
    display: none;
    align-items: center;
    gap: 8px;
    width: min(calc(100% - 24px), 480px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 11, 8, 0.88);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
    box-shadow: var(--shadow);
}

.mobile-dock a,
.mobile-dock button {
    flex: 1;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
}

.mobile-dock button {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: var(--accent-contrast);
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 4, 0.78);
}

.modal {
    position: relative;
    width: min(100%, 520px);
    padding: 32px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.5rem;
}

.modal-backdrop[hidden] {
    display: none;
}

.alert {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.alert-error {
    background: rgba(145, 37, 37, 0.28);
}

.alert-success {
    background: rgba(34, 105, 60, 0.28);
}

.portal-grid {
    align-items: start;
}

.stack-form,
.stack-layout,
.inventory-list,
.shop-list {
    display: grid;
    gap: 14px;
}

.stack-form label,
.shop-item,
.inventory-item,
.stat-card {
    display: grid;
    gap: 8px;
}

.stack-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.ranking-table {
    display: grid;
    gap: 10px;
}

.ranking-table__head,
.ranking-table__row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1.4fr) minmax(0, 1fr) 100px 100px;
    gap: 12px;
    align-items: center;
}

.ranking-table__head {
    color: var(--muted);
    font-size: 0.92rem;
}

.ranking-table__row {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.logged-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.dashboard-hero h1 {
    margin: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.stat-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.shop-item,
.inventory-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.inventory-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

:focus-visible {
    outline: 3px solid rgba(113, 210, 145, 0.56);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .topbar,
    .hero,
    .section-grid,
    .cards,
    .footer {
        grid-template-columns: 1fr;
    }

    .topnav {
        display: none;
    }

    .hero-card {
        min-height: 360px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .mobile-dock {
        display: inline-flex;
    }

    .ranking-table__head,
    .ranking-table__row,
    .shop-item,
    .inventory-item,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .inventory-actions {
        justify-items: stretch;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max));
        padding-bottom: 130px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.8rem);
    }

    .panel,
    .card,
    .modal {
        border-radius: 24px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
