/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors */
    --blue-900: #0d2847;
    --blue-800: #122e52;
    --blue-700: #163a6a;
    --blue-600: #1a4a8a;
    --blue-500: #2360a8;
    --blue-400: #3a7ac4;
    --blue-300: #5a9ae0;
    --blue-200: #8abcf0;
    --blue-100: #c0ddf8;
    --blue-50: #e8f2fc;

    --orange-600: #d47a10;
    --orange-500: #f5911e;
    --orange-400: #f9a844;
    --orange-300: #fbbf6a;
    --orange-200: #fdd89a;
    --orange-100: #feebcb;
    --orange-50: #fff8ee;

    /* Neutrals */
    --gray-950: #0a0e14;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    /* Semantic */
    --success: #10b981;
    --surface-glass: rgba(255, 255, 255, 0.04);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gray-950);
    color: var(--gray-300);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(26, 74, 138, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(35, 96, 168, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(13, 40, 71, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   FLOATING SHAPES
   ============================================ */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--blue-500);
    top: -100px;
    right: -100px;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--blue-400);
    bottom: -50px;
    left: -50px;
    animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--blue-400);
    top: 40%;
    right: 10%;
    animation: float-3 18s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: var(--blue-300);
    top: 20%;
    left: 15%;
    animation: float-2 22s ease-in-out infinite reverse;
}

.shape-5 {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(35, 96, 168, 0.1);
    top: 60%;
    right: 25%;
    animation: float-1 30s ease-in-out infinite;
    border-radius: var(--radius-xl);
    transform: rotate(45deg);
}

.shape-6 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(35, 96, 168, 0.08);
    bottom: 20%;
    left: 30%;
    animation: float-3 24s ease-in-out infinite;
    border-radius: var(--radius-lg);
    transform: rotate(30deg);
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(5deg); }
    50% { transform: translate(-20px, -60px) rotate(-3deg); }
    75% { transform: translate(40px, -20px) rotate(4deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -50px); }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    padding: var(--space-xl) var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
}

/* ============================================
   LOGO
   ============================================ */
.logo-wrapper {
    opacity: 0;
    transform: translateY(-20px);
    animation: fade-in-down 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    transition: var(--transition-base);
}

.logo:hover {
    filter: drop-shadow(0 0 40px rgba(245, 145, 30, 0.2));
    transform: scale(1.05);
}

/* ============================================
   CONTENT
   ============================================ */
.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px 6px 12px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--blue-300);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-400);
    border-radius: 50%;
    animation: pulse-dot-blue 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot-blue {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(58, 122, 196, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(58, 122, 196, 0); }
}

/* Title */
.title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.highlight {
    background: linear-gradient(135deg, var(--blue-300), var(--blue-400), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Subtitle */
.subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.countdown-number {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.countdown-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.03);
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gray-600);
    margin-bottom: 18px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-section {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.progress-percent {
    font-size: 0.8rem;
    color: var(--orange-400);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-500), var(--orange-500));
    border-radius: var(--radius-full);
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(245, 145, 30, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    pointer-events: none;
    transition: var(--transition-base);
}

.input-wrapper:focus-within .input-icon {
    color: var(--blue-300);
}

#email-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#email-input::placeholder {
    color: var(--gray-500);
}

#email-input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(35, 96, 168, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.btn-notify {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    border: 1px solid rgba(58, 122, 196, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-notify::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
    opacity: 0;
    transition: var(--transition-base);
}

.btn-notify:hover::before {
    opacity: 1;
}

.btn-notify:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(35, 96, 168, 0.3);
    border-color: var(--blue-400);
}

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

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-base);
}

.btn-notify:hover .btn-icon {
    transform: translateX(3px);
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    color: var(--success);
    font-size: 0.85rem;
    animation: fade-in-up 0.4s ease-out;
}

.success-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.success-message.visible {
    display: flex;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition-base);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.footer-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--white);
    background: var(--surface-glass);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 400;
}

.footer-cnpj {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Number flip animation */
.countdown-number.flip {
    animation: number-flip 0.4s ease-out;
}

@keyframes number-flip {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.85); opacity: 0.5; }
    100% { transform: scaleY(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-xl);
    }

    .logo {
        height: 90px;
    }

    .countdown {
        gap: var(--space-sm);
    }

    .countdown-item {
        min-width: 55px;
    }

    .countdown-number {
        padding: var(--space-sm) var(--space-md);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn-notify {
        justify-content: center;
    }

    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 80px; height: 80px; }
}

@media (max-width: 380px) {
    .countdown-separator {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }
}

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