/* Xenviron public site. Self hosted IBM Plex only, no third party origins. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root {
  --blue: #122a6b;
  --blue-2: #0c1f50;
  --blue-hi: #1e3f96;
  --cyan: #38d1c4;
  --cyan-deep: #0f857a;
  /* Text-only variant of cyan-deep. Used where small text sits on paper or
     cyan-wash, which drop cyan-deep below the 4.5 to 1 contrast floor. */
  --cyan-text: #0c7369;
  --cyan-wash: #e2f7f4;
  --paper: #eef1f7;
  --surface: #ffffff;
  --ink: #111a30;
  --ink-2: #3f4d68;
  --ink-dim: #71809a;
  --line: #e0e5ef;

  /* Light ink for the deep blue ground only. */
  --on-blue: #ffffff;
  --on-blue-2: #c3cfe9;

  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 10px;
  --wrap: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.12rem; }
p { color: var(--ink-2); }

a { color: var(--blue-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* Focus is always visible and never removed. */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--cyan-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 20;
  border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  background: var(--blue-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--on-blue);
  text-decoration: none;
  margin-right: auto;
}

.wordmark:hover { color: var(--cyan); }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.site-nav a {
  color: var(--on-blue-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--on-blue); }

.site-nav a[aria-current="page"] {
  color: var(--on-blue);
  border-bottom-color: var(--cyan);
}

.site-head a:focus-visible { outline-color: var(--cyan); }

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

.hero {
  position: relative;
  background: var(--blue);
  background-image: linear-gradient(160deg, var(--blue-hi) 0%, var(--blue) 46%, var(--blue-2) 100%);
  color: var(--on-blue);
  padding: 84px 0 150px;
  overflow: hidden;
}

/* Blueprint grid drawn with gradients, so no image request is made. */
.hero::before,
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.hero .wrap { position: relative; }
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  margin-bottom: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 209, 196, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.42; } }

.hero h1 { color: var(--on-blue); max-width: 16ch; }
.hero h1 .accent { color: var(--cyan); }

.hero-sub {
  color: var(--on-blue-2);
  font-size: 1.14rem;
  max-width: 60ch;
  margin-top: 22px;
}

.hero-note {
  color: var(--on-blue);
  font-size: 1rem;
  max-width: 60ch;
  margin-top: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover { background: #5fdcd1; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--on-blue);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-blue); }

.hero .btn:focus-visible { outline-color: var(--cyan); }

/* ---------- cards floating over the hero edge ---------- */

.cards { margin-top: -96px; position: relative; z-index: 2; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 14px 34px rgba(12, 31, 80, 0.11);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--cyan-wash);
  color: var(--cyan-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }

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

.section { padding: 84px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--surface); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .mono { color: var(--cyan-text); display: block; margin-bottom: 14px; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }

/* ---------- problem list ---------- */

.problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
}

.problem {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-deep);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.problem h3 { margin-bottom: 8px; }
.problem p { font-size: 0.97rem; }

/* ---------- promise band on deep blue ---------- */

.band {
  background: var(--blue);
  background-image: linear-gradient(150deg, var(--blue) 0%, var(--blue-2) 100%);
  color: var(--on-blue);
  padding: 84px 0;
}

.band h2 { color: var(--on-blue); }
.band .section-head .mono { color: var(--cyan); }
.band .section-head p { color: var(--on-blue-2); }

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.promise {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 24px;
}

.promise h3 { color: var(--on-blue); margin-bottom: 8px; }
.promise p { color: var(--on-blue-2); font-size: 0.97rem; }

/* ---------- numbered steps ---------- */

.steps { list-style: none; counter-reset: step; display: grid; gap: 4px; }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: 0; }

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--cyan-text);
  background: var(--cyan-wash);
  border-radius: 8px;
  padding: 7px 0;
  text-align: center;
}

.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.99rem; }

/* ---------- interior page head ---------- */

.page-head {
  background: var(--blue);
  background-image: linear-gradient(160deg, var(--blue-hi) 0%, var(--blue) 55%, var(--blue-2) 100%);
  color: var(--on-blue);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}

.page-head .wrap { position: relative; }
.page-head .mono { color: var(--cyan); display: block; margin-bottom: 14px; }
.page-head h1 { color: var(--on-blue); font-size: 2.3rem; max-width: 20ch; }
.page-head p { color: var(--on-blue-2); max-width: 60ch; margin-top: 18px; font-size: 1.1rem; }

/* ---------- about ---------- */

.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose p { font-size: 1.06rem; }

.prose .lead {
  font-size: 1.32rem;
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
}

.prose-close {
  margin-top: 1.1em;
  font-weight: 400;
  color: var(--ink);
}

.founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan-deep);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 66ch;
}

.founder h2 { font-size: 1.4rem; margin-bottom: 12px; }
.founder p { font-size: 1.06rem; font-weight: 400; }
.founder p + p { margin-top: 1.1em; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { margin-bottom: 16px; }

.big-link {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--blue-hi);
  word-break: break-word;
}

.reply-note {
  margin-top: 34px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- early access lock card ---------- */

.early-stage { padding: 74px 0 96px; }

.ghost-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  /* Decoration only. Blurred, inert, and hidden from assistive technology. */
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.ghost-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.ghost-box {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-dim);
  font-size: 0.95rem;
  padding: 10px 14px;
}

.lock-card {
  position: relative;
  z-index: 2;
  margin: -230px auto 0;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan-deep);
  border-radius: 14px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(12, 31, 80, 0.16);
}

.lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan-wash);
  color: var(--cyan-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.lock-icon svg { width: 24px; height: 24px; }
.lock-card h2 { font-size: 1.45rem; margin-bottom: 12px; }
.lock-card p { margin-bottom: 16px; }
.lock-card .btn { margin-top: 10px; background: var(--blue); color: var(--surface); }
.lock-card .btn:hover { background: var(--blue-hi); color: var(--surface); }

/* ---------- early access request form ---------- */

.access-form { margin-top: 22px; text-align: left; }

.field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.field-input::placeholder { color: var(--ink-2); opacity: 0.75; }

.field-input:focus-visible {
  outline: 3px solid var(--cyan-deep);
  outline-offset: 2px;
  border-color: var(--blue-hi);
}

.access-form .btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

.access-form .btn:disabled { opacity: 0.65; cursor: default; }

/* Honeypot. Off screen rather than display none, so bots still fill it. */
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  min-height: 1.2em;
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.04em;
}

.form-msg.ok { color: var(--cyan-text); }

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

.site-foot {
  background: var(--blue-2);
  color: var(--on-blue-2);
  padding: 52px 0 40px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-top .wordmark { margin-right: 0; }
.foot-tag { color: var(--on-blue-2); font-size: 0.97rem; max-width: 42ch; margin-top: 10px; }
.site-foot a { color: var(--on-blue); }
.site-foot a:hover { color: var(--cyan); }
.site-foot a:focus-visible { outline-color: var(--cyan); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.foot-links a { text-decoration: none; font-size: 0.95rem; }

.foot-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--on-blue-2);
}

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

@media (max-width: 860px) {
  .card-grid, .problems, .promises, .contact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 62px 0 130px; }
  .cards { margin-top: -86px; }
  .section, .band { padding: 62px 0; }
  .ghost-panel { grid-template-columns: 1fr; }
  .lock-card { margin-top: -300px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { max-width: none; }
  .site-head .wrap { gap: 12px 18px; }
  .wordmark { margin-right: 0; width: 100%; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .lock-card { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
