:root {
  --bg: #eef2f1;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #f9fcfb;
  --surface-dark: #102734;
  --line: rgba(16, 39, 52, 0.1);
  --text: #102734;
  --muted: #58707b;
  --accent: #0c7a6a;
  --accent-strong: #085548;
  --accent-soft: #a6ddd3;
  --mint: #cce7e0;
  --shadow: 0 24px 60px rgba(16, 39, 52, 0.11);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(12, 122, 106, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(172, 209, 220, 0.34), transparent 24%),
    linear-gradient(180deg, #f5f8f7 0%, #eef2f1 48%, #e5ebea 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 28px;
  padding: 16px 20px;
  background: rgba(249, 252, 251, 0.84);
  border: 1px solid rgba(16, 39, 52, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(16, 39, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-lockup {
  display: grid;
  gap: 1px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #0e9782 100%);
}

.brand-text {
  line-height: 1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav-link-cta,
.nav-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
}

.nav-link-cta {
  color: white;
  background: var(--surface-dark);
}

.nav-link-secondary {
  color: var(--text);
  background: rgba(16, 39, 52, 0.06);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
  color: white;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(16, 39, 52, 0.07);
}

.hero,
.section,
.logo-band {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.8s ease forwards;
}

.hero { animation-delay: 0.08s; }
.logo-band { animation-delay: 0.16s; }
.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.28s; }
.section:nth-of-type(3) { animation-delay: 0.36s; }
.section:nth-of-type(4) { animation-delay: 0.44s; }
.section:nth-of-type(5) { animation-delay: 0.52s; }
.section:nth-of-type(6) { animation-delay: 0.6s; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.info-card,
.stack-card,
.timeline-card,
.portal-shell,
.dark-card,
.apply-section {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(244, 249, 248, 0.9)),
    radial-gradient(circle at top left, rgba(166, 221, 211, 0.22), transparent 30%);
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.hero-text,
.section-heading p:last-child,
.info-card p,
.stack-card p,
.portal-card p,
.apply-copy p,
.hero-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  margin: 24px 0 32px;
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(16, 39, 52, 0.05);
  border: 1px solid rgba(16, 39, 52, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #0d8d78 100%);
  box-shadow: 0 18px 34px rgba(12, 122, 106, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(16, 39, 52, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.hero-metrics div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metrics dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-card-primary {
  color: white;
  background:
    linear-gradient(160deg, rgba(9, 29, 39, 0.95), rgba(16, 39, 52, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(166, 221, 211, 0.24), transparent 25%);
}

.hero-card-secondary {
  background: rgba(249, 252, 251, 0.76);
}

.hero-card-dashboard {
  display: grid;
  gap: 16px;
}

.dashboard-ribbon {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(12, 122, 106, 0.1);
}

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

.dashboard-score div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 39, 52, 0.04);
}

.dashboard-score span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-score strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

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

.dashboard-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(16, 39, 52, 0.05);
}

.card-topline,
.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(166, 221, 211, 0.18);
  color: #dff6f0;
}

.hero-card-secondary .status-pill,
.data-card-header .status-pill {
  color: var(--text);
  background: rgba(16, 39, 52, 0.08);
}

.feature-list,
.check-list,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint));
}

.compact {
  gap: 10px;
}

.logo-band {
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
  padding: 18px 24px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(249, 252, 251, 0.76);
  border: 1px solid var(--line);
}

.section {
  margin-top: 24px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: rgba(249, 252, 251, 0.66);
  border: 1px solid rgba(16, 39, 52, 0.06);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 18ch;
}

.grid-cards {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-section .grid-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.stack-card,
.timeline-card,
.portal-card,
.data-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.challenge-section .info-card,
.grid-section .info-card {
  min-height: 220px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.accent-card {
  background: linear-gradient(180deg, rgba(166, 221, 211, 0.26), rgba(255, 255, 255, 0.72));
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline li {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid rgba(12, 122, 106, 0.24);
}

.timeline span {
  color: var(--muted);
  line-height: 1.6;
}

.portal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.portal-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 39, 52, 0.06);
}

.portal-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.portal-tab.is-active {
  color: white;
  background: var(--surface-dark);
}

.portal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(9, 29, 39, 0.96), rgba(16, 39, 52, 0.92)),
    radial-gradient(circle at top right, rgba(166, 221, 211, 0.1), transparent 22%);
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.portal-sidebar .mini-label {
  color: rgba(255, 255, 255, 0.64);
}

.sidebar-item {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-item.is-active,
.sidebar-item:hover,
.sidebar-item:focus-visible {
  color: white;
  background: rgba(166, 221, 211, 0.14);
}

.portal-main {
  min-width: 0;
}

.portal-view {
  display: none;
}

.portal-view.is-active {
  display: block;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.portal-stats article,
.portal-card,
.data-card {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.portal-stats article {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.portal-stats span,
.portal-card p,
.portal-card li,
.data-card,
.table-wrap,
table {
  color: rgba(255, 255, 255, 0.82);
}

.portal-card .mini-label,
.portal-card .check-list li,
.portal-card .feature-list li {
  color: rgba(255, 255, 255, 0.88);
}

.portal-stats strong {
  display: block;
  margin: 10px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.portal-panels,
.capital-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.large {
  min-height: 230px;
}

.data-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

th {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-card {
  color: white;
  background: linear-gradient(180deg, rgba(16, 39, 52, 0.92), rgba(11, 26, 35, 0.95));
}

.dark-card p {
  color: rgba(255, 255, 255, 0.7);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-grid .info-card p + p {
  margin-top: 12px;
}

.apply-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at bottom left, rgba(166, 221, 211, 0.14), transparent 28%);
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.apply-form-simple {
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
}

.apply-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 39, 52, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: white;
  color: var(--text);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 2px solid rgba(12, 122, 106, 0.18);
  border-color: rgba(12, 122, 106, 0.35);
}

.form-note,
.form-status {
  margin: 0;
  line-height: 1.6;
}

.form-note {
  color: var(--muted);
}

.form-status {
  min-height: 1.6em;
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-top: 24px;
  padding: 32px 36px;
  border: 1px solid rgba(16, 39, 52, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(248, 252, 251, 0.96), rgba(241, 247, 245, 0.98));
  color: var(--text);
  box-shadow: var(--shadow);
}

.brand-footer .brand-subtitle,
.site-footer .mini-label,
.footer-brand p,
.footer-links a,
.footer-links span,
.footer-contact a,
.footer-contact span,
.footer-meta p {
  color: var(--muted);
}

.footer-brand p {
  max-width: 46ch;
  line-height: 1.7;
}

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

.footer-links div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--text);
}

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 6px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 39, 52, 0.1);
}

.footer-meta p {
  margin: 0;
  line-height: 1.65;
}

.cookie-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 39, 52, 0.1);
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-actions a,
.cookie-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 52, 0.1);
  background: white;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.cookie-actions .cookie-accept {
  color: white;
  background: var(--surface-dark);
}

.full-width {
  grid-column: 1 / -1;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .split-layout,
  .apply-section,
  .portal-shell,
  .portal-panels,
  .capital-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .three-up,
  .portal-stats,
  .hero-metrics,
  .legal-grid,
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-section .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-heading {
    align-items: start;
  }

  .cookie-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    top: 10px;
    flex-wrap: wrap;
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-copy,
  .section,
  .apply-section {
    padding: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .three-up,
  .portal-stats,
  .hero-metrics,
  .apply-form,
  .legal-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .dashboard-score,
  .dashboard-grid,
  .grid-section .grid-cards {
    grid-template-columns: 1fr;
  }

  .portal-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .footer-contact,
  .cookie-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
