/* Design System & CSS Variables */
:root {
    /* Paleta ARIA */
    --color-primary: #55d6be;
    /* Verde-água */
    --color-accent: #f61067;
    /* Rosa Vibrante */
    --color-dark: #363537;
    /* Cinza Escuro */
    --color-highlight: #dced31;
    /* Verde-lima */
    --color-secondary: #c1cfda;
    /* Azul Acinzentado */

    /* Backgrounds e Superfícies */
    --bg-main: #1a1a1c;
    --bg-surface: rgba(54, 53, 55, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Trocchi', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Utilities */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-2 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mt-5 {
    margin-top: 6rem;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.align-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(246, 16, 103, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 16, 103, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(85, 214, 190, 0.1);
    box-shadow: 0 4px 15px rgba(85, 214, 190, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Glassmorphism */
.glass {
    background: rgba(26, 26, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 214, 190, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.logo-dot {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    padding: 0.5rem 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem var(--spacing-lg) 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero .title {
    background: linear-gradient(to right, #fff, var(--color-primary), #fff);
    background-size: 200% auto;
    animation: shine 6s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(246, 16, 103, 0.15) 0%, rgba(85, 214, 190, 0.05) 50%, rgba(26, 26, 28, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

/* About Section */
.about .container {
    align-items: stretch;
}

.about-image {
    align-self: stretch;
    min-height: 0;
    max-height: 650px;
}

/* Forms */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-feedback {
    text-align: center;
    color: var(--color-primary);
    margin-top: 1rem;
}

/* Modal */
.glass-modal {
    margin: auto;
    border: none;
    background: transparent;
    padding: 0;
    max-width: 90%;
    width: 450px;
}

.glass-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--color-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    color: #fff;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

/* Badges / Tags */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
    border: 1px solid currentColor;
}

.badge-primary {
    color: var(--color-primary);
    border-color: rgba(85, 214, 190, 0.4);
    background-color: rgba(85, 214, 190, 0.1);
}

.badge-secondary {
    color: var(--color-secondary);
    border-color: rgba(193, 207, 218, 0.3);
    background-color: transparent;
}

/* Placeholders & Highlights */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    overflow: hidden;
    padding: 0;
    min-height: 0;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    display: block;
}

.text-placeholder {
    opacity: 0.5;
}

.highlight-border {
    border: 1px solid var(--color-highlight);
    box-shadow: 0 0 20px rgba(220, 237, 49, 0.1);
}

.highlight-text {
    color: var(--color-highlight);
}

/* Ebooks */
.ebook-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.ebook-cover {
    height: 200px;
    background: rgba(85, 214, 190, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 60px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 9rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }
}

/* Swarm Background */
#swarm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}