/* Peta Core — start page and error pages. Light by default, dark with the system setting. */
:root {
    --hm-navy: #0e2344; --hm-ink: #0f2342; --hm-text: #4a5b72; --hm-muted: #6b7a90;
    --hm-blue: #2383cf; --hm-blue-dark: #1b6fb2; --hm-tint: #e9f3fb; --hm-line: #dfe7f0;
    --hm-bg: #ffffff; --hm-card: #ffffff; --hm-soft: #f5f8fb;
}
@media (prefers-color-scheme: dark) {
    :root { --hm-ink: #eef4fb; --hm-text: #b7c6d8; --hm-muted: #8fa2b9; --hm-tint: rgb(35 131 207 / .15); --hm-line: rgb(255 255 255 / .1); --hm-bg: #0b1a33; --hm-card: #10223f; --hm-soft: #0d1e3a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--hm-bg); color: var(--hm-ink); font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
.hm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .hm-wrap { padding: 0 32px; } }
.hm-i16 { width: 1rem; height: 1rem; flex-shrink: 0; }
.hm-i18 { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.hm-i22 { width: 1.45rem; height: 1.45rem; }

/* Header */
.hm-header { background: var(--hm-navy); border-bottom: 1px solid rgb(255 255 255 / .06); }
.hm-header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hm-brand img { display: block; height: 50px; width: auto; }
.hm-nav { display: flex; gap: 1.4rem; }
.hm-nav a { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: rgb(255 255 255 / .6); transition: color .15s; }
.hm-nav a:hover { color: #fff; }

/* Hero */
.hm-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #1c5b92 0%, #154a7c 38%, #0f3160 70%, #0c2548 100%); }
.hm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 46%, rgb(255 255 255 / .06) 46% 70%, transparent 70%); pointer-events: none; }
.hm-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.hm-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hm-eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; color: #8fd0ff; letter-spacing: .01em; }
.hm-eyebrow span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hm-eyebrow-blue { color: var(--hm-blue); }
.hm-hero h1 { margin: 0 0 1.1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.hm-hero h1 em { font-style: normal; color: #6cc2ff; }
.hm-lead { margin: 0 0 1.6rem; max-width: 470px; font-size: 1rem; line-height: 1.65; color: rgb(255 255 255 / .8); }
.hm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.hm-points li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: rgb(255 255 255 / .9); }
.hm-points svg { color: #6cc2ff; }

/* Portal cards */
.hm-portals { display: grid; gap: 14px; }
.hm-portal { display: flex; gap: 1rem; align-items: flex-start; padding: 20px 22px; border-radius: 14px; background: var(--hm-card); color: var(--hm-ink); box-shadow: 0 18px 40px rgb(3 14 32 / .28); border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.hm-portal:hover, .hm-portal:focus-visible { transform: translateY(-2px); box-shadow: 0 22px 48px rgb(3 14 32 / .38); border-color: rgb(35 131 207 / .45); outline: none; }
.hm-portal-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--hm-tint); color: var(--hm-blue); }
.hm-portal.is-featured .hm-portal-icon { background: var(--hm-blue); color: #fff; }
.hm-portal-body { display: flex; flex-direction: column; min-width: 0; }
.hm-portal-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-blue); }
.hm-portal strong { margin-top: .15rem; font-size: 1.1rem; font-weight: 800; }
.hm-portal-text { margin-top: .3rem; font-size: .83rem; line-height: 1.55; color: var(--hm-text); }
.hm-portal-cta { margin-top: .7rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--hm-blue); }
.hm-portal:hover .hm-portal-cta svg { transform: translateX(3px); }
.hm-portal-cta svg { transition: transform .15s; }

/* Services */
.hm-services { padding: 64px 0 56px; background: var(--hm-bg); }
.hm-services h2 { margin: 0 0 2rem; max-width: 560px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.hm-service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.hm-service-grid li { display: flex; flex-direction: column; gap: .25rem; }
.hm-service-grid strong { margin-top: .8rem; font-size: .9rem; font-weight: 700; }
.hm-service-grid li > span:last-child { font-size: .8rem; line-height: 1.5; color: var(--hm-muted); }
.hm-service-icon { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--hm-tint); color: var(--hm-blue); border: 1px solid rgb(35 131 207 / .12); }

/* Contact */
.hm-contact { padding: 0 0 56px; background: var(--hm-bg); }
.hm-contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-contact-grid > * { padding: 18px; border-radius: 12px; background: var(--hm-tint); }
.hm-contact-item { display: flex; gap: .75rem; align-items: flex-start; color: var(--hm-blue); }
.hm-contact-item > div { display: flex; flex-direction: column; min-width: 0; }
.hm-contact-item strong { font-size: .85rem; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
.hm-contact-item span { font-size: .75rem; color: var(--hm-muted); }
a.hm-contact-item:hover strong { color: var(--hm-blue); }

/* Footer */
.hm-footer { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 16px; background: var(--hm-navy); }
.hm-footer img { display: block; width: 26px; height: 26px; }
.hm-footer p { margin: 0; font-size: .72rem; color: rgb(255 255 255 / .7); text-align: center; }
.hm-footer p span { color: #5aa9e6; }

@media (max-width: 960px) {
    .hm-hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
    .hm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .hm-nav a span { display: none; }
    .hm-nav { gap: 1rem; }
    .hm-nav a { width: 36px; height: 36px; justify-content: center; border-radius: 999px; border: 1px solid rgb(255 255 255 / .15); }
    .hm-contact-grid { grid-template-columns: 1fr; }
    .hm-portal { padding: 18px; }
}

/* Error pages */
.hm-error { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: linear-gradient(160deg, #1c5b92 0%, #154a7c 38%, #0f3160 70%, #0c2548 100%); }
.hm-error-card { width: 100%; max-width: 460px; padding: 40px 32px 32px; border-radius: 16px; text-align: center; background: var(--hm-card); box-shadow: 0 24px 60px rgb(3 14 32 / .35); }
.hm-error-card img { width: 84px; height: auto; margin: 0 auto 1.4rem; display: block; }
.hm-error-code { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--hm-blue); }
.hm-error-card h1 { margin: .4rem 0 .6rem; font-size: 1.4rem; font-weight: 800; }
.hm-error-card p { margin: 0 auto 1.5rem; max-width: 340px; font-size: .88rem; line-height: 1.6; color: var(--hm-text); }
.hm-error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--hm-line); background: transparent; color: var(--hm-ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.hm-btn-primary { background: var(--hm-blue); border-color: var(--hm-blue); color: #fff; }
.hm-btn:hover { border-color: var(--hm-blue); }
.hm-btn-primary:hover { background: var(--hm-blue-dark); }
.hm-dark-only { display: none !important; }
@media (prefers-color-scheme: dark) { .hm-dark-only { display: block !important; } .hm-light-only { display: none !important; } }
