/* ============================================================
   Coordyn — teaser page
   Values from Coordyn Design (tokens.json). Dark ground, one hue,
   no gradients, no shadows.
   ============================================================ */
:root {
  --surface-page: #0b0f0e;   /* ink-800 */
  --surface-panel: #0b1016;  /* ink-700 */
  --surface-inset: #0e141c;  /* ink-600 */
  --text-primary: #eaf0f6;
  --text-body: #8a96a4;
  --text-caption: #7c8896;
  --brand-mark: #4c86f0;     /* blue-500 */
  --brand-accent: #6ea0f5;   /* blue-300 */
  --blue-600: #2f6be0;
  --border-default: rgba(255, 255, 255, 0.08);
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 34px 60px;
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-caption);
}

/* ---- Top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 18.4px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.status { letter-spacing: 0.16em; }

/* ---- Hero ---- */
.hero {
  flex: 1;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  text-align: center;
}
.mark { width: 200px; height: 200px; }
.seg { fill: var(--brand-mark); opacity: 0.5; animation: loop 5s linear infinite; }
.seg:nth-child(2) { animation-delay: 1s; }
.seg:nth-child(3) { animation-delay: 2s; }
.seg:nth-child(4) { animation-delay: 3s; }
.seg:nth-child(5) { animation-delay: 4s; }
@keyframes loop {
  0%   { opacity: 0.5; }
  6%   { opacity: 1; }
  20%  { opacity: 1; }
  32%  { opacity: 0.5; }
  100% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .seg { animation: none; opacity: 1; }
}

.copy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-body);
}

/* ---- Signup ---- */
.signup { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.signup-row { display: flex; gap: 12px; }
.field {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: var(--surface-inset);
  border: 1px solid var(--border-default);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 120ms var(--ease-standard);
}
.field::placeholder { color: var(--text-caption); }
.field:focus { outline: none; border-color: var(--brand-accent); }
.btn {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: var(--brand-mark);
  color: var(--surface-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms var(--ease-standard);
}
.btn:hover { background: var(--brand-accent); }
.btn:active { background: var(--blue-600); }
.btn:focus-visible { outline: 1px solid var(--brand-accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.signup-msg { margin: 0; min-height: 21px; font-size: 13px; line-height: 1.6; color: var(--text-primary); }
.signup-msg.ok {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.signup.done .signup-row { display: none; }
.signup.done { align-items: center; text-align: center; }

/* ---- Footer ---- */
.bottom { display: flex; align-items: center; justify-content: space-between; }
.bottom a { text-transform: none; letter-spacing: 0.06em; color: var(--text-caption); text-decoration: none; padding: 12px 0; transition: color 120ms var(--ease-standard); }
.bottom a:hover { color: var(--text-primary); }

.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;
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  .page { padding: 26px 16px; }
  .hero { gap: 34px; padding: 40px 0; }
  .mark { width: 140px; height: 140px; }
  .copy { gap: 16px; }
  h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  .signup-row { flex-direction: column; }
  .field { font-size: 16px; flex: none; }
}
