/* ============================================
   CSS Variables & Root Settings
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    
    /* Secondary Colors */
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    
    /* Accent Colors */
    --accent-color: #06b6d4;
    --accent-dark: #0891b2;
    
    /* Functional Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --lighter-bg: #f1f5f9;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0;
}

.top-bar-left span,
.top-bar-right a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.top-bar-right a:hover {
    color: var(--white);
}

.top-bar .divider {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    white-space: nowrap;
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-bar .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.top-bar .social-icons a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    padding: 10px 0;
}

.main-nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-text span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 8px 10px !important;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.navbar-actions .btn {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: white;
    padding-top: 10px;
    padding-bottom: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-drone-container {
    position: relative;
}

.hero-drone-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.hero-badge-floating {
    position: absolute;
    top: 10%;
    right: 5%;
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    animation: pulse 2s ease-in-out infinite;
}

.hero-stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--white);
}

.hero-stat-item p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

/* ============================================
   Como Funciona
   ============================================ */
.step-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-gradient);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    color: white;
    transform: scale(1.1);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* ============================================
   Classified Cards
   ============================================ */
.classified-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.classified-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.classified-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.classified-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.classified-badge.new {
    background: var(--success-color);
}

.classified-badge.used {
    background: var(--warning-color);
}

.classified-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.classified-body {
    padding: 20px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.pricing-body li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-body li i {
    margin-right: 10px;
}

.pricing-body li i.fa-check {
    color: var(--success-color);
}

.pricing-body li i.fa-times {
    color: var(--text-muted);
}

.pricing-body li.disabled {
    color: var(--text-muted);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    color: var(--warning-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: white;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: white;
}

.footer-brand h3 {
    margin: 0;
    font-weight: 700;
}

.footer-brand span {
    color: var(--primary-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 5px;
}

.footer-newsletter .input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .top-bar {
        font-size: 0.78rem;
    }

    .top-bar .divider {
        margin: 0 5px;
    }

    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .navbar-actions {
        margin-top: 15px;
        flex-direction: column;
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-stat-item {
        padding: 10px;
    }
    
    .hero-stat-item h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .footer-top {
        padding: 50px 0 30px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.min-vh-75 {
    min-height: 75vh;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}