*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a5f;
    --blue-950: #172554;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img { height: 48px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-cta {
    background: var(--blue-600) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-700) !important; }
.nav-login {
    color: var(--blue-600) !important;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    margin: 6px 0;
    transition: 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}
.btn-secondary:hover {
    border-color: var(--blue-300);
    color: var(--blue-600);
}
.btn-white {
    background: var(--white);
    color: var(--blue-700);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover {
    background: var(--blue-50);
    transform: translateY(-1px);
}

/* ---- HERO ---- */
.hero {
    padding: 8rem 1.5rem 5rem;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
    text-align: center;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--blue-600); }
.hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- TRUST BAR ---- */
.trust-bar {
    padding: 3rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}
.trust-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}
.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; color: var(--blue-600); }

/* ---- SECTIONS ---- */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block;
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-alt { background: var(--gray-50); }

/* ---- FEATURES ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--blue-200);
    box-shadow: 0 8px 30px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--blue-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--blue-600); }
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step { text-align: center; padding: 2rem 1.5rem; position: relative; }
.step-number {
    width: 48px;
    height: 48px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.step p { color: var(--gray-500); font-size: 0.95rem; }

/* ---- PRICING ---- */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--blue-200);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
}
.pricing-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.pricing-card p { color: var(--gray-500); margin-bottom: 2rem; font-size: 1rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.pricing-features li svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; }

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-950) 100%);
    padding: 5rem 1.5rem;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--blue-200); font-size: 1.1rem; max-width: 550px; margin: 0 auto 2rem; }

/* ---- FOOTER ---- */
.footer {
    background: var(--gray-900);
    color: var(--gray-500);
    padding: 3rem 1.5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 2rem; }

/* ---- SUBPAGE CONTENT ---- */
.page-content {
    max-width: 700px;
    margin: 6rem auto 3rem;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}
.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.page-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.page-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}
.page-content p {
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.page-content ul {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.page-content ul li { margin-bottom: 0.5rem; }
.page-content a { color: var(--blue-600); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

/* ---- LOGIN MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 440px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    cursor: pointer; color: var(--gray-500);
    padding: 0.5rem; line-height: 1; font-size: 1.5rem;
}
.modal-close:hover { color: var(--gray-800); }
.modal h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.modal p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
.modal-input {
    width: 100%; padding: 0.85rem 1rem;
    border: 2px solid var(--gray-200); border-radius: 10px;
    font-size: 1rem; font-family: inherit;
    transition: border-color 0.2s; margin-bottom: 1rem;
}
.modal-input:focus { outline: none; border-color: var(--blue-500); }
.modal-btn {
    width: 100%; padding: 0.85rem;
    background: var(--blue-600); color: var(--white);
    border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.modal-btn:hover { background: var(--blue-700); }
.modal-btn:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.modal-success {
    display: none; background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 10px; padding: 1rem 1.25rem;
    color: #166534; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem;
}
.modal-error {
    display: none; background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; padding: 1rem 1.25rem;
    color: #991b1b; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem;
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); gap: 1rem;
    }
    .nav-toggle { display: block; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }

    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1rem; }

    .section { padding: 3.5rem 1.5rem; }
    .section-header h2 { font-size: 1.6rem; }

    .trust-bar-inner { gap: 1.5rem; }

    .page-content { margin: 5rem 1rem 2rem; padding: 1.5rem; }

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