/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #00ADD8;
    --primary-glow: rgba(0, 173, 216, 0.4);
    --secondary: #7c3aed;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-success: #10b981;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- UTILITIES --- */
.text-gradient {
    background: linear-gradient(135deg, #00ADD8 0%, #38bdf8 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.span-highlight {
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary) 0%, #0ea5e9 100%);
    color: white;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px var(--primary-glow);
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
    animation: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 35px var(--primary-glow), 0 0 60px rgba(0, 173, 216, 0.2);
    }
}

.btn-sm {
    padding: 12px 24px;
    font-size: 1rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, rgba(0, 173, 216, 0.15), transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM22.485 0l.83.828-1.415 1.415L19.657 0h2.828zM0 22.485l.828.83-1.415 1.415L0 19.657v2.828zM0 54.627l.828.83-1.415 1.415L0 51.8v2.827zM54.627 60L60 54.627v2.828l-2.657 2.545H54.627zM22.485 60L60 22.485v2.828l-2.657 2.545H51.8v-2.828L54.627 60h-2.142l-2.546-2.657v2.657H22.485zM0 22.485L22.485 0h2.828L0 25.314v-2.829zM0 54.627L54.627 0h2.828L0 57.456v-2.829zM15.414 60L60 15.414v2.828L18.243 60h-2.829z' fill='%2300ADD8' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    background-color: rgba(0, 173, 216, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(0, 173, 216, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.hero h1 span.typewriter {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #10b981;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin-top: 60px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image img {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: rotateX(10deg) rotateY(-10deg);
    transition: transform 0.4s ease;
}

.hero-image:hover img {
    transform: rotateX(0) rotateY(0) scale(1.02);
}

/* --- PROBLEMS / PAIN SECTION --- */
.pain-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.card p {
    color: var(--text-muted);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 173, 216, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* --- SNEAK PEEK (Code) --- */
.code-preview {
    padding: 100px 0;
    background: #000;
    position: relative;
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #333;
    overflow: hidden;
}

.window-header {
    background: #252526;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d4d4d4;
    overflow-x: auto;
}

.kw {
    color: #569cd6;
}

/* keyword */
.fn {
    color: #dcdcaa;
}

/* function */
.st {
    color: #ce9178;
}

/* string */
.cm {
    color: #6a9955;
}

/* comment */
.nb {
    color: #b5cea8;
}

/* number */

/* --- MODULES --- */
.modules {
    padding: 100px 0;
}

.module-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    position: relative;
}

.module-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 173, 216, 0.2);
    line-height: 1;
    min-width: 60px;
}

.module-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.module-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- INLINE CTA SECTIONS --- */
.inline-cta {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 173, 216, 0.05) 50%, transparent 100%);
}

.inline-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.inline-cta .btn-primary {
    font-size: 1rem;
    padding: 16px 40px;
}

/* --- "PARA QUEM É" SECTION --- */
.audience-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

.audience-col h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audience-col.yes h3 {
    color: var(--accent-success);
}

.audience-col.no h3 {
    color: #ef4444;
}

.audience-col ul {
    list-style: none;
    padding: 0;
}

.audience-col ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.audience-col ul li span.icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 0;
    background: var(--bg-dark);
}

.review-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-info strong {
    font-size: 1rem;
    color: #fff;
    display: block;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--primary);
}

/* --- OFFER --- */
.offer-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0c4a6e 100%);
    text-align: center;
}

.price-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.price-new {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 5px;
}

.price-installments {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.guarantee {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--accent-success);
}

/* --- COUNTDOWN TIMER --- */
.countdown-wrapper {
    margin-bottom: 30px;
}

.countdown-wrapper p {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 70px;
    text-align: center;
}

.countdown-item span.number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.countdown-item span.label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary:after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item details[open] summary:after {
    content: '-';
}

.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- EXIT INTENT POPUP --- */
.exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.exit-popup-overlay.active {
    display: flex;
}

.exit-popup {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 173, 216, 0.3);
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-popup h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.exit-popup p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.exit-popup .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
}

.exit-popup .close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s;
}

.exit-popup .close-popup:hover {
    color: #fff;
}

.exit-popup .skip-link {
    display: block;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.exit-popup .skip-link:hover {
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .price-new {
        font-size: 3rem;
    }

    .countdown-item span.number {
        font-size: 1.4rem;
    }

    .countdown-item {
        min-width: 55px;
        padding: 10px 12px;
    }
}