/*
 * Zeltalon launch page -- standalone styles.
 *
 * Hand-written CSS with no build step and no external font or CDN request, so
 * this directory deploys unchanged to Vercel, GitHub Pages or S3+CloudFront and
 * survives a strict CSP.
 *
 * The palette is lifted from the product's own token system
 * (`frontend/src/app/globals.css`, "Nebula Glass"): the same aurora ramp
 * cyan -> blue -> indigo -> violet and the same glass alpha steps. Keep these in
 * sync by eye only -- this page is throwaway at launch and must never import
 * from the app.
 */

:root {
  --canvas-deep: oklch(0.11 0.016 265);

  --gl-6: oklch(1 0 0 / 6%);
  --gl-10: oklch(1 0 0 / 10%);
  --gl-14: oklch(1 0 0 / 14%);

  --text-strong: oklch(0.97 0.005 265);
  --text-body: oklch(0.78 0.012 265);
  --text-muted: oklch(0.62 0.014 265);

  --cyan: oklch(0.78 0.175 192);

  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas-deep);
  color: var(--text-body);
  font: 400 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The aurora wash: three large radial glows pinned behind everything,
   non-interactive, and cheap enough not to need a canvas or an image. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -10%, oklch(0.78 0.175 192 / 16%), transparent 60%),
    radial-gradient(52rem 38rem at 92% 8%, oklch(0.62 0.22 280 / 18%), transparent 62%),
    radial-gradient(46rem 34rem at 50% 108%, oklch(0.70 0.20 240 / 12%), transparent 64%),
    var(--canvas-deep);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.site-header { padding-block: 26px; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-decoration: none;
}

.lockup img {
  width: 32px;
  height: 32px;
  display: block;
  user-select: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: oklch(0.78 0.175 192 / 12%);
  border: 1px solid oklch(0.78 0.175 192 / 24%);
  color: oklch(0.86 0.13 192);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 0 oklch(0.78 0.175 192 / 60%);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px oklch(0.78 0.175 192 / 0%); }
  100% { box-shadow: 0 0 0 0 oklch(0.78 0.175 192 / 0%); }
}

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

/* Centred rather than left-aligned. A launch page has one message and no
   product screenshot to sit beside it, so a left-aligned hero leaves the right
   half of a desktop viewport empty. The real site's hero is left-aligned
   because it has a dashboard preview to balance it; this one does not. */
.hero {
  padding-block: 72px 84px;
  text-align: center;
}

h1 {
  margin: 0 auto;
  max-width: 17ch;
  font-size: clamp(2.35rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 800;
  color: var(--text-strong);
}

.aurora-text {
  background: linear-gradient(
    135deg,
    oklch(0.82 0.175 192) 0%,
    oklch(0.74 0.20 240) 40%,
    oklch(0.68 0.22 280) 70%,
    oklch(0.72 0.215 300) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 22px auto 0;
  max-width: 56ch;
  font-size: clamp(1rem, 2.1vw, 1.135rem);
  line-height: 1.68;
  color: var(--text-body);
}

.cta-row {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* ---------- waitlist form ---------- */

/* The form itself stays left-aligned inside a centred column: a centred
   checkbox-and-sentence consent block is markedly harder to read than a
   left-aligned one, and the consent notice is the part that must be read. */
.waitlist {
  margin: 34px auto 0;
  max-width: 560px;
  text-align: left;
}

.field-row { display: flex; gap: 10px; flex-wrap: wrap; }

input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--text-strong);
  background: var(--gl-6);
  border: 1px solid var(--gl-14);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

input[type="email"]::placeholder { color: var(--text-muted); }

input[type="email"]:focus-visible {
  outline: none;
  border-color: oklch(0.78 0.175 192 / 55%);
  background: oklch(1 0 0 / 9%);
}

input[type="email"][aria-invalid="true"] {
  border-color: oklch(0.68 0.2 27 / 60%);
}

.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(135deg, oklch(0.72 0.175 192) 0%, oklch(0.62 0.22 280) 100%);
  box-shadow: 0 4px 24px oklch(0.78 0.175 192 / 22%);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px oklch(0.78 0.175 192 / 36%);
}

.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* The DPDP consent block. This is a standalone notice, not a link to one:
   s.5 requires the notice to be understandable on its own, at or before the
   moment of consent. Do not shorten it into a link. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.consent input {
  margin: 3px 0 0;
  width: 15px;
  height: 15px;
  accent-color: oklch(0.70 0.19 235);
  flex: 0 0 auto;
  cursor: pointer;
}

.consent a { color: oklch(0.82 0.13 192); }

/* One live region for every outcome, so a screen reader hears exactly one
   message per submit rather than one per state we happened to render. */
.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.form-status:empty { margin-top: 0; }
.form-status[data-tone="error"] { color: oklch(0.80 0.16 27); }
.form-status[data-tone="ok"]    { color: oklch(0.84 0.14 152); }

.form-done {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: oklch(0.75 0.16 152 / 10%);
  border: 1px solid oklch(0.75 0.16 152 / 26%);
  color: oklch(0.88 0.10 152);
  font-size: 15px;
  line-height: 1.6;
}

.form-done strong { color: oklch(0.94 0.06 152); }

/* ---------- feature grid ---------- */

.features { padding-block: 8px 74px; }

.features h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grid {
  margin-top: 26px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 22px 20px 24px;
  border-radius: 18px;
  background: var(--gl-6);
  border: 1px solid var(--gl-10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-muted);
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.icon svg { width: 19px; height: 19px; }

.icon-cyan    { background: oklch(0.78 0.175 192 / 14%); color: oklch(0.84 0.15 192); }
.icon-amber   { background: oklch(0.80 0.16 75 / 14%);   color: oklch(0.86 0.14 75); }
.icon-violet  { background: oklch(0.62 0.22 280 / 16%);  color: oklch(0.80 0.16 285); }
.icon-emerald { background: oklch(0.75 0.16 152 / 14%);  color: oklch(0.84 0.14 152); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--gl-10);
  padding-block: 26px 40px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  gap: 12px 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: var(--text-body); text-decoration: none; }
.site-footer a:hover { color: var(--text-strong); text-decoration: underline; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- a11y / motion ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid oklch(0.82 0.14 192);
  outline-offset: 2px;
  border-radius: 6px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
