* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --text: #172033;
    --muted: #667085;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --light: #f7f9fc;
    --border: #e5e7eb;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-container {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
}

.brand>span:last-child>span {
    color: var(--primary);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--primary);
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    color: #475467;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-button {
    padding: 10px 17px;
    border-radius: 9px;
    color: white;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

/* HERO */

.hero {
    padding: 90px 0 100px;
    background: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.hero h1 span,
.section-heading h2 span,
.tax-section h2 span,
.cta-box h2 span {
    color: var(--primary);
}

.hero-text {
    max-width: 650px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.primary-button {
    color: white;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}


/* INVOICE PREVIEW */

.invoice-preview {
    padding: 20px;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
}

.invoice-window {
    padding: 28px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.invoice-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.invoice-top strong {
    display: block;
    font-size: 20px;
}

.invoice-top small {
    color: var(--muted);
}

.invoice-status {
    padding: 5px 9px;
    border-radius: 20px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
}

.invoice-company {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.invoice-company strong {
    font-size: 15px;
}

.invoice-company span,
.invoice-buyer span {
    color: var(--muted);
    font-size: 11px;
}

.invoice-info {
    display: flex;
    gap: 70px;
    padding-bottom: 20px;
}

.invoice-info div {
    display: flex;
    flex-direction: column;
}

.invoice-info small,
.invoice-buyer small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
}

.invoice-info strong {
    font-size: 12px;
}

.invoice-buyer {
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.invoice-buyer strong {
    display: block;
    font-size: 12px;
}

.invoice-table {
    margin-top: 20px;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 0.7fr 0.8fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 11px;
}

.table-head {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
}

.invoice-summary {
    width: 65%;
    margin-left: auto;
    padding-top: 16px;
}

.invoice-summary>div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--muted);
    font-size: 10px;
}

.invoice-summary strong {
    color: var(--text);
}

.invoice-total {
    margin-top: 7px;
    padding-top: 10px !important;
    border-top: 1px solid var(--border);
    font-size: 13px !important;
}


/* SECTION HEADINGS */

.features-section,
.steps-section,
.tax-section {
    padding: 100px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2,
.tax-section h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
}


/* FEATURES */

.features-section {
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.08);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
}


/* STEPS */

.steps-section {
    background: var(--light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    padding: 32px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
}

.step-number {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.step-card p {
    color: var(--muted);
    font-size: 14px;
}


/* TAX */

.tax-section {
    background: white;
}

.tax-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.tax-section h2 {
    margin-bottom: 20px;
}

.tax-section p {
    color: var(--muted);
    font-size: 16px;
}

.tax-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 28px;
    list-style: none;
}

.tax-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #475467;
    font-size: 14px;
}

.tax-list span {
    color: var(--primary);
    font-weight: 800;
}

.tax-card {
    padding: 30px;
    border-radius: 18px;
    background: #f8faff;
    border: 1px solid var(--border);
}

.tax-card-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.tax-card-header span {
    color: var(--primary);
    font-weight: 800;
}

.tax-line,
.tax-total {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 14px;
}

.tax-line span {
    color: var(--muted);
}

.tax-divider {
    height: 1px;
    background: var(--border);
}

.tax-total {
    font-size: 18px;
    font-weight: 800;
}


/* CTA */

.cta-section {
    padding: 80px 0;
    background: #f7f9fc;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px;
    border-radius: 22px;
    background: #eef4ff;
}

.cta-box h2 {
    max-width: 650px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.15;
}

.cta-box p {
    max-width: 600px;
    margin-top: 14px;
    color: var(--muted);
}


/* FOOTER */

.footer {
    padding: 70px 0 25px;
    background: #111827;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    color: white;
}

.footer p {
    max-width: 300px;
    margin-top: 15px;
    color: #9ca3af;
    font-size: 14px;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-grid>div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid a {
    color: #9ca3af;
    font-size: 13px;
}

.footer-grid a:hover {
    color: white;
}

.copyright {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid #273244;
    color: #8b95a5;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hero-grid,
    .tax-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 65px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1160px);
    }

    .nav-button {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .invoice-window {
        padding: 18px;
    }

    .invoice-preview {
        padding: 10px;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-section,
    .steps-section,
    .tax-section {
        padding: 70px 0;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        flex-direction: column;
        gap: 7px;
    }

}