:root {
    --bg: #f4f8f1;
    --bg-deep: #dce9dd;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-tint: rgba(236, 249, 241, 0.88);
    --text: #061309;
    --muted: #53665a;
    --line: rgba(21, 60, 29, 0.14);
    --brand: #00c85f;
    --brand-dark: #011709;
    --brand-soft: rgba(0, 200, 95, 0.12);
    --blue: #174a6b;
    --gold: #bd7a0b;
    --shadow: 0 22px 56px rgba(0, 18, 8, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(135deg, #fbfdf9 0%, var(--bg) 46%, var(--bg-deep) 100%);
    background-size: 46px 46px, 46px 46px, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, rgba(0, 200, 95, 0.16), transparent 34%),
        linear-gradient(292deg, rgba(23, 74, 107, 0.12), transparent 31%);
    opacity: 0.7;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 30px;
}

.app-header {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 22px 28px;
    border: 1px solid rgba(0, 40, 16, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 247, 0.92) 58%, rgba(225, 247, 235, 0.86)),
        repeating-linear-gradient(135deg, rgba(0, 200, 95, 0.08) 0 1px, transparent 1px 18px);
    box-shadow: 0 18px 46px rgba(0, 18, 8, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.site-brand {
    display: inline-flex;
    text-decoration: none;
}

.site-logo-frame {
    display: block;
    width: 500px;
    max-width: 100%;
    filter: drop-shadow(0 16px 24px rgba(0, 18, 8, 0.12));
}

.site-logo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.header-main-copy {
    flex: 1 1 420px;
    min-width: 280px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #008746;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

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

h1,
h2,
h3 {
    font-family: Georgia, "Palatino Linotype", serif;
    letter-spacing: 0;
    color: var(--brand-dark);
}

h1 {
    margin-bottom: 8px;
    font-size: 4rem;
    line-height: 0.98;
}

h2 {
    margin-bottom: 14px;
    font-size: 2.6rem;
    line-height: 1.05;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
    line-height: 1.15;
}

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.68;
}

.header-copy {
    max-width: 62ch;
    margin-bottom: 0;
    color: rgba(6, 19, 9, 0.7);
    font-size: 1.06rem;
}

.profile-section {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: stretch;
    min-height: 520px;
    margin-bottom: 18px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.95), rgba(246, 253, 248, 0.91) 54%, rgba(7, 19, 9, 0.08)),
        repeating-linear-gradient(90deg, rgba(0, 200, 95, 0.07) 0 1px, transparent 1px 54px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.profile-copy .lead {
    color: #1c3022;
    font-size: 1.25rem;
    line-height: 1.58;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
.tool-link:focus-visible {
    outline: 3px solid rgba(0, 200, 95, 0.26);
    outline-offset: 3px;
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), #003f1d);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(0, 82, 36, 0.24);
}

.button-secondary {
    border-color: rgba(0, 65, 27, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-dark);
}

.avatar-frame {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 470px;
    margin: 0;
    border: 1px solid rgba(0, 40, 16, 0.13);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(5, 18, 8, 0.02), rgba(5, 18, 8, 0.12)),
        linear-gradient(135deg, rgba(7, 19, 9, 0.95), rgba(7, 42, 22, 0.9));
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.avatar-frame::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(32, 236, 115, 0.28);
    border-radius: 20px;
}

.avatar-frame::after {
    content: "";
    position: absolute;
    inset: auto -12% -6% -12%;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(0, 200, 95, 0.24));
}

.avatar-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 560px);
    height: auto;
    transform: translateY(20px);
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.34));
}

.training-section,
.tools-section {
    margin-top: 18px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(0, 18, 8, 0.08);
    backdrop-filter: blur(14px);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 24px;
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-grid li {
    position: relative;
    min-height: 74px;
    padding: 16px 16px 16px 48px;
    border: 1px solid rgba(21, 60, 29, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #16251a;
    font-weight: 750;
    line-height: 1.35;
    box-shadow: 0 8px 22px rgba(0, 18, 8, 0.05);
}

.course-grid li::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 19px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

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

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(21, 60, 29, 0.13);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 12px 30px rgba(0, 18, 8, 0.07);
}

.tool-status {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: #005f2d;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.2;
}

.tool-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 14px;
    padding: 0;
    list-style: none;
}

.tool-keywords li {
    padding: 6px 9px;
    border: 1px solid rgba(23, 74, 107, 0.14);
    border-radius: 8px;
    background: rgba(23, 74, 107, 0.06);
    color: #17405c;
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.2;
}

.tool-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
    color: #004f25;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease;
}

.tool-link::after {
    content: "";
    width: 8px;
    height: 8px;
    margin: 8px 0 0 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    padding: 24px 8px 4px;
    color: rgba(6, 19, 9, 0.62);
    font-size: 0.94rem;
}

.site-footer a {
    color: rgba(6, 19, 9, 0.76);
    font-weight: 750;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #004f25;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer span:not(:last-child)::after,
.site-footer a:not(:last-child)::after {
    content: "/";
    margin-left: 18px;
    color: rgba(6, 19, 9, 0.24);
}

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

    h2 {
        font-size: 2.2rem;
    }

    .site-logo-frame {
        width: 420px;
    }

    .profile-section {
        grid-template-columns: 1fr;
    }

    .avatar-frame {
        min-height: 440px;
    }

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

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

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 620px);
        padding-top: 10px;
    }

    .app-header,
    .profile-section,
    .training-section,
    .tools-section {
        padding: 20px;
        border-radius: 18px;
    }

    .app-header {
        gap: 18px;
    }

    .site-logo-frame {
        width: 100%;
    }

    .header-main-copy {
        min-width: 0;
    }

    h1 {
        font-size: 2.55rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .profile-copy .lead {
        font-size: 1.08rem;
    }

    .profile-section {
        gap: 22px;
        min-height: 0;
    }

    .avatar-frame {
        min-height: 330px;
    }

    .avatar-frame img {
        width: min(100%, 400px);
        transform: translateY(14px);
    }

    .profile-actions,
    .button {
        width: 100%;
    }

    .course-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .course-grid li {
        min-height: 0;
    }

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

    .site-footer span:not(:last-child)::after,
    .site-footer a:not(:last-child)::after {
        display: none;
    }
}
