:root {
  --bg: #f4f7f3;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #f7fbf8;
  --ink: #1f2d23;
  --muted: #617066;
  --accent: #3d6d52;
  --accent-strong: #2b5b41;
  --accent-soft: #d8efe0;
  --line: rgba(70, 95, 76, 0.14);
  --shadow: 0 22px 50px rgba(47, 64, 45, 0.10);
  --radius: 24px;
  --content-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(111, 190, 148, 0.18), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(196, 226, 214, 0.32), transparent 28%),
    linear-gradient(180deg, #f7fbf8 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Aptos", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

#portalHeader,
#portalFooter,
.portal-home,
.portal-docs {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
}

.brand-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-family: "Segoe UI Variable", "Aptos", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32ch;
  line-height: 1.35;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.portal-nav a {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-nav a:hover,
.portal-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f6fbf7;
  transform: translateY(-1px);
}

.hero,
.docs-hero {
  padding: 40px 0 14px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-home {
  text-align: center;
}

.hero-shell {
  max-width: 980px;
  margin: 0 auto;
}

.hero h1,
.docs-hero h1 {
  margin: 0;
  font-family: "Segoe UI Variable", "Aptos", system-ui, sans-serif;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-secondary {
  margin: 14px auto 0;
  color: var(--accent-strong);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-copy,
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.highlight-pill {
  margin: 0;
  max-width: 320px;
  background: rgba(221, 239, 228, 0.78);
  border: 1px solid rgba(86, 124, 95, 0.10);
  color: #496050;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 40px 0 30px;
}

.entry-card,
.about-panel,
.doc-section,
.portal-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-card {
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #72d3ab 0%, #a3e2cb 100%);
}

.entry-card-prioritize::before {
  background: linear-gradient(90deg, #69d0ab 0%, #8be6c1 100%);
}

.entry-card-resources::before {
  background: linear-gradient(90deg, #7ab8de 0%, #9ad7e5 100%);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-tag {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.entry-card h2 {
  margin: 0 0 10px;
  font-family: "Segoe UI Variable", "Aptos", system-ui, sans-serif;
  font-size: 1.72rem;
  letter-spacing: -0.03em;
}

.entry-card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cta-row {
  margin-top: 26px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, #79dcb9 0%, #8be7c4 100%);
  color: #18442b;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(111, 197, 155, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(111, 197, 155, 0.28);
  filter: saturate(1.05);
}

.about-panel {
  padding: 26px 30px;
  margin: 0 0 34px;
}

.about-panel h2 {
  margin: 0 0 10px;
  font-family: "Segoe UI Variable", "Aptos", system-ui, sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.about-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.portal-docs {
  padding-bottom: 32px;
}

.doc-section {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.doc-section h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.portal-footer {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  margin: 8px auto 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.footer-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.footer-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-value {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.footer-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.glossary-list {
  display: grid;
  gap: 12px;
}

.glossary-list article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
}

.glossary-list h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-nav {
    justify-content: flex-start;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #portalHeader,
  #portalFooter,
  .portal-home,
  .portal-docs {
    width: min(calc(100% - 22px), var(--content-width));
  }

  .portal-header {
    padding: 18px 18px 16px;
    gap: 18px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
  }

  .portal-nav {
    gap: 10px;
  }

  .portal-nav a {
    padding: 9px 13px;
    font-size: 0.92rem;
  }

  .hero,
  .docs-hero {
    padding-top: 26px;
  }

  .hero h1,
  .docs-hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    max-width: 13ch;
  }

  .hero-secondary {
    font-size: 0.98rem;
  }

  .lead {
    font-size: 0.99rem;
  }

  .highlight-pill {
    max-width: none;
    width: 100%;
  }

  .entry-card,
  .about-panel,
  .doc-section,
  .portal-footer {
    border-radius: 20px;
  }

  .entry-card,
  .about-panel,
  .portal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
