@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --dark-bg: #0a0a0f;
    --dark-secondary: #13131a;
    --dark-accent: #1a1a24;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --border-radius: 24px;
    --border-radius-small: 16px;
    --border-radius-large: 32px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 48px rgba(139, 92, 246, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Nows-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animação de fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(19, 19, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    position: sticky;
    top: 1rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    margin: 1rem auto 0 auto;
    max-width: 1250px;
    width: calc(100% - 4rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

nav .logo {
    margin-left: 0 !important;
    margin-right: auto;
    padding-left: 1rem;
}

nav ul {
    margin-right: 0 !important;
    margin-left: auto;
    padding-right: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.9rem;
    border-radius: var(--border-radius-small);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.btn-entrar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-entrar:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    font-weight: 300;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    min-width: 180px;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    background: rgba(139, 92, 246, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    color: var(--primary);
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card:hover .card-icon {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
}

.card-icon i {
    font-size: 2rem;
}

.card:nth-child(1) .card-icon { animation-delay: 0s; }
.card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.card:nth-child(3) .card-icon { animation-delay: 1s; }
.card:nth-child(4) .card-icon { animation-delay: 1.5s; }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Calculator */
.calculator {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid var(--glass-border);
}

.calculator h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: 'Poppins', Nows-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--primary);
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.result-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 600;
    font-size: 1.2rem;
}

.result-final {
    font-size: 2rem;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark-secondary);
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                     0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.8),
                     0 0 60px rgba(139, 92, 246, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Notificações */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-small);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.notification.show {
    right: 20px;
}

.notification i {
    font-size: 1.5rem;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

/* Validação de inputs */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Responsivo */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1rem;
    }
    
    header {
        width: calc(100% - 2rem);
        max-width: 100%;
        margin: 1rem 1rem 0 1rem;
        border-radius: 16px;
    }
    
    nav {
        padding: 0 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    nav a {
        padding: 0.3rem 0.7rem;
    }
    
    .btn-entrar {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .stat-card {
        padding: 1.5rem 2rem;
        min-width: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }
    
    .card {
        padding: 2rem;
    }
    
    .calculator {
        padding: 2rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 1.5rem 1.5rem 3rem;
    }
}

