@font-face {
  font-family: "SkModernist";
  src: url("/static/assets/Sk-Modernist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SkModernist";
  src: url("/static/assets/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Klein";
  src: url("/static/assets/Klein-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Klein";
  src: url("/static/assets/Klein-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Charlevoix";
  src: url("/static/assets/CharlevoixPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Charlevoix";
  src: url("/static/assets/CharlevoixPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bk-blue: #003e51;
  --bk-blue-deep: #021723;
  --bk-green: #00b77e;
  --bk-green-2: #00d599;
  --bk-ink: #03121b;
  --bk-light: #eaf7fb;
  --bk-soft: #9bc3d1;
  --bk-border: rgba(113, 182, 204, 0.24);
  --bk-glass: rgba(7, 26, 37, 0.72);
  --radius-xl: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Charlevoix", "SkModernist", "Trebuchet MS", sans-serif;
  color: var(--bk-light);
  background:
    radial-gradient(1100px 580px at 90% -10%, rgba(0, 183, 126, 0.2), transparent 58%),
    radial-gradient(920px 520px at -12% 4%, rgba(7, 122, 159, 0.24), transparent 60%),
    linear-gradient(132deg, #031019 0%, #02131f 52%, #052333 100%);
}

.landing-body,
.portal-body {
  position: relative;
  overflow-x: clip;
}

.bg-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(73, 129, 148, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 129, 148, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.35));
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.bg-orb-a {
  background: #08d091;
  top: -190px;
  right: -130px;
}

.bg-orb-b {
  background: #0a5972;
  bottom: -210px;
  left: -160px;
}

.shell {
  width: min(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 25;
  background: linear-gradient(180deg, rgba(2, 16, 25, 0.9), rgba(2, 16, 25, 0.58));
  backdrop-filter: blur(8px);
}

.brand img {
  width: clamp(130px, 17vw, 186px);
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(136, 197, 216, 0.35);
  background: rgba(3, 20, 30, 0.75);
  color: var(--bk-light);
  border-radius: 10px;
  padding: 0.44rem 0.72rem;
  cursor: pointer;
  font: inherit;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--bk-light);
  text-decoration: none;
  font-size: 0.94rem;
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  justify-self: end;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.65rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: linear-gradient(132deg, var(--bk-green-2), var(--bk-green));
  color: #03241c;
  box-shadow: 0 10px 24px rgba(0, 193, 133, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--bk-light);
  border-color: rgba(142, 198, 216, 0.36);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 1rem;
  margin-top: 1.15rem;
}

.card {
  border: 1px solid var(--bk-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(158deg, rgba(5, 29, 41, 0.92), rgba(4, 24, 35, 0.72));
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}

.glass {
  backdrop-filter: blur(9px);
}

.eyebrow {
  margin: 0;
  color: #87dcbe;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.contact-strip h2,
.login-panel h2,
.kpi-card h3,
.card h3,
.card h4 {
  font-family: "Klein", "Charlevoix", "Trebuchet MS", sans-serif;
}

.hero-copy h1 {
  margin: 0.72rem 0 0.65rem;
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.3vw, 3.12rem);
}

.lead,
.muted,
.card p {
  color: var(--bk-soft);
  line-height: 1.5;
  margin: 0;
}

.hero-cta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-cta-row.center {
  justify-content: center;
}

.signal-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: #b4d8e4;
  display: grid;
  gap: 0.42rem;
}

.token-rack {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.token-rack span {
  border: 1px solid rgba(128, 197, 214, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  font-size: 0.73rem;
  color: #9ecadb;
  background: rgba(6, 26, 38, 0.7);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 420px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) hue-rotate(145deg) brightness(0.7);
}

.hero-visual-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(2, 15, 23, 0), rgba(2, 15, 23, 0.9));
}

.hero-visual-overlay h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.2rem;
}

.login-panel h2 {
  margin: 0;
}

.stack-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.stack-form label {
  display: grid;
  gap: 0.36rem;
  color: #d9edf6;
  font-size: 0.94rem;
}

input,
select {
  border: 1px solid rgba(132, 193, 212, 0.31);
  background: rgba(4, 22, 33, 0.92);
  color: var(--bk-light);
  font: inherit;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

input:focus,
select:focus {
  outline: 2px solid rgba(0, 183, 126, 0.45);
  outline-offset: 1px;
}

.tiny {
  font-size: 0.82rem;
}

.status-text {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: #8bf4c8;
}

.section-block {
  margin-top: 2.25rem;
}

.section-head {
  margin-bottom: 0.9rem;
}

.section-head h1,
.section-head h2 {
  margin: 0.5rem 0 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
}

.card-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-list,
.bullet-stack {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: #c0dfe9;
  display: grid;
  gap: 0.42rem;
}

.accent {
  border-color: rgba(0, 183, 126, 0.3);
  background: linear-gradient(158deg, rgba(4, 36, 36, 0.95), rgba(3, 31, 30, 0.7));
}

.ledger-card {
  position: relative;
  overflow: hidden;
}

.ledger-lines {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.52rem;
}

.ledger-lines p {
  margin: 0;
  border: 1px solid rgba(124, 190, 210, 0.22);
  border-radius: 10px;
  padding: 0.54rem 0.64rem;
  background: rgba(2, 16, 24, 0.58);
  font-size: 0.9rem;
}

.ledger-lines span {
  color: #8cb5c4;
  margin-right: 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.quest-slider-wrap {
  margin-top: 0.8rem;
}

.quest-slider-wrap label {
  display: block;
  margin-bottom: 0.45rem;
  color: #c8e4ee;
}

.quest-level {
  margin: 0.48rem 0 0.38rem;
  color: #9cc9d8;
  font-size: 0.92rem;
}

.mission-list {
  display: grid;
  gap: 0.68rem;
}

.mission-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(111, 195, 214, 0.24);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(4, 26, 37, 0.78);
}

.mission-item h4 {
  margin: 0;
  font-size: 0.98rem;
}

.mission-item p {
  margin: 0.35rem 0 0;
}

.mission-badge {
  align-self: center;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #08261d;
  background: linear-gradient(135deg, #00ce8d, #00b77e);
  padding: 0.36rem 0.58rem;
  white-space: nowrap;
}

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

.scene-shot {
  padding: 0;
  overflow: hidden;
}

.scene-shot img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) hue-rotate(150deg) contrast(1.05);
}

.scene-shot p {
  margin: 0;
  padding: 0.72rem 0.8rem 0.82rem;
  font-size: 0.9rem;
  color: #d4ebf4;
}

.contact-strip {
  margin-bottom: 2.3rem;
  text-align: center;
}

.portal-user-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-user-name {
  margin: 0;
  font-weight: 700;
}

.portal-user-company {
  margin: 0;
  color: var(--bk-soft);
  font-size: 0.92rem;
}

.portal-shell {
  padding-bottom: 2.2rem;
}

.kpi-card {
  border: 1px solid rgba(139, 196, 214, 0.23);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(6, 31, 44, 0.95), rgba(2, 20, 29, 0.86));
  padding: 1rem;
}

.kpi-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: #88b3c2;
}

.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-form input {
  flex: 1 1 320px;
}

.ai-answer {
  margin-top: 0.85rem;
  color: #d3edf6;
  line-height: 1.45;
}

.metrics-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.metric-pill {
  border: 1px solid rgba(132, 191, 211, 0.22);
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(5, 26, 37, 0.8);
}

.metric-pill strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.table-scroll {
  overflow: auto;
  margin-top: 0.55rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(133, 188, 208, 0.16);
  padding: 0.4rem;
  white-space: nowrap;
}

.table th {
  text-transform: uppercase;
  color: #8eb7c6;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.offer-list {
  display: grid;
  gap: 0.6rem;
}

.offer-item {
  border: 1px solid rgba(111, 195, 214, 0.24);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(4, 26, 37, 0.78);
}

.offer-item h4 {
  margin: 0;
}

.offer-item p {
  margin: 0.35rem 0 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .three-col,
  .four-col,
  .two-col,
  .scene-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shell {
    width: min(1180px, calc(100% - 1.4rem));
  }
}

@media (max-width: 920px) {
  .top-nav {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "menu menu"
      "cta cta";
    gap: 0.65rem;
  }

  .brand {
    grid-area: brand;
  }

  .nav-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
  }

  .nav-links {
    grid-area: menu;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid rgba(130, 192, 212, 0.25);
    border-radius: 12px;
    background: rgba(2, 16, 24, 0.86);
    padding: 0.5rem;
    display: none;
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    padding: 0.52rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-cta {
    grid-area: cta;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .hero-grid,
  .three-col,
  .four-col,
  .two-col,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(1200px, calc(100% - 1rem));
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 8.4vw, 2.15rem);
  }

  .hero-visual {
    min-height: 320px;
  }

  .mission-item {
    flex-direction: column;
  }

  .mission-badge {
    align-self: flex-start;
  }

  .portal-user-meta {
    width: 100%;
    justify-content: space-between;
  }

  .stack-form .btn,
  .inline-form .btn {
    width: 100%;
  }

  .inline-form input {
    flex: 1 1 100%;
  }

  .metrics-inline {
    grid-template-columns: 1fr;
  }
}
