:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #14233b;
    background: #f4f7fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --ink: #14233b;
    --muted: #69788f;
    --line: #e3eaf3;
    --blue: #285bd4;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(74, 124, 226, 0.09), transparent 34rem),
        #f4f7fb;
}

a {
    color: inherit;
}

.page-shell {
    display: flex;
    width: min(1160px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    flex-direction: column;
}

.topbar {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(211, 221, 235, 0.8);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-nav > a:not(.topbar-action) {
    color: #526b8c;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.topbar-nav > a:not(.topbar-action):hover,
.topbar-nav > a:not(.topbar-action):focus-visible {
    color: var(--blue);
    text-decoration: underline;
}

.topbar-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid #d5e1f4;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    color: #285bd4;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.topbar-action:hover,
.topbar-action:focus-visible {
    border-color: #a9c1ef;
    background: #fff;
    outline: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #173768, #326ce0);
    box-shadow: 0 5px 12px rgba(30, 77, 158, 0.2);
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.brand-name {
    color: #193356;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-name span {
    color: #52709b;
    font-weight: 600;
}

.portal-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #61738c;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2eb67d;
    box-shadow: 0 0 0 4px rgba(46, 182, 125, 0.12);
}

main {
    flex: 1;
}

.welcome {
    max-width: 760px;
    padding: 77px 0 39px;
}

.welcome--erp {
    display: grid;
    max-width: none;
    min-height: 480px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: clamp(36px, 6vw, 78px);
    padding: 62px 0 68px;
}

.welcome-copy {
    max-width: 580px;
}

.eyebrow,
.app-category {
    margin: 0;
    color: #5676a4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

h1 {
    margin: 17px 0 17px;
    color: var(--ink);
    font-size: clamp(42px, 6vw, 62px);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 1.03;
}

h1 span {
    color: var(--blue);
}

.intro {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.welcome--erp h1 {
    margin: 18px 0;
    font-size: clamp(48px, 6vw, 68px);
}

.welcome--erp .intro {
    max-width: 520px;
    font-size: 16px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: linear-gradient(135deg, #285bd4, #2049b4);
    box-shadow: 0 8px 18px rgba(40, 91, 212, 0.2);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #2049b4;
    box-shadow: 0 11px 22px rgba(40, 91, 212, 0.25);
}

.button-secondary {
    border-color: #dce5f1;
    background: rgba(255, 255, 255, 0.72);
    color: #41536d;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: #c3d2e7;
    background: #fff;
}

.welcome-footnote {
    margin: 13px 0 0;
    color: #7b899d;
    font-size: 12px;
    line-height: 1.5;
}

.inventory-preview {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(211, 224, 242, 0.95);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(84, 132, 227, 0.11), transparent 19rem),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 54px rgba(40, 68, 112, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 13px;
    background: #eaf1ff;
    color: #285bd4;
}

.preview-icon svg {
    width: 23px;
    height: 23px;
}

.preview-header > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.preview-header small {
    color: #72839a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preview-header strong {
    color: #243650;
    font-size: 15px;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 7px 9px;
    border: 1px solid #dcefe7;
    border-radius: 999px;
    background: #f3fbf7;
    color: #468066;
    font-size: 10px;
    font-weight: 700;
}

.preview-status .status-dot {
    width: 6px;
    height: 6px;
}

.preview-divider {
    height: 1px;
    margin: 22px 0 17px;
    background: #e8edf4;
}

.preview-caption {
    margin: 0 0 10px;
    color: #718198;
    font-size: 11px;
    line-height: 1.5;
}

.preview-row {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf1f6;
}

.preview-row:last-child {
    border-bottom: 0;
}

.preview-row-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 750;
}

.preview-entry {
    background: #eaf6f0;
    color: #198568;
}

.preview-exit {
    background: #fff3e9;
    color: #c36c2e;
}

.preview-stock {
    background: #eef0ff;
    color: #5963bd;
}

.preview-row > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.preview-row strong {
    color: #30425c;
    font-size: 12px;
}

.preview-row small {
    color: #8290a3;
    font-size: 10px;
    line-height: 1.35;
}

.preview-arrow {
    margin-left: auto;
    color: #9aa8bb;
    font-size: 14px;
}

.secondary-app {
    max-width: 1020px;
    padding: 12px 0 28px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 8px 0 0;
    color: #243650;
    font-size: clamp(22px, 3vw, 29px);
    letter-spacing: -0.045em;
}

.section-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.applications {
    display: grid;
    max-width: 1020px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    padding-bottom: 23px;
}

.applications--secondary {
    max-width: 1100px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.applications--secondary .application-card {
    min-height: 320px;
}

.application-card {
    display: flex;
    min-height: 365px;
    flex-direction: column;
    padding: 25px 27px 22px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 12px 35px rgba(36, 63, 103, 0.05);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.application-card[href]:not([aria-disabled="true"]):hover,
.application-card[href]:not([aria-disabled="true"]):focus-visible {
    transform: translateY(-3px);
    border-color: #a9c1ef;
    box-shadow: 0 16px 38px rgba(36, 76, 144, 0.12);
    outline: none;
}

.card-topline {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
}

.app-icon svg {
    width: 25px;
    height: 25px;
}

.anticipos-icon {
    background: #eaf1ff;
    color: #285bd4;
}

.xml-icon {
    background: #fff3e6;
    color: #c2570c;
}

.xml-tag {
    border-color: #fbdcbf;
    background: #fff8f0;
    color: #b45309;
}

.system-icon {
    background: #eaf6f2;
    color: #198568;
}

.open-indicator {
    color: #8292a9;
    font-size: 20px;
}

.app-tag {
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.finance-tag {
    border-color: #dbe6ff;
    background: #f4f7ff;
    color: #315db8;
}

.inventory-tag {
    border-color: #d5eee5;
    background: #f1faf6;
    color: #21795f;
}

.card-copy {
    margin-top: 22px;
}

.card-copy h2,
.card-copy h3 {
    margin: 0 0 10px;
    color: #1b2d49;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.card-copy > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.feature-list {
    display: grid;
    gap: 11px;
    margin: 19px 0 0;
    padding: 0;
    color: #41536d;
    font-size: 13px;
    line-height: 1.45;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li::before {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #285bd4;
    content: "✓";
    font-size: 11px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}

.application-card:nth-child(2) .feature-list li::before {
    background: #e8f6f0;
    color: #198568;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
    padding-top: 22px;
    color: #285bd4;
    font-size: 13px;
    font-weight: 750;
}

.card-action span {
    font-size: 18px;
    transition: transform 160ms ease;
}

.application-card[href]:not([aria-disabled="true"]):hover .card-action span {
    transform: translateX(3px);
}

.portal-note {
    display: flex;
    max-width: 1020px;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 63px;
    padding: 15px 18px;
    border: 1px solid #e0e8f3;
    border-radius: 12px;
    background: rgba(237, 243, 251, 0.72);
}

.note-mark {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    place-items: center;
    border: 1px solid #bdcce0;
    border-radius: 50%;
    color: #5d7392;
    font-size: 12px;
    font-weight: 800;
}

.portal-note p {
    margin: 1px 0 0;
    color: #65758c;
    font-size: 12px;
    line-height: 1.55;
}

.portal-note strong {
    color: #344965;
}

.contact-card {
    display: flex;
    max-width: 1020px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: -35px 0 52px;
    padding: 22px 24px;
    border: 1px solid #dce7f5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(36, 63, 103, 0.04);
}

.contact-card h2 {
    margin: 8px 0 6px;
    color: #1b2d49;
    font-size: 20px;
    letter-spacing: -0.035em;
}

.contact-card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.contact-link {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid #cbdaf2;
    border-radius: 10px;
    background: #f4f7ff;
    color: #285bd4;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    border-color: #a9c1ef;
    background: #eaf1ff;
    outline: none;
}

.application-card[aria-disabled="true"] {
    cursor: not-allowed;
}

.configuration-message {
    max-width: 870px;
    margin: -48px 0 38px;
    padding: 13px 16px;
    border: 1px solid #f2c8c8;
    border-radius: 10px;
    background: #fff4f4;
    color: #922b2b;
    font-size: 14px;
}

.footer {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(211, 221, 235, 0.8);
    color: #8190a5;
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #526b8c;
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #285bd4;
    text-decoration: underline;
}

.legal-content {
    width: min(100%, 800px);
    padding: 60px 0 70px;
}

.legal-content h1 {
    font-size: clamp(36px, 5vw, 52px);
}

.legal-content h2 {
    margin: 32px 0 10px;
    color: #243650;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
    color: #52637b;
    font-size: 15px;
    line-height: 1.75;
}

.legal-content a {
    color: #285bd4;
}

.legal-notice {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid #f0d7a7;
    border-radius: 12px;
    background: #fff8eb;
}

.legal-notice p {
    margin: 0;
    color: #76551e;
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 32px, 500px);
    }

    .topbar {
        min-height: 74px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .topbar-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .topbar-action {
        padding: 0 10px;
        font-size: 12px;
    }

    .welcome {
        padding: 61px 0 33px;
    }

    .welcome--erp {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 31px;
        padding: 49px 0 44px;
    }

    .welcome--erp h1 {
        font-size: clamp(45px, 12vw, 59px);
    }

    .welcome--erp .eyebrow {
        max-width: 310px;
        line-height: 1.6;
    }

    .inventory-preview {
        padding: 20px;
        border-radius: 17px;
    }

    .preview-status {
        padding: 6px 7px;
        font-size: 9px;
    }

    .secondary-app {
        padding-top: 7px;
    }

    .applications {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 18px;
    }

    .application-card {
        min-height: 340px;
        padding: 22px;
    }

    .applications--secondary .application-card {
        min-height: 320px;
    }

    .portal-note {
        margin-bottom: 42px;
    }

    .contact-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin: -22px 0 38px;
        padding: 20px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .legal-content {
        padding: 45px 0 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
