/* Reset & Variables */
:root {
    --bg-dark: #000000;
    --bg-darker: #090A0F;
    --primary-blue: #0047FF;
    --secondary-blue: #00A8FF;
    --text-light: #F8FAFC;
    --text-muted: #A1A1AA;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --error: #EF4444;
    --success: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Interactive Backgrounds (Framer Style) */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.aura-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.12) 0%, rgba(0, 71, 255, 0.04) 50%, transparent 70%);
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: transform;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
.headline,
.section-title,
.btn {
    font-family: 'Space Grotesk', sans-serif;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-gradient {
    color: var(--secondary-blue);
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

/* Glassmorphism */
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.primary-border {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 24px rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
    padding: 24px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: flex-start;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

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

/* Responsive Breakpoints Utils */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 168, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: #52525B;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transform: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-back:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 220px 0 160px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-blue);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    right: -100px;
}

.glow-2 {
    bottom: -200px;
    left: -200px;
    background: var(--secondary-blue);
}

/* Social Proof Section */
.social-proof {
    padding: 60px 0 20px;
    position: relative;
    z-index: 10;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.client-logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    margin-left: -12px;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.client-logo:first-child {
    margin-left: 0;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
    z-index: 20;
    border-color: var(--secondary-blue);
}

.social-proof-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    font-weight: 600;
}

.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.badge-item:hover {
    color: var(--text-light);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 71, 255, 0.2);
}

.badge-item:hover i {
    color: var(--secondary-blue);
}

/* Authority Section */
.authority {
    padding: 160px 0;
    background: transparent;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 80px;
}

@media (min-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(min-content, max-content);
    }

    .benefit-card:nth-child(1) {
        grid-column: span 2;
    }

    .benefit-card:nth-child(2) {
        grid-column: span 1;
    }

    .benefit-card:nth-child(3) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .benefit-card:nth-child(4) {
        grid-column: span 2;
    }

    .benefit-card:nth-child(5) {
        grid-column: span 2;
    }
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.benefit-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.03);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 32px 0;
    font-size: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Problem / Solution Sections */
.problem {
    position: relative;
}

.flex-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 160px 24px;
}

@media (max-width: 900px) {
    .flex-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.problem-list,
.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.problem-list li,
.solution-list li {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
}

.bad-icon {
    color: var(--error);
    font-weight: bold;
    background: rgba(239, 68, 68, 0.1);
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.good-icon {
    color: var(--success);
    font-weight: bold;
    background: rgba(16, 185, 129, 0.1);
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Form Section */
.form-section {
    padding: 100px 0 160px;
    position: relative;
}

.form-section.hidden {
    display: none;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
    width: 20%;
    transition: width 0.4s ease;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

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

.question-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: white;
}

.options-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.option-label:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.option-label input[type="radio"] {
    display: none;
}

.option-text {
    font-size: 1.125rem;
    font-weight: 500;
}

.option-label.selected {
    border-color: var(--secondary-blue);
    background: rgba(0, 168, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.1);
}

/* Inputs */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.disclaimer a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Diagnosis section */
.diagnosis-section {
    padding: 80px 0 160px;
}

.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.score-circle {
    display: none;
}

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

.result-body p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
    margin: 0 auto;
}

.loader.active {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--secondary-blue);
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

/* Responsiveness */
@media (max-width: 768px) {

    .glass-panel,
    .glass-card {
        padding: 32px 24px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
        min-height: auto;
    }

    .btn {
        width: 100%;
    }

    .flex-split {
        padding: 80px 24px;
    }

    .form-section {
        padding: 60px 0 100px;
    }

    .authority {
        padding: 80px 0;
    }

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

    .benefit-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Animations (Reveal on Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delays for grouped elements */
.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}