:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --bg-elevated: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --gradient-end: #7c3aed;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* Removed bg-grid and glow-orbs for minimalism */
.bg-grid,
.glow-orbs {
    display: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1000px;
    /* Mais contido para leitura */
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 15, 26, 0.85);
    /* Mais opaco */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    /* Borda quase invisível */
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ... mobile menu ... */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 2000;
    /* Ensure high z-index */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Drop shadow */
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 10px 0;
    border: none;
}

/* Mobile Menu Adjustment */
.mobile-menu.active {
    display: flex;
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 12px;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
    /* Push to bottom if flex container has height */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    border: none;
    padding: 0;
}

.mobile-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    /* Mais compacto */
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: #f8fafc;
    /* Alto contraste: quase branco */
    color: var(--bg-dark);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    /* Glow branco suave e moderno */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg svg {
    width: 18px;
    height: 18px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    padding: 160px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    /* Subtle gradient or just solid color for minimalist */
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 80px;
}

.hero-stats {
    display: none;
    /* Removing noise for minimalist look */
}

/* ===== HERO IMAGE ===== */
.hero-image {
    width: 100%;
    max-width: 900px;
    margin-top: 0;
    perspective: 2000px;
}

.app-window {
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    transform: none !important;
    /* Flat presentation */
    transition: none;
}

.app-window:hover {
    transform: none;
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #0d121f;
    /* Slightly lighter than pure black */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 6px;
    opacity: 0.6;
}

.control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    /* Monochrome controls */
}

/* Overriding colors for minimal look */
.control.close {
    background: #ff5f56;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27c93f;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #a5a5a5;
    font-weight: 500;
}

.screenshot {
    width: 100%;
    display: block;
    opacity: 0.95;
}

section {
    padding: 80px 24px;
}

.section-header {
    text-align: left;
    /* Alinhado a esquerda é mais moderno/minimalista */
    max-width: 600px;
    margin: 0 auto 60px 0;
}

.section-tag {
    display: none;
    /* Removing clutter */
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.features {
    background: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    /* Very subtle bg */
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.feature-highlight {
    grid-column: auto;
    /* Remove span special size */
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Mais espaço branco */
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* Aumentado */
    margin-top: 40px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item:hover .tech-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Tech specific hover colors */
.tech-item:nth-child(1):hover {
    border-color: rgba(97, 218, 251, 0.3);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.15);
}

.tech-item:nth-child(2):hover {
    border-color: rgba(159, 234, 249, 0.3);
    box-shadow: 0 0 15px rgba(159, 234, 249, 0.15);
}

.tech-item:nth-child(3):hover {
    border-color: rgba(49, 120, 198, 0.3);
    box-shadow: 0 0 15px rgba(49, 120, 198, 0.15);
}

.tech-item:nth-child(4):hover {
    border-color: rgba(234, 76, 137, 0.3);
    box-shadow: 0 0 15px rgba(234, 76, 137, 0.15);
}

.tech-item:nth-child(5):hover {
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.15);
}

.code-preview {
    background: #0d121f;
    /* Flat dark bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Minimal dots */
.code-dot {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

.code-filename {
    margin-left: auto;
    /* Push to right */
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.code-content {
    padding: 24px 24px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    background: transparent;
    overflow-x: auto;
}

/* Syntax Highlighting Colors */
.keyword {
    color: #f97583;
}

/* Pink/Red */
.variable {
    color: #79b8ff;
}

/* Blue */
.string {
    color: #9ecbff;
}

/* Light Blue */
.function {
    color: #b392f0;
}

/* Purple */
.tag {
    color: #85e89d;
}

/* Green */
.attr {
    color: #b392f0;
}

/* Purple */
.comment {
    color: #6a737d;
}

/* Grey */

.installation {
    background: none;
}

.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.install-card {
    padding: 0;
    /* Remove padding/bg for minimalist look */
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
}

.install-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin: 0 0 24px 0;
    /* Align left */
    color: var(--primary);
}

.install-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.install-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 12px;
}

.code-block code {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.copy-btn {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cta {
    text-align: center;
    padding-bottom: 120px;
    /* Extra spacing at bottom */
}

.cta-content {
    padding: 80px 40px;
    background: rgba(59, 130, 246, 0.03);
    /* Extremely subtle */
    border: 1px solid rgba(59, 130, 246, 0.05);
    border-radius: 24px;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer {
    padding: 80px 24px 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-highlight {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar .btn {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .install-options {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    section {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .code-block {
        flex-direction: row;
        /* Keep row layout even on mobile */
        align-items: center;
        padding: 8px 12px;
    }

    .code-block code {
        font-size: 0.75rem;
        word-break: break-all;
        text-align: left;
    }

    .copy-btn {
        min-width: 32px;
        /* Fixed size */
        width: 32px;
        height: 32px;
    }

    .install-card {
        padding: 24px;
        /* Reduced padding */
    }

    .code-block code {
        text-align: center;
        word-break: break-all;
    }
}