* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ec4899;
    --primary-light: #f9a8d4;
    --primary-dark: #db2777;
    --secondary: #06b6d4;
    --secondary-light: #67e8f9;
    --secondary-dark: #0891b2;
    --purple: #a78bfa;
    --bg-primary: #0a0118;
    --bg-secondary: #1a1333;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0a0118 0%, 
        #1a1333 25%, 
        #2d1b4e 50%, 
        #1a1333 75%, 
        #0a0118 100%);
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.15), transparent 40%),
        radial-gradient(circle at 40% 70%, rgba(6, 182, 212, 0.15), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1), transparent 40%);
    animation: mesh-move 20s ease-in-out infinite;
}

@keyframes mesh-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background: rgba(10, 1, 24, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 1, 24, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899 0%, #a78bfa 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ec4899, #a78bfa, transparent);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #a78bfa);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 1, 24, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 2rem 5rem;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ec4899, #a78bfa);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f9a8d4 40%, #a78bfa 70%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ===== CARDS ===== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(236, 72, 153, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card:hover {
    transform: translateY(-15px);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 30px 60px rgba(236, 72, 153, 0.2);
}

.aula-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.portal-card:hover .card-shine {
    transform: translateX(100%);
}

.card-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.portal-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.spa-card .card-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
}

.aula-card .card-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

.card-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.card-features {
    list-style: none;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.card-features li {
    padding: 1rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.card-features li:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.card-features .check {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.aula-card .card-features .check {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.portal-card:hover .card-button::before {
    left: 100%;
}

.portal-card:hover .card-button {
    transform: translateX(8px);
    box-shadow: 0 15px 50px rgba(236, 72, 153, 0.5);
}

.aula-card .card-button {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

.aula-card:hover .card-button {
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.5);
}

.card-button .arrow {
    transition: transform 0.4s ease;
}

.portal-card:hover .card-button .arrow {
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 8rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portal-card {
        padding: 2rem;
    }

    .card-title {
        font-size: 2rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .portal-card {
        border-radius: 24px;
        padding: 1.75rem;
    }

    .card-features li {
        font-size: 0.9rem;
    }

    .card-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}