:root {
    --ink: #071a20;
    --muted: #53626e;
    --green: #00c997;
    --green-dark: #006c66;
    --green-soft: #eafaf5;
    --border: #dce7e5;
    --shadow: 0 16px 48px rgba(6, 33, 37, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(7,26,32,.08);
    backdrop-filter: blur(16px);
}
.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand img { width: 210px; height: auto; }
.main-nav { display: flex; gap: 36px; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 600; color: #22313b; }
.main-nav a:hover { color: var(--green-dark); }
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 44px;
    background:
        radial-gradient(circle at 78% 42%, rgba(0,201,151,.12), transparent 31%),
        linear-gradient(180deg, #fff, #fcfffe);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 52px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid #cceee3;
    border-radius: 999px;
    background: var(--green-soft);
    color: #087d69;
    font-weight: 750;
}
.badge span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
h1 {
    margin: 24px 0 18px;
    max-width: 760px;
    font-size: clamp(3rem, 6.3vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}
.lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.38rem); }
.hero-actions { display: flex; gap: 16px; margin: 32px 0 24px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 27px;
    border-radius: 9px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    box-shadow: 0 12px 26px rgba(0, 141, 117, .2);
}
.button-secondary { color: #008a72; border-color: #00a982; background: #fff; }
.supporting-line { color: #596976; display: flex; align-items: center; gap: 10px; }
.supporting-line span {
    display: inline-grid; place-items: center;
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #93e8cf; color: #08a47f; font-weight: 900;
}
.hero-mark { display: grid; place-items: center; min-height: 470px; }
.rings {
    position: relative;
    display: grid;
    place-items: center;
    width: min(440px, 88vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0,201,151,.12), transparent 58%),
        repeating-radial-gradient(circle, transparent 0 58px, rgba(4,142,116,.08) 59px 60px);
}
.rings img { width: 58%; filter: drop-shadow(0 20px 30px rgba(0, 77, 74, .17)); }

.features { padding: 22px 0 76px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.card-icon {
    display: grid; place-items: center;
    width: 55px; height: 55px;
    border-radius: 14px;
    color: #008b72;
    background: var(--green-soft);
    font-weight: 900;
    font-size: 1.25rem;
}
.card h2 { margin: 22px 0 8px; font-size: 1.28rem; }
.card p { margin: 0; color: var(--muted); }

.forms-section { padding: 76px 0; background: #f6fbf9; border-top: 1px solid #e3efeb; }
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}
.eyebrow { color: #00856e !important; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; }
.form-panel h2 { font-size: 2rem; margin: 0 0 8px; }
.form-panel > p { color: var(--muted); }
form { display: grid; gap: 10px; margin-top: 25px; }
label { font-weight: 700; font-size: .92rem; }
input, textarea {
    width: 100%;
    border: 1px solid #cfdcda;
    border-radius: 9px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}
input:focus, textarea:focus { outline: 3px solid rgba(0,201,151,.17); border-color: #00a681; }
textarea { resize: vertical; }
form .button { margin-top: 8px; justify-self: start; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    font-weight: 700;
}
.status-success { background: #e6f9f1; color: #08745f; border: 1px solid #bce9da; }
.status-error { background: #fff0f0; color: #9a2f2f; border: 1px solid #efcccc; }

footer { border-top: 1px solid #e3e8e7; background: #fff; }
.footer-inner {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #52616d;
}

@media (max-width: 860px) {
    .hero-grid, .forms-grid { grid-template-columns: 1fr; }
    .hero-mark { min-height: 320px; order: -1; }
    .rings { width: min(320px, 80vw); }
    .cards { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        padding: 24px 20px;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1180px); }
    .brand img { width: 175px; }
    .hero { padding-top: 50px; }
    h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
    .hero-actions .button { width: 100%; }
    .form-panel { padding: 24px; }
    .footer-inner { flex-direction: column; justify-content: center; gap: 6px; }
}


/* Internal employee login link */
.admin-lock {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d6e4e1;
    border-radius: 50%;
    color: #53656d !important;
    background: #fff;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.admin-lock:hover {
    color: var(--green-dark) !important;
    border-color: #8bd7c5;
    background: var(--green-soft);
    transform: translateY(-1px);
}
.admin-lock svg { width: 19px; height: 19px; fill: currentColor; }

/* Internal administration screens */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 14%, rgba(0,201,151,.13), transparent 30%),
        linear-gradient(180deg, #f8fcfb 0%, #eef7f4 100%);
}
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(7,26,32,.09);
    backdrop-filter: blur(16px);
}
.admin-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.admin-header .brand img { width: 175px; }
.admin-header-actions { display: flex; align-items: center; gap: 18px; }
.admin-user { color: #5a6a72; font-size: .92rem; }
.admin-link { color: #087f70; font-weight: 750; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }
.admin-main { flex: 1; padding: 56px 0 80px; }

.login-wrap {
    width: min(100% - 32px, 460px);
    margin: auto;
    padding: 56px 0;
}
.login-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.login-brand img { width: 205px; }
.login-card {
    padding: 38px;
    border: 1px solid #dfe9e6;
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 70px rgba(12, 56, 51, .12);
}
.login-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green-dark);
    margin-bottom: 22px;
}
.login-icon svg { width: 25px; height: 25px; fill: currentColor; }
.login-card h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 25px; color: var(--muted); }
.login-card form { margin-top: 0; gap: 15px; }
.login-card label { display: grid; gap: 7px; }
.login-card input { min-height: 50px; }
.login-card .button { width: 100%; margin-top: 5px; }
.login-error {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #efcccc;
    border-radius: 10px;
    color: #8e2929;
    background: #fff0f0;
    font-weight: 700;
}
.login-back { margin-top: 20px; text-align: center; }
.login-back a { color: #557078; text-decoration: none; }
.login-back a:hover { color: var(--green-dark); }

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 25px;
}
.page-heading h1 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; }
.page-heading p { margin: 10px 0 0; color: var(--muted); }
.count-badge {
    padding: 8px 13px;
    border-radius: 999px;
    color: #087a66;
    background: var(--green-soft);
    border: 1px solid #cbece2;
    font-weight: 800;
    white-space: nowrap;
}
.table-panel {
    overflow: hidden;
    border: 1px solid #dfe8e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(12,56,51,.08);
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #e8efed; }
.company-table th {
    color: #4f6168;
    background: #f7faf9;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.company-table tbody tr:hover { background: #fbfefd; }
.company-table tbody tr:last-child td { border-bottom: 0; }
.status-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}
.status-active { color: #08735f; background: #e6f8f1; }
.status-inactive { color: #6c7477; background: #edf0f1; }
.empty-state { padding: 66px 28px; text-align: center; }
.empty-state-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 1.7rem;
}
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.admin-error { padding: 18px; color: #8e2929; background: #fff0f0; border: 1px solid #efcccc; border-radius: 12px; }

@media (max-width: 760px) {
    .admin-header-inner { min-height: 68px; }
    .admin-header .brand img { width: 145px; }
    .admin-user { display: none; }
    .admin-main { padding-top: 36px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .table-panel { overflow-x: auto; }
    .company-table { min-width: 760px; }
    .login-card { padding: 28px 24px; }
}


/* Company-to-people navigation */
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #9bdccc;
    border-radius: 999px;
    background: #effbf7;
    color: #087b66;
    font-weight: 750;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
.table-action:hover { background: #dff7ef; border-color: #64cbb3; }
.back-row { margin-bottom: 18px; }
.back-link { color: #087b66; font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }
.people-table { min-width: 1180px; }
.people-table th, .people-table td { vertical-align: top; }
