/* ═══════════════════════════════════════════════════════════════
   PREFEITO — Landing Page
   Tema: Matrix dark + verde neon
   ═══════════════════════════════════════════════════════════════ */

:root {
    --accent: #00ff88;
    --accent-dim: #00ff8855;
    --accent-glow: #00ff8822;
    --bg: #0a0d0f;
    --bg-elev: #11161a;
    --bg-card: #161c21;
    --border: #1f2a30;
    --border-bright: #2a3a42;
    --text: #e8eef0;
    --text-dim: #8a9aa3;
    --text-mute: #5a6a73;
    --danger: #ff4757;
    --warning: #ffa502;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grid pattern background sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ═══════════ MATRIX RAIN (canvas de fundo) ═══════════ */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;            /* atrás do grid e do conteúdo, na frente do body bg */
    opacity: 0.45;          /* sutil — não compete com texto */
    mix-blend-mode: screen; /* funde com o fundo escuro, fica mais "néon" */
}

@media (max-width: 600px) {
    #matrix-bg {
        opacity: 0.30;       /* ainda mais sutil no mobile */
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.link-accent {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-dim);
}

/* ═══════════ NAV ═══════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    height: 64px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--accent);
    font-size: 22px;
    text-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 0 16px var(--accent-glow);
}

.btn-nav:hover {
    color: var(--bg) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 24px var(--accent-dim);
}

/* ═══════════ HERO ═══════════ */
.hero {
    padding: 140px 0 100px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-sub {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-sub strong {
    color: var(--text);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 0 24px var(--accent-glow);
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--accent-dim);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid var(--border-bright);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    max-width: 700px;
}

.hero-stats > div {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.hero-stats strong {
    font-size: 24px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.hero-stats span {
    font-size: 13px;
    color: var(--text-dim);
}

/* ═══════════ SECTIONS ═══════════ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: rgba(14, 20, 24, 0.78);   /* semi-transparente: deixa matrix vazar por trás */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 56px;
    max-width: 700px;
}

/* ═══════════ PRODUTOS ═══════════ */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 255, 136, 0.08);
}

.product-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
}

.product-tag {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-size: 14px;
    color: var(--text-dim);
}

.product-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.product-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.status-available {
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

/* Quando é um <a> (clicável) ganha hover de botão */
a.status-available:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-dim);
    color: var(--bg);
}

.status-soon {
    background: var(--bg-elev);
    color: var(--text-mute);
    border: 1px solid var(--border-bright);
}

/* ═══════════ DIFERENCIAIS ═══════════ */
.differentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.diff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.2s;
}

.diff-card:hover {
    border-color: var(--accent-dim);
    background: var(--bg-elev);
}

.diff-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.diff-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.diff-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ═══════════ TUTORIAL VIDEO ═══════════ */
.video-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto 24px;
}

.video-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.video-tab:hover {
    border-color: var(--accent-dim);
    color: var(--text);
    transform: translateY(-1px);
}

.video-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 24px var(--accent-glow);
}

.video-tab .vt-icon {
    font-size: 16px;
    line-height: 1;
}

.video-empty {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-dim);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Quando tem thumbnail (background-image), escurece um pouco pra contraste */
.video-placeholder.is-clickable {
    cursor: pointer;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.video-placeholder.is-clickable::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.2s;
}

.video-placeholder.is-clickable:hover::before {
    background: rgba(0, 0, 0, 0.20);
}

.video-placeholder.is-clickable > * {
    position: relative;
    z-index: 1;
}

.video-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 16px;
    box-shadow: 0 0 32px var(--accent-glow);
    cursor: pointer;
    transition: transform 0.2s;
}

.video-play:hover {
    transform: scale(1.1);
}

/* ═══════════ DOWNLOAD ═══════════ */
.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.dl-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.dl-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 255, 136, 0.12);
}

.dl-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.dl-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.dl-meta {
    color: var(--text-dim);
    font-size: 14px;
}

.dl-version {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin: 6px 0 20px;
}

.dl-btn {
    background: var(--accent);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

/* Estado "em breve" — card sem hover de download, botão neutro */
.dl-card.dl-soon {
    cursor: default;
    opacity: 0.85;
}

.dl-card.dl-soon:hover {
    transform: none;
    border-color: var(--border-bright);
    box-shadow: none;
}

.dl-btn-soon {
    background: var(--bg-elev);
    color: var(--text-mute);
    border: 1px solid var(--border-bright);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    font-size: 13px;
}

.dl-note {
    max-width: 800px;
    margin: 48px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
}

.dl-note p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.dl-note p:last-child {
    margin-bottom: 0;
}

/* ═══════════ CONTATO ═══════════ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--bg-elev);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    word-break: break-all;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 12px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-cols h5 {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer-cols a, .footer-cols p {
    display: block;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-cols a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-mute);
    font-size: 13px;
}

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 768px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta a {
        text-align: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}
