/* Reset & Variables */
:root {
    --bg-dark: #0F172A;
    --bg-darker: #0B1121;
    --primary-blue: #0047FF;
    --secondary-blue: #00A8FF;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --error: #EF4444;
    --success: #10B981;
}

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

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.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(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card.primary-border {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 71, 255, 0.1);
}

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

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

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

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

/* 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: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 71, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #003BE6;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 71, 255, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: rgba(51, 65, 85, 0.5);
    color: #64748B;
    cursor: not-allowed;
    box-shadow: none;
    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: 180px 0 120px;
    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);
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.benefit-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 71, 255, 0.2);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 71, 255, 0.1);
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

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

.flex-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 120px 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 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glass-bg), var(--bg-dark));
    border: 4px solid var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.3);
    color: white;
}

.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);
    }
}

.btn .hidden {
    display: none;
}

.hidden {
    display: none !important;
}

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

/* 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%;
    }
}