:root {
    --bg-main: #07090E;
    --bg-surface: #0E131F;
    --bg-card: rgba(17, 24, 39, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-gold: rgba(245, 196, 94, 0.38);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --gold-light: #FDE68A;
    --gold-mid: #E7C27B;
    --gold-dark: #BD8E42;
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    min-height: 100dvh;
    overflow-x: clip;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(231, 194, 123, 0.09) 0%, transparent 42%),
        radial-gradient(circle at 88% 28%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    touch-action: manipulation;
}

button {
    font: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--gold-mid);
    line-height: 1.15;
}

.brand small {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

nav a:not(.gold) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

nav a:not(.gold):hover {
    color: var(--gold-light);
}

/* Botões */
.gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-mid) 52%, var(--gold-dark) 100%);
    color: #14100A;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 8px 24px -6px rgba(231, 194, 123, 0.38);
    transition: var(--transition);
    white-space: nowrap;
}

.gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(231, 194, 123, 0.58);
    filter: brightness(1.04);
}

.btn.outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn.outline:hover {
    border-color: var(--gold-mid);
    background: rgba(231, 194, 123, 0.1);
    color: var(--gold-light);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    padding: 48px 0 64px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-mid);
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-mid), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.stats b {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
}

.stats span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero Carousel */
.hero-carousel {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
}

.hero-carousel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.hero-carousel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(7, 9, 14, 0.92);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, 0.24);
    padding: 0;
    transition: var(--transition);
}

.hero-dots button.active {
    width: 22px;
    background: var(--gold-mid);
}

/* Galeria e Filtros */
.gallery-section {
    padding: 16px 0 56px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filters button {
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: 99px;
    padding: 8px 15px;
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition);
}

.filters button:hover {
    border-color: var(--border-gold);
    color: var(--text-main);
}

.filters button.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-mid));
    color: #14100A;
    border-color: transparent;
}

.group {
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.group[hidden] {
    display: none;
}

.sectionhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.sectionhead h3 {
    font-size: 1.38rem;
    font-weight: 700;
}

.group-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 4px;
    max-width: 720px;
}

.price-pill {
    background: rgba(231, 194, 123, 0.08);
    border: 1px solid var(--border-gold);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-align: right;
}

.price-pill strong {
    display: block;
    font-size: 1.2rem;
    color: var(--gold-light);
    line-height: 1.15;
}

.price-pill small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.empty-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    color: var(--text-muted);
}

/* Grid de Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 0 22px 45px -15px rgba(0, 0, 0, 0.85);
}

.thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

.thumb-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.card:hover .thumb-bg {
    transform: scale(1.05);
    opacity: 0.72;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 9, 14, 0.88) 0%, rgba(7, 9, 14, 0.15) 100%);
}

.status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.status-live {
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
}

.info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.code-tag {
    color: var(--gold-mid);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.niche-tag {
    font-size: 0.74rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.card-actions .gold {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.btn-zoom {
    width: 42px;
    min-height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: grid;
    place-items: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-zoom:hover {
    border-color: var(--gold-mid);
    background: rgba(231, 194, 123, 0.14);
}

/* Página de Demonstração */
.demo {
    padding: 28px 20px 60px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.notice {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-gold {
    background: rgba(231, 194, 123, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.08em;
}

.buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin: 0 auto 22px;
}

.buy h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.buy p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.demo-frame-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.demo-frame {
    display: block;
    width: 100%;
    height: 82dvh;
    min-height: 540px;
    border: 0;
}

/* Lightbox Modal */
.lightbox {
    margin: auto;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 18px;
    max-width: 900px;
    width: calc(100% - 24px);
    max-height: 92dvh;
    overflow: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.lightbox::backdrop {
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px);
}

.lightbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lightbox-head strong {
    font-size: 0.95rem;
}

.lightbox-head button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    flex-shrink: 0;
}

.lightbox img {
    width: 100%;
    max-height: 75dvh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #07090E;
}

/* Footer */
footer {
    text-align: center;
    padding: 36px 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.gold-text {
    display: block;
    color: var(--gold-mid);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

/* Responsividade */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0 48px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nav {
        justify-content: center;
    }

    nav {
        justify-content: center;
        gap: 12px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .price-pill {
        width: 100%;
        text-align: left;
    }

    .buy .gold {
        width: 100%;
    }
}