:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #effbff;
  background: #061725;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 80% 8%, rgba(45, 151, 174, .2), transparent 31%), linear-gradient(145deg, #061725 0%, #071c2b 60%, #092333 100%);
}

.portal-home {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 0;
  grid-template-rows: auto 1fr;
  gap: clamp(34px, 6vh, 68px);
}

.portal-brand { display: flex; align-items: center; gap: 15px; font-size: 19px; font-weight: 900; letter-spacing: .08em; }
.portal-brand img { width: 56px; height: 56px; }
.portal-brand strong { color: #55d8df; }
.portal-content { display: grid; align-self: center; gap: clamp(34px, 4.5vh, 50px); }
.portal-intro { min-width: 0; }
.portal-intro h1 { margin: 0; font-size: clamp(48px, 6.7vw, 92px); line-height: .98; letter-spacing: -.055em; }
.portal-intro p { margin: 27px 0 0; color: #9cb7c3; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; }
.portal-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.portal-choice {
  display: grid;
  min-height: 150px;
  padding: 26px 28px;
  grid-template-columns: 62px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 21px;
  overflow: hidden;
  border: 1px solid #28536a;
  border-radius: 24px;
  color: #effbff;
  background: #0c2a3d;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.portal-choice:hover { border-color: #59dce5; background: #10364a; transform: translateY(-3px); }
.portal-choice:focus-visible { outline: 3px solid #59dce5; outline-offset: 4px; }
.choice-icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; color: #64e1e7; background: #123f55; }
.choice-icon svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.choice-copy { display: grid; gap: 8px; }
.choice-copy strong { font-size: clamp(23px, 2vw, 31px); line-height: 1.05; }
.choice-copy small { color: #92afbc; font-size: 15px; line-height: 1.45; }
.choice-arrow { color: #61dce4; font-size: 42px; font-weight: 300; line-height: 1; }

@media (max-width: 760px) {
  .portal-home { width: min(100% - 28px, 580px); padding: 24px 0 20px; gap: 27px; }
  .portal-brand { gap: 11px; font-size: 15px; }
  .portal-brand img { width: 44px; height: 44px; }
  .portal-intro h1 { font-size: clamp(42px, 12vw, 64px); }
  .portal-intro p { margin-top: 19px; font-size: 16px; }
  .portal-choices { grid-template-columns: 1fr; gap: 12px; }
  .portal-choice { min-height: 112px; padding: 18px; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 15px; border-radius: 19px; }
  .choice-icon { width: 52px; height: 52px; border-radius: 15px; }
  .choice-icon svg { width: 29px; height: 29px; }
  .choice-copy strong { font-size: 21px; }
  .choice-copy small { font-size: 13px; }
  .choice-arrow { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) { .portal-choice { transition: none; } }

@media (prefers-color-scheme: light) {
  :root { color-scheme: light; color: #0b2631; background: #e8f0f2; }
  body { background: radial-gradient(circle at 82% 2%, rgba(34,181,193,.17), transparent 31%), #e8f0f2; }
  .portal-choice { color: #0b2631; border-color: #b8cdd2; background: #f9fbfb; }
  .portal-choice:hover { border-color: #22b5c1; background: #eef7f8; }
  .choice-icon { color: #087d89; background: #d8edef; }
  .choice-copy small, .portal-intro p { color: #526d78; }
  .choice-arrow { color: #087d89; }
}
