/* =========================================
   SALA DA ELÉTRICA - ECAD LABS INSPIRED
   ========================================= */

:root {
    /* Sala da Elétrica Dark (E-book) */
    --bg-deep: #08102B;
    --bg-card: #0F1C42;
    --bg-elevated: #152656;
    --accent: #FFCC00; /* Amarelo */
    --accent-hover: #E6B800;
    --accent-secondary: #FFFFFF;
    --accent-glow: rgba(255,204,0,0.14);
    
    /* Text */
    --text-1: #EEF2F7;
    --text-2: #A3B1C6;
    --text-3: #5C6A82;
    
    /* Borders */
    --border: rgba(255,255,255,0.1);
    --border-hot: rgba(255,255,255,0.25);
    
    /* Typography */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Design Tokens */
    --radius-sm: 9px;
    --radius-md: 18px;
    --radius-lg: 22px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-light {
    --bg-deep: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --accent: #1C2C69;
    --accent-hover: #152250;
    --accent-secondary: #000000;
    --accent-glow: rgba(28,44,105,0.14);
    
    --text-1: #1C2C69;
    --text-2: #475569;
    --text-3: #94A3B8;
    
    --border: #E2E8F0;
    --border-hot: #CBD5E1;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background-color: var(--bg-deep);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Grid Overlay Background */
body::before {
    content:'';
    position:fixed; 
    inset:0; 
    pointer-events:none; 
    z-index:0;
    background-image:
      linear-gradient(rgba(63,111,150,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,204,0,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-1);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

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

.highlight {
    color: var(--accent);
    font-style: normal;
}

/* =========================================
   BUTTONS & FORMS
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 19px;
    padding: 16px 38px;
    height: auto;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 44px rgba(255,204,0,.3);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 44px rgba(255,204,0,.55);
}

.btn-large {
    font-size: 18px;
    padding: 1.25rem 3rem;
    max-width: 400px;
}

/* Forms */
.lead-form {
    background: rgba(10, 17, 26, 0.6);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(17, 26, 38, 0.8);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background-color: rgba(17, 26, 38, 1);
    box-shadow: 0 0 0 2px rgba(63,111,150,.3);
}

.privacy-text {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-3);
    font-size: 15px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content:'';
    position:absolute; 
    top:-180px; 
    right:-160px;
    width:640px; 
    height:640px;
    background:radial-gradient(circle, rgba(63,111,150,.15) 0%, transparent 68%);
    pointer-events:none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,204,0,.1);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.8px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,204,0,.22);
    margin-bottom: 16px;
    text-transform: uppercase;
    animation: fadeUp .6s ease both;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.headline {
    font-size: clamp(32px, 4.5vw, 54px);
    line-height: 1.05;
    margin-bottom: 16px;
    text-wrap: balance;
}

.subheadline {
    font-size: 19px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,204,0,.22);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        0 32px 80px rgba(0,0,0,.65),
        0 0 90px rgba(255,204,0,.07);
    animation: float 7s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* =========================================
   PROBLEM SECTION
   ========================================= */
.problem-section {
    padding: 108px 0;
    background-color: var(--bg-card);
    position: relative;
    z-index: 1;
}

.problem-grid {
    max-width: 800px;
    margin: 0 auto;
}

.problem-text h2 {
    font-size: clamp(38px, 5vw, 56px);
    margin-bottom: 24px;
}

.problem-text .lead {
    font-size: 18px;
    color: var(--text-1);
    margin-bottom: 24px;
    font-weight: 500;
}

.problem-text p {
    font-size: 19px;
    color: var(--text-2);
    margin-bottom: 24px;
}

.alert-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 24px;
    margin-top: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.alert-box:hover {
    border-color: var(--border-hot);
}

.alert-box p {
    margin-bottom: 0;
    color: var(--text-1);
    font-weight: 600;
    font-size: 18px;
}

/* =========================================
   SOLUTION SECTION
   ========================================= */
.solution-section {
    padding: 108px 0;
    background-color: transparent; /* grid overlay vai aparecer */
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(38px, 5vw, 56px);
}

.section-header p {
    color: var(--text-2);
    font-size: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content:'';
    position:absolute; top:0; left:0; right:0; height:2px;
    background:linear-gradient(90deg,var(--accent-secondary),var(--accent));
    transform:scaleX(0); transition:transform .35s;
    transform-origin:left;
}

.feature-card:hover {
    border-color: var(--border-hot);
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 0 40px rgba(255,204,0,.05);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(63,111,150,.1);
    border: 1px solid rgba(63,111,150,.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--text-1);
    font-weight: 700;
    margin-bottom: 9px;
    text-transform: none;
    letter-spacing: 0;
}

.feature-card p {
    color: var(--text-2);
    font-size: 18px;
    line-height: 1.6;
}

/* Bonus Card Highlight */
.bonus-card {
    border-color: rgba(255,204,0, 0.4);
    background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(255,204,0, 0.08) 100%);
    box-shadow: 0 0 40px rgba(255,204,0, 0.08);
}

.bonus-card::after {
    background: linear-gradient(90deg, var(--accent), #FFF34D);
    transform: scaleX(1);
}

.badge-bonus {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(255,204,0, 0.3);
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bonus-card {
        grid-column: 2 / 3;
    }
}

/* =========================================
   TESTIMONIAL SECTION
   ========================================= */
.testimonial-section {
    padding: 108px 0;
    background-color: var(--bg-card);
    position: relative;
    z-index: 1;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(255,204,0,.06) 100%);
    border: 1px solid var(--border-hot);
    border-radius: var(--radius-lg);
    padding: 52px 44px;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 100px;
    line-height: .7;
    color: rgba(255,204,0,.13);
    font-weight: 900;
    display: block;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-1);
    font-weight: 500;
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 32px;
}

.testimonial-text strong {
    color: var(--accent);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 19px;
    color: var(--text-1);
    text-transform: none;
    letter-spacing: 0;
}

.author-info span {
    color: var(--text-3);
    font-size: 13px;
}

/* =========================================
   TRANSFORMATION SECTION
   ========================================= */
.transformation-section {
    padding: 108px 0;
    background-color: transparent;
    color: var(--text-1);
    position: relative;
    z-index: 1;
}

.transformation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.transformation-text h2 {
    font-size: clamp(38px, 5vw, 56px);
    margin-bottom: 24px;
}

.transformation-text p {
    font-size: 20px;
    margin-bottom: 38px;
    color: var(--text-2);
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: left;
}

.benefits-list li {
    font-size: 19px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-1);
    padding: 22px 26px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.benefits-list li:hover {
    border-color: var(--border-hot);
}

.benefits-list span {
    width: 32px;
    height: 32px;
    background: rgba(255,204,0,.1);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

/* =========================================
   FINAL CTA & FOOTER
   ========================================= */
.final-cta {
    padding: 130px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-card);
    z-index: 1;
}

.final-cta::before {
    content:'';
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:840px; height:400px;
    background:radial-gradient(ellipse,rgba(63,111,150,.15) 0%,transparent 68%);
    pointer-events:none;
}

.final-cta h2 {
    font-size: clamp(40px, 6vw, 66px);
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 20px;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 40px;
}

footer {
    background-color: var(--bg-deep);
    padding: 38px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo img {
    height: 32px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-logo img:hover {
    opacity: 1;
}

footer p {
    color: var(--text-3);
    font-size: 16px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .badge {
        margin: 0 auto 26px;
    }
}

@media (max-width: 768px) {
    .problem-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .thankyou-section {
        padding: 60px 0 40px;
    }
    
    .legal-section {
        padding: 60px 0 40px;
    }
    
    .sticky-cta-mobile {
        display: block;
    }
    .sticky-cta-mobile .btn-primary {
        margin: 0;
        width: 100%;
        font-size: 16px;
        padding: 14px 20px;
    }
    body {
        padding-bottom: 80px;
    }
}

/* =========================================
   STICKY CTA MOBILE
   ========================================= */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: rgba(8, 16, 43, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

/* =========================================
   THANK YOU PAGE (OBRIGADO) & LEGAL
   ========================================= */
.thankyou-section {
    padding: 108px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.thankyou-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 2s infinite linear;
    box-shadow: 0 32px 80px rgba(0,0,0,.65), 0 0 40px rgba(63,111,150,.15);
    margin-bottom: 40px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--bg-deep);
    box-shadow: 0 0 44px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 10px 44px rgba(37, 211, 102, 0.55);
}

.legal-section {
    padding: 140px 0 80px;
    background-color: var(--bg-card);
    position: relative;
    z-index: 1;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 48px;
    border-radius: var(--radius-lg);
    color: var(--text-1);
}

.legal-content h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-1);
}

.legal-content p {
    font-size: 19px;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.7;
}


/* =========================================
   MODAL (POP-UP)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-hot);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,.65);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-2);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-1);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-1);
    text-transform: uppercase;
}

.modal-header p {
    font-size: 18px;
    color: var(--text-2);
}

.lgpd-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
}

.lgpd-check input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.lgpd-check label {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.4;
}

.lgpd-check a {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================================
   LGPD COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 9999;
    max-width: 320px;
    display: none;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-2);
}
.cookie-banner.show {
    display: flex;
    animation: fadeUp 0.5s ease-out forwards;
}
.cookie-banner p {
    margin: 0;
    line-height: 1.4;
}
.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 80px; /* Fica acima do Sticky CTA */
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* =========================================
   ACCESSIBILITY (FOCUS RINGS)
   ========================================= */
a:focus-visible, 
button:focus-visible, 
input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}
