/* ============================================
   VORTEX LAB - Design System & Styles
   ============================================ */

:root {
    --color-primary: #00ff88;
    --color-primary-dark: #00D4AA;
    --color-primary-rgb: 0, 255, 136;
    --color-bg-primary: #0A0A0A;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1A1A1A;
    --color-bg-card: #151515;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0B0B0;
    --color-text-tertiary: #707070;
    --color-border: #2A2A2A;
    --color-border-light: #404040;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Quicksand', sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-6xl: 4.5rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --lh-tight: 1.1;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(var(--color-primary-rgb), 0.3);
    --shadow-glow-lg: 0 0 80px rgba(var(--color-primary-rgb), 0.4);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --z-fixed: 300;
    --z-modal: 400;
    --z-cursor: 1000;
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    line-height: var(--lh-normal);
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

/* WhatsApp HoverButton Effect */
.btn-whatsapp {
    --circle-start: #25D366;
    --circle-end: #128C7E;
    position: relative;
    isolation: isolate;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(37, 211, 102, 0.15);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    box-shadow:
        inset 0 0 0 1px rgba(37, 211, 102, 0.3),
        inset 0 0 16px 0 rgba(37, 211, 102, 0.15),
        inset 0 -3px 12px 0 rgba(37, 211, 102, 0.2),
        0 1px 3px 0 rgba(0, 0, 0, 0.5),
        0 4px 12px 0 rgba(0, 0, 0, 0.45);
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.btn-whatsapp:active::before {
    transform: scale(0.975);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

/* Círculos de efeito hover */
.btn-whatsapp .hover-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-whatsapp .hover-circle.fade-in {
    opacity: 0.75;
}

.btn-whatsapp .hover-circle.fade-out {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-md);
}

.btn-full {
    width: 100%;
}

/* Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    display: none;
}

@media (hover: hover) and (pointer: fine) {

    .cursor,
    .cursor-follower {
        display: block;
    }

    .cursor {
        width: 8px;
        height: 8px;
        background: var(--color-primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .cursor-follower {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(var(--color-primary-rgb), 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.15s ease;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: var(--space-lg);
}

.preloader-logo img {
    width: 200px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.3s ease-out;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.5);
    border-color: var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header.menu-open {
    background: rgba(10, 10, 10, 0.9);
}

@media (min-width: 768px) {
    .header {
        border-radius: var(--radius-md);
    }

    .header.scrolled {
        top: 1rem;
        max-width: 64rem;
        box-shadow: var(--shadow-lg);
    }
}

/* Header Nav Container */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1rem;
    transition: all 0.3s ease-out;
}

@media (min-width: 768px) {
    .header-nav {
        height: 3rem;
    }

    .header.scrolled .header-nav {
        padding: 0 0.5rem;
    }
}

/* Logo */
.logo {
    flex-shrink: 0;
    z-index: calc(var(--z-modal) + 1);
}

.logo img {
    height: 28px;
    width: auto;
    max-width: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .logo img {
        height: 32px;
    }
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Button small variant */
.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: var(--fs-sm);
    height: 2.25rem;
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    z-index: calc(var(--z-modal) + 1);
    transition: all var(--transition-base);
}

.menu-toggle:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* Animated Menu Toggle Icon */
.menu-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle.active .menu-toggle-icon {
    transform: rotate(-45deg);
}

.menu-path-spiral {
    stroke-dasharray: 12 63;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .menu-path-spiral {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    animation: menuFadeIn 0.3s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mobile-menu-links {
    display: grid;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}