/* Stralos coming-soon — "drawing sheet" system
   Palette: navy #0D1B2A · steel #3B587A · blue #5D7FA6 · teal #00BFB3 · mist #F3F6F8 */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0d1b2a;
  --navy-deep: #0a1420;
  --navy-raise: #122c46;
  --steel: #3b587a;
  --blue: #5d7fa6;
  --teal: #00bfb3;
  --mist: #f3f6f8;
  --muted: #92a5ba;
  --line: rgba(93, 127, 166, 0.28);
  --line-soft: rgba(93, 127, 166, 0.14);
  --frame: 18px;
  --font-sans: "Sora", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--mist);
  font-family: var(--font-sans);
  font-weight: 320;
  line-height: 1.55;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 96px 100%,
    linear-gradient(rgba(59, 88, 122, 0.055) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(59, 88, 122, 0.055) 1px, transparent 1px) 0 0 / 24px 100%,
    radial-gradient(120% 90% at 75% -10%, #11253c 0%, var(--navy-deep) 55%);
  background-attachment: fixed;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- drawing-sheet frame -------------------------------------------------- */

.sheet {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 40;
}

.tick { position: absolute; width: 22px; height: 22px; }
.tick::before, .tick::after {
  content: "";
  position: absolute;
  background: var(--blue);
  opacity: 0.85;
}
.tick::before { width: 1px; height: 22px; left: 50%; }
.tick::after { height: 1px; width: 22px; top: 50%; }
.tick-tl { top: -11px; left: -11px; }
.tick-tr { top: -11px; right: -11px; }
.tick-bl { bottom: -11px; left: -11px; }
.tick-br { bottom: -11px; right: -11px; }

.coords {
  position: fixed;
  right: calc(var(--frame) + 14px);
  top: calc(var(--frame) + 12px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--steel);
  z-index: 41;
  pointer-events: none;
}

@media (hover: none) { .coords { display: none; } }

/* ---- layout ---------------------------------------------------------------- */

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(38px, 6vh, 64px) clamp(26px, 6vw, 56px) 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ---- top bar ---------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(48px, 9vh, 96px);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--mist);
}

.lockup-mark { display: block; height: auto; }

.lockup-name {
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.topbar-meta {
  font-size: 0.66rem;
  color: var(--steel);
  display: flex;
  gap: 10px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 12vh, 130px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--teal);
  margin-bottom: 26px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 191, 179, 0.55);
  animation: pulse 2.4s cubic-bezier(0.5, 0, 0.4, 1) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(0, 191, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0); }
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.85rem);
  font-weight: 590;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.accent { color: var(--teal); }

.lede {
  max-width: 34em;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--teal);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 640;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: #16d9cc; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }

.hero-note {
  font-size: 0.64rem;
  color: var(--steel);
  letter-spacing: 0.22em;
}

/* hero mark + draughting annotations */

.hero-mark {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  padding: 6% 12% 6% 6%;
}

.mark { display: block; width: 100%; height: auto; }

.mark .layer { opacity: 0; }

.l-navy  { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards; }
.l-teal  { animation: settle-x 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.85s forwards; }
.l-steel { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards; }
.l-blue  { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.68s forwards; }

@keyframes settle {
  from { opacity: 0; transform: translateY(-26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle-x {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.dim {
  position: absolute;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.dim span { background: transparent; padding: 3px 0; }

.dim-v {
  top: 6%;
  bottom: 6%;
  right: 3%;
  width: 1px;
  background: var(--line);
  display: flex;
  align-items: center;
}
.dim-v span { transform: rotate(90deg) translateY(-8px); transform-origin: center; }
.dim-v::before, .dim-v::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: var(--blue);
}
.dim-v::before { top: 0; }
.dim-v::after { bottom: 0; }

.dim-h {
  left: 6%;
  right: 12%;
  bottom: -3%;
  height: 1px;
  background: var(--line);
  display: flex;
  justify-content: center;
}
.dim-h span { transform: translateY(-22px); }
.dim-h::before, .dim-h::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--blue);
}
.dim-h::before { left: 0; }
.dim-h::after { right: 0; }

/* ---- modules ----------------------------------------------------------------- */

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(64px, 12vh, 130px);
}

.module {
  position: relative;
  padding: 30px 26px 34px 0;
  margin-right: 26px;
}

.module + .module { padding-left: 26px; margin-right: 26px; border-left: 1px solid var(--line-soft); }
.module:last-child { margin-right: 0; }

.module::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.32s cubic-bezier(0.3, 0.6, 0.2, 1);
}

.module:hover::before { width: 52px; }

.module-no {
  display: block;
  font-size: 0.66rem;
  color: var(--teal);
  margin-bottom: 17px;
}

.module h2 {
  font-size: 1.12rem;
  font-weight: 590;
  margin-bottom: 10px;
}

.module p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- roadmap (drawing revision schedule) --------------------------------------- */

.roadmap { margin-bottom: clamp(64px, 12vh, 130px); }

.roadmap-head { max-width: 46em; margin-bottom: 40px; }

.roadmap-head .kicker { margin-bottom: 18px; }

.roadmap h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 590;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}

.roadmap-lede { color: var(--muted); font-size: 1rem; max-width: 38em; }

.revtable { border: 1px solid var(--line); }

.revrow {
  display: grid;
  grid-template-columns: 110px 220px 1fr 170px;
  gap: 20px;
  align-items: baseline;
  padding: 20px 24px;
  position: relative;
}

.revrow + .revrow { border-top: 1px solid var(--line-soft); }

.revrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.25s ease;
}

.revrow:hover::before { background: var(--teal); }

.rev-id { font-size: 0.68rem; color: var(--steel); }

.revrow:first-child .rev-id { color: var(--teal); }

.rev-name { font-weight: 590; font-size: 1.02rem; }

.rev-scope { color: var(--muted); font-size: 0.9rem; }

.rev-status {
  font-size: 0.62rem;
  color: var(--steel);
  justify-self: end;
  text-align: right;
}

.rev-status.is-active { color: var(--teal); }

.rev-status.is-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  vertical-align: 1px;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 191, 179, 0.55);
  animation: pulse 2.4s cubic-bezier(0.5, 0, 0.4, 1) infinite;
}

.roadmap-note {
  margin-top: 16px;
  font-size: 0.6rem;
  color: var(--steel);
  text-align: right;
}

/* ---- register ----------------------------------------------------------------- */

.register {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 44, 70, 0.5), rgba(13, 27, 42, 0.72));
  padding: clamp(30px, 5vw, 54px);
  margin-bottom: clamp(56px, 10vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  scroll-margin-top: 60px;
}

.register-head .kicker { margin-bottom: 18px; }

.register h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 590;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.register-lede { color: var(--muted); font-size: 0.95rem; max-width: 30em; }

.register-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
  align-content: start;
}

.register-form[hidden] { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.intent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0 0 2px;
}

.intent label {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 16px 14px 38px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 32, 0.5);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.intent label::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--blue);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.intent label:hover { border-color: var(--blue); }

.intent label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(0, 191, 179, 0.07);
}

.intent label:has(input:checked)::before {
  background: var(--teal);
  border-color: var(--teal);
}

.intent label:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.intent input { position: absolute; opacity: 0; pointer-events: none; }

.intent-name {
  font-size: 0.68rem;
  color: var(--mist);
  letter-spacing: 0.12em;
}

.intent label:has(input:checked) .intent-name { color: var(--teal); }

.intent-desc { font-size: 0.8rem; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 0.8rem;
  font-weight: 570;
  color: var(--mist);
}

.req { color: var(--teal); }

.field input,
.field select {
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--mist);
  background: rgba(10, 20, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.field input:hover, .field select:hover { border-color: var(--blue); }

.field input:focus, .field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field input.invalid { border-color: #ff8f7a; }

.trap { position: absolute; left: -6000px; top: -6000px; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-status { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
.form-status.error { color: #ff8f7a; }

.register-done {
  grid-column: -2;
  grid-row: 1;
  align-self: center;
  text-align: left;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.register-done[hidden] { display: none; }

.done-code {
  font-size: 0.72rem;
  color: var(--teal);
}

.done-copy { color: var(--muted); max-width: 30em; }

/* ---- title block footer --------------------------------------------------------- */

.titleblock {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  border: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  background: rgba(10, 20, 32, 0.72);
}

.tb-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 24px 17px;
  border-right: 1px solid var(--line-soft);
}

.tb-cell:last-child { border-right: 0; align-items: flex-end; }

.tb-label { font-size: 0.54rem; color: var(--steel); }

.tb-status { color: var(--teal); }

/* ---- reveal animation ------------------------------------------------------------ */

.reveal { opacity: 0; animation: rise 0.85s cubic-bezier(0.2, 0.65, 0.25, 1) forwards; }
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.38s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mark .layer { animation: none; opacity: 1; }
  .pulse { animation: none; }
  .btn, .module::before { transition: none; }
}

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .revrow { grid-template-columns: 90px 1fr 150px; }
  .rev-scope { grid-column: 2 / -1; grid-row: 2; }
  .modules { grid-template-columns: 1fr 1fr; }
  .module:nth-child(odd) { border-left: 0; padding-left: 0; }
  .module { border-top: 1px solid var(--line-soft); padding-left: 26px; }
  .module:nth-child(-n+2) { border-top: 0; }
  .register { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --frame: 10px; }
  .coords { display: none; }
  .modules { grid-template-columns: 1fr; }
  .module, .module + .module { border-left: 0; padding-left: 0; margin-right: 0; border-top: 1px solid var(--line-soft); }
  .module:first-child { border-top: 0; }
  .register-form { grid-template-columns: 1fr; }
  .intent { grid-template-columns: 1fr; }
  .revrow { grid-template-columns: 1fr auto; row-gap: 8px; padding: 18px 18px; }
  .rev-id { grid-row: 1; }
  .rev-name { grid-column: 1 / -1; grid-row: 2; }
  .rev-scope { grid-column: 1 / -1; grid-row: 3; }
  .rev-status { grid-row: 1; }
  .roadmap-note { text-align: left; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell:last-child { align-items: flex-start; }
  .topbar-meta { display: none; }
}
