:root {
    --ink: #172033;
    --ink-strong: #070b18;
    --muted: #58667c;
    --faint: #7a8798;
    --page: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4f8;
    --line: #d9e2ed;
    --accent: #20e6be;
    --accent-dark: #057a75;
    --accent-soft: #d9fff5;
    --violet: #7a5cff;
    --coral: #ff7a5f;
    --green: #16b884;
    --amber: #e6ad34;
    --red: #d85f62;
    --navy: #080d1d;
    --midnight: #10172b;
    --shadow: 0 28px 90px rgba(7, 11, 24, 0.18);
    --glow: 0 0 42px rgba(32, 230, 190, 0.24);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(32, 230, 190, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--navy) 0, var(--navy) 45rem, #ffffff 45rem);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 13, 29, 0.78);
    backdrop-filter: blur(18px);
}

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

.logo-wrapper {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.05;
}

.logo-main {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #ffffff;
}

.logo-sub {
    margin-top: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
}

nav a {
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    color: rgba(237, 244, 255, 0.72);
}

nav a:hover {
    color: #ffffff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(32, 230, 190, 0.35);
    border-radius: 999px;
    color: #031817;
    background: var(--accent);
    box-shadow: 0 0 26px rgba(32, 230, 190, 0.2);
}

.hero {
    position: relative;
    min-height: 700px;
    padding: 72px 0 78px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 12%, rgba(122, 92, 255, 0.36), transparent 30rem),
        radial-gradient(circle at 6% 82%, rgba(32, 230, 190, 0.18), transparent 22rem),
        linear-gradient(135deg, #07111f 0%, #080d1d 48%, #101534 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 46rem;
    height: 46rem;
    right: -14rem;
    top: -16rem;
    background:
        radial-gradient(circle, rgba(122, 92, 255, 0.36), transparent 58%),
        radial-gradient(circle at 30% 70%, rgba(32, 230, 190, 0.28), transparent 46%);
    filter: blur(12px);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 54px;
}

.hero-content {
    max-width: 640px;
    min-width: 0;
}

.hero h1 {
    font-size: 4.65rem;
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 800;
    color: #ffffff;
    overflow-wrap: break-word;
}

.hero-sub {
    margin-top: 28px;
    max-width: 34rem;
    font-size: 1.2rem;
    line-height: 1.55;
    color: rgba(235, 244, 255, 0.78);
}

.hero-note {
    margin-top: 18px;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.91);
    font-size: 1rem;
    font-weight: 600;
}

.hero-proof {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #041411;
    box-shadow: 0 14px 36px rgba(32, 230, 190, 0.26);
}

.btn-primary:hover {
    box-shadow: 0 18px 44px rgba(32, 230, 190, 0.34);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.product-preview {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 248, 0.94)),
        #ffffff;
    box-shadow: var(--shadow), var(--glow);
    color: var(--ink);
}

.product-preview::before {
    content: "";
    position: absolute;
    inset: 12px auto auto 12px;
    width: 92px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--violet), var(--coral));
}

.preview-topbar,
.metric-strip,
.table-row,
.payment-row {
    display: grid;
    align-items: center;
}

.preview-topbar {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding-top: 20px;
}

.preview-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-dark);
    text-transform: uppercase;
}

.preview-topbar strong {
    display: block;
    margin-top: 3px;
    font-size: 1.35rem;
    color: var(--ink-strong);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #071a19;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.metric-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.metric-strip div {
    min-height: 102px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 252, 0.94));
    overflow: hidden;
}

.metric-strip i {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(217, 226, 237, 0.9);
    overflow: hidden;
}

.metric-strip i::before {
    content: "";
    display: block;
    width: var(--fill);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--violet));
}

.metric-strip span,
.payment-row span,
.table-head span {
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 700;
}

.metric-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    color: var(--ink-strong);
}

.invoice-table {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.table-row {
    grid-template-columns: 1fr 1.35fr 0.95fr 0.85fr;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.table-row:first-child {
    border-top: 0;
}

.table-head {
    min-height: 38px;
    background: #edf4f8;
}

.state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    min-width: 72px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    font-style: normal;
}

.state.viewed {
    color: var(--violet);
    background: rgba(91, 75, 138, 0.12);
}

.state.paid {
    color: var(--green);
    background: rgba(21, 134, 92, 0.12);
}

.state.overdue {
    color: var(--red);
    background: rgba(177, 76, 76, 0.12);
}

.timeline {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.timeline div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #45556b;
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(32, 230, 190, 0.16);
    flex: 0 0 auto;
}

.pay-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #071a19, #171027);
    color: #ffffff;
}

.pay-link-card span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pay-link-card strong {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
}

.pay-link-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #041411;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.product-section,
.workflow-section,
.tax-section,
.payments-section,
.roadmap-section,
.cta-section {
    padding: 104px 0;
}

.product-section,
.tax-section,
.payments-section {
    background: #ffffff;
}

.workflow-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(122, 92, 255, 0.1), transparent 28rem),
        linear-gradient(180deg, rgba(238, 244, 248, 0.95), rgba(255, 255, 255, 0.88)),
        #ffffff;
}

.roadmap-section {
    background:
        linear-gradient(180deg, #f6f9fc, #edf3f9);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 56px;
}

.split-section.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
}

.section-copy h2,
.section-header h2,
.legal h1,
.legal h2,
.legal h3 {
    color: var(--ink-strong);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 800;
}

.section-copy h2,
.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.65rem);
}

.section-copy p,
.section-header p {
    margin-top: 18px;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-header {
    max-width: 780px;
    margin-bottom: 42px;
}

.feature-list,
.workflow-grid,
.roadmap-grid {
    display: grid;
    gap: 14px;
}

.feature-list article,
.workflow-step,
.roadmap-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(17, 31, 51, 0.06);
}

.feature-list article {
    position: relative;
    padding: 26px;
    overflow: hidden;
}

.feature-list article::before,
.workflow-step::before,
.roadmap-grid article::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
}

.feature-list h3,
.workflow-step h3,
.roadmap-grid h3 {
    font-size: 1rem;
    color: var(--ink-strong);
}

.feature-list p,
.workflow-step p,
.roadmap-grid p {
    margin-top: 8px;
    color: var(--muted);
}

.workflow-grid {
    grid-template-columns: repeat(4, 1fr);
}

.workflow-step {
    position: relative;
    min-height: 220px;
    padding: 22px;
    overflow: hidden;
}

.workflow-step span {
    display: block;
    margin-bottom: 36px;
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.payment-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(32, 230, 190, 0.14), rgba(122, 92, 255, 0.12)),
        #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tax-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 95, 0.12), transparent 16rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 246, 0.94));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tax-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #07111f, #111936 72%, #1b1531);
}

.tax-panel-header span {
    display: block;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tax-panel-header strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
}

.tax-panel-header small {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.tax-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px 22px 6px;
}

.tax-cards div {
    padding: 16px;
    border: 1px solid rgba(217, 226, 237, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.tax-cards span,
.tax-row span {
    display: block;
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 800;
}

.tax-cards strong {
    display: block;
    margin-top: 8px;
    color: var(--ink-strong);
    font-size: 1.7rem;
    line-height: 1;
}

.remit-meter {
    position: relative;
    height: 58px;
    margin: 12px 22px 6px;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.08);
    overflow: hidden;
}

.remit-meter::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 68%;
    background: linear-gradient(90deg, var(--accent), var(--violet), var(--coral));
}

.remit-meter span {
    position: absolute;
    top: 50%;
    left: var(--offset);
    transform: translate(-50%, -50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #07111f;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.tax-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 64px;
    padding: 0 22px;
    border-top: 1px solid rgba(217, 226, 237, 0.9);
}

.tax-row strong {
    color: var(--ink-strong);
    text-align: right;
}

.rail-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 24px 20px 18px;
    background: #07111f;
}

.rail-visual span {
    position: relative;
    display: grid;
    grid-template-rows: 16px auto;
    justify-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.15;
}

.rail-visual span::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #07111f;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(32, 230, 190, 0.1), 0 0 22px rgba(32, 230, 190, 0.35);
}

.rail-visual span::after {
    content: "";
    position: absolute;
    top: 7px;
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    opacity: 0.72;
}

.rail-visual span:last-child::after {
    display: none;
}

.payment-row {
    grid-template-columns: 1fr auto;
    min-height: 74px;
    gap: 20px;
    padding: 0 22px;
    border-top: 1px solid rgba(219, 226, 234, 0.9);
}

.payment-row:first-child {
    border-top: 0;
}

.payment-row strong {
    text-align: right;
    color: var(--ink-strong);
}

.roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
}

.roadmap-grid article {
    min-height: 196px;
    padding: 24px;
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: var(--ink-strong);
    color: rgba(255, 255, 255, 0.74);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1rem;
}

.footer-brand p {
    margin-top: 8px;
    max-width: 560px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.legal {
    padding: 74px 0 86px;
    background: #ffffff;
}

.legal .container {
    max-width: 880px;
}

.legal h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    margin-bottom: 10px;
}

.legal-meta {
    color: var(--muted);
    margin-bottom: 26px;
}

.legal h2 {
    margin-top: 32px;
    font-size: 1.45rem;
}

.legal h3 {
    margin-top: 22px;
    font-size: 1.08rem;
}

.legal p,
.legal li {
    color: var(--muted);
}

.legal p {
    margin-top: 10px;
}

.legal ul {
    margin: 12px 0 0 22px;
}

.legal a {
    color: var(--accent-dark);
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero-grid,
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 72px;
    }

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

    .workflow-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-preview {
        max-width: 680px;
    }
}

@media (max-width: 720px) {
    .header-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    nav ul {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 42px 0 56px;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero h1 {
        font-size: 2.45rem;
        line-height: 1;
    }

    .hero-sub {
        margin-top: 16px;
        font-size: 0.98rem;
        line-height: 1.42;
    }

    .hero-note {
        margin-top: 12px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .hero-proof {
        display: none;
    }

    .cta-group {
        margin-top: 18px;
        gap: 8px;
    }

    .btn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.78rem;
    }

    .metric-strip,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .product-preview {
        max-height: 235px;
        padding: 14px;
        overflow: hidden;
    }

    .preview-topbar {
        gap: 8px;
        padding-top: 16px;
    }

    .preview-topbar strong {
        font-size: 1.05rem;
    }

    .status-pill {
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.66rem;
    }

    .metric-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 14px;
    }

    .metric-strip div {
        min-height: 72px;
        padding: 10px 8px;
    }

    .metric-strip span {
        font-size: 0.62rem;
    }

    .metric-strip strong {
        margin-top: 5px;
        font-size: 0.9rem;
    }

    .invoice-table,
    .timeline,
    .pay-link-card {
        display: none;
    }

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

    .table-row {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 6px 12px;
        min-height: auto;
        padding: 12px 14px;
    }

    .table-head {
        display: none;
    }

    .preview-topbar,
    .payment-row {
        grid-template-columns: 1fr;
    }

    .payment-row {
        align-items: start;
        gap: 4px;
        padding: 15px 18px;
    }

    .payment-row strong {
        text-align: left;
    }

    .product-section,
    .workflow-section,
    .tax-section,
    .payments-section,
    .roadmap-section,
    .cta-section {
        padding: 64px 0;
    }

    .tax-panel-header,
    .tax-row {
        grid-template-columns: 1fr;
    }

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

    .tax-row {
        align-items: start;
        gap: 4px;
        padding: 15px 18px;
    }

    .tax-row strong {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
