/* cas cloud — terminal-industrial. IBM Plex Mono + amber phosphor on near-black. */

:root {
  --bg: #0a0d11;
  --bg-raise: #0f141a;
  --line: #1d242e;
  --line-bright: #2c3644;
  --fg: #cdd6e0;
  --fg-dim: #6b7787;
  --fg-faint: #46505e;
  --amber: #ffb454;
  --amber-dim: #b57d33;
  --green: #7dd88f;
  --red: #ef7070;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, "Helvetica Neue", sans-serif;
}

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

html { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* faint grid, like graph paper for machines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 75%);
}

::selection { background: var(--amber); color: #0a0d11; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.brand { color: var(--fg); letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand .dim { color: var(--fg-faint); }
.brand .accent { color: var(--amber); }

nav { display: flex; gap: 1.5rem; align-items: center; }
nav .who { color: var(--fg-dim); }

main {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1rem 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------- landing */

.hero { padding: 7rem 0 3rem; }

.hero .glyph {
  font-family: var(--mono);
  color: var(--fg-faint);
  font-size: 0.8rem;
  margin-bottom: 2rem;
  white-space: pre;
  line-height: 1.4;
}

.hero h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 .accent { color: var(--amber); }

.hero h1 .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--amber);
  vertical-align: text-bottom;
  margin-left: 0.12em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero p.lede {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--fg-dim);
  font-size: 1.05rem;
}

.hero .cta { margin-top: 2.6rem; display: flex; gap: 1rem; align-items: center; }

.hero .invite-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-faint);
}

/* boundary diagram */
.boundaries {
  margin: 4rem 0 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.boundaries article {
  background: var(--bg-raise);
  padding: 1.5rem 1.4rem 1.7rem;
}

.boundaries h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.7rem;
}

.boundaries h2::before { content: "▸ "; color: var(--fg-faint); }

.boundaries p { font-size: 0.86rem; color: var(--fg-dim); }

@media (max-width: 44rem) {
  .boundaries { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
}

/* ----------------------------------------------------------------- forms */

.panel {
  max-width: 26rem;
  margin: 6rem auto;
  border: 1px solid var(--line-bright);
  background: var(--bg-raise);
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.panel .panel-head {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.4rem;
}

.panel .panel-head .accent { color: var(--amber); }

.panel .panel-body { padding: 1.6rem 1.4rem 1.8rem; }

.field { margin-bottom: 1.15rem; }

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 0.4rem;
}

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  color: var(--fg);
  font: 0.95rem var(--mono);
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--amber); }

.value-ro {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--green);
  padding: 0.6rem 0;
}

.btn {
  display: inline-block;
  font: 600 0.85rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--amber);
  color: #0a0d11;
  border: 1px solid var(--amber);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: transparent; color: var(--amber); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--fg-dim);
  border-color: var(--line-bright);
}

.btn-ghost:hover { color: var(--fg); border-color: var(--fg-dim); }

.form-foot {
  margin-top: 1.3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.error {
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.2rem;
}

/* ------------------------------------------------------------- dashboard */

.dash { padding: 4rem 0; }

.dash > h1 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.dash > h1 .accent { color: var(--amber); }

.dash .sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-faint);
  margin-bottom: 2.5rem;
}

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

@media (max-width: 44rem) { .cards { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line-bright);
  background: var(--bg-raise);
  padding: 1.4rem;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.card:nth-child(2) { animation-delay: 0.07s; }

.card h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 0.9rem;
}

.card .url {
  font-family: var(--mono);
  font-size: 1rem;
  word-break: break-all;
}

.card p.desc { margin-top: 0.8rem; font-size: 0.83rem; color: var(--fg-dim); }

.statusline {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  animation: rise 0.45s 0.14s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.statusline .row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
}

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

.statusline .k { color: var(--fg-dim); }

.state { color: var(--fg-dim); }
.state::before { content: "● "; }
.state.running { color: var(--green); }
.state.bad { color: var(--red); }

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