:root {
  color-scheme: light;
  --ink: #10223f;
  --muted: #5d6c84;
  --subtle: #7b899f;
  --line: #d7e1ee;
  --canvas: #eef3fb;
  --panel: #fff;
  --navy: #0d1d38;
  --blue: #245bd2;
  --blue-dark: #183d99;
  --blue-soft: #e9f0ff;
  --green: #14734c;
  --green-soft: #e9f8f0;
  --amber: #97630b;
  --amber-soft: #fff7df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: linear-gradient(90deg, #ffffff77 1px, transparent 1px), linear-gradient(#ffffff77 1px, transparent 1px), var(--canvas); background-size: 32px 32px; font-size: 15px; line-height: 1.6; }
a, button, input { font: inherit; }
a { color: inherit; }
.skip-link { position: absolute; left: 18px; top: -52px; z-index: 5; padding: 10px 14px; color: #fff; background: var(--blue-dark); border-radius: 0 0 8px 8px; font-weight: 750; }
.skip-link:focus-visible { top: 0; }
.section-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.portal-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 0 max(24px, calc((100% - 1160px) / 2)); background: rgba(238,243,251,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: linear-gradient(145deg, #346ee6, #173c96); border: 1px solid #ffffff44; border-radius: 11px; box-shadow: 0 8px 18px #1b4aa033; font-size: 19px; font-weight: 850; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--subtle); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.portal-header__right, .portal-nav { display: flex; align-items: center; gap: 22px; }
.env-badge { padding: 5px 9px; color: var(--green); background: var(--green-soft); border: 1px solid #c9ecd9; border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.portal-nav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.portal-nav a:not(.button), .text-link, .card-link, .login-back { text-underline-offset: 4px; }
.portal-nav a:not(.button):hover, .text-link:hover, .card-link:hover, .login-back:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .portal-nav a:focus-visible, .text-link:focus-visible, .card-link:focus-visible, .brand:focus-visible { outline: 3px solid #6e9cff; outline-offset: 3px; }
.button--small { min-height: 38px; padding: 8px 13px; font-size: 12px !important; }
.button--primary { color: #fff !important; background: linear-gradient(135deg, #2f6be5, var(--blue-dark)); box-shadow: 0 9px 20px #1d4cab2e; }
.button--primary:hover { background: linear-gradient(135deg, #245bd2, #132f79); box-shadow: 0 12px 24px #1d4cab3d; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: clamp(40px, 8vw, 100px); min-height: 595px; padding-top: 74px; padding-bottom: 73px; }
.hero::before { position: absolute; top: 65px; bottom: 65px; left: -18px; width: 3px; background: linear-gradient(var(--blue), transparent 82%); border-radius: 8px; content: ""; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 21px; font-size: clamp(38px, 5.5vw, 66px); letter-spacing: -.06em; line-height: 1.08; text-wrap: balance; }
h1 em { color: var(--blue); font-style: normal; }
.hero__lede { max-width: 560px; margin-bottom: 27px; color: var(--muted); font-size: 17px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.text-link, .card-link { color: var(--blue); font-weight: 750; text-decoration: none; }
.notice { display: flex; align-items: flex-start; gap: 10px; max-width: 550px; margin: 28px 0 0; padding: 11px 13px; font-size: 12px; }
.notice--amber { color: var(--amber); background: var(--amber-soft); border: 1px solid #f0dfa9; border-radius: 8px; }
.notice__icon { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; color: #fff; background: #c18a25; border-radius: 50%; font-size: 11px; font-weight: 850; }
.notice strong { margin-right: 3px; }
.hero__visual { position: relative; padding: 23px 0 22px 24px; }
.hero__visual::before { position: absolute; inset: 0 0 0 24px; z-index: -1; background: linear-gradient(145deg, #dfeaff, #f3f6fd 68%, #fff); border: 1px solid #c9d9f4; border-radius: 24px; content: ""; transform: rotate(2deg); }
.flow-card { display: flex; align-items: center; gap: 14px; min-height: 92px; margin-left: 0; padding: 17px 19px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 14px 30px #24467d12; }
.flow-card__index { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 11px; font-weight: 850; }
.flow-card div { min-width: 0; flex: 1; }
.flow-card strong, .flow-card small { display: block; }
.flow-card strong { font-size: 15px; }
.flow-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.flow-card__state { color: var(--amber); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.flow-card--top .flow-card__state { color: var(--green); }
.flow-line { width: 1px; height: 24px; margin: 0 0 0 36px; background: #aebee6; }
.section-block { padding-top: 92px; padding-bottom: 92px; }
.section-heading { max-width: 640px; margin-bottom: 30px; }
h2 { margin-bottom: 9px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.05em; line-height: 1.15; text-wrap: balance; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.feature-card { position: relative; min-height: 245px; padding: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 27px #193a700b; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #83a9ff); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.feature-card:hover { border-color: #b8cef4; box-shadow: 0 18px 34px #193a7017; transform: translateY(-3px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card__number { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.feature-card h3 { margin: 22px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.feature-card p { min-height: 71px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.card-state { color: var(--green); font-size: 11px; font-weight: 800; }
.boundary-section { padding-top: 57px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.boundary-item { display: flex; align-items: flex-start; gap: 12px; }
.boundary-item__icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 12px; font-weight: 850; }
.boundary-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.boundary-item p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 27px; color: var(--subtle); border-top: 1px solid var(--line); font-size: 11px; }
.login-page { min-height: 100vh; background: radial-gradient(circle at 82% 16%, #dce8ff 0, transparent 31%), linear-gradient(90deg, #ffffff70 1px, transparent 1px), var(--canvas); background-size: auto, 32px 32px, auto; }
.login-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1fr); align-items: center; gap: 80px; min-height: calc(100vh - 82px); padding-top: 50px; padding-bottom: 70px; }
.login-intro h1 { max-width: 520px; margin-bottom: 17px; font-size: clamp(34px, 4.5vw, 56px); }
.login-intro > p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.login-boundary-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.login-boundary-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.login-boundary-list li::before { display: grid; place-items: center; width: 20px; height: 20px; color: var(--green); background: var(--green-soft); border-radius: 50%; content: "✓"; font-size: 11px; font-weight: 850; }
.login-card { position: relative; padding: clamp(25px, 4vw, 39px); overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px #193a7012; }
.login-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #83a9ff); content: ""; }
.login-card h2 { margin-bottom: 9px; font-size: 25px; }
.login-card__intro { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: var(--ink); font-size: 12px; font-weight: 750; }
.login-field input { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cbd6e7; border-radius: 8px; }
.login-field input:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px #315fd526; }
.login-field input[aria-invalid="true"] { border-color: #c45b4e; }
.login-field small { color: var(--subtle); font-size: 11px; }
.login-form .button { width: 100%; margin-top: 4px; cursor: pointer; }
.login-status { min-height: 43px; margin: 0; padding: 11px 12px; color: var(--amber); background: var(--amber-soft); border: 1px solid #f0dfa9; border-radius: 8px; font-size: 12px; }
.login-status--error { color: #a03329; background: #fff0ee; border-color: #efc5c0; }
.login-status--pending { color: var(--blue-dark); background: var(--blue-soft); border-color: #cbd9ff; }
.login-back { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 12px; text-decoration: none; }
.login-back:hover { color: var(--blue-dark); }
@media (max-width: 820px) {
  .portal-header { padding: 0 24px; }
  .portal-header__right { gap: 12px; }
  .portal-nav { gap: 12px; }
  .portal-nav > a:not(.button) { display: none; }
  .hero, .login-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero__visual { max-width: 590px; width: 100%; margin: 0 auto; }
  .card-grid, .boundary-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card p { min-height: auto; }
  .login-layout { min-height: auto; padding-top: 54px; }
  .login-intro { max-width: 600px; }
}
@media (max-width: 520px) {
  .section-wrap { width: min(100% - 32px, 1160px); }
  .portal-header { min-height: 72px; padding: 0 16px; }
  .env-badge { display: none; }
  h1 { font-size: 39px; }
  .hero__lede { font-size: 15px; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero__actions .button { width: 100%; }
  .hero__visual { padding-left: 10px; }
  .hero__visual::before { left: 10px; }
  .flow-card { padding: 14px; }
  .portal-footer { align-items: flex-start; flex-direction: column; }
  .login-layout { padding-top: 36px; }
  .login-card { padding: 23px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
