/* ================================================
   VORTEX LANDING — Estilos públicos
   Apple HIG · Dark First · Responsivo
   Tokens: --vx-* (definidos em :root abaixo)
   ================================================ */

/* ============================================
   VORTEX LANDING — DESIGN SYSTEM
   ============================================ */

:root {
    --vx-bg: #0a0a0a;
    --vx-bg-alt: #111111;
    --vx-bg-card: #161616;
    --vx-bg-card-hover: #1a1a1a;
    --vx-border: #222222;
    --vx-border-light: #2a2a2a;
    --vx-blue: #0A84FF;
    --vx-blue-dark: #0070E0;
    --vx-blue-glow: rgba(10, 132, 255, 0.15);
    --vx-blue-glow-strong: rgba(10, 132, 255, 0.3);
    --vx-accent: #30D5C8;
    --vx-purple: #BF5AF2;
    --vx-text: #ffffff;
    --vx-text-muted: #888888;
    --vx-text-light: #b0b0b0;
    --vx-gradient-start: #0A84FF;
    --vx-gradient-mid: #30D5C8;
    --vx-gradient-end: #BF5AF2;
    --vx-radius: 12px;
    --vx-radius-lg: 20px;
    --vx-radius-pill: 50px;
    --vx-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --vx-shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --vx-shadow-brand: 0 4px 24px rgba(10, 132, 255, 0.2);
    --vx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vx-navbar-height: 72px;
}

.vx-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.vx-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}
.vx-brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--vx-text);
    letter-spacing: -0.02em;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ── NAVBAR ────────────────────────────────── */

.vx-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vx-border);
    transition: var(--vx-transition);
    padding: 0;
}

.vx-navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.vx-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--vx-text) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vx-navbar .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--vx-blue), var(--vx-blue-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
}

.vx-navbar .nav-link {
    color: var(--vx-text-light) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem !important;
    transition: var(--vx-transition);
    position: relative;
}

.vx-navbar .nav-link:hover,
.vx-navbar .nav-link.active {
    color: var(--vx-text) !important;
}

.vx-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--vx-blue);
    transition: var(--vx-transition);
    transform: translateX(-50%);
}

.vx-navbar .nav-link:hover::after,
.vx-navbar .nav-link.active::after {
    width: 60%;
}

.vx-btn-nav {
    background: var(--vx-blue);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--vx-radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--vx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.vx-btn-nav:hover {
    background: var(--vx-blue-dark);
    box-shadow: var(--vx-shadow-brand);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── BUTTONS ──────────────────────────────── */

.vx-btn-primary {
    background: linear-gradient(135deg, var(--vx-blue), var(--vx-blue-dark));
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--vx-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--vx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.vx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--vx-shadow-brand);
    color: #fff;
    text-decoration: none;
}

.vx-btn-primary:active {
    transform: translateY(0);
}

.vx-btn-outline {
    background: transparent;
    color: var(--vx-text);
    border: 2px solid var(--vx-border-light);
    padding: 0.8rem 2rem;
    border-radius: var(--vx-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--vx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.vx-btn-outline:hover {
    border-color: var(--vx-blue);
    color: var(--vx-blue);
    text-decoration: none;
}

.vx-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ── CARDS ────────────────────────────────── */

.vx-card {
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-lg);
    padding: 2rem;
    transition: var(--vx-transition);
    height: 100%;
}

.vx-card:hover {
    border-color: var(--vx-border-light);
    background: var(--vx-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--vx-shadow);
}

.vx-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--vx-blue-glow);
    color: var(--vx-blue);
}

.vx-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--vx-text);
}

.vx-card p {
    color: var(--vx-text-muted);
    font-size: 0.925rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── SECTIONS ─────────────────────────────── */

.vx-section {
    padding: 6rem 0;
    position: relative;
}

.vx-section-alt {
    background: var(--vx-bg-alt);
}

.vx-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    text-align: center;
}

.vx-section-subtitle {
    color: var(--vx-text-muted);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--vx-blue-glow);
    color: var(--vx-blue);
    padding: 0.375rem 1rem;
    border-radius: var(--vx-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ── FOOTER ───────────────────────────────── */

.vx-footer {
    background: var(--vx-bg-alt);
    border-top: 1px solid var(--vx-border);
    padding: 4rem 0 2rem;
}

.vx-footer h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--vx-text);
}

.vx-footer-link {
    color: var(--vx-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: var(--vx-transition);
}

.vx-footer-link:hover {
    color: var(--vx-blue);
}

.vx-footer-bottom {
    border-top: 1px solid var(--vx-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: var(--vx-text-muted);
    font-size: 0.85rem;
}

.vx-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    color: var(--vx-text-muted);
    font-size: 1.1rem;
    transition: var(--vx-transition);
    text-decoration: none;
    margin-right: 0.5rem;
}

.vx-social-link:hover {
    background: var(--vx-blue);
    border-color: var(--vx-blue);
    color: #fff;
}

/* ── ANIMATIONS ──────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--vx-blue-glow); }
    50% { box-shadow: 0 0 40px var(--vx-blue-glow-strong); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.vx-animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.vx-animate-delay-1 { animation-delay: 0.1s; }
.vx-animate-delay-2 { animation-delay: 0.2s; }
.vx-animate-delay-3 { animation-delay: 0.3s; }
.vx-animate-delay-4 { animation-delay: 0.4s; }
.vx-animate-delay-5 { animation-delay: 0.5s; }
.vx-animate-delay-6 { animation-delay: 0.6s; }

/* ── MOBILE HAMBURGER ──────────────────────── */

.navbar-toggler {
    border: 1px solid var(--vx-border-light);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background: rgba(10, 10, 10, 0.98);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid var(--vx-border);
        margin-top: 0.5rem;
    }

    .navbar-collapse .nav-link {
        padding: 0.75rem 0 !important;
    }

    .navbar-collapse .vx-btn-nav {
        margin-top: 0.5rem;
        display: inline-flex;
    }
}

/* ── RESPONSIVE ───────────────────────────── */

@media (max-width: 768px) {
    .vx-section {
        padding: 4rem 0;
    }

    .vx-section-title {
        font-size: 1.75rem;
    }

    .vx-section-subtitle {
        font-size: 1rem;
    }
}

/* ── SCROLLBAR ────────────────────────────── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vx-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--vx-border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vx-text-muted);
}

/* ── FLASH MESSAGES ──────────────────────── */

.vx-flash {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    min-width: 320px;
    max-width: 560px;
}

/* ================================================
   MELHORIAS APPLE HIG — Adicionadas na migração
   ================================================ */

/* Tipografia fluida Apple HIG */
.vx-hero-title,
.vx-plans-hero h1,
.vx-section-title {
    font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Touch targets mínimos 44px */
.vx-btn-nav,
.vx-btn-primary,
.vx-btn-outline,
.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Foco acessível Apple HIG */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--vx-blue, #0A84FF);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== NAVBAR responsiva ===== */
@media (max-width: 991px) {
    .vx-navbar .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 0.5px solid var(--vx-border);
        padding: 1rem;
        border-radius: 0 0 16px 16px;
    }

    .vx-navbar .nav-link {
        padding: 0.75rem 0.5rem;
        border-bottom: 0.5px solid var(--vx-border);
    }

    .vx-navbar .nav-link:last-child {
        border-bottom: none;
    }

    .vx-btn-nav {
        width: 100%;
        justify-content: center;
        margin-top: 0.75rem;
    }
}

/* ===== Mobile: hero ===== */
@media (max-width: 767px) {
    .vx-hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .vx-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vx-hero-actions .vx-btn-primary,
    .vx-hero-actions .vx-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .vx-stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ===== Mobile: features grid ===== */
@media (max-width: 575px) {
    .vx-features-grid,
    .vx-modules-grid {
        grid-template-columns: 1fr;
    }

    .vx-plan-cards,
    .vx-pricing-grid {
        grid-template-columns: 1fr;
    }

    .vx-footer .row {
        gap: 2rem;
    }
}

/* ===== Color scheme para elementos nativos ===== */
:root {
    color-scheme: dark;
}

/* ===== Scrollbar Apple-style ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(84, 84, 88, 0.5);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(84, 84, 88, 0.8);
}

/* ===== Flash messages corrigidas para dark ===== */
.alert {
    border-radius: 12px;
    border: 0.5px solid;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(48, 209, 88, 0.12) !important;
    border-color: rgba(48, 209, 88, 0.3) !important;
    color: #30D158 !important;
}

.alert-danger, .alert-error {
    background: rgba(255, 69, 58, 0.12) !important;
    border-color: rgba(255, 69, 58, 0.3) !important;
    color: #FF453A !important;
}

.alert-warning {
    background: rgba(255, 159, 10, 0.12) !important;
    border-color: rgba(255, 159, 10, 0.3) !important;
    color: #FF9F0A !important;
}

.alert-info {
    background: rgba(10, 132, 255, 0.12) !important;
    border-color: rgba(10, 132, 255, 0.3) !important;
    color: #0A84FF !important;
}
