@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --accent-color: #FBBF24;
    --accent-glow: rgba(251, 191, 36, 0.3);
    --bg-light: #F8FAFC;
    --text-main: #334155;
    --text-muted: #64748B;
    --text-light: #ffffff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--primary-color);
    background-color: #f4f4f4;
    line-height: 1.6;
}

h1,
h2,
h3,
.logo {
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
}

/* Header & Hero */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px 0 60px;
    text-align: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-align: left;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Sections */
.section {
    padding: 60px 0;
    text-align: center;
}

/* Hero & Main Layout Adjustments */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Bio Section as Sidebar/Right Card */
.bio-section {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 320px;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px 20px;
    /* More top padding for close button */
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 1s both;
}

.close-bio {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.close-bio:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.bio-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
}

.bio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.bio-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.bio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Adjusted to focus more on the face */
}

.bio-content h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.bio-content p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.bio-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Hide on mobile or small screens */
@media (max-width: 1100px) {
    .bio-section {
        position: static;
        width: 90%;
        margin: 40px auto;
        right: auto;
        bottom: auto;
    }
}

.dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.dark-bg h2 {
    color: var(--text-light);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Solution Features */
.features {
    text-align: left;
    max-width: 600px;
    margin: 30px auto 0;
}

.feature-item {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.check {
    color: #ffffff;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.3rem;
}

/* === Funnel Section & Premium UI === */
.funnel-section {
    background: linear-gradient(135deg, #1d3454 0%, #0a192f 100%);
    color: white;
    min-height: 80vh;
    /* Full viewport height mostly */
    display: flex;
    align-items: flex-start;
    padding-top: 50px;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
}

.funnel-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.funnel-step.active {
    display: block;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-color);
    width: 33%;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.step-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Typography & Layout */
.question-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    counter-reset: option-counter;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.radio-option::before {
    counter-increment: option-counter;
    content: counter(option-counter, lower-alpha) ". ";
    font-weight: 700;
    margin-right: 15px;
    color: #ffffff;
    font-size: 1.2rem;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.radio-option span {
    font-size: 1.15rem;
    color: #e0e0e0;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.radio-option:has(input:checked) span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

/* Buttons */
.step-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back::before {
    content: "←";
    font-size: 1.2rem;
}

.btn-back:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.action-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Data Consent Styles */
.consent-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.bio-image {
    width: 150px;
    height: 150px;
}

/* Error Message */
.error-message {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
    /* Hidden by default */
    text-align: center;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-next {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.whatsapp-btn,
.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.calendar-btn {
    background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.5);
}

.icon {
    font-size: 1.3rem;
}

/* Trust Signals & Pills */
.trust-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

/* Result Area - Analysis Mode */
#result {
    text-align: center;
    padding: 20px;
}

#result h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
}

.viability-score {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Loading Simulation */
.loading-steps {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 20px auto;
}

.loading-step {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    color: #ffffff;
}

.loading-step.done::before {
    content: "✓ ";
}

.cta-final p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .action-buttons-grid {
        flex-direction: row;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Framework Section */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.legal-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--bg-light);
    transition: var(--transition);
}

.legal-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
}

.legal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.legal-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.legal-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.legal-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #020c1b;
    color: var(--text-dim);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}