:root {
    --navy: #1e3a8a;
    --navy-deep: #10245f;
    --navy-ink: #071942;
    --brand-blue: #38a8e8;
    --brand-blue-soft: #d7ecff;
    --page: #eef3f9;
    --panel: #ffffff;
    --text: #11213a;
    --muted: #52647c;
    --line: #c9d7ea;
    --shadow: 0 18px 44px rgba(7, 25, 66, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.section-shell,
.landing-nav,
.footer-inner {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--navy);
    box-shadow: 0 8px 18px rgba(7, 25, 66, 0.14);
    padding: 26px 0;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    min-width: min(380px, 30vw);
    overflow: visible;
}

.brand img {
    width: auto;
    height: 56px;
    max-width: min(380px, 70vw);
    object-fit: contain;
    transform: scale(2.1);
    transform-origin: left center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.nav-links,
.nav-actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.94rem;
    font-weight: 800;
}

.nav-links {
    color: #ffffff;
}

.nav-actions {
    gap: 10px;
    justify-content: flex-end;
}

.nav-links a {
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-blue-soft);
    opacity: 1;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-nav {
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.btn-nav:hover {
    background: var(--brand-blue-soft);
}

.btn-nav-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.btn-primary {
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.28);
}

.btn-primary:hover {
    background: var(--navy-deep);
}

.btn-secondary {
    background: #ffffff;
    color: var(--navy);
    border-color: #9fc6ed;
}

.btn-secondary:hover {
    background: var(--brand-blue-soft);
}

.btn-light {
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
    align-items: center;
    gap: 38px;
    padding: 46px 0 42px;
}

.hero-copy,
.detail-copy,
.finance-copy,
.report-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--navy-ink);
    font-size: 4.35rem;
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--navy-ink);
    font-size: 2.15rem;
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    color: var(--navy-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero-text,
.detail-copy p,
.finance-copy p,
.report-copy p,
.feature-card p {
    color: var(--muted);
    font-size: 1rem;
}

.hero-text {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 1.1rem;
}

.section-summary {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.finance-tags span {
    border: 1px solid #9fc6ed;
    border-radius: 8px;
    background: #ffffff;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 900;
}

.hero-visual,
.image-frame {
    min-width: 0;
    border: 1px solid #a9c9ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-visual img,
.image-frame img {
    width: 100%;
    height: auto;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.hero-visual img {
    width: min(100%, 640px);
    margin-left: auto;
    filter: drop-shadow(0 22px 34px rgba(7, 25, 66, 0.18));
}

.features,
.dual-section,
.finance-section,
.report-section {
    padding: 32px 0;
}

.compact-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
    align-items: end;
    gap: 24px;
    margin-bottom: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(7, 25, 66, 0.09);
}

.feature-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--navy);
    color: #ffffff;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card p {
    margin: 10px 0 0;
}

.dual-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(7, 25, 66, 0.1);
}

.dual-section .detail-panel {
    grid-template-rows: auto auto;
    align-content: start;
}

.dual-section .image-frame {
    align-self: start;
}

.dual-section .image-frame img {
    object-fit: contain;
}

.detail-copy p,
.color-control-copy p,
.finance-copy p,
.report-copy p {
    margin: 14px 0 0;
}

.color-control-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.color-control-copy {
    min-width: 0;
}

.color-control-copy p {
    color: var(--muted);
    font-size: 1rem;
}

.color-control-board {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.color-control-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(7, 25, 66, 0.1);
}

.color-control-panel-header {
    margin-bottom: 10px;
    color: var(--navy-ink);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
}

.color-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 7px;
    min-width: 0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px;
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.color-chip strong,
.color-chip span,
.color-chip small,
.due-status-row strong {
    min-width: 0;
}

.color-chip strong {
    color: var(--navy-ink);
    font-size: 0.78rem;
    line-height: 1.2;
}

.color-chip span:not(.color-dot) {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.color-chip small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.3;
}

.color-chip-income .color-dot,
.color-chip-income span:not(.color-dot) {
    color: #16c45b;
}

.color-chip-income .color-dot {
    background: #16c45b;
}

.color-chip-receivable .color-dot,
.color-chip-receivable span:not(.color-dot) {
    color: #0f766e;
}

.color-chip-receivable .color-dot {
    background: #0f766e;
}

.color-chip-debt .color-dot,
.color-chip-debt span:not(.color-dot) {
    color: #dc2626;
}

.color-chip-debt .color-dot {
    background: #dc2626;
}

.color-chip-payment .color-dot,
.color-chip-payment span:not(.color-dot) {
    color: #f97316;
}

.color-chip-payment .color-dot {
    background: #f97316;
}

.color-chip-tax .color-dot,
.color-chip-tax span:not(.color-dot) {
    color: #2563eb;
}

.color-chip-tax .color-dot {
    background: #2563eb;
}

.due-status-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.due-status-row strong {
    flex: 0 0 auto;
    color: var(--navy-ink);
    font-size: 0.84rem;
}

.due-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.due-badge {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.due-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.due-badge-overdue {
    background: #fee2e2;
    color: #dc2626;
}

.due-badge-soon {
    background: #fef3c7;
    color: #b45309;
}

.due-badge-normal {
    background: #e2e8f0;
    color: #64748b;
}

.finance-section,
.report-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 22px;
}

.finance-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    padding: 18px 0;
}

.finance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.finance-tags span {
    padding: 8px 11px;
}

.image-frame-large {
    width: 100%;
    justify-self: start;
    box-shadow: 0 22px 52px rgba(7, 25, 66, 0.2);
}

.finance-focus {
    width: 76%;
    justify-self: center;
    aspect-ratio: 1459 / 1078;
}

.finance-focus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.report-section {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    padding: 24px 0;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 44px;
    border-radius: 8px;
    background: var(--navy);
    color: #ffffff;
    padding: 34px;
    box-shadow: 0 18px 44px rgba(7, 25, 66, 0.2);
}

.cta h2 {
    color: #ffffff;
}

.cta h2 {
    max-width: 830px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.landing-footer {
    background: var(--navy-deep);
}

.footer-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, auto) minmax(220px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 14px 0;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: start;
}

.footer-brand img {
    width: min(320px, 58vw);
}

.footer-tagline {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    justify-self: end;
}

.footer-links {
    color: #ffffff;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: center;
    gap: 10px;
}

.footer-links a {
    opacity: 0.88;
}

.footer-links a + a::before {
    content: "|";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.54);
}

.footer-links a:hover {
    color: var(--brand-blue-soft);
    opacity: 1;
}

@media (max-width: 1100px) {
    h1 {
        font-size: 3.65rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .landing-nav {
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-actions {
        margin-left: auto;
    }

    .brand {
        height: 52px;
    }

    .brand img {
        height: 52px;
        transform: scale(2);
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero,
    .color-control-section,
    .finance-section,
    .report-section {
        grid-template-columns: 1fr;
    }

    .color-control-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .finance-section,
    .report-section {
        gap: 22px;
    }

    .image-frame-large {
        width: min(900px, 100%);
        justify-self: stretch;
    }

    .finance-focus {
        width: min(680px, 78%);
        justify-self: center;
        aspect-ratio: 1459 / 1078;
    }

    .hero {
        padding: 34px 0 30px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-visual img {
        width: min(680px, 94%);
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 2.55rem;
        line-height: 1.03;
    }

    h2 {
        font-size: 1.62rem;
    }

    .section-shell,
    .landing-nav,
    .footer-inner {
        width: min(100% - 28px, 1240px);
    }

    .landing-nav {
        justify-content: center;
        gap: 12px;
    }

    .brand {
        justify-content: center;
        min-width: 0;
        width: 100%;
        height: 48px;
        padding-left: 0;
    }

    .brand img {
        height: 48px;
        max-width: min(320px, 82vw);
        transform: scale(1.85);
        transform-origin: center;
    }

    .nav-actions,
    .nav-actions .btn {
        width: 100%;
    }

    .nav-actions {
        order: 2;
        flex-direction: column;
    }

    .nav-links {
        font-size: 0.84rem;
        gap: 10px 14px;
    }

    .hero {
        gap: 24px;
        padding: 28px 0 26px;
    }

    .hero-visual img {
        width: min(100%, 520px);
    }

    .hero-actions,
    .hero-actions .btn,
    .cta .btn,
    .cta-actions {
        width: 100%;
    }

    .compact-heading,
    .dual-section,
    .color-control-board,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .color-control-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .due-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .features,
    .dual-section,
    .color-control-section,
    .finance-section,
    .report-section {
        padding: 22px 0;
    }

    .finance-focus img {
        object-fit: contain;
        object-position: center;
    }

    .feature-card,
    .detail-panel {
        padding: 18px;
    }

    .cta {
        flex-direction: column;
        align-items: stretch;
        padding: 26px 20px;
        margin-bottom: 34px;
    }

    .footer-inner {
        flex-direction: column;
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
        gap: 12px;
        padding: 18px 0;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        justify-self: center;
    }

    .footer-links {
        justify-content: center;
        gap: 10px 16px;
        font-size: 0.86rem;
    }

    .footer-copy {
        text-align: center;
        justify-self: center;
    }
}
