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

:root {
    --navy: #0e1f36;
    --navy-600: #1a3354;
    --navy-800: #0a1628;
    --action-blue: #1c7cd6;
    --action-blue-hover: #145faa;
    --action-blue-light: #ecf6fe;
    --teal: #1fbfaf;
    --teal-light: #e6faf8;
    --white: #ffffff;
    --gray-50: #f7f9fb;
    --gray-100: #eef1f5;
    --gray-200: #dde2e9;
    --gray-500: #9aa0a9;
    --gray-600: #6b7280;
    --gray-700: #4a5568;
    --gray-900: #1a1c1f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(14, 31, 54, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.wordmark {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
    padding: 7.5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(28, 124, 214, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(31, 191, 175, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 540px;
}

.hero-illustration {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

/* Main Content */
.content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section + .section {
    border-top: 1px solid var(--gray-100);
}

.section-alt {
    background: var(--gray-50);
    padding: 4rem 1.5rem;
}

.section-alt-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.section ul {
    margin: 0 0 1.25rem 0;
    padding-left: 1.25rem;
}

.section ul li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.section ul li::marker {
    color: var(--action-blue);
}

/* Icon Cards Grid */
.icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.icon-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 31, 54, 0.08);
}

.icon-card-icon {
    width: 44px;
    height: 44px;
    background: var(--action-blue-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--action-blue);
}

.icon-card-icon.teal {
    background: var(--teal-light);
}

.icon-card-icon.teal svg {
    color: var(--teal);
}

.icon-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.4rem 0;
}

.icon-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.55;
}

/* Benefits row */
.benefits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--teal-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 18px;
    height: 18px;
    color: var(--teal);
}

.benefit-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.benefit-text p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Steps */
.steps {
    margin: 2rem 0;
    counter-reset: step-counter;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    counter-increment: step-counter;
}

.step + .step {
    border-top: 1px solid var(--gray-100);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--action-blue), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0.15rem 0 0.35rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

/* Document type grid */
.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.doc-type-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--action-blue);
}

.doc-type-card:nth-child(even) {
    border-left-color: var(--teal);
}

.doc-type-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-type-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--action-blue);
    flex-shrink: 0;
}

.doc-type-card:nth-child(even) h3 svg {
    color: var(--teal);
}

.doc-type-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.doc-type-card ul li {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

/* Folder tree */
.folder-tree {
    background: var(--navy);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    overflow-x: auto;
}

.folder-tree .folder {
    color: var(--action-blue);
}

.folder-tree .file {
    color: rgba(255, 255, 255, 0.55);
}

.folder-tree .tree-line {
    color: rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(31, 191, 175, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cta-section h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
    background: #1aa89a;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.cta-trust {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.cta-trust svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* Inline CTA (mid-page) */
.inline-cta {
    background: var(--action-blue-light);
    border: 1px solid rgba(28, 124, 214, 0.15);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.inline-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(14, 31, 54, 0.06);
}

.inline-cta-icon svg {
    width: 28px;
    height: 28px;
    color: var(--action-blue);
}

.inline-cta-text {
    flex: 1;
}

.inline-cta-text p {
    font-size: 0.95rem;
    color: var(--navy);
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.inline-cta-text a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--action-blue);
    text-decoration: none;
    transition: gap 0.2s;
}

.inline-cta-text a:hover {
    gap: 0.5rem;
}

.inline-cta-text a svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background: var(--navy-800);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6.5rem 1.25rem 3rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

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

    .hero-illustration {
        width: 160px;
        height: 160px;
        order: -1;
    }

    .section {
        padding: 3rem 0;
    }

    .section-alt {
        padding: 3rem 1.25rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .icon-cards {
        grid-template-columns: 1fr;
    }

    .doc-type-grid {
        grid-template-columns: 1fr;
    }

    .benefits-row {
        grid-template-columns: 1fr;
    }

    .inline-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .folder-tree {
        padding: 1.25rem;
        font-size: 0.8rem;
    }
}
