:root {
    --ink: #13231e;
    --muted: #62716b;
    --line: #dce4df;
    --paper: #fffefb;
    --canvas: #f3f6f2;
    --accent: #0c7557;
    --accent-dark: #075741;
    --accent-soft: #daf1e7;
    --warm: #e8a848;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(232, 168, 72, .14), transparent 26rem),
        radial-gradient(circle at 90% 16%, rgba(12, 117, 87, .12), transparent 30rem),
        var(--canvas);
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 72px);
    border-bottom: 1px solid rgba(19, 35, 30, .08);
    background: rgba(255, 254, 251, .8);
    backdrop-filter: blur(18px);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: white;
    background: var(--accent);
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .04em;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.topbar-user form {
    margin: 0;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 68px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: .98;
    letter-spacing: -.055em;
}

h2 {
    margin-bottom: 0;
    font-size: 30px;
    letter-spacing: -.03em;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.hero p:not(.eyebrow),
.auth-intro p:not(.eyebrow) {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #bcd8cc;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.status-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a976;
    box-shadow: 0 0 0 4px rgba(40, 169, 118, .14);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.counter {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-weight: 800;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid rgba(19, 35, 30, .1);
    border-radius: 22px;
    background: rgba(255, 254, 251, .92);
    box-shadow: 0 18px 50px rgba(27, 54, 44, .07);
}

.company-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 22px;
}

.company-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 19px;
    font-weight: 850;
}

.company-card p {
    color: var(--muted);
    font-size: 14px;
}

.product-list,
.company-card .button {
    grid-column: 1 / -1;
}

.product-list {
    min-height: 34px;
}

code {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 7px;
    color: #42514c;
    background: #edf1ee;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.button-primary {
    color: white;
    background: var(--accent);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-ghost {
    min-height: 36px;
    border: 1px solid var(--line);
    background: transparent;
}

.button-muted {
    color: #7f8a86;
    background: #edf1ee;
    cursor: not-allowed;
}

.auth-layout {
    min-height: calc(100vh - 220px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px);
    align-items: center;
    gap: clamp(48px, 9vw, 140px);
}

.auth-intro h1 {
    font-size: clamp(46px, 6vw, 78px);
}

.login-card {
    display: grid;
    gap: 22px;
    padding: 34px;
}

.login-card label {
    display: grid;
    gap: 8px;
    color: #40504a;
    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5d0;
    border-radius: 12px;
    outline: none;
    background: white;
    color: var(--ink);
    font: inherit;
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(12, 117, 87, .11);
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    color: #8f2f2f;
    background: #fae5e2;
    font-size: 14px;
}

.helper-text {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.empty-state {
    padding: 32px;
}

@media (max-width: 760px) {
    .topbar-user > span {
        display: none;
    }

    .page {
        padding-top: 44px;
    }

    .hero,
    .auth-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .status-pill {
        justify-self: start;
    }

    .auth-layout {
        gap: 36px;
    }
}
