@font-face {
  font-family: "Varela Round";
  src: url("VarelaRound-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060809;
  --bg-elevated: #0d1114;
  --text: #f2f5f7;
  --text-muted: #9aa4ad;
  --cyan: #2dd4ee;
  --cyan-line: rgba(45, 212, 238, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-brand: "Varela Round", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

/* ---- ambient background ---- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 50% at 50% 20%,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
}

.gridlines,
.grid-flares {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-mask-image: radial-gradient(ellipse 45% 40% at 50% 50%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 45% 40% at 50% 50%, #000 20%, transparent 85%);
}

.gridlines {
  background-image:
    linear-gradient(rgba(45, 212, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 238, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.grid-flares {
  display: block;
}

/* ---- layout ---- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 1.75rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.topbar-brand img {
  filter: invert(1);
  opacity: 0.92;
}

.topbar-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 2.25rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.eyebrow-slot {
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: transparent;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.cursor {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.25em;
  background: var(--text-muted);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.logo-heading {
  margin: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  filter: invert(1);
  opacity: 0.96;
}

.tagline {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.description {
  margin: 1.6rem 0 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- features strip ---- */

.features {
  display: flex;
  gap: 2.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.feature-index {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

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

.waitlist {
  width: 100%;
  max-width: 460px;
  margin-top: 2.75rem;
}

.input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.input-row:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
}

.waitlist input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}

.waitlist input::placeholder {
  color: rgba(154, 164, 173, 0.65);
}

.waitlist button {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.waitlist button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 9px 9px 0;
  border-color: transparent var(--cyan) transparent transparent;
  opacity: 0.85;
}

.waitlist button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.waitlist button:active {
  background: rgba(255, 255, 255, 0.05);
}

.waitlist button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-msg {
  margin: 0.8rem 0 0;
  min-height: 1.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.form-msg.error {
  color: #f87171;
}

.form-msg.ok {
  color: var(--text);
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  order: 1;
}

.footer-domain {
  color: var(--text);
  font-weight: 500;
}

.footer-copy {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  order: 2;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
}

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

/* ---- responsive ---- */

@media (max-width: 640px) {
  .page {
    padding: 1.15rem 1.15rem 1.35rem;
  }

  .topbar-meta {
    display: none;
  }

  .hero {
    padding: 1.75rem 0 1.75rem;
  }

  .eyebrow {
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .logo {
    width: min(220px, 68vw);
  }

  .tagline {
    font-size: 0.98rem;
  }

  .description {
    margin-top: 1.25rem;
    font-size: 0.94rem;
    line-height: 1.65;
    padding: 0 0.25rem;
  }

  .features {
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 1.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .features li {
    position: relative;
    flex: 1;
    justify-content: center;
    gap: 0;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
  }

  .feature-index {
    display: none;
  }

  .features li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.25rem;
    background: var(--border);
  }

  .waitlist {
    margin-top: 2rem;
  }

  .input-row {
    flex-direction: column;
    padding: 0.45rem;
  }

  .waitlist button {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 0.25rem;
  }

  .footer-links {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .footer-brand {
    order: 2;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .footer-links a {
    display: block;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.15s ease, color 0.15s ease;
  }

  .footer-links a:hover {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 380px) {
  .topbar-brand span {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .features li {
    font-size: 0.72rem;
    padding: 0 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor,
  .eyebrow-dot {
    animation: none;
  }
}
