*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nyx-green: #00ff41;
    --nyx-green-dim: #39ff14;
    --nyx-cyan: #00e5ff;
    --nyx-gold: #ffd700;
    --nyx-bg: #050805;
    --nyx-panel: rgba(0, 20, 0, 0.72);
    --nyx-border: rgba(0, 255, 65, 0.35);
    --nyx-text: #c8d1c8;
    --nyx-muted: #8b949e;
    --font-mono: "JetBrains Mono", "Courier New", Courier, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--nyx-bg);
    color: var(--nyx-text);
    line-height: 1.6;
    min-height: 100vh;
}

#matrix-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.site-wrap {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--nyx-border);
    background: rgba(5, 8, 5, 0.92);
    backdrop-filter: blur(8px);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    color: var(--nyx-green);
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 3px;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.logo-brand {
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 3px;
}

.logo-ny,
.logo-x1,
.logo-x2 {
    display: inline-block;
}

/* Último X cavalgado sobre o penúltimo — efeito da logomarca */
.logo-x2 {
    margin-left: -0.52em;
    position: relative;
    z-index: 1;
    color: var(--nyx-green-dim);
    text-shadow:
        0 0 8px rgba(0, 255, 65, 0.55),
        -1px 0 0 rgba(5, 8, 5, 0.85);
}

.logo-suffix {
    color: var(--nyx-muted);
    font-weight: normal;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lang-btn {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.28);
    color: var(--nyx-muted);
    font: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    padding: 4px 7px;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
    color: var(--nyx-green);
    border-color: rgba(0, 255, 65, 0.55);
}

.lang-btn.is-active {
    color: #000;
    background: var(--nyx-green);
    border-color: var(--nyx-green);
    font-weight: 700;
}

.nav a {
    color: var(--nyx-muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--nyx-green);
}

.nav-contact-btn,
.footer-contact-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--nyx-muted);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-contact-btn:hover,
.footer-contact-btn:hover {
    color: var(--nyx-green);
}

.footer-contact-btn {
    font-size: inherit;
    letter-spacing: inherit;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 22px;
    border-radius: 4px;
    border: 2px solid var(--nyx-green);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    color: #000;
    background: var(--nyx-green);
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
}

.nav .btn-primary {
    color: #000;
}

.btn-primary:hover {
    color: var(--nyx-green);
    background: transparent;
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.5);
}

.nav .btn-primary:hover {
    color: var(--nyx-green);
}

.btn-ghost {
    color: var(--nyx-green);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(0, 255, 65, 0.08);
}

.hero-stack {
    text-align: center;
    padding: 48px 20px 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-stack > * + * {
    margin-top: 20px;
}

.hero-lead-card,
.hero-image-card,
.hero-note-card-wrap,
.hero-stack .site-banner-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.hero-lead-card,
.hero-image-card,
.hero-note-card-wrap {
    padding: 22px 20px;
    border: 1px solid var(--nyx-border);
    border-radius: 4px;
    background: var(--nyx-panel);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.06);
}

.hero-lead-card {
    text-align: left;
}

.hero-image-card {
    text-align: center;
}

.hero-image-card.is-hidden {
    display: none;
}

.hero-stack .site-banner-wrap {
    padding: 0;
}

.hero-badge {
    display: inline-block;
    color: var(--nyx-cyan);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 4px;
}

.hero h1,
.hero-stack h1 {
    color: var(--nyx-green);
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    letter-spacing: clamp(4px, 2vw, 12px);
    line-height: 1.05;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.45);
    margin-bottom: 16px;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    max-width: 100%;
}

.hero-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    filter: drop-shadow(0 0 18px rgba(0, 255, 65, 0.35));
}

.site-banner-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.site-banner-wrap.is-hidden {
    display: none;
}

.site-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--nyx-border);
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.1);
}

.hero-lead {
    color: #74F165;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    max-width: none;
    margin: 0;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    white-space: pre-line;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-note-card-wrap.is-hidden {
    display: none;
}

.hero-note-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.hero-note-card.is-hidden {
    display: none;
}

.hero-note-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: none;
    border-radius: 2px;
}

.hero-note {
    font-size: clamp(0.72rem, 2vw, 0.85rem);
    color: var(--nyx-cyan);
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.site-preline {
    white-space: pre-line;
    text-align: justify;
    text-justify: inter-word;
}

.mobile-showcase {
    max-width: 1080px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.mobile-showcase.is-hidden {
    display: none;
}

.mobile-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 28px);
    align-items: end;
}

.mobile-frame {
    margin: 0;
    text-align: center;
}

.mobile-frame.is-hidden {
    display: none;
}

.mobile-frame-shell {
    position: relative;
    margin: 0 auto;
    max-width: 220px;
    padding: 10px 8px 12px;
    border-radius: 22px;
    border: 2px solid rgba(0, 255, 65, 0.45);
    background: linear-gradient(180deg, rgba(0, 28, 0, 0.95) 0%, rgba(0, 10, 0, 0.98) 100%);
    box-shadow:
        0 0 24px rgba(0, 255, 65, 0.12),
        inset 0 0 12px rgba(0, 255, 65, 0.06);
}

.mobile-frame-shell::before {
    content: "";
    display: block;
    width: 36%;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(0, 255, 65, 0.35);
}

.mobile-shot {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    background: #000;
}

.mobile-frame figcaption {
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nyx-cyan);
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .mobile-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .mobile-frame-shell {
        max-width: 260px;
    }
}

@media (min-width: 861px) and (max-width: 1024px) {
    .mobile-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-frame-shell {
        max-width: 180px;
    }
}

section {
    padding: 48px 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.section-title {
    color: var(--nyx-gold);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

section h2 {
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--nyx-panel);
    border: 1px solid var(--nyx-border);
    border-radius: 4px;
    padding: 22px 20px;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.06);
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 10px;
}

.card-figure {
    display: block;
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--nyx-border);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
}

.card-figure.is-hidden {
    display: none;
}

.card-visual.has-figure .card-icon {
    display: none;
}

.card h3 {
    color: var(--nyx-green);
    font-size: 0.95rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card p {
    color: var(--nyx-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: justify;
    text-justify: inter-word;
    white-space: pre-line;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.step {
    border-left: 2px solid var(--nyx-green);
    padding: 8px 0 8px 16px;
    min-width: 0;
}

.step-num {
    color: var(--nyx-cyan);
    font-size: 0.72rem;
    letter-spacing: 2px;
}

.step h3 {
    color: #fff;
    font-size: 0.9rem;
    margin: 6px 0;
}

.step-visual {
    display: none;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0 12px;
    max-width: 100%;
    min-width: 0;
}

.step-visual.has-figure {
    display: flex;
}

.step-figure {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(280px, 55vw);
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--nyx-border);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
}

.step-figure.is-hidden {
    display: none;
}

.step p {
    color: var(--nyx-muted);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .step-figure {
        max-height: min(220px, 62vw);
    }
}

.cta-band {
    margin: 24px 20px 48px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 36px 24px;
    border: 1px solid var(--nyx-border);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(0, 40, 0, 0.35), rgba(0, 10, 0, 0.6));
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.08);
}

.cta-band h2 {
    color: var(--nyx-green);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.cta-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 22px;
    max-width: 520px;
}

.cta-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: var(--nyx-muted);
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.45;
}

.cta-ico {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.cta-band p {
    color: var(--nyx-muted);
    font-size: 0.85rem;
    margin-bottom: 22px;
}

.site-video-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 8px;
}

.site-video-wrap.is-hidden {
    display: none;
}

.site-video-title {
    color: #fff;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.site-video-title:empty,
.site-video-title[hidden] {
    display: none;
}

.site-video-box {
    position: relative;
    width: 100%;
    border: 1px solid var(--nyx-border);
    border-radius: 6px;
    background: rgba(0, 12, 0, 0.85);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.site-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.site-footer {
    padding: 24px 20px 48px;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-card {
    background: var(--nyx-panel);
    border: 1px solid var(--nyx-border);
    border-radius: 4px;
    padding: 28px 24px 24px;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.06);
    text-align: center;
}

.site-footer a {
    color: var(--nyx-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--nyx-green);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--nyx-muted);
    line-height: 1.65;
    max-width: 920px;
    margin: 0 auto;
}

/* Contate-nos — sheet de baixo para cima */
body.contato-open {
    overflow: hidden;
}

.contato-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.contato-overlay.is-open {
    opacity: 1;
}

.contato-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: min(92vh, 720px);
    overflow: auto;
    padding: 10px 20px 28px;
    background: #061006;
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-mono);
}

.contato-sheet.is-open {
    transform: translateY(0);
}

.contato-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 4px auto 14px;
    border-radius: 99px;
    background: rgba(0, 255, 65, 0.35);
}

.contato-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.contato-sheet-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--nyx-green-dim);
    letter-spacing: 0.4px;
}

.contato-close {
    appearance: none;
    border: 1px solid rgba(0, 255, 65, 0.35);
    background: transparent;
    color: var(--nyx-green);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.contato-close:hover {
    border-color: var(--nyx-green);
    background: rgba(0, 40, 0, 0.5);
}

.contato-hint {
    margin: 0 0 16px;
    font-size: 0.72rem;
    color: var(--nyx-muted);
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 520px;
    margin: 0 auto;
}

.contato-form label {
    font-size: 0.7rem;
    color: var(--nyx-cyan);
    letter-spacing: 0.3px;
    margin-top: 6px;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.28);
    background: rgba(0, 0, 0, 0.55);
    color: #e8ffe8;
    font: inherit;
    font-size: 0.88rem;
    resize: vertical;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--nyx-green);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.25);
}

.contato-enviar {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}

.contato-msg {
    min-height: 1.2em;
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--nyx-muted);
}

.contato-msg.ok {
    color: var(--nyx-green-dim);
}

.contato-msg.erro {
    color: #ff6b6b;
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .nav {
        justify-content: center;
    }

    .nav .btn {
        width: 100%;
        text-align: center;
    }
}
