/* ========================================
   StatementPro.ai - Main Stylesheet
   ======================================== */

/* ========== RESET & BASE STYLES ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1A2F4B;
    --accent-teal: #00B2B2;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-gray: #64748B;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== LAYOUT COMPONENTS ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */

header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text {
    color: var(--primary-dark);
}

.logo-ai {
    color: var(--accent-teal);
}

.nav-cta {
    background: var(--accent-teal);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 178, 0.3);
}

/* ========== HERO SECTION ========== */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 178, 178, 0.1));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--accent-teal);
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 178, 0.4);
}

.hero-image {
    position: relative;
    padding: 30px;
    transform: scale(1.05);
    margin-right: -20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== PROBLEM SECTION ========== */

.problem {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

.problem h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.problem p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pain-point {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pain-point-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-teal), #009999);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.2);
}

.pain-point h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.pain-point p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

/* ========== HOW IT WORKS SECTION ========== */

.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -40px;
    top: 30px;
    font-size: 40px;
    color: var(--primary-dark);
    font-weight: 300;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .step:not(:last-child)::after {
        right: -30px;
        font-size: 32px;
    }
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.step p {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========== FEATURES SECTION ========== */

.features {
    padding: 80px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.features .section-title {
    color: var(--white);
}

.features .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--accent-teal);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== USE CASES SECTION ========== */

.use-cases {
    padding: 80px 0;
    background: var(--light-gray);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.use-case {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.use-case h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.use-case-title {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.use-case p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.use-case ul {
    list-style: none;
    padding: 0;
}

.use-case ul li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
}

.use-case ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ========== FAQ SECTION ========== */

.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-dark);
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-teal);
}

.faq-icon {
    font-size: 24px;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #008B8B 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.waitlist-form button {
    padding: 16px 40px;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.waitlist-form button:hover {
    background: #0F1F35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== HUBSPOT FORM STYLING ========== */

/* HubSpot Form Styling - Modern Premium Look */
.hs-form-frame {
    max-width: 650px;
    margin: 40px auto 0;
    display: block;
    background: rgba(255, 255, 255, 0.98);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    width: 100%;
    min-height: 400px;
    height: auto !important;
}

/* Ensure form content displays properly */
.hs-form-frame iframe {
    height: auto !important;
    min-height: 400px !important;
    max-width: 100%;
    width: 100%;
}

/* Style the form inputs */
.hs-form-frame input[type="email"],
.hs-form-frame input[type="text"],
.hs-form-frame input[type="number"] {
    border: 2px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.hs-form-frame input[type="email"]:focus,
.hs-form-frame input[type="text"]:focus,
.hs-form-frame input[type="number"]:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.1) !important;
    outline: none !important;
}

/* Style the form button */
.hs-form-frame button {
    background: var(--accent-teal) !important;
    color: var(--white) !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.2) !important;
}

.hs-form-frame button:hover {
    background: #009999 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 178, 178, 0.35) !important;
}

/* Label styling */
.hs-form-frame label {
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

/* Footer text styling */
.hs-form-frame .hs-field-desc {
    color: var(--text-gray) !important;
    font-size: 14px !important;
}

/* ========== FOOTER ========== */

footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

/* ========== SMOOTH SCROLLING ========== */

html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .logo {
        font-size: 18px;
    }

    .footer-logo img {
        height: 28px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .steps,
    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input {
        min-width: 100%;
    }

    .pain-points {
        grid-template-columns: 1fr;
    }

    .hs-form-frame {
        max-width: 100%;
        padding: 30px 20px;
        margin: 30px auto 0;
        min-height: 350px;
    }

    .hs-form-frame iframe {
        min-height: 350px !important;
    }

    .hs-form-frame input[type="email"],
    .hs-form-frame input[type="text"],
    .hs-form-frame input[type="number"] {
        padding: 12px 16px !important;
    }

    .hs-form-frame button {
        padding: 12px 32px !important;
        font-size: 15px !important;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 18px;
    }
}

/* ========== UPLOAD FLOW STYLES ========== */

.upload-flow-container {
    min-height: 100vh;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
}

.upload-flow-header {
    background: var(--white);
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.upload-flow-header .logo {
    justify-content: center;
    margin-bottom: 10px;
}

.app-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
}

.upload-flow-content {
    flex: 1;
    padding: 40px 0;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.progress-step.active .step-label {
    color: var(--accent-teal);
}

.progress-line {
    width: 80px;
    height: 3px;
    background: var(--text-gray);
    opacity: 0.3;
}

/* Upload Card */
.upload-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step-content {
    text-align: center;
}

.step-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.step-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Upload Area */
.upload-area {
    margin: 30px 0;
}

.upload-label {
    display: block;
    padding: 60px 40px;
    border: 3px dashed var(--accent-teal);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.upload-label:hover {
    background: rgba(0, 178, 178, 0.05);
    border-color: #009999;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.upload-hint {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

/* Upload Status */
.upload-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #D4EDDA;
    border: 1px solid #28A745;
    border-radius: 8px;
    color: #155724;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 20px;
    font-weight: bold;
}

.upload-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #F8D7DA;
    border: 1px solid #DC3545;
    border-radius: 8px;
    color: #721C24;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background: var(--accent-teal);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover:not(:disabled) {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 178, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-teal);
    padding: 16px 40px;
    border-radius: 8px;
    border: 2px solid var(--accent-teal);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--white);
}

/* Email Form */
.email-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Success State */
.success-state {
    padding: 20px 0;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.email-display {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-teal);
    margin: 20px 0;
}

.instruction-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .progress-steps {
        gap: 10px;
    }

    .progress-line {
        width: 40px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .upload-label {
        padding: 40px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .step-content h2 {
        font-size: 24px;
    }
}

/* ========== FILE UPLOAD COMPONENT ========== */

.file-upload-wrapper {
    margin: 30px 0;
}

.upload-area {
    display: block;
    padding: 60px 40px;
    border: 3px dashed var(--accent-teal);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
    text-align: center;
}

.upload-area:hover:not(.disabled) {
    background: rgba(0, 178, 178, 0.05);
    border-color: #009999;
}

.upload-area.dragging {
    background: rgba(0, 178, 178, 0.1);
    border-color: #009999;
    border-style: solid;
}

.upload-area.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.upload-hint {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

/* File Selected State */
.file-selected {
    padding: 30px;
    background: var(--light-gray);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.file-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 14px;
    color: var(--text-gray);
}

.file-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-change,
.btn-remove {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-change {
    background: var(--accent-teal);
    color: var(--white);
}

.btn-change:hover:not(:disabled) {
    background: #009999;
}

.btn-remove {
    background: var(--white);
    color: #DC3545;
    border: 2px solid #DC3545;
}

.btn-remove:hover:not(:disabled) {
    background: #DC3545;
    color: var(--white);
}

.btn-change:disabled,
.btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-area {
        padding: 40px 20px;
    }

    .file-actions {
        flex-direction: column;
    }

    .btn-change,
    .btn-remove {
        width: 100%;
    }
}
