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

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--dark); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--container-narrow); }

/* Sections */
.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-light); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }

.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--dark-600); }
.form-input, .form-select, .form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-separator { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.form-actions--center { justify-content: center; gap: 1rem; }
.required { color: var(--error); }

.inline-form { display: inline; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; font-weight: 800; color: var(--dark); text-decoration: none; }
.logo:hover { color: var(--dark); }
.main-nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-link { padding: 0.5rem 0.875rem; border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; color: var(--text-light); transition: all var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-link--subtle { color: var(--text-muted); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: var(--success-bg);
    color: #166534;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.25rem; font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.text-gradient { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 640px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.hero-trust-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--text-light); }
.hero--seo { padding: 4rem 0 3rem; }
.hero--seo h1 { font-size: 2.75rem; }

/* Social proof bar */
.social-proof-bar { padding: 2rem 0; background: var(--dark); }
.proof-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.proof-stat { text-align: center; }
.proof-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.proof-stat span { font-size: 0.875rem; color: var(--text-muted); }

/* Document cards */
.documents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.doc-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    transition: all var(--transition-slow);
    position: relative;
}
.doc-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.doc-card-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.doc-card-icon--blue { background: var(--primary-100); color: var(--primary); }
.doc-card-icon--purple { background: #f3e8ff; color: #7c3aed; }
.doc-card-icon--green { background: var(--success-bg); color: var(--success); }
.doc-card-icon--orange { background: var(--warning-bg); color: var(--warning); }
.doc-card-icon--red { background: var(--error-bg); color: var(--error); }
.doc-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.doc-card p { color: var(--text-light); font-size: 0.9375rem; margin-bottom: 1rem; }
.doc-card-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.doc-card-badge--green { background: var(--success-bg); color: #166534; }
.doc-card-badge--blue { background: var(--primary-100); color: var(--primary-dark); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; padding: 2rem; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--text-light); font-size: 0.9375rem; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-card { text-align: center; padding: 2rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.why-icon { margin-bottom: 1rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { color: var(--text-light); font-size: 0.9375rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--transition-slow);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card--popular { border-color: var(--primary); transform: scale(1.03); }
.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pricing-header h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.pricing-price { margin-bottom: 0.5rem; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.pricing-period { display: block; font-size: 0.875rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.875rem; color: var(--text-light); }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-feature { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.9375rem; }
.pricing-feature--no { color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-white); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-sans);
    text-align: left;
}
.faq-question svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-item--open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item--open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.5rem 1.25rem; color: var(--text-light); font-size: 0.9375rem; line-height: 1.7; }

/* CTA Section */
.section--cta { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-700) 100%); padding: 4rem 0; }
.cta-content { text-align: center; }
.cta-content h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-content p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2rem; }

/* Flash messages */
.flash-container { position: fixed; top: 80px; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; max-width: 420px; }
.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}
.flash--success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.flash--error { background: var(--error-bg); color: #991b1b; border: 1px solid #fecaca; }
.flash--info { background: var(--info-bg); color: var(--primary-dark); border: 1px solid #bfdbfe; }
.flash--warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.flash-icon { flex-shrink: 0; }
.flash-message { flex: 1; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: inherit; opacity: 0.5; padding: 0 0.25rem; }
.flash-close:hover { opacity: 1; }

@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* Footer */
.site-footer { background: var(--dark); padding: 4rem 0 2rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: #fff; text-decoration: none; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-700); padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; }

/* Legal pages */
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.legal-page h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-page p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.8; }
.legal-page ul, .legal-page ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; color: var(--text-light); line-height: 1.7; }

/* Error page */
.error-page { text-align: center; padding: 4rem 0; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 1rem; }
.error-page h2 { margin-bottom: 0.75rem; }
.error-page p { color: var(--text-light); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; }

/* Result cards */
.result-card { text-align: center; padding: 3rem; background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.result-card svg { margin-bottom: 1.5rem; }
.result-card h1 { margin-bottom: 0.75rem; }
.result-card p { color: var(--text-light); margin-bottom: 2rem; font-size: 1.0625rem; }
.result-actions { display: flex; gap: 1rem; justify-content: center; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.back-link:hover { color: var(--primary); }
