/* Hornet coming soon / maintenance pages. Static, no build step. */

:root {
  --yellow: #ffc700;
  --ink: #0b0b0b;
  --ink-2: #161616;
  --paper: #f5f3ee;
  --muted: #a3a09a;
  --font:
    'neulis-sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  /* minmax(0, 1fr) stops long lines from widening the page on mobile */
  grid-template-columns: minmax(0, 1fr);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Faint honeycomb, fading out towards the left */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0.5 52.25 14.5v28L28 56.5 3.75 42.5v-28zM28 56.5 52.25 70.5v28M28 56.5 3.75 70.5v28' fill='none' stroke='%23FFC700' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  opacity: 0.07;
  mask-image: linear-gradient(105deg, transparent 30%, black 85%);
}

header,
main,
footer {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

header {
  padding-block: 2.5rem;
}

header img {
  height: 56px;
  width: auto;
  display: block;
}

main {
  position: relative;
  align-self: center;
  padding-block: 3rem 5rem;
}

/* Oversized mark on the right on wide screens */
.hero-mark {
  position: absolute;
  /* Beside the headline; the section is tall once the form is below */
  top: 6rem;
  right: 1rem;
  width: clamp(260px, 30vw, 420px);
}

.hero-mark > img,
.hero-mark > svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Blueprint construction lines around the hero mark */
.bp {
  fill: none;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.bp * {
  vector-effect: non-scaling-stroke;
}

.bp-under {
  stroke: rgb(255 199 0 / 0.2);
}

.bp-over {
  stroke: rgb(11 11 11 / 0.2);
}

.bp-grid {
  stroke: rgb(255 199 0 / 0.06);
}

.bp-under circle:not(.bp-spin) {
  fill: rgb(255 199 0 / 0.5);
  stroke: none;
}

.bp-label {
  fill: rgb(255 199 0 / 0.45);
  stroke: none;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 2.7px;
  letter-spacing: 0.08em;
}

.bp-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bp-draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bp-dash {
  stroke-dasharray: 0.012 0.012;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: bp-fade 1s ease forwards;
}

.bp-fade {
  opacity: 0;
  animation: bp-fade 1s ease forwards;
}

.bp-spin {
  stroke: rgb(255 199 0 / 0.35);
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation:
    bp-fade 1s ease forwards,
    bp-spin 120s linear infinite;
}

@keyframes bp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bp-fade {
  to {
    opacity: 1;
  }
}

@keyframes bp-spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-line,
  .bp-dash,
  .bp-fade,
  .bp-spin {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .bp-line {
    stroke-dasharray: none;
  }
}

.honey-mark {
  /* Drops fall below the mark's box */
  overflow: visible;
  animation: mark-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes mark-in {
  from {
    opacity: 0;
    scale: 0.85;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgb(255 199 0 / 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(255 199 0 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 199 0 / 0);
  }
}

h1 {
  margin: 1.75rem 0 0;
  max-width: 12ch;
  font-size: clamp(3.25rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: normal;
  color: var(--yellow);
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.points li::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url('brand/hornet-mark-yellow.svg') center / contain no-repeat;
}

/* Early-access form */
.signup {
  margin-top: 3.5rem;
  max-width: 42rem;
  padding: 2rem;
  background: rgb(22 22 22 / 0.85);
  border: 1px solid #262626;
  border-top: 3px solid var(--yellow);
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.signup h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.signup > p {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
}

#register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field:nth-of-type(3) {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
}

label span {
  font-weight: 400;
  color: var(--muted);
}

input:not([type='checkbox']),
select {
  width: 100%;
  height: 2.9rem;
  padding: 0 0.85rem;
  font: inherit;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid #333;
  border-radius: 4px;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23FFC700' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

select:invalid {
  color: var(--muted);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
.consent input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

[aria-invalid='true'] {
  border-color: #ff5a5f !important;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--yellow);
}

.turnstile {
  grid-column: 1 / -1;
  min-height: 65px;
}

#register button {
  grid-column: 1 / -1;
  height: 3.2rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform 80ms linear,
    filter 80ms linear;
}

#register button:hover {
  filter: brightness(1.08);
}

#register button:active {
  transform: translateY(1px);
}

#register button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
}

.form-message.is-error {
  color: #ff8a8d;
}

.signup-done {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: url('brand/hornet-mark-yellow.svg') 1.1rem center / 1.6rem
    no-repeat;
  border: 1px solid #333;
  border-radius: 4px;
  outline: none;
}

.signup-done strong {
  font-size: 1.15rem;
}

.signup-done span {
  color: var(--muted);
}

.signup-done[hidden],
#register[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .signup {
    padding: 1.25rem;
  }

  #register {
    grid-template-columns: minmax(0, 1fr);
  }
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hornet stripes along the bottom edge */
.stripes {
  height: 14px;
  background: repeating-linear-gradient(
    -60deg,
    var(--yellow) 0 18px,
    var(--ink) 18px 36px
  );
}

@media (prefers-reduced-motion: reduce) {
  .status::before {
    animation: none;
  }
}
