/* Noctis holding page. The dashboard's light Moon haze colours, laid out like
   Vigil's holding page: the lockup, a headline, one line on what Noctis does
   and an email field, over the Noctis rings drawn very large and very faint.
   Set in Helvetica Neue, self-hosted so every visitor sees it, Windows
   included (owner, 4 Dec). Weight 600 draws from the Bold file. */

@font-face { font-family: "Helvetica Neue Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/helvetica-neue/helvetica-neue-roman.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Neue Web"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/helvetica-neue/helvetica-neue-medium.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Neue Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/helvetica-neue/helvetica-neue-bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ground: #E9E3D9;
  --cream: #E2D8C7;
  --surface: #F7F3EC;
  --surface-line: #E2DBCF;
  --line-strong: #CFC6B8;
  --ink: #232836;
  --ink-2: #3B404D;
  --soft: #4E5361;
  --faint: #5C606B;
  --decor: #A19D98;
  --on-plate: #F4EEE3;
  --danger: #A1382E;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
h1, p { margin: 0; }

body {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100svh;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: "Helvetica Neue Web", "Helvetica Neue", Arial, sans-serif; font-synthesis: none;
  font-size: 15px; line-height: 1.5;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(35, 40, 54, 0.14); }

/* ---------- the ground ---------- */

.ground { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Moon haze: a warm light pool and a cool grey one on slow orbits. */
.pool { position: absolute; left: 50%; top: 50%; border-radius: 50%; filter: blur(80px); will-change: transform; }
.pool-a {
  width: 80vmax; height: 80vmax; margin: -40vmax 0 0 -40vmax;
  background: radial-gradient(circle, rgba(247, 243, 236, 0.95) 0%, rgba(247, 243, 236, 0) 62%);
  animation: orbit-a 28s ease-in-out infinite;
}
.pool-b {
  width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  background: radial-gradient(circle, rgba(116, 120, 131, 0.22) 0%, rgba(116, 120, 131, 0) 60%);
  animation: orbit-b 36s ease-in-out infinite;
}
@keyframes orbit-a { 0%, 100% { transform: translate(-10%, -12%) scale(1); } 50% { transform: translate(8%, -2%) scale(1.1); } }
@keyframes orbit-b { 0%, 100% { transform: translate(22%, 24%) scale(1.05); } 50% { transform: translate(-18%, 16%) scale(0.9); } }

/* The rings: wider than the screen, a few percent strong, leaning a little
   toward the pointer (app.js moves --px and --py). */
.giant {
  position: absolute; left: 50%; top: 50%;
  width: max(118vmax, 1100px); aspect-ratio: 1;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  transition: transform 1.2s var(--ease);
}
.giant svg { display: block; width: 100%; height: 100%; overflow: visible; animation: breathe 18s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.025) rotate(-1.5deg); } }

.rings { opacity: 0.065; }
.ring { fill: none; stroke-width: 12; }
.ring-lit { stroke: var(--ink); }
.ring-shade { stroke: var(--soft); }
.cut { fill: none; stroke: var(--ground); stroke-width: 21; }

/* A soft sheen running round each ring, the two at different speeds. */
.runner {
  fill: none; stroke: var(--surface); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 16 84; opacity: 0.7; filter: blur(1.2px);
  animation: run 14s linear infinite;
}
.runner-b { animation-duration: 19s; animation-direction: reverse; animation-delay: -6s; }
@keyframes run { to { stroke-dashoffset: -100; } }

/* A little film grain, so the large soft shapes do not band. */
.grain {
  position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14  0 0 0 0 0.16  0 0 0 0 0.21  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- the frame ---------- */

.top, .main, .foot { position: relative; z-index: 1; width: 100%; padding-left: 20px; padding-right: 20px; }

.top { display: flex; justify-content: center; padding-top: 44px; }
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 13px; }
.lockup-row { display: inline-flex; align-items: center; gap: 15px; }
.mark { width: 60px; height: 60px; display: block; margin-left: -6px; }
.wordmark { font-size: 38px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.by-bastion { display: block; height: 15px; width: auto; overflow: visible; }
.by-bastion .by { fill: var(--faint); }
.by-bastion .logo { fill: var(--soft); }
.by-bastion .steel { fill: #6F93AB; }

.main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 32px; padding-bottom: 56px;
}

.soon { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; color: var(--soft); margin-bottom: 20px; }

h1 {
  font-size: clamp(40px, 7.2vw, 96px);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.05em;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--ink) 35%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
h1 .line { display: block; white-space: nowrap; }

/* The quieter second sentence: Ask, the AI investigator, said softly. */
.body-ai { display: block; margin-top: 12px; font-size: 15px; color: var(--faint); white-space: nowrap; }
.body { margin-top: 26px; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--soft); text-wrap: balance; }

/* ---------- the email field ---------- */

.signup { margin-top: 40px; width: 100%; max-width: 480px; }

/* One capsule: the field, and the dark button set inside it, as the
   dashboard's search field and main button. */
.row {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border: 1px solid var(--surface-line); border-radius: 999px;
  background: rgba(247, 243, 236, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 1px 2px rgba(35, 40, 54, 0.05), 0 18px 48px -18px rgba(35, 40, 54, 0.28);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.row:hover { border-color: var(--line-strong); }
.row:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(35, 40, 54, 0.08), 0 18px 48px -18px rgba(35, 40, 54, 0.32); }
.row.is-invalid { border-color: var(--danger); }

input[type="email"] {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px 0 18px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px;
}
input[type="email"]::placeholder { color: var(--decor); }
input[type="email"]:focus { outline: none; }

button {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 46px; padding: 0 18px 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-plate);
  font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
button:hover { background: var(--ink-2); }
button:active { transform: scale(0.97); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button[disabled] { opacity: 0.6; cursor: default; }
.arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
button:hover .arrow { transform: translateX(3px); }

.note { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--faint); }
.note.is-error { color: var(--danger); }
.note.is-done { color: var(--ink); }
.signup.is-done .row { display: none; }
.signup.is-done .note { margin-top: 0; font-size: 18px; animation: rise 0.7s var(--ease) both; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.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; }

.foot { padding-bottom: 24px; font-size: 12px; color: var(--faint); }

/* ---------- coming in ---------- */

.top, .main > *, .foot { animation: rise 0.9s var(--ease) both; }
.main > :nth-child(1) { animation-delay: 0.05s; }
.main > :nth-child(2) { animation-delay: 0.12s; }
.main > :nth-child(3) { animation-delay: 0.18s; }
.main > :nth-child(4) { animation-delay: 0.26s; }
.foot { animation-delay: 0.4s; }
.giant { animation: appear 2.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes appear { from { opacity: 0; } }

@media (max-width: 560px) {
  .top { padding-top: 32px; }
  h1 .line { white-space: normal; }
  .body-ai { white-space: normal; }
  .body { font-size: 16px; }
  .row { flex-direction: column; align-items: stretch; border-radius: 26px; }
  input[type="email"] { text-align: center; padding: 0 14px; }
  button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* "by Bastion" under the lockup links to the company site. */
.by-link { display: block; padding: 8px; margin: -8px; border-radius: 6px; transition: opacity 0.2s ease; }
.by-link:hover { opacity: 0.7; }
.by-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
