@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@500;600&family=Manrope:wght@400;600;700&display=swap');

/* Minimalist CSS reset and styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --ink: #f4f7fb;
    --ink-muted: rgba(244, 247, 251, 0.70);
    --deep: #0c1f2e;
    --accent: #f5c98c;
    --brand-blue: #60a5fa; /* Modern Fintech Blue */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success-color: #2fbf71;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --card-bg: rgba(255, 255, 255, 0.95);
    --highlight-underline: #f5c98c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background-color: #0b1a26;
    /* Subtle gradient mesh simulation */
    background-image:
        radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 201, 140, 0.1) 0px, transparent 50%),
        linear-gradient(140deg, #0b1a26 0%, #0f2738 45%, #132f43 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Landing Page Specific Styles */
.landing-container {
    min-height: 100vh;
    padding: 36px 8vw 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 100px; /* More vertical whitespace */
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    font-weight: 600;
}

.brand-mark {
    width: 160px;
    height: 42px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.hero {
    margin-top: 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
    opacity: 0; /* For animation */
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero h1 {
    font-family: 'Antonio', 'Manrope', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem); /* Larger font size */
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.highlight-text {
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px; /* Thickness of underline */
    background-color: rgba(220, 53, 69, 0.6); /* Soft red/highlight */
    z-index: -1;
    border-radius: 2px;
}

.hero-lede {
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0;
    max-width: 600px;
    font-weight: 500;
    opacity: 0.9;
}

.hero-points {
    color: var(--ink-muted);
    max-width: 600px;
    font-size: 1.1rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #f7d9a7, #f3b96b);
    color: #1c2a36;
    border: none;
    padding: 20px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(243, 185, 107, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Pulse Animation */
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(243, 185, 107, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(243, 185, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 185, 107, 0); }
}

.cta-button.cta-start {
    animation: pulse-shadow 3s infinite;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(243, 185, 107, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    animation: none;
}

.cta-button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-meta {
    font-size: 0.85rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    margin-top: 12px;
}

.cta-meta-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.cta-meta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-meta-list li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* Info Sections */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
    opacity: 0; /* For animation */
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    font-family: 'Antonio', 'Manrope', sans-serif;
    letter-spacing: 0.04em;
    color: var(--ink);
}

/* Steps - Cards & Glassmorphism */
.steps {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Desktop */
    width: min(1100px, 100%);
    margin: 0 auto;
}

.step-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--glass-strong);
    border-color: rgba(255,255,255,0.2);
}

.step-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.step-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.step-card div {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Social Proof */
.credibility-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.credibility-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    font-family: 'Antonio', sans-serif;
}

.credibility-text {
    font-size: 1.1rem;
    color: var(--ink-muted);
    font-family: 'Manrope', sans-serif;
}

.testimonials-grid-wrapper {
    width: 100%;
    overflow-x: auto; /* Allow horizontal scroll on small screens if needed */
    padding: 20px 0;
}

.testimonials-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    width: min(1100px, 100%);
    margin: 0 auto;
}

.testimonial-card {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}


/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .landing-container {
        padding: 32px 5vw 100px;
        gap: 80px; /* Increased from 60px to prevent section overlap */
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .steps {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}

@media (max-width: 600px) {
    .cta-button {
        width: 100%;
        text-align: center;
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 24px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .testimonial-card {
        flex: none;
        scroll-snap-align: none;
    }
}

/* =========================================
   EXISTING QUIZ & FORM STYLES (PRESERVED)
   ========================================= */

.hidden {
    display: none !important;
}

/* General Container for Quiz/Results */
.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    color: #1b232c;
}

#quiz-container, #lead-capture-container, #results-container {
    margin-top: 60px; /* Spacing from top */
}

/* Quiz Styles */
.question-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #1b232c;
}

.options-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

.option-btn {
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #394553;
}

.option-btn:hover {
    border-color: #f3b96b;
    background-color: #fff2df;
    color: #b06e1f;
    font-weight: 600;
}

.option-btn:active {
    background-color: #d0e2ff;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.text-input:focus {
    border-color: #f3b96b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 185, 107, 0.2);
}

.quiz-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.secondary-button {
    background: transparent;
    color: #394553;
    border: 1px solid #ced4da;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #394553;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #f3b96b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 185, 107, 0.2);
}

.form-consent {
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #394553;
}

.consent-label input {
    margin-top: 4px;
}

.form-error {
    margin-top: 6px;
    color: #b44a38;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-error {
    border-color: #b44a38 !important;
    background-color: #fff8f8 !important;
}

.consent-question {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #394553;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 31, 46, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--ink);
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

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

/* Results Styles */
.result-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 18px;
}

.result-header h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
}

.assessment-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 4px;
}

.score-display {
    margin-top: 16px;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #394553;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.result-red-text { color: var(--danger-color); }
.result-yellow-text { color: var(--warning-color); }
.result-green-text { color: var(--success-color); }

.result-card {
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: left;
    color: #1b232c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.result-red {
    border-top: 6px solid var(--danger-color);
    background-color: #fff;
}

.result-yellow {
    border-top: 6px solid var(--warning-color);
    background-color: #fff;
}

.result-green {
    border-top: 6px solid var(--success-color);
    background-color: #fff;
}

/* Audit Results Layout */
.audit-meta {
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 4px;
}

.audit-summary {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    border-top: 6px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.audit-summary.result-red { border-top-color: var(--danger-color); }
.audit-summary.result-yellow { border-top-color: var(--warning-color); }
.audit-summary.result-green { border-top-color: var(--success-color); }

.score-badge {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #394553;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.summary-text {
    font-size: 1.1rem;
    color: #495057;
    max-width: 500px;
    margin: 0 auto;
}

.insights-container {
    display: grid;
    gap: 24px;
}

.insight-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.result-headline {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.3;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #1b232c;
}

.result-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 6px;
}

.result-counsel p {
    font-size: 1rem;
    color: #394553;
    margin: 0;
    line-height: 1.6;
}

.result-recommendation p {
    font-weight: 600;
    color: #1b232c;
    margin: 0;
    font-size: 1rem;
    position: relative;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}

.result-support p {
    font-size: 0.95rem;
    font-style: italic;
    color: #6c757d;
    margin: 0;
}

.result-contact {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.result-contact-label {
    font-size: 0.95rem;
    color: #394553;
    font-weight: 600;
}

.premium-cta {
    background: linear-gradient(135deg, #f7d9a7 0%, #f3b96b 100%);
    padding: 20px 48px;
    font-size: 1.2rem;
    box-shadow: 0 15px 35px rgba(243, 185, 107, 0.4);
    transform: scale(1);
    transition: all 0.3s ease;
}

.premium-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(243, 185, 107, 0.6);
}

.cta-subtext {
    font-size: 0.85rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animations */
.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.fade-in {
    animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-link-back {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s;
}

.text-link-back:hover {
    color: #394553;
    text-decoration: underline;
}
