/* ==========================================================================
   OceanLum — site stylesheet
   Brand: Abyss Black / Deep Navy / Steel Cyan — Jost / Inter / IBM Plex Mono
   ========================================================================== */

@import url('fonts.css'); /* self-hosted Jost / Inter / IBM Plex Mono */

:root {
  --abyss:      #08090C;
  --navy:       #0B2A47;
  --steel:      #4F94A4;
  --steel-deep: #356E7C;
  --steel-tint: #EAF1F2;
  --ink:        #0E1620;
  --graphite:   #232A31;
  --ash:        #6E7B86;
  --foam:       #E8EEF2;
  --paper:      #ECF1F4;
  --hairline:   #E2E8EC;
  --grat-dark:  #1B2128;
  --grat-light: #EAEFF2;

  --font-display: 'Jost', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared bits ---------- */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.label--steel { color: var(--steel-deep); }
.on-dark .label--steel { color: var(--steel); }

.mono { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 20px; }
h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }

p { max-width: 68ch; }

a { color: var(--steel-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* graticule backgrounds */
.grat-dark {
  background-color: var(--abyss);
  background-image:
    linear-gradient(var(--grat-dark) .5px, transparent .5px),
    linear-gradient(90deg, var(--grat-dark) .5px, transparent .5px);
  background-size: 25px 25px;
}

.grat-light {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(var(--grat-light) .5px, transparent .5px),
    linear-gradient(90deg, var(--grat-light) .5px, transparent .5px);
  background-size: 25px 25px;
}

.on-dark { color: var(--foam); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--foam); }
.on-dark a { color: var(--steel); }

/* echo mark (concentric rings + dot) — pure CSS via SVG in markup */

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--abyss);
  border-bottom: .5px solid rgba(255,255,255,.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .24em;
  color: var(--foam);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark:hover { text-decoration: none; }

.wordmark .lumen {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel);
  display: inline-block;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #aab5bf;
  transition: color .15s;
}
.nav__links a:hover { color: var(--foam); text-decoration: none; }

.nav__links a.btn { margin-left: 6px; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid rgba(79, 148, 164, .55);
  color: var(--foam);
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--abyss);
  text-decoration: none;
}

.btn--solid,
.on-dark a.btn--solid {
  background: var(--steel);
  color: var(--abyss);
}
.btn--solid:hover,
.on-dark a.btn--solid:hover { background: var(--foam); border-color: var(--foam); color: var(--abyss); }

.btn--light {
  border-color: var(--steel-deep);
  color: var(--steel-deep);
}
.btn--light:hover { background: var(--steel-deep); color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--abyss);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,12,.85) 0%, rgba(8,9,12,0) 26%),
    linear-gradient(75deg, rgba(8,9,12,.96) 0%, rgba(8,9,12,.86) 38%, rgba(8,9,12,.42) 72%, rgba(8,9,12,.55) 100%),
    url('hero-bg.jpg') center / cover no-repeat;
}

.hero__bg::after {
  /* faint graticule over the photograph */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,238,242,.045) .5px, transparent .5px),
    linear-gradient(90deg, rgba(232,238,242,.045) .5px, transparent .5px);
  background-size: 25px 25px;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 150px 28px 150px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 300;
  letter-spacing: .012em;
  max-width: 16ch;
  margin: 26px 0 24px;
}

.hero__sub {
  color: #9aa6b0;
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 42px;
}
.hero__sub strong { color: var(--foam); font-weight: 500; }

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- portal full-bleed section ---------- */

.portal-hero {
  position: relative;
  border-top: .5px solid var(--graphite);
  border-bottom: .5px solid var(--graphite);
  background:
    linear-gradient(90deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.84) 32%, rgba(8,9,12,.30) 60%, rgba(8,9,12,.08) 100%),
    url('portal-bg.jpg') right center / cover no-repeat;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,.7) 0%, rgba(8,9,12,0) 14%, rgba(8,9,12,0) 86%, rgba(8,9,12,.7) 100%);
  pointer-events: none;
}

.portal-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 130px;
  padding-bottom: 130px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.portal-hero__content h2 { max-width: 18ch; }

.portal-hero__content .lede {
  color: #aeb9c2;
  max-width: 46ch;
  font-size: 16.5px;
}
.portal-hero__content .lede strong { color: var(--foam); font-weight: 500; }

.portal-hero__cta { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.portal-hero__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ash);
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--tint { background: var(--steel-tint); }

.section--dark {
  color: var(--foam);
}

.lede {
  font-size: 18px;
  max-width: 62ch;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.col h3 { color: var(--navy); }
.on-dark .col h3 { color: var(--foam); }

.col .label { display: block; margin-bottom: 12px; }

.col p { font-size: 15px; color: #3a444e; }
.on-dark .col p { color: #aeb9c2; }

/* pipeline steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: .5px solid var(--hairline);
}

.step {
  padding: 32px 28px;
  border-left: .5px solid var(--hairline);
}
.step:first-child { border-left: none; }

.step .mono {
  font-size: 12px;
  color: var(--steel-deep);
  display: block;
  margin-bottom: 14px;
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: .5px solid var(--graphite);
  margin-top: 48px;
}

.stat {
  padding: 30px 26px;
  border-left: .5px solid var(--graphite);
}
.stat:first-child { border-left: none; }

.stat__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--steel);
  display: block;
  margin-bottom: 6px;
}

.stat__cap {
  font-size: 13px;
  color: var(--ash);
}

.section--light .stats { border-color: var(--hairline); }
.section--light .stat { border-color: var(--hairline); }
.section--light .stat__num { color: var(--steel-deep); }

/* tags */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  color: var(--steel-deep);
  background: var(--steel-tint);
  display: inline-block;
}
.on-dark .tag { color: var(--steel); background: rgba(79, 148, 164, .12); }

/* sdg evidence cards */
.evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.evidence__card {
  border: .5px solid var(--graphite);
  padding: 30px 28px;
  background: rgba(79, 148, 164, .05);
}

.evidence__card .mono { font-size: 12px; color: var(--ash); }

.evidence__vs {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--foam);
  margin: 12px 0 8px;
}
.evidence__vs b { color: var(--steel); font-weight: 500; }

/* perk cards */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 56px;
  border: .5px solid var(--hairline);
  background: #fff;
}

.perk {
  padding: 42px 44px 44px;
  border-left: .5px solid var(--hairline);
  border-top: .5px solid var(--hairline);
  transition: background .2s;
}
.perk:hover { background: var(--steel-tint); }
.perk:nth-child(-n+2) { border-top: none; }
.perk:nth-child(odd) { border-left: none; }

.perk__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.perk__icon {
  width: 30px;
  height: 30px;
  color: var(--steel-deep);
}

.perk__idx {
  font-size: 11px;
  color: var(--ash);
  letter-spacing: .08em;
}

.perk h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
  max-width: 24ch;
}
.perk p { font-size: 14.5px; color: #4a545e; }

/* technology: image + ID overlay */
.tech-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.id-frame {
  position: relative;
  border: .5px solid var(--graphite);
  background: var(--abyss);
}

.id-frame img { display: block; width: 100%; height: auto; }

.id-frame svg.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.id-frame__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: .5px solid var(--graphite);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
}
.id-frame__bar b { color: var(--steel); font-weight: 500; }

.cap-list { list-style: none; margin-top: 30px; }
.cap-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: .5px solid var(--graphite);
  font-size: 15px;
  color: #aeb9c2;
}
.cap-list li:last-child { border-bottom: .5px solid var(--graphite); }
.cap-list .mono {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--steel);
  padding-top: 3px;
  min-width: 30px;
}
.cap-list b { color: var(--foam); font-weight: 500; }

/* dashboard preview */
.preview {
  margin-top: 52px;
  border: .5px solid var(--hairline);
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 42, 71, .10);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: .5px solid var(--hairline);
}
.preview__bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hairline); display: inline-block;
}
.preview__bar .mono { font-size: 11px; color: var(--ash); margin-left: 10px; }

.preview iframe, .preview img {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- footer ---------- */

.footer {
  border-top: .5px solid rgba(255,255,255,.07);
  padding: 52px 0 40px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8d99a4;
  transition: color .15s;
}
.footer__links a:hover { color: var(--foam); text-decoration: none; }

.footer__legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: .5px solid rgba(255,255,255,.07);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
}

/* ---------- login page ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: .5px solid var(--graphite);
  background: rgba(14, 22, 32, .72);
  backdrop-filter: blur(6px);
  padding: 44px 40px 40px;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 18px 0 6px;
}

.login-card .sub {
  font-size: 14px;
  color: var(--ash);
  margin-bottom: 30px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--foam);
  background: rgba(8, 9, 12, .6);
  border: .5px solid var(--graphite);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s;
}

.field input:focus { border-color: var(--steel); }

.login-card .btn { width: 100%; margin-top: 8px; padding: 13px 22px; }

.form-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--steel);
  background: rgba(79, 148, 164, .10);
  border: .5px solid rgba(79, 148, 164, .35);
  padding: 12px 14px;
  margin-bottom: 20px;
}
.form-error.show { display: block; }
.form-error b { color: var(--foam); font-weight: 500; }

.login-foot {
  text-align: center;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero__inner { padding: 96px 28px 104px; }
  .hero__sub { font-size: 16px; }

  /* portal bg carries busy UI — flatten it behind the text on small screens */
  .portal-hero {
    background:
      linear-gradient(rgba(8, 9, 12, .88), rgba(8, 9, 12, .88)),
      url('portal-bg.jpg') center / cover no-repeat;
  }
  .portal-hero__content { padding-top: 96px; padding-bottom: 96px; }

  .perk { padding: 34px 28px 38px; }
  .perk__head { margin-bottom: 20px; }

  .id-frame svg.overlay text { display: none; }
  .id-frame__bar { font-size: 10px; gap: 8px; padding: 10px 12px; }

  .cols, .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: .5px solid var(--hairline); }
  .step:first-child { border-top: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: .5px solid var(--graphite); }
  .section--light .stat:nth-child(n+3) { border-top-color: var(--hairline); }
  .evidence { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .perk { border-left: none; }
  .perk:nth-child(2) { border-top: .5px solid var(--hairline); }
  .tech-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .nav__links a:not(.btn) { display: none; }
}
