/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

:root {
    --primary: #6a3ea7;
    --secondary: #6a43ce;
    --accent: #4B2E83;
    --background: #F5F3FA;
    --foreground: #1E1E2F;
    --muted: #717182;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Mesh de fundo animado, sutil, sem nova cor */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(106, 62, 167, 0.10), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(102, 64, 209, 0.10), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(75, 46, 131, 0.08), transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(255, 215, 0, 0.05), transparent 35%);
    background-size: 200% 200%;
    animation: meshDrift 30s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% { background-position: 0% 0%, 100% 0%, 50% 100%, 100% 100%; }
    100% { background-position: 10% 15%, 90% 10%, 45% 85%, 85% 80%; }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

/* Header */
.header {
    background: linear-gradient(270deg, #6a3ea7, #4B2E83, #6640d1);
    background-size: 400% 400%;
    animation: headerGlow 8s ease infinite;
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
}

@keyframes headerGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    z-index: 1;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ── 2) Navegação — centralizada de verdade na tela,
   independente das larguras de logo e ações ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav button {
    font-size: medium;
}

.nav-link {
    color: var(--white);
    font-weight: 400;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 600;
}

/* ── 3) Ações: login/cadastro, tema, hambúrguer ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    z-index: 1;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* A cópia dentro do dropdown só existe visualmente em telas mobile (ver media query) */
.auth-area--mobile {
    display: none;
}

.btn-outline,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.6s ease;
}

.btn-outline:hover,
.btn-primary:hover {
    background-color: white;
    color: #6a3ea7;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.6s ease;
    text-decoration: none;
}

.btn-user:hover {
    background-color: white;
    color: #6a3ea7;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-sair {
    background-color: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff6b35;
}

.btn-sair:hover {
    background-color: rgba(255, 0, 0, 0.77);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    color: var(--white);
    transform: 1s ease;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
}

/* Hero Section */
.hero-section {
    padding: 4rem 1.5rem;
    display: flex;
    height: 85vh;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title-wrapper {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-title-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary), #8b5fc7, var(--primary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.hero-buttons a {
    overflow: hidden;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(108, 74, 182, 0.3);
    transition: all 0.3s;
    overflow: hidden;
    text-align: center;
    font-size: 13px;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(108, 74, 182, 0.3);
    }
    50% {
        box-shadow: 0 10px 35px rgba(108, 74, 182, 0.55), 0 0 0 6px rgba(106, 62, 167, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-hero-primary {
        animation: none;
    }
}

.btn-hero-primary:hover {
    background-color: #4B2E83;
    transform: scale(1.015);
    animation-play-state: paused;
}

.btn-hero-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: auto;
}

.decoration-circle {
    position: absolute;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(60px);
}

.decoration-1 {
    background-color: var(--secondary);
    bottom: -1.5rem;
    right: -1.5rem;
}

.decoration-2 {
    background-color: var(--primary);
    top: -1.5rem;
    left: -1.5rem;
}

/* Floating shapes - toque moderno */
.floating-shape {
    position: absolute;
    border-radius: 30%;
    background: linear-gradient(135deg, rgba(106, 62, 167, 0.18), rgba(102, 64, 209, 0.12));
    pointer-events: none;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 70px;
    height: 70px;
    top: -2rem;
    right: 15%;
    border-radius: 50%;
    animation-duration: 7s;
}

.shape-2 {
    width: 45px;
    height: 45px;
    bottom: 2rem;
    left: -1.2rem;
    border-radius: 12px;
    transform: rotate(20deg);
    animation-duration: 9s;
    animation-delay: 1s;
}

.shape-3 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: -0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    opacity: 0.35;
    animation-duration: 6s;
    animation-delay: 0.5s;
}

.shape-4 {
    width: 18px;
    height: 18px;
    top: 15%;
    left: 30%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #fbbf24);
    opacity: 0.4;
    animation-duration: 5s;
    animation-delay: 1.5s;
}

.shape-5 {
    width: 55px;
    height: 55px;
    bottom: -1.5rem;
    right: 25%;
    border-radius: 16px;
    transform: rotate(-15deg);
    background: linear-gradient(135deg, rgba(75, 46, 131, 0.15), rgba(106, 62, 167, 0.08));
    animation-duration: 10s;
    animation-delay: 2s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(12deg);
    }
}

/* ===== Scroll Fade-in ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger interno dos grids */
[data-animate] .about-highlight,
[data-animate] .feature-card,
[data-animate] .plan-card,
[data-animate] .faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view .about-highlight,
[data-animate].in-view .feature-card,
[data-animate].in-view .plan-card,
[data-animate].in-view .faq-item {
    opacity: 1;
    transform: translateY(0);
}

[data-animate].in-view .about-highlight:nth-child(1) { transition-delay: 0.05s; }
[data-animate].in-view .about-highlight:nth-child(2) { transition-delay: 0.15s; }
[data-animate].in-view .about-highlight:nth-child(3) { transition-delay: 0.25s; }

[data-animate].in-view .feature-card:nth-child(1) { transition-delay: 0.05s; }
[data-animate].in-view .feature-card:nth-child(2) { transition-delay: 0.18s; }
[data-animate].in-view .feature-card:nth-child(3) { transition-delay: 0.31s; }

[data-animate].in-view .plan-card:nth-child(1) { transition-delay: 0.05s; }
[data-animate].in-view .plan-card:nth-child(2) { transition-delay: 0.18s; }
[data-animate].in-view .plan-card:nth-child(3) { transition-delay: 0.31s; }

[data-animate].in-view .plan-highlighted {
    transform: scale(1.03);
}

[data-animate].in-view .faq-item:nth-child(1) { transition-delay: 0.05s; }
[data-animate].in-view .faq-item:nth-child(2) { transition-delay: 0.13s; }
[data-animate].in-view .faq-item:nth-child(3) { transition-delay: 0.21s; }
[data-animate].in-view .faq-item:nth-child(4) { transition-delay: 0.29s; }

/* About Section */
.about-section {
    padding: 5rem 1.5rem;
    background-color: var(--background);
}

.about-container {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 4rem;
    align-items: center;
    text-align: left;
    margin-top: 1rem;
}

.about-story-content {
    position: relative;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(106, 62, 167, 0.09);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-story-content h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    color: var(--foreground);
    margin-bottom: 1.25rem;
    max-width: 650px;
}

.about-story .about-text {
    max-width: 620px;
}

.about-quote {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding: 1.2rem 1.3rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 1rem 1rem 0;
    background: linear-gradient(135deg, rgba(106, 62, 167, 0.08), rgba(102, 64, 209, 0.04));
}

.about-quote-mark {
    font-size: 2.8rem;
    line-height: 0.8;
    color: var(--primary);
    font-weight: 700;
}

.about-quote p {
    color: var(--foreground);
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 500;
}

.about-carousel {
    position: relative;
    height: 430px;
    border-radius: 1.75rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 25px 55px rgba(48, 30, 72, 0.22);
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(20, 12, 30, 0.78) 0%, rgba(20, 12, 30, 0.32) 28%, transparent 58%);
}

.about-carousel-track,
.about-slide {
    position: absolute;
    inset: 0;
}

.about-slide {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 6s ease;
    pointer-events: none;
}

.about-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slide-info {
    position: absolute;
    z-index: 3;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 3.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.about-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd700;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.about-carousel-tag {
    position: absolute;
    z-index: 3;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 12, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-carousel-btn {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.88);
    color: #4B2E83;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.about-carousel-btn:hover {
    background: var(--primary);
    color: white;
}

.about-carousel-prev { left: 1rem; }
.about-carousel-next { right: 1rem; }
.about-carousel-prev:hover { transform: translateY(-50%) scale(1.08); }
.about-carousel-next:hover { transform: translateY(-50%) scale(1.08); }

.about-carousel-footer {
    position: absolute;
    z-index: 4;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-carousel-dots {
    display: flex;
    gap: 0.45rem;
}

.about-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

.about-dot.active {
    width: 24px;
    border-radius: 999px;
    background: #ffd700;
}

.about-carousel-count {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.about-carousel-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.about-carousel-deco.deco-1 {
    width: 7rem;
    height: 7rem;
    background: var(--secondary);
    bottom: -1.75rem;
    left: -1.75rem;
}

.about-carousel-deco.deco-2 {
    width: 5rem;
    height: 5rem;
    background: #ffd700;
    top: -1.5rem;
    right: -1.5rem;
    opacity: 0.35;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    margin: 0.6rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #ffd700);
    transition: width 0.8s ease 0.2s;
}

[data-animate].in-view .section-title::after {
    width: 80px;
}

.about-text {
    font-size: 1.125rem;
    color: var(--foreground);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-highlight {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    box-shadow: 0 8px 20px rgba(106, 62, 167, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(106, 62, 167, 0.15);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.5s ease, box-shadow 0.4s ease;
}

.about-highlight:hover .highlight-icon {
    transform: rotate(-12deg) scale(1.1);
    box-shadow: 0 0 20px rgba(106, 62, 167, 0.4);
}

.about-highlight h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.4rem;
}

.about-highlight p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Features Section */
/* Features Section */
.features-section {
    padding: 5rem 1.5rem;
    background-color: var(--white);
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    cursor: pointer;
}

a {
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background-color: #6a3ea7;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(106, 62, 167, 0.5);
}

.feature-icon svg {
    stroke: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.feature-description {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-description {
    height: 80px;
    opacity: 1;
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-expand-panel {
    display: none; /* escondido em desktop — hover mostra .feature-description */
}

/* ===== Mobile/Tablet: touch interaction ===== */
@media (hover: none) and (pointer: coarse) {

    /* Desliga hover de desktop completamente */
    .feature-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-color: inherit;
    }

    .feature-card:hover .feature-icon {
        transform: none;
        box-shadow: none;
    }

    /* Cards touch: layout diferente, mais compacto */
    .feature-card {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .feature-card:active {
        transform: scale(0.97);
    }

    /* Esconde a descrição curta e mostra painel expandido ao clicar */
    .feature-description {
        display: none;
    }

    .feature-expand-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.05s;
    }

    .feature-card.expanded {
        border-color: #ffd700;
        box-shadow: 0 12px 35px rgba(106, 62, 167, 0.2);
        transform: translateY(-4px);
    }

    .feature-card.expanded .feature-expand-panel {
        max-height: 200px;
        opacity: 1;
    }

    .feature-expand-text {
        font-size: 0.88rem;
        color: #555;
        line-height: 1.6;
        margin-bottom: 1rem;
        margin-top: 0.75rem;
        display: block;
    }

    .feature-expand-btn {
        display: inline-block;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        padding: 0.65rem 1.4rem;
        border-radius: 9999px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .feature-expand-btn:active {
        transform: scale(0.96);
    }

    .feature-expand-btn--disabled {
        background: #ccc;
        color: #888;
        cursor: default;
        pointer-events: none;
    }

}

/* Feature "Em breve" */
.feature-soon {
    opacity: 0.75;
    cursor: default;
}

.feature-soon:hover {
    transform: translateY(-6px) scale(1.01);
}

.soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* Plans Section */
.plans-section {
    padding: 5rem 1.5rem;
    background-color: var(--background);
}

.plans-container {
    max-width: 1280px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan-card {
    background-color: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-free {
    border: 2px solid #6a3ea7;
    animation: purpleGlow 4s ease-in-out infinite;
}

@keyframes purpleGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 10px 45px rgba(106, 62, 167, 0.45), 0 10px 30px rgba(0, 0, 0, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-free {
        animation: none;
    }
}

.plan-free:hover {
    animation-play-state: paused;
}

.plan-premium {
    border: 2px solid #FFD700
}

.plan-highlighted {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
    animation: goldPulse 4s ease-in-out infinite;
}

/* Dourado sobre fundo claro/roxo tem mais contraste que o roxo do
   plan-free ou o roxo+dourado do plan-super, então usamos uma opacidade
   menor aqui para o brilho parecer igualmente forte nos três cards. */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.22), 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-highlighted {
        animation: none;
    }
}

.plan-highlighted:hover {
    transform: translateY(-10px) scale(1.03);
    animation-play-state: paused;
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ffd700;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .popular-badge {
        animation: none;
    }
}

@property --angulo {
  syntax: '<angle>';
  initial-value: 45deg;
  inherits: false;
}

.plan-super {
    border: 2px solid transparent; 
    border-radius: 1.5rem;
    background-image: linear-gradient(var(--white), var(--white)), 
                      linear-gradient(var(--angulo), #6640d1, #ffd700);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: girarBorda 1.5s linear infinite, superGlow 5s ease-in-out infinite;
}

@keyframes superGlow {
    0%, 100% { box-shadow: -8px 10px 32px rgba(102, 64, 209, 0.32), 8px 10px 32px rgba(255, 215, 0, 0.28), 0 10px 30px rgba(0,0,0,0.12); }
    50%       { box-shadow: -8px 10px 42px rgba(102, 64, 209, 0.45), 8px 10px 42px rgba(255, 215, 0, 0.4), 0 10px 30px rgba(0,0,0,0.12); }
}

@media (prefers-reduced-motion: reduce) {
    .plan-super {
        animation: none;
    }
}

.plan-super:hover {
    animation-play-state: paused;
}

@keyframes girarBorda {
  to {
    --angulo: 405deg; /* Mudei para 405deg (45 + 360) para o looping dar uma volta perfeita */
  }
}

.plan-icon {
    width: 80px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.period {
    font-size: 0.875rem;
    opacity: 0.7;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.plan-features li span {
    font-size: 0.875rem;
}

.plan-button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-free {
    background-color: #6640d1;
    color: var(--white);
}

.btn-free:hover {
    background-color: #6a3ea7;
}

.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: var(--white);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.btn-super {
    background: linear-gradient(270deg, #f59e0b, #d3610a, #5932a5, #6640d1);
    background-size: 300% 300%;
    animation: headerGlow 3s ease infinite;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-super::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}

.btn-super:hover {
    background: linear-gradient(270deg, #cd870d, #a14c0a, #332058, #5333a9);
    background-size: 300% 300%;
    animation: headerGlow 3s ease infinite;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1.5rem;
    background-color: var(--white);
}

.faq-container {
    max-width: 768px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--white);
    border: 2px solid rgba(108, 74, 182, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    stroke: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1rem;
}

.faq-answer p {
    color: var(--muted);
    font-size: 1rem;
}

/* FOOTER */

.footer {
    /*background: linear-gradient(135deg, #6a3ea7, #4B2E83);*/
    background: linear-gradient(270deg, #6a3ea7, #4B2E83, #6640d1);
    background-size: 400% 400%;
    animation: headerGlow 8s ease infinite;
    color: white;
    padding-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 2rem;
}

.footer h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer p {
    opacity: 0.9;
}

/* LINKS */

.footer-links a {
    display: block;
    color: #d8d8ff;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* INSTAGRAM */

.instagram-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    transform: translateX(-7px)
}

.instagram-link img {
    width: 28px;
}

.instagram-link:hover {
    transform: translate(-7px, -2px);
    opacity: 0.9;
}

/* PARTE DE BAIXO */

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════
   TABLET (≤1000px)
   2 estruturas: logo | [ações: nav-hambúrguer + tema + login/cadastro]
   O dropdown contém SOMENTE os links de navegação.
   Login, Cadastrar e o botão de tema continuam sempre visíveis,
   fora da janela.
   ═══════════════════════════════════════════════ */
@media (max-width: 1000px) {

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .header-actions {
        gap: 0.65rem;
    }

    .buttons-navbar {
        padding: 0;
        margin: 0;
    }

    .auth-area {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    /* Dropdown — só os links de navegação */
    .header-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        transform: none;
        margin-top: 12px;

        width: 250px;

        background: linear-gradient(270deg, #6a3ea7, #4B2E83, #6640d1);
        background-size: 400% 400%;
        animation: headerGlow 8s ease infinite;

        border-radius: 16px;
        padding: 0.5rem;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        overflow: hidden;

        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .header-nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header-nav .nav-link {
        width: 100%;
        text-align: start;
        padding: 0.7rem 1rem;
        border-radius: 10px;
    }

    .header-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.12);
    }

    /* No tablet, login/cadastro ficam visíveis fora do dropdown — a cópia interna some */
    .auth-area--mobile {
        display: none;
    }
}

/* ═══════════════════════════════════════════════
   MOBILE (≤768px)
   2 estruturas: logo | [tema + hambúrguer]
   O dropdown agora contém a navegação E login/cadastro,
   pois não cabem mais como botões visíveis no header.
   O botão de tema continua sempre visível, fora da janela,
   ao lado do hambúrguer.
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    .header-actions {
        gap: 0.5rem;
    }

    /* Login/Cadastrar saem do header visível e entram no dropdown */
    .header-actions > .auth-area {
        display: none;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(270deg, #6a3ea7, #4B2E83, #6640d1);
        background-size: 400% 400%;
        animation: headerGlow 8s ease infinite;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
        border-radius: 0 0 20px 20px;
        padding: 0.5rem 0 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .header-nav .nav-link {
        width: 100%;
        text-align: start;
        padding: 12px 24px;
    }

    .header-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.12);
    }

    .header-nav.active {
        transform: translateY(4px);
        opacity: 1;
        pointer-events: auto;
    }

    /* Login/Cadastrar aparecem dentro do dropdown, como parte da lista */
    .auth-area--mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        padding: 12px 20px 4px;
        margin-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.18);
    }

    .auth-area--mobile .btn-primary {
        justify-content: center;
        width: 100%;
    }

    .auth-area--mobile .btn-user {
        justify-content: center;
        width: 100%;
    }

    .auth-area--mobile span {
        color: white;
        font-weight: 500;
        padding: 0 4px;
    }

    .mobile-menu-btn { display: block; }

    /* Header mantém o mesmo padding do desktop — sem encolher no mobile */

    /* Hero */
    .hero-section {
        padding: 3rem 1.25rem 2.5rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 85%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.7rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    /* About */
    .about-section {
        padding: 3.5rem 1.25rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .about-story-content {
        text-align: center;
    }

    .about-story-content h3,
    .about-story .about-text {
        margin-left: auto;
        margin-right: auto;
    }

    .about-quote {
        text-align: left;
    }

    .about-carousel {
        height: min(68vw, 400px);
        min-height: 290px;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    /* Features */
    .features-section {
        padding: 3.5rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Plans */
    .plans-section {
        padding: 3.5rem 1.25rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-highlighted {
        transform: scale(1);
    }

    .plan-highlighted:hover {
        transform: translateY(-8px) scale(1);
        animation-play-state: paused;
    }

    .plan-card {
        padding: 1.75rem 1.5rem;
    }

    /* FAQ */
    .faq-section {
        padding: 3.5rem 1.25rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Misc */
    .floating-shape { display: none; }
}

/* TABLET: layout intermediário */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-highlight:last-child {
        grid-column: span 2;
        max-width: 60%;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* O item de grid de verdade é o <a> que envolve o .feature-card —
       é nele que o span de colunas precisa ser aplicado para funcionar */
    .features-grid > a:last-child {
        grid-column: span 2;
    }

    /* Mesmo tamanho para os 3 cards (sem % em relação à tela) e
       centralizado dentro do espaço de 2 colunas do último card */
    .features-grid .feature-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .plan-highlighted {
        transform: scale(1.02);
    }

    .plans-grid .plan-card:last-child {
        grid-column: span 2;
        max-width: 55%;
        margin: 0 auto;
    }
}

.footer-brand p {
    transform: translateY(-10px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

#Inicio {
    scroll-margin-top: 100px;
}

#Sobre {
    scroll-margin-top: 65px;
}

#Funcionalidades {
    scroll-margin-top: 70px;
}

#Planos {
    scroll-margin-top: -65px;
}

#FAQ {
    scroll-margin-top: 72px;
}

/* Botão voltar ao topo */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a3ea7, #4B2E83);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding-bottom: 7px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* quando aparecer */
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

/* hover */
#backToTop:hover {
    transform: scale(1.1);
}

.buttons-navbar {
    color: #ff6b35;
}

.buttons-navbar:hover {
    color: var(--white);
    transform: 1s ease;
}

.auth-area span {
    color: white;
    font-weight: 500;
}

.section-block {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-lead {
    max-width: 620px;
    margin: -0.45rem 0 1.25rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}


[data-theme="dark"] .about-lead {
    color: #d7d3df;
}
