:root {
  --bg: #f5f9ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --glass: rgba(255, 255, 255, 0.58);
  --ink: #0f172a;
  --muted: #607086;
  --line: rgba(15, 23, 42, 0.11);
  --blue-soft: #dbeeff;
  --blue: #7bbcff;
  --blue-strong: #2f80ed;
  --blue-deep: #1d4f91;
  --gold: #f4b43f;
  --coral: #ff7c6e;
  --charcoal: #10243f;
  --shadow: 0 24px 80px rgba(20, 44, 79, 0.13);
  --shadow-soft: 0 14px 40px rgba(20, 44, 79, 0.09);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(123, 188, 255, 0.24), transparent 31%),
    radial-gradient(circle at 88% 16%, rgba(244, 180, 63, 0.15), transparent 28%),
    linear-gradient(180deg, #f5f9ff 0%, #fbfdff 47%, #eef6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

body.app-site { min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 1000;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.skip:focus { left: 12px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(245, 249, 255, 0.78);
  backdrop-filter: blur(22px);
}

.site-nav__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.brand-mark,
.mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ecff, #7bbcff);
  color: #0d2a4f;
  box-shadow: 0 10px 24px rgba(47, 128, 237, 0.18);
  font-weight: 1000;
  letter-spacing: 0;
}
.brand span:last-child { font-size: 13px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}
.nav-links a {
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 850;
}
.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(123, 188, 255, 0.18);
  color: var(--blue-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 44, 79, 0.16);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(20, 44, 79, 0.18);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}
.btn--light {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: none;
}
.btn--primary {
  background: linear-gradient(135deg, #2f80ed, #7bbcff);
  color: #071d37;
}
.btn--gold {
  background: linear-gradient(135deg, #f4b43f, #ffcf77);
  color: #1f1608;
}
.btn--full { width: 100%; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.page { padding: 46px 0 72px; }

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}
.section-head h2,
.page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}
.section-head p,
.page-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.54));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
}
.hero-copy h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}
.hero-copy__lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: #42516a;
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.app-mini__card {
  min-height: 124px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}
.app-mini__card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(123, 188, 255, 0.18);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 950;
}
.app-mini__card strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.prelaunch-panel {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(160%);
}

.form-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.80);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(145%);
}
.form-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}
.form-card p { color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full { grid-column: 1 / -1; }
label,
.field-label {
  color: rgba(15,23,42,0.72);
  font-size: 12px;
  font-weight: 950;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47,128,237,0.62);
  box-shadow: 0 0 0 4px rgba(123,188,255,0.20);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--blue-deep);
  font-weight: 900;
}
.role-insight {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(47,128,237,0.20);
  border-radius: var(--radius);
  background: rgba(123,188,255,0.12);
}
.role-insight strong { display: block; }
.role-insight p { margin: 6px 0 0; font-size: 14px; }

.surface-band { padding: 66px 0; }
.surface-band--dark {
  color: #fff;
  background: linear-gradient(135deg, #10243f, #1e3b63);
}
.surface-band--dark .section-head h2,
.surface-band--dark .section-head p,
.surface-band--dark .eyebrow { color: #fff; }
.surface-band--dark .eyebrow { opacity: 0.76; }

.role-tabs,
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  width: fit-content;
}
.role-tab,
.feature-tab {
  border: 0;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(15,23,42,0.68);
  font-weight: 950;
  cursor: pointer;
}
.role-tab.active,
.feature-tab.active {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(20,44,79,0.10);
}

.role-panel,
.feature-panel { display: none; }
.role-panel.active,
.feature-panel.active { display: block; }

.app-view {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: stretch;
}
.app-view__rail,
.app-view__main {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
}
.app-view__rail { padding: 14px; }
.app-view__main { padding: 18px; }
.rail-card {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
}
.rail-card + .rail-card { margin-top: 10px; }
.rail-card strong { display: block; }
.rail-card span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cap-card {
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
}
.cap-card strong { display: block; font-size: 18px; line-height: 1.15; }
.cap-card p { margin: 10px 0 0; color: rgba(255,255,255,0.76); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow-soft);
}
.tile__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(123,188,255,0.18);
  color: var(--blue-deep);
  font-weight: 950;
}
.tile h3 { margin: 0; font-size: 20px; line-height: 1.1; }
.tile p { margin: 10px 0 0; color: var(--muted); }

.detail-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
.detail-board__panel,
.workflow-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-soft);
}
.detail-board__panel h3,
.workflow-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}
.detail-board__panel p,
.workflow-card p {
  color: var(--muted);
}
.workflow-stack {
  display: grid;
  gap: 12px;
}
.workflow-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
}
.workflow-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9ecff, #7bbcff);
  color: #0d2a4f;
  font-weight: 950;
}
.workflow-row strong { display: block; }
.workflow-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}
.page-head {
  position: sticky;
  top: 106px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}
.content-stack {
  display: grid;
  gap: 14px;
}
.content-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-soft);
}
.content-card h2,
.content-card h3 {
  margin: 0;
  line-height: 1.1;
}
.content-card p,
.content-card li {
  color: var(--muted);
}
.content-card ul,
.content-card ol {
  padding-left: 20px;
}
.content-card li + li { margin-top: 8px; }

.contact-direct {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.contact-direct a {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: none;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 0;
}
.auth-shell {
  width: min(460px, calc(100vw - 40px));
  margin: 0 auto;
}
.auth-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #d9ecff, #7bbcff);
  color: #0d2a4f;
  box-shadow: var(--shadow-soft);
  font-size: 32px;
  font-weight: 1000;
}
.auth-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.80);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1;
}
.auth-card > p {
  margin: 10px 0 20px;
  text-align: center;
  color: var(--muted);
}
.auth-field { margin-bottom: 12px; }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-deep);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.portal-shell {
  display: grid;
  gap: 16px;
}
.portal-hero,
.portal-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.portal-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 54px); line-height: 1; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill,
.dash-pill,
.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.80);
  color: rgba(15,23,42,0.72);
  font-size: 12px;
  font-weight: 900;
}
.portal-grid,
.portal-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kv-item,
.portal-kv__item,
.soon-item,
.portal-linkRow,
.portal-clubCard {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
}
.kv-label,
.portal-kv__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}
.kv-value,
.portal-kv__value {
  margin-top: 4px;
  font-weight: 900;
}
.portal-clubs,
.soon-grid,
.portal-links {
  display: grid;
  gap: 10px;
}
.portal-linkRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.portal-linkTitle,
.soon-title,
.portal-section__title {
  font-weight: 950;
}
.portal-linkSub,
.soon-sub,
.portal-section__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.portal-clubCard__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-clubInitial {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9ecff, #7bbcff);
  color: #0d2a4f;
  font-weight: 1000;
}
.portal-clubName { font-weight: 950; }
.portal-clubSub { color: var(--muted); font-size: 13px; }
.portal-clubBadges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-form { display: grid; gap: 12px; }
.portal-check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.portal-check input {
  width: 18px;
  min-height: 18px;
}
.portal-formRow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 44px 0 64px;
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.62);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer p {
  margin: 10px 0 0;
  color: var(--muted);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 20px;
}
.footer-links strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover { color: var(--blue-deep); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero__grid,
  .page-grid,
  .app-view,
  .detail-board {
    grid-template-columns: 1fr;
  }
  .hero-copy { min-height: auto; }
  .page-head {
    position: relative;
    top: auto;
  }
  .tile-grid,
  .cap-grid,
  .app-mini {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-nav__inner { min-height: 68px; }
  .brand span:last-child { display: none; }
  .nav-actions .btn--light { display: none; }
  .hero { padding-top: 22px; }
  .hero-copy,
  .prelaunch-panel,
  .page-head,
  .content-card,
  .portal-hero,
  .portal-section {
    padding: 16px;
  }
  .form-grid,
  .portal-grid,
  .portal-kv {
    grid-template-columns: 1fr;
  }
  .portal-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-links { grid-template-columns: 1fr; }
}
