:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #171923;
  --muted: #687083;
  --border: #e3e8f2;
  --brand: #6236e9;
  --brand-2: #06a7c9;
  --ink: #111827;
  --success: #08795f;
  --success-soft: #e7f6f1;
  --shadow: 0 18px 50px rgba(31, 43, 68, 0.10);
  --shadow-soft: 0 10px 28px rgba(31, 43, 68, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fe 410px, var(--bg) 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(227, 232, 242, 0.85);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 16px 24px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 19px;
  gap: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(78, 71, 219, 0.20);
  display: block;
  height: 38px;
  width: 38px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  color: #4f586d;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.nav-links a:hover {
  background: #f0f3fb;
  color: var(--ink);
  text-decoration: none;
}

.hero {
  background:
    radial-gradient(circle at 14% 0%, rgba(98, 54, 233, 0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(6, 167, 201, 0.16), transparent 32%),
    #ffffff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 64px 24px 56px;
}

.portal-hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.hero-logo {
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(78, 71, 219, 0.24);
  display: block;
  height: 92px;
  margin-bottom: 26px;
  width: 92px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0;
  line-height: 1.01;
  margin: 0;
  max-width: 920px;
}

.lead {
  color: #596275;
  font-size: 20px;
  line-height: 1.7;
  margin: 24px 0 0;
  max-width: 760px;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.16);
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
}

.button:hover {
  color: #ffffff;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(227, 232, 242, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-panel h2 {
  font-size: 16px;
  margin: 0 0 14px;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.status-list li {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 12px;
}

.status-dot {
  background: var(--success);
  border-radius: 999px;
  box-shadow: 0 0 0 5px var(--success-soft);
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 24px 72px;
}

.section-heading {
  margin-bottom: 22px;
  max-width: 760px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  margin: 12px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.card h2,
.card h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.resource-card a {
  margin-top: auto;
}

.card-icon {
  align-items: center;
  background: #f1f4ff;
  border: 1px solid #dfe6ff;
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
  grid-template-columns: 42px 1fr;
  list-style: none;
  margin: 0;
  padding: 18px;
}

.steps li::before {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  color: #ffffff;
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  margin-top: 2px;
  width: 30px;
}

.steps strong {
  color: var(--ink);
  display: block;
}

.steps span {
  color: var(--muted);
  display: block;
}

.cta-band {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(98, 54, 233, 0.10), rgba(6, 167, 201, 0.10)),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.cta-band h2 {
  margin: 0 0 6px;
}

.cta-band p {
  color: var(--muted);
  margin: 0;
}

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 46px);
}

.doc h2 {
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  margin-top: 34px;
  padding-top: 28px;
}

.doc h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.doc p,
.doc li {
  color: #4f586d;
}

.notice {
  background: #f0f7ff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  color: #17365d;
  margin: 24px 0;
  padding: 18px;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 34px 24px;
  text-align: center;
}

code {
  background: #f0f3fb;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #27324a;
  padding: 2px 7px;
}

@media (max-width: 860px) {
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: auto;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    background: #f7f9fe;
  }

  .hero-inner {
    padding-top: 44px;
  }

  .hero-logo {
    height: 78px;
    width: 78px;
  }

  .doc {
    padding: 24px;
  }
}
