/*
 * ZortBox — coming soon.
 *
 * The palette is lifted from the product's own tokens rather than invented, so
 * the site and the application read as the same object: the near-black canvas
 * is `--my-gray-1000`, and the indigo is the app's accent at hsl(243 75% 62%).
 * Somebody arriving here and then opening the client should not feel handed
 * off between two brands.
 */

:root {
  --canvas: #06080a;
  --raised: #0b0d10;

  --indigo: #6366f1;
  --indigo-lift: #818cf8;
  --indigo-deep: #4f46e5;

  --ink: #e2e7ec;
  --ink-dim: #79838f;
  --ink-faint: #59626e;

  --rule: rgb(99 102 241 / 0.16);
  --rule-soft: rgb(226 231 236 / 0.07);

  --measure: 62ch;
  --step: clamp(1.05rem, 1.8vw, 1.65rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 300;
  font-size: clamp(0.86rem, 0.3vw + 0.8rem, 0.95rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Atmosphere ─────────────────────────────────────────────────────────
   Grain and a single off-centre bloom, rather than a gradient. A flat
   near-black reads as unfinished at this scale; a mesh gradient reads as
   every other launch page. Grain gives the surface something to be. */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.bloom {
  position: fixed;
  z-index: 0;
  inset: auto auto 0 -12vw;
  width: 68vw;
  height: 68vw;
  max-width: 900px;
  max-height: 900px;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgb(99 102 241 / 0.16),
    rgb(99 102 241 / 0.05) 42%,
    transparent 68%
  );
  filter: blur(8px);
}

/* ── Frame ──────────────────────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 3.5vh, 2.75rem);
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1320px;
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  width: clamp(148px, 16vw, 190px);
  height: auto;
  color: var(--ink);
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-lift);
  box-shadow: 0 0 0 0 rgb(129 140 248 / 0.6);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(129 140 248 / 0.5); }
  70% { box-shadow: 0 0 0 9px rgb(129 140 248 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(129 140 248 / 0); }
}

/* ── The two-column body ────────────────────────────────────────────────
   Asymmetric on purpose: the mark takes a narrow gutter and bleeds past the
   left edge of the text column, so the composition has a hinge rather than
   two balanced halves. */

.body {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.markwrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.mark {
  width: min(100%, 292px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 44px rgb(79 70 229 / 0.34));
}

.panel {
  transform-box: fill-box;
  transform-origin: center;
  animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Out of order on arrival, in order once settled — the whole point of the
   name, done in three keyframes. */
.panel--top { animation-delay: 160ms; --from-x: -34px; --from-y: -12px; }
.panel--fold { animation-delay: 300ms; --from-x: 26px; --from-y: 4px; }
.panel--base { animation-delay: 440ms; --from-x: -20px; --from-y: 16px; }

@keyframes settle {
  from {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* The fold, on hover: panels part and return. Cheap, and it rewards the one
   thing on the page a pointer is drawn to. */
@media (hover: hover) {
  .markwrap:hover .panel--top { transform: translateY(-4px); }
  .markwrap:hover .panel--base { transform: translateY(4px); }
  .markwrap:hover .panel--fold { transform: scaleX(1.03); }
  .panel { transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
}

/* ── Copy ───────────────────────────────────────────────────────────── */

.copy > * {
  animation: rise 720ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.copy > :nth-child(1) { animation-delay: 240ms; }
.copy > :nth-child(2) { animation-delay: 340ms; }
.copy > :nth-child(3) { animation-delay: 440ms; }
.copy > :nth-child(4) { animation-delay: 560ms; }

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

.headline {
  margin: 0 0 0.95rem;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.35rem, 5.4vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* The one italic on the page, on the one word the product is named for. */
.headline em {
  font-style: italic;
  color: var(--indigo-lift);
}

.lede {
  margin: 0 0 var(--step);
  max-width: var(--measure);
  color: var(--ink-dim);
}

.spec {
  margin: 0 0 var(--step);
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}

.spec__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.spec dt {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.22em;
}

.spec dd {
  margin: 0;
  color: var(--ink);
}

/* ── Signup ─────────────────────────────────────────────────────────────
   A ruled line rather than a boxed input. Boxes are what every launch page
   does; a rule matches the datasheet above it and leaves the type to carry
   the weight. */

.signup {
  max-width: 34rem;
}

.signup__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}

.signup__field {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 220ms ease;
}

.signup__field:focus-within {
  border-bottom-color: var(--indigo-lift);
}

.signup__field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.signup__field input::placeholder {
  color: var(--ink-faint);
}

.signup__field input:focus {
  outline: none;
}

.signup__field button {
  flex: 0 0 auto;
  padding: 0.55rem 1.15rem;
  margin: 0.15rem 0 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgb(99 102 241 / 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 140ms ease;
}

.signup__field button:hover:not(:disabled) {
  background: rgb(99 102 241 / 0.2);
  border-color: var(--indigo);
}

.signup__field button:active:not(:disabled) {
  transform: translateY(1px);
}

.signup__field button:disabled {
  opacity: 0.55;
  cursor: default;
}

:where(input, button):focus-visible {
  outline: 2px solid var(--indigo-lift);
  outline-offset: 3px;
}

.signup__note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  min-height: 1.4em;
}

.signup__note[data-state='error'] { color: #f0a3a3; }
.signup__note[data-state='done'] { color: var(--indigo-lift); }

.signup[data-state='done'] .signup__field { opacity: 0.35; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer__rule {
  flex: 1 1 2rem;
  height: 1px;
  background: var(--rule-soft);
}

/* ── Narrow ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .body {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 6vh, 3rem);
  }

  .markwrap {
    justify-content: flex-start;
  }

  .mark {
    width: min(46%, 190px);
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .spec dt {
    padding-top: 0;
  }
}

/* Motion is decoration here; the page says the same thing without it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
