/* --- Variáveis baseadas no theme.ts do React Native --- */
:root {
    --color-background: #111827;
    /* gray-900 */
    --color-surface: #1F2937;
    /* gray-800 */
    --color-primary: #EAB308;
    /* yellow-500 */
    --color-text: #FFFFFF;
    --color-text-secondary: #9CA3AF;
    /* gray-400 */
    --color-danger: #EF4444;
    --color-success: #10B981;
    --border-radius: 12px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Componentes --- */
.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.btn-primary:hover {
    background-color: #ca9a00;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* --- Header & Nav --- */
header {
    background-color: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(12px)) {
    header {
        background-color: rgba(31, 41, 55, 0.98);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 101;
}

.mobile-menu-toggle:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    text-align: left;
    background: radial-gradient(circle at center, #1f2937 0%, #111827 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 0 40px 0;
}

/* --- Features & Grid --- */
.features,
.intro,
.reviews,
.faq {
    padding: 80px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #374151;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* --- Formulários --- */
.form-group {
    margin-bottom: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: #374151;
    border: 1px solid #4B5563;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2),
        0 4px 12px rgba(234, 179, 8, 0.15);
    transform: translateY(-1px);
}

/* --- Footer --- */
footer {
    background-color: var(--color-surface);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #374151;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-text-secondary);
}

.copyright {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* --- FAQ Accordion Styling --- */
details.card {
    cursor: pointer;
    overflow: hidden;
}

details summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
}

details summary::marker,
details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details p {
    margin-top: 10px;
    color: var(--color-text-secondary);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDADE --- */

/* Tablet (Breakpoint 768px) */
@media (max-width: 768px) {

    .grid-3,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
        padding: 80px 30px 30px;
        flex-direction: column;
        gap: 20px;
        z-index: 100;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        padding-left: 10px;
        border-color: var(--color-primary);
    }

    nav .btn-primary {
        display: none;
    }
}

/* Mobile (Breakpoint 360px - Pequeno) */
@media (max-width: 480px) {

    /* Abrangendo 360px */
    .container {
        padding: 0 16px;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
}

/* --- UTILITY CLASSES --- */

/* Hero Layout */
.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-mockup {
    flex: 1.5;
    min-width: 300px;
    text-align: center;
}

/* Hero Video Mockup */
.mockup-video {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Flex Utilities */
.flex-responsive {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.flex-gap-40 {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.text-center {
    text-align: center;
}

/* Animation Classes */
.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-left-delay-1 {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.animate-slide-left-delay-2 {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

/* Button Utilities */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-primary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

/* Image Styling */
.rounded-shadow {
    width: 100%;
    border-radius: 12px;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Spacing */
.mb-20 {
    margin-bottom: 20px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* Typography */
.text-large {
    font-size: 1.1rem;
}

.text-secondary {
    color: var(--color-text-secondary);
}

/* --- MODERN ANIMATIONS & EFFECTS --- */

/* Gradient Animation for Hero */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Float Animation for Mockups */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.1);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #EAB308 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.2);
}

/* Mockup Container with Float */
.mockup-float {
    animation: float 6s ease-in-out infinite;
}

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.8) 100%);
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0.5;
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
.btn,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Button Glow Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Parallax Background */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* --- ACCESSIBILITY --- */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mockup-float {
        animation: none;
    }

    .hero-gradient::before {
        animation: none;
    }
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-background);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}