/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #0f172a;
    --color-accent: #f59e0b;
    --color-danger: #dc2626;
    --color-success: #16a34a;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-border: #e2e8f0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-primary:disabled {
    background-color: var(--color-border);
    cursor: not-allowed;
}

.btn-secondary {
    background-color: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-subtle);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

/* Header */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-ai {
    color: var(--color-primary);
}

.logo-ready {
    color: var(--color-secondary);
}

.nav-cta {
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.nav-cta:hover {
    background-color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--color-text-muted);
}

.hero .btn {
    margin-bottom: 24px;
}

.hero-trust {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Problem Section */
.problem {
    padding: 80px 0;
}

.problem h2 {
    text-align: center;
    margin-bottom: 48px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.problem-card {
    padding: 24px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.problem-card h3 {
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.9rem;
}

.problem-note {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Section */
.timeline {
    padding: 80px 0;
    background: var(--color-secondary);
    color: white;
}

.timeline h2 {
    text-align: center;
    color: white;
    margin-bottom: 48px;
}

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

.timeline-item {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item.done {
    opacity: 0.7;
}

.timeline-item.current {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--color-primary);
}

.timeline-item.upcoming {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--color-accent);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.timeline-content h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Assessment Section */
.assessment {
    padding: 80px 0;
    background: var(--color-bg-subtle);
}

.assessment-header {
    text-align: center;
    margin-bottom: 48px;
}

.assessment-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.assessment-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    text-align: right;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.option-card {
    display: block;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: block;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.option-card:hover .option-content {
    border-color: var(--color-primary-light);
    background: var(--color-bg-subtle);
}

.option-card input:checked + .option-content {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

.option-title {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Text Input */
.text-input-container {
    margin-top: 24px;
}

.text-input-container textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.text-input-container textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.text-input-container textarea::placeholder {
    color: var(--color-text-muted);
}

/* Conditional Fields */
.conditional-field {
    margin-top: 16px;
    padding: 16px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.conditional-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.conditional-field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.conditional-field input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

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

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.form-navigation .btn {
    min-width: 120px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    color: var(--color-success);
    margin-bottom: 24px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-message > p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.success-details {
    background: var(--color-bg-subtle);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: left;
}

.success-details p {
    margin-bottom: 16px;
    color: var(--color-text);
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-muted);
}

.success-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 48px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 32px 24px;
}

.benefit-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.benefit-card h3 {
    margin-bottom: 12px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--color-secondary);
    color: white;
}

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

.footer-brand p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .assessment-container {
        padding: 24px;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .form-navigation .btn {
        width: 100%;
    }

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

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error State */
.form-group.error input,
.text-input-container.error textarea {
    border-color: var(--color-danger);
}

.error-message {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 8px;
}
