:root {
  --bg: #040507;
  --ink: #f7f4ea;
  --muted: rgba(247, 244, 234, 0.72);
  --dim: rgba(247, 244, 234, 0.46);
  --line: rgba(247, 244, 234, 0.16);
  --panel: rgba(4, 5, 7, 0.7);
  --yellow: #f5e927;
  --green: #80e83c;
  --cyan: #15d8df;
  --blue: #2368ff;
  --red: #ff1736;
  --display: "Space Grotesk", sans-serif;
  --body: "Outfit", sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #040507;
  background: var(--yellow);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.home {
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 64px);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.doc-brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 18px 42px rgba(21, 216, 223, 0.16);
}

.brand span,
.doc-brand span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-action,
.submit-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #040507;
  background: linear-gradient(135deg, var(--yellow), var(--green) 52%, var(--cyan));
  cursor: pointer;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 18px 60px rgba(128, 232, 60, 0.18);
}

.header-action {
  display: inline-flex;
  align-items: center;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 64px) 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.42), rgba(4, 5, 7, 0.72) 58%, #040507 100%),
    linear-gradient(90deg, #040507 0%, rgba(4, 5, 7, 0.48) 44%, #040507 100%),
    url("/assets/brand/hero-atmosphere.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 100% 5px, 92px 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  right: -90px;
  bottom: 96px;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 233, 39, 0.2);
  border-radius: 50%;
  background:
    conic-gradient(from 224deg, var(--red), var(--blue), var(--cyan), var(--green), var(--yellow), transparent 72%),
    radial-gradient(circle, transparent 0 50%, rgba(4, 5, 7, 0.54) 51% 62%, transparent 63%);
  filter: blur(0.4px);
  opacity: 0.26;
}

.hero-content {
  width: min(760px, 100%);
  text-shadow: 0 3px 32px rgba(0, 0, 0, 0.86);
}

.hero-logo {
  width: 208px;
  height: auto;
  margin: 0 0 28px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 34px 120px rgba(0, 0, 0, 0.58);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 144px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.86;
}

.lede {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.3;
}

.waitlist {
  width: min(620px, 100%);
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

.input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font: 700 16px var(--body);
  outline: 2px solid transparent;
}

.input::placeholder {
  color: var(--dim);
}

.input:focus {
  outline-color: rgba(21, 216, 223, 0.45);
}

.form-note,
.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.form-message.success {
  color: var(--cyan);
}

.form-message.error {
  color: #ff8f9d;
}

.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.promise-item {
  min-height: 250px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--bg);
}

.promise-item span {
  display: block;
  margin: 0 0 46px;
  color: var(--dim);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.promise-item h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.promise-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

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

.doc-page,
.support-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.76), #040507),
    url("/assets/brand/hero-atmosphere.png") center / cover fixed;
}

.doc-nav {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
}

.doc-main,
.support-main {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 88px;
}

.doc-shell,
.support-panel {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 5, 7, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.44);
}

.doc-shell h1,
.support-panel h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 72px;
  line-height: 0.94;
  letter-spacing: 0;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-copy,
.doc-shell p,
.doc-shell li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.doc-shell h2 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0;
}

.doc-shell a,
.support-panel a {
  color: var(--yellow);
  text-decoration: none;
}

.doc-meta {
  color: var(--dim);
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font: 600 16px var(--body);
  outline: none;
}

.support-form textarea {
  min-height: 160px;
  resize: vertical;
}

.support-socials {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.promise .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.promise .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding: 100px 18px 34px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 5, 7, 0.44), rgba(4, 5, 7, 0.74) 54%, #040507 100%),
      linear-gradient(90deg, #040507 0%, rgba(4, 5, 7, 0.32) 52%, #040507 100%),
      url("/assets/brand/hero-atmosphere.png") 52% center / cover no-repeat;
  }

  .hero-art {
    display: none;
  }

  .hero-logo {
    width: 132px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 60px;
    line-height: 0.96;
  }

  .lede {
    font-size: 19px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .submit-button,
  .input {
    width: 100%;
  }

  .promise {
    grid-template-columns: 1fr;
  }

  .promise-item {
    min-height: auto;
    padding: 28px;
  }

  .promise-item span {
    margin-bottom: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .header-action {
    min-height: 44px;
    padding: 0 14px;
  }

  .hero {
    min-height: 100svh;
  }

  .doc-shell,
  .support-panel {
    padding: 26px;
  }

  .doc-shell h1,
  .support-panel h1 {
    font-size: 44px;
  }

  .promise-item h2 {
    font-size: 29px;
  }
}

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