/* Noopia teaser. Same visual language as noopsys.com: IBM Plex, ink ground, one teal accent.
   Always dark. One left-aligned column; the form is the only action. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.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-latin-600-normal.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-latin-400-normal.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-latin-500-normal.woff2) format("woff2"); }

:root {
  --ink: #10192B;
  --ink-deep: #0B1220;
  --paper: #F4EFE6;
  --accent: #5FB3AE;
  --muted: #AEB3BC;
  --rule: #2A3447;
  --warn: #F0B48A;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 44rem;
  --frame: 60rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: calc(var(--frame) + 3rem);
  margin-inline: auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}
/* The n. unfolds into noopia. Same typeface, drawing, size and timing as the noopsys logo;
   a click replays it. The box has the noopsys height, so the dot of the i rises above it
   (overflow: visible) into the header's padding. */
.logo { display: inline-flex; color: var(--paper); line-height: 0; cursor: pointer; }
.logo-svg { height: 1.9rem; width: auto; display: block; overflow: visible; }
.logo-dot { fill: var(--accent); }
.lang {
  display: flex;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--accent); text-decoration: underline; }
.lang [aria-current] { color: var(--paper); font-weight: 500; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: clamp(2.5rem, 9vw, 6rem);
  padding-bottom: clamp(3rem, 9vw, 6rem);
}
.tagline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
}
/* The light on a small server that stays on at your place. */
.lamp {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  animation: lamp 3.2s ease-out infinite;
}
@keyframes lamp {
  0%   { box-shadow: 0 0 0 0 rgba(95, 179, 174, 0.55); }
  70%  { box-shadow: 0 0 0 0.6rem rgba(95, 179, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 179, 174, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: none; }
}

h1 {
  max-width: 52rem;
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.1rem, 6.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.lead {
  max-width: var(--measure);
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* Form */
.signup {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: var(--measure);
  margin-top: 0.75rem;
}
.signup label {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}
.fields { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fields input {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--paper);
  background: var(--ink-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.8rem 1rem;
}
.fields input::placeholder { color: var(--muted); opacity: 0.6; }
.fields input:hover { border-color: var(--muted); }
.fields input[aria-invalid="true"] { border-color: var(--warn); }
.button {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 6px;
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--accent); }
.button:disabled { opacity: 0.6; cursor: progress; }
/* A field people never see; anything typed in it marks an automated submission. */
.trap { position: absolute; left: -100rem; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; font-size: 0.9375rem; color: var(--warn); }
.privacy {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.done {
  max-width: var(--measure);
  margin-top: 0.75rem;
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.done p { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.4rem); line-height: 1.5; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-thickness: 2px; }

@media (max-width: 30rem) {
  .site-header { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .logo-svg { height: 1.6rem; }
  .button { flex: 1 1 100%; }
}
