/* Realidade Carioca - Tema alinhado à logo (azuis, preto, branco, urbano) */
:root {
    --bg: #060810;
    --bg-card: #0c111a;
    --surface: #0f1623;
    --border: #1a2435;
    --line: #1a2435;
    --text: #e8ecf4;
    --text-muted: #7c8ba4;
    --muted: #7c8ba4;
    --accent: #4da6ff;
    --accent-bright: #6ebcff;
    --accent-glow: rgba(77, 166, 255, 0.35);
    --accent-dim: #2d7fd8;
    --brand: #4da6ff;
    --brand-soft: #6ebcff;
    --success: #3fb950;
    --radius: 12px;
    --font: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background-color: #060810;
    background-image:
        linear-gradient(180deg, rgba(6, 8, 16, 0.86) 0%, rgba(8, 10, 20, 0.76) 38%, rgba(6, 8, 16, 0.88) 100%),
        url("../images/site-bg-gta-chase.png");
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    color: var(--text);
    line-height: 1.45;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll, scroll;
    }
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1200px, 94%); margin: 0 auto; padding: 0; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    background: rgba(16, 18, 24, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    min-height: var(--header-h);
}
.logo-img {
    display: block;
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    object-position: left center;
    vertical-align: middle;
}
.logo span { color: var(--accent); }
.header-server-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    margin-right: 1rem;
}
.header-server-name { color: var(--text-muted); }
.header-server-ip { font-family: var(--font-mono); color: var(--accent); }
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color .2s;
}
.nav-list a:hover { color: var(--accent); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-h) 0 4rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(77, 166, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 0 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    text-decoration: none;
    border: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-soft); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-secondary { background: #5865F2; color: #fff; }
.btn-secondary:hover { background: #4752c4; }
.btn-link { background: none; color: var(--accent); padding: 0.25rem 0; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* Hero Carousel / Slider */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6,8,16,0.5) 0%, rgba(6,8,16,0.75) 50%, var(--bg) 100%);
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 0 6rem;
    z-index: 2;
}
.hero-slide-content .container {
    position: relative;
}
.hero-slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-slide-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    max-width: 480px;
}
.hero-carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.hero-carousel-dot:hover { background: var(--text-muted); }
.hero-carousel-dot.is-active { background: var(--accent); transform: scale(1.2); }
.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12,17,35,0.9);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background .2s, border-color .2s;
}
.hero-carousel-prev:hover, .hero-carousel-next:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}
.hero-carousel-prev { left: 1rem; }
.hero-carousel-next { right: 1rem; }
@media (max-width: 768px) {
    .hero-carousel-prev, .hero-carousel-next { width: 40px; height: 40px; font-size: 1rem; left: 0.5rem; right: 0.5rem; }
    .hero-slide-content { padding: 3rem 0 5rem; }
}

/* Sections */
.section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}
.section-alt {
    background: var(--bg-card);
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
}
.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.section-cta {
    text-align: center;
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .2s, transform .2s;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Features grid (Vendas) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.feature-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color .2s;
}
.feature-item:hover { border-color: var(--accent); }
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.feature-item h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Quem Somos */
.about-content {
    max-width: 640px;
    margin: 0 auto;
}
.about-content p { margin: 0 0 1rem; color: var(--text-muted); }
.about-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.about-list li { margin-bottom: 0.5rem; }

/* Rules */
.rules-list {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.rules-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 2rem;
}
.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.rules-list li:last-child { border-bottom: none; }

/* Connect */
.connect-section { padding-bottom: 4rem; }
.connect-box {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.connect-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.connect-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.connect-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}
.connect-input:focus {
    outline: none;
    border-color: var(--accent);
}
.connect-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.connect-hint code {
    background: var(--surface);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Footer */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-social a {
    color: var(--accent);
    text-decoration: none;
}
.footer-social a:hover { text-decoration: underline; }

/* Animações */
.hero-title .line { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-sub { opacity: 0; animation: fadeUp 0.6s ease 0.4s forwards; }
.hero-cta { opacity: 0; animation: fadeUp 0.6s ease 0.6s forwards; }
.hero-stats { opacity: 0; animation: fadeUp 0.6s ease 0.9s forwards; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile - tablet e abaixo */
@media (max-width: 900px) {
    .header-server-widget { display: none; }
    .nav-toggle { display: flex; min-width: 44px; min-height: 44px; }
    .nav-list {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s, opacity .3s, visibility .3s;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav-list.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-list li { padding: 0.75rem 0; }
    .nav-list a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
    .hero { padding: var(--header-h) 0 3rem; }
    .hero-title { font-size: clamp(1.75rem, 5vw, 2.75rem); }
    .hero-sub { font-size: 1rem; }
    .hero-cta { flex-direction: column; margin-bottom: 2rem; }
    .hero-cta .btn { width: 100%; min-height: 48px; justify-content: center; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .cards, .features-grid { gap: 1rem; }
    .card, .feature-item { padding: 1.25rem; }
    .connect-row { flex-direction: column; }
    .connect-row .btn { width: 100%; min-height: 48px; }
    .footer { padding: 1.5rem 1rem; font-size: 0.85rem; }
    .footer-social { gap: 0.75rem; }
}

/* Mobile - celular */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .logo-img { max-width: 180px; }
    .hero-inner { padding-top: 0.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 1.25rem; }
    .scroll-hint { bottom: 1rem; font-size: 0.8rem; }
    .section { padding: 2rem 0; }
    .connect-box { padding: 1.25rem; margin-left: 0; margin-right: 0; }
    .connect-input { font-size: 0.9rem; }
    .btn { min-height: 44px; padding: 0.65rem 1.25rem; }
}
