@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-soft: #FAF9F6;
  --text: #1E2A3A;
  --muted: #6B7280;
  --line: #E6E3DC;
  --line-strong: #D8D3C9;
  --brand: #1D3557;
  --brand-dark: #162A46;
  --accent: #B08968;
  --nav: #1E2A3A;
  --nav-soft: #334155;
  --shadow-soft: 0 8px 24px rgba(30, 42, 58, 0.08);
  --shadow-card: 0 14px 32px rgba(30, 42, 58, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 380px at -10% -20%, rgba(176, 137, 104, 0.16) 0%, transparent 60%),
    radial-gradient(780px 360px at 110% -10%, rgba(29, 53, 87, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #FCFBF8 0%, var(--bg) 38%);
  min-height: 100vh;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(11, 31, 54, 0.04);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 380px;
}

.brand-mark {
  width: 300px;
  height: 90px;
  border-radius: 0;
  background-image: url("ufund logo");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

.brand-text {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text);
}

.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-right: auto;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: #F1F5F4;
  border-color: var(--line-strong);
}

.top-nav a.active {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #FFFFFF, #F3F6F4);
  color: var(--brand-dark);
  box-shadow: inset 0 1px 0 #fff;
}

.header-right {
  margin-left: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #D8CCBF;
  background: linear-gradient(90deg, #F1EBE4, #F8F4EF);
  color: #5C4636;
  border-radius: 999px;
  padding: 4px 10px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #27456F, var(--brand));
  color: #fff;
  text-decoration: none;
  padding: 11px 15px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.28);
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(180deg, #315482, var(--brand-dark));
  transform: translateY(-1px);
}

.btn.secondary {
  background: #eef3f9;
  color: #244266;
  border: 1px solid #d6e1ee;
  box-shadow: none;
}

.btn.disabled {
  background: #c8ced6;
  color: #ffffff;
  border: 0;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 52px;
}

.page-breadcrumbs {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

.page-breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: #9aa3af;
  font-weight: 600;
}

.crumb-current {
  color: var(--text);
}

.hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F3 72%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,137,104,0.18) 0%, rgba(176,137,104,0.03) 72%);
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.1px;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

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

.hero-center p {
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.status-tab {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  width: fit-content;
}

.status-tab-alive {
  color: #1f5e4b;
  background: #e8f3ee;
  border-color: #c5ddd3;
  font-size: 13px;
}

.status-tab-closed {
  color: #6d747c;
  background: #f1f3f5;
  border-color: #d9dee3;
  font-size: 13px;
}

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

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.metric-value {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.metric-note {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

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

.home-modules {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 36px;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  filter: brightness(0.97);
  border-color: var(--line-strong);
}

.feature-card {
  background: linear-gradient(170deg, #ffffff 0%, #f7fbff 62%, #f2f7fd 100%);
  border-color: var(--line-strong);
}

.deal-primary-card {
  background: linear-gradient(140deg, rgba(29, 53, 87, 0.08) 0%, rgba(176, 137, 104, 0.12) 100%);
  border-color: rgba(29, 53, 87, 0.28);
}

.deal-secondary-card {
  background: #fff;
  border-color: var(--line);
}

.module-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 310px;
}

.module-main {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.home-modules .module-main p {
  width: 100%;
  justify-self: stretch;
  text-align: left !important;
  margin-left: 0;
  margin-right: 0;
}

.module-points {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.module-sub-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 8px;
}

.module-card .chip-row {
  min-height: 36px;
  justify-content: center;
}

.home-modules .chip-row {
  margin-top: 10px;
  margin-bottom: 0;
}

.home-modules .module-action {
  margin-top: 8px;
}

.module-action {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.module-action .btn {
  min-width: 132px;
  text-align: center;
}

.card .btn {
  min-width: 132px;
  text-align: center;
}

.closed-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #6d747c;
  background: #f1f3f5;
  border: 1px solid #d9dee3;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.alive-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1f5e4b;
  background: #e8f3ee;
  border: 1px solid #c5ddd3;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.section-break {
  margin: 4px 0 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface-soft);
}

.section-break h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 800;
}

.pipeline-section {
  margin-top: 18px;
}

.offering-section {
  border-color: #c9d6e8;
  border-left-color: #1d3557;
  background: linear-gradient(180deg, #eef4fb, #f7fbff);
}

.offering-section h2 {
  color: #1d3557;
}

.pipeline-section {
  border-color: #e2d3bb;
  border-left-color: #b08968;
  background: linear-gradient(180deg, #faf4ea, #fff9f1);
}

.pipeline-section h2 {
  color: #6a4d2d;
}

.exploratory-box {
  margin: 36px 0;
  padding: 36px 24px;
  border: 1px solid #E6E3DC;
  border-radius: 16px;
  background: rgba(176, 137, 104, 0.06);
}

.exploratory-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.exploratory-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #D8CCBF;
  background: rgba(255, 255, 255, 0.75);
  color: #6a4d2d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.exploratory-grid .card {
  box-shadow: none;
  transition: none;
  cursor: default;
}

.exploratory-grid .card:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  border-color: var(--line);
  cursor: default;
}

.docs-tabs {
  flex-wrap: nowrap;
  gap: 6px;
}

.docs-tabs .chip {
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
}

.module-sub-links a {
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.module-sub-links a:hover {
  text-decoration: underline;
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.card h4 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.meta-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
}

.meta-list li { margin-bottom: 6px; }

.section-title {
  margin: 22px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 8px;
  font-size: 15px;
}


.table th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.7px;
}

.note {
  margin-top: 12px;
  border: 1px solid #DBCBB9;
  background: linear-gradient(180deg, #F8F2EA, #F3ECE2);
  color: #5E4B3B;
  border-radius: 12px;
  padding: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #DDD5C8;
  background: #F6F5F2;
  color: #4B5563;
  font-weight: 700;
}

.legacy-box {
  max-width: 840px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.page-disclaimer {
  margin: 28px auto 10px;
  max-width: 1080px;
  border: 1px solid #E6E3DC;
  border-radius: 12px;
  background: #faf9f6;
  padding: 14px 16px 10px;
}

.page-disclaimer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-disclaimer strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .grid-3, .grid-2, .stats-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .header-inner { gap: 12px; }
  .brand { min-width: 100%; }
  .top-nav { width: 100%; }
  .header-right { margin-left: 0; width: 100%; justify-content: flex-end; }
  .exploratory-box { padding: 32px 18px; margin: 32px 0; }
  .exploratory-head { align-items: flex-start; flex-wrap: wrap; }
}
