:root {
    --navy: #17324d;
    --navy-deep: #10283d;
    --ink: #1d2a36;
    --muted: #657586;
    --line: #dfe7ed;
    --surface: #ffffff;
    --background: #f3f6f8;
    --accent: #2f8f72;
    --shadow: 0 12px 30px rgba(19, 43, 63, 0.08);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--background);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    color: #fff;
    background: rgba(16, 40, 61, 0.97);
    box-shadow: 0 3px 14px rgba(6, 22, 35, 0.16);
    backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner { min-height: 76px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--accent);
}

.brand-mark svg,
.module-icon svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand strong,
.brand small { display: block; }

.brand strong { font-size: 1.08rem; letter-spacing: 0.01em; }
.brand small { color: #b9c8d3; font-size: 0.77rem; }

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4dee5;
    font-size: 0.86rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66d5a4;
    box-shadow: 0 0 0 4px rgba(102, 213, 164, 0.13);
}

main { flex: 1; }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, var(--navy-deep), #244d68 68%, #26745f);
}

.hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -150px;
    bottom: -270px;
    border: 70px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.hero-inner { position: relative; z-index: 1; padding-block: 58px 66px; }

.eyebrow {
    margin: 0 0 8px;
    color: #3da888;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #81d6ba; }

h1, h2, p { margin-top: 0; }

h1 {
    max-width: 760px;
    margin-bottom: 13px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hero-copy {
    max-width: 700px;
    margin-bottom: 0;
    color: #d5e1e8;
    font-size: clamp(1rem, 2vw, 1.14rem);
}

.modules { padding-block: 48px 64px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2 { margin: 0; color: var(--navy); font-size: 1.65rem; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 0.9rem; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.module-card {
    --card-color: #2f8f72;
    min-height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 2px 3px rgba(19, 43, 63, 0.025);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--card-color);
}

.module-card:hover,
.module-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-color) 42%, var(--line));
    box-shadow: var(--shadow);
    outline: none;
}

.module-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 13px;
    color: var(--card-color);
    background: color-mix(in srgb, var(--card-color) 11%, white);
}

.module-content { display: block; padding-right: 28px; }
.module-content strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 1.08rem; }
.module-content > span { display: block; color: var(--muted); font-size: 0.89rem; }

.module-arrow {
    position: absolute;
    right: 22px;
    bottom: 21px;
    color: var(--card-color);
    font-size: 1.2rem;
    transition: transform 180ms ease;
}

.module-card:hover .module-arrow { transform: translateX(4px); }
.module-card--orange { --card-color: #d9822b; }
.module-card--blue { --card-color: #3478b8; }
.module-card--purple { --card-color: #7656a8; }
.module-card--teal { --card-color: #168b91; }
.module-card--red { --card-color: #c45454; }
.module-card--slate { --card-color: #657586; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
.footer-inner { min-height: 68px; font-size: 0.82rem; }

@media (max-width: 900px) {
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 68px; }
    .header-status { display: none; }
    .hero-inner { padding-block: 42px 48px; }
    .modules { padding-block: 36px 44px; }
    .section-heading { align-items: flex-start; margin-bottom: 18px; }
    .section-heading > p { display: none; }
    .module-grid { grid-template-columns: 1fr; gap: 14px; }
    .module-card { min-height: 158px; padding: 21px; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
