/* =====================================================
   PONTE IA - ULTRA PROFESSIONAL DESIGN SYSTEM
   Performance-First | Mobile-First | 60fps Guaranteed
===================================================== */

/* ===== PERFORMANCE CRITICAL CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GPU Acceleration for all animated elements */
.hero, .section, .btn, .card, .nav {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth 60fps animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* ===== ULTRA-MODERN TYPOGRAPHY SYSTEM ===== */
:root {
    /* Typography Scale - Perfect Ratios */
    --font-base: 16px;
    --font-scale: 1.250; /* Major Third */
    
    /* Font Sizes - Fluid & Responsive */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3.125rem);
    --text-5xl: clamp(2.75rem, 2.35rem + 2vw, 4rem);
    
    /* Line Heights - Optimal Readability */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
}

/* ===== ULTRA-MODERN COLOR SYSTEM ===== */
:root {
    /* Primary Colors - Enhanced Contrast */
    --color-primary: #99F443;
    --color-primary-light: #B3FF66;
    --color-primary-dark: #7FCF39;
    --color-primary-950: #4A7A22;
    
    /* Secondary Colors */
    --color-secondary: #EC449B;
    --color-secondary-light: #FF5DAF;
    --color-secondary-dark: #D93D88;
    
    /* Neutral Colors - Perfect Contrast Ratios */
    --color-black: #000000;
    --color-gray-950: #0A0A0A;
    --color-gray-900: #171717;
    --color-gray-800: #262626;
    --color-gray-700: #404040;
    --color-gray-600: #525252;
    --color-gray-500: #737373;
    --color-gray-400: #A3A3A3;
    --color-gray-300: #D4D4D4;
    --color-gray-200: #E5E5E5;
    --color-gray-100: #F5F5F5;
    --color-white: #FFFFFF;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
}

/* ===== ULTRA-PRECISE SPACING SYSTEM ===== */
:root {
    /* Spacing Scale - 8pt Grid System */
    --space-0: 0;
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    --space-40: 10rem;     /* 160px */
    --space-48: 12rem;     /* 192px */
    --space-56: 14rem;     /* 224px */
    --space-64: 16rem;     /* 256px */
}

/* ===== ULTRA-SMOOTH TRANSITIONS ===== */
:root {
    /* Easing Functions - Natural Motion */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Duration */
    --duration-instant: 75ms;
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
}

/* ===== SHADOWS - ULTRA REALISTIC ===== */
:root {
    /* Elevation System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    
    /* Colored Shadows - Brand */
    --shadow-primary: 0 10px 40px -10px rgba(153, 244, 67, 0.3);
    --shadow-secondary: 0 10px 40px -10px rgba(236, 68, 155, 0.3);
}

/* ===== BORDER RADIUS - MODERN ===== */
:root {
    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-base: 0.5rem;   /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-2xl: 2rem;      /* 32px */
    --radius-full: 9999px;
}

/* ===== CONTAINER SYSTEM - PERFECT ALIGNMENT ===== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Responsive Containers */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* ===== ULTRA-MODERN GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: var(--space-6);
}

/* Auto-fit Grid (Perfect for cards) */
.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Responsive Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Gap Utilities */
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* ===== ULTRA-SMOOTH ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp var(--duration-base) var(--ease-out) both;
}

.animate-fade-in {
    animation: fadeIn var(--duration-base) var(--ease-out) both;
}

.animate-scale-in {
    animation: scaleIn var(--duration-base) var(--ease-out) both;
}

.animate-slide-in-right {
    animation: slideInRight var(--duration-base) var(--ease-out) both;
}

/* Delay Utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===== ULTRA-PROFESSIONAL BUTTONS ===== */
.btn {
    /* Base */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    
    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-none);
    text-decoration: none;
    white-space: nowrap;
    
    /* Spacing */
    padding: var(--space-3) var(--space-6);
    
    /* Visual */
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    
    /* Interaction */
    cursor: pointer;
    user-select: none;
    transition: all var(--duration-fast) var(--ease-out);
    
    /* Performance */
    will-change: transform;
    transform: translateZ(0);
}

/* Button Sizes */
.btn-sm {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
}

.btn-lg {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

.btn-xl {
    font-size: var(--text-xl);
    padding: var(--space-5) var(--space-10);
}

/* Button Primary */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(153, 244, 67, 0.5);
}

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

/* Button Secondary */
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(236, 68, 155, 0.5);
}

/* Button Outline */
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Button Outline Pink */
.btn-outline-pink {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-outline-pink:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

/* Button Icon */
.btn i {
    width: 20px;
    height: 20px;
}

.btn-lg i {
    width: 24px;
    height: 24px;
}

/* ===== ULTRA-MODERN CARDS ===== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    will-change: transform;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(153, 244, 67, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

/* Card Header */
.card-header {
    margin-bottom: var(--space-6);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(153, 244, 67, 0.15), rgba(153, 244, 67, 0.05));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.card-icon i {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.card-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-300);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Critical Rendering Path Optimization */
.hero,
.section {
    contain: layout style paint;
}

/* Font Loading Optimization */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--color-black);
    }
    
    .card {
        border-width: 2px;
    }
}
