/* Self-hosted fonts (woff2) — no third-party request (faster + RGPD-clean, and
   removes the Google Fonts domain Firefox flagged as a tracker). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --page-bg: #070914;
  --text-primary: #f1ece7;
  --text-secondary: #cbc8d8;
  --text-muted: #aaa5b8;
  --accent: #b76cff;
  --accent-strong: #9c50ff;
  --accent-soft: rgba(183, 108, 255, 0.34);
  --panel: rgba(9, 10, 27, 0.62);
  --panel-strong: rgba(12, 12, 32, 0.78);
  --border: rgba(181, 127, 255, 0.28);
  --border-strong: rgba(199, 153, 255, 0.55);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--page-bg);
}

body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--page-bg);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--page-bg);
  background-image: url("./assets/vael-bg.webp");
  background-image: image-set(
    url("./assets/vael-bg.avif") type("image/avif"),
    url("./assets/vael-bg.webp") type("image/webp")
  );
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 15, 0.74) 0%,
      rgba(5, 7, 19, 0.62) 24%,
      rgba(7, 8, 22, 0.13) 47%,
      rgba(5, 7, 18, 0.03) 72%,
      rgba(3, 5, 15, 0.1) 100%
    ),
    radial-gradient(
      circle at 28% 53%,
      rgba(52, 29, 89, 0.2),
      rgba(4, 6, 17, 0) 31%
    ),
    radial-gradient(
      circle at 74% 63%,
      rgba(16, 8, 34, 0.08),
      rgba(4, 6, 17, 0.42) 73%
    );
  pointer-events: none;
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(
      180deg,
      rgba(2, 3, 11, 0.2) 0%,
      rgba(2, 3, 11, 0) 36%,
      rgba(2, 3, 11, 0.18) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 38%,
      rgba(1, 2, 8, 0.24) 100%
    );
  pointer-events: none;
}

.brand {
  position: absolute;
  top: 58px;
  left: 86px;
  width: 204px;
  text-align: center;
}

.brand-name {
  color: #f0ece4;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: 0.24em;
  text-shadow: 0 0 22px rgba(219, 201, 255, 0.1);
}

.brand-subtitle {
  margin-top: 15px;
  color: rgba(236, 229, 224, 0.82);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.brand-rule,
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.brand-rule {
  gap: 13px;
  margin: 19px auto 0;
}

.brand-rule span {
  width: 42px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(181, 100, 255, 0),
    rgba(181, 100, 255, 0.82)
  );
}

.brand-rule span:last-child {
  background: linear-gradient(
    90deg,
    rgba(181, 100, 255, 0.82),
    rgba(181, 100, 255, 0)
  );
}

.brand-rule i,
.hero-rule i {
  color: #c783ff;
  font-style: normal;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(191, 108, 255, 0.9),
    0 0 24px rgba(147, 74, 255, 0.34);
}

.brand-rule i {
  font-size: 14px;
}

.hero-copy {
  position: absolute;
  top: 267px;
  left: 158px;
  width: 486px;
}

.hero-copy h1 {
  margin: 0;
  color: #f4ede6;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 34px rgba(215, 197, 255, 0.08);
}

.hero-rule {
  gap: 24px;
  margin: 18px 0 23px;
}

.hero-rule span {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(160, 75, 252, 0.08),
    rgba(177, 97, 255, 0.78)
  );
  box-shadow: 0 0 13px rgba(150, 81, 255, 0.18);
}

.hero-rule span:last-child {
  background: linear-gradient(
    90deg,
    rgba(177, 97, 255, 0.78),
    rgba(160, 75, 252, 0.08)
  );
}

.hero-rule i {
  font-size: 14px;
}

.hero-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.hero-copy p + p {
  margin-top: 31px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr 151px;
  width: 486px;
  height: 62px;
  margin-top: 38px;
  border: 1px solid rgba(151, 108, 225, 0.32);
  border-radius: 11px;
  background: rgba(5, 7, 21, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 28px rgba(61, 38, 109, 0.22);
  overflow: hidden;
}

.email-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
  padding: 0 18px 0 20px;
  color: rgba(221, 216, 232, 0.9);
}

.email-field svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: rgba(218, 213, 230, 0.92);
}

.email-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #eeeaf4;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0;
}

.email-field input::placeholder {
  color: rgba(215, 210, 228, 0.8);
  opacity: 1;
}

.waitlist-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 183, 255, 0.52);
  border-radius: 8px;
  color: #fff8ff;
  background:
    linear-gradient(180deg, rgba(194, 123, 255, 0.98), rgba(127, 58, 221, 1)),
    #8f45ed;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(79, 29, 145, 0.56),
    0 0 20px rgba(180, 88, 255, 0.42);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.waitlist-form button:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(79, 29, 145, 0.5),
    0 0 28px rgba(190, 99, 255, 0.52);
}

.waitlist-form button:active {
  transform: translateY(1px);
}

/* Persistent success state after a confirmed signup. */
.waitlist-form button.is-success {
  background: linear-gradient(180deg, #62d6aa, #2f9e7a);
  border-color: rgba(120, 230, 190, 0.55);
  color: #06251b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 22px rgba(80, 215, 165, 0.34);
  cursor: default;
  opacity: 1;
  transform: none;
}

.hero-copy .form-note {
  margin-top: 20px;
  color: rgba(181, 176, 194, 0.88);
  font-size: 14px;
  line-height: 1.5;
}

.hero-copy .form-note.is-success {
  color: #dec8ff;
}

.hero-copy .form-note.is-error {
  color: #ff9b9b;
}

.development-card {
  position: absolute;
  right: 67px;
  bottom: 47px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 15px;
  width: 303px;
  min-height: 85px;
  align-items: center;
  padding: 19px 19px 18px 25px;
  border: 1px solid rgba(165, 125, 235, 0.33);
  border-radius: 9px;
  color: #eeeaf2;
  background: rgba(13, 14, 34, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 34px rgba(24, 16, 53, 0.4);
  backdrop-filter: blur(4px);
}

.feather-icon {
  width: 41px;
  height: 41px;
  color: var(--accent);
  filter: drop-shadow(0 0 9px rgba(180, 95, 255, 0.58));
}

.development-card strong,
.development-card span {
  display: block;
  letter-spacing: 0;
}

.development-card strong {
  color: #f2edf1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
}

.development-card span {
  margin-top: 5px;
  color: rgba(207, 201, 216, 0.86);
  font-size: 14px;
  line-height: 1.4;
}

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

:focus-visible {
  outline: 2px solid rgba(200, 141, 255, 0.92);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .page-shell {
    background-position: 59% center;
  }

  .page-shell::before {
    background:
      linear-gradient(
        90deg,
        rgba(3, 5, 15, 0.83) 0%,
        rgba(5, 7, 19, 0.68) 47%,
        rgba(7, 8, 22, 0.25) 100%
      ),
      radial-gradient(
        circle at 31% 50%,
        rgba(52, 29, 89, 0.22),
        rgba(4, 6, 17, 0) 36%
      );
  }

  .brand {
    left: 48px;
  }

  .hero-copy {
    left: 48px;
  }

  .development-card {
    right: 32px;
  }

}

@media (max-width: 760px) {
  .page-shell {
    min-height: 100vh;
    min-height: 100svh;
    background-position: 63% center;
  }

  .page-shell::before {
    background:
      linear-gradient(
        180deg,
        rgba(3, 5, 15, 0.64) 0%,
        rgba(3, 5, 15, 0.78) 34%,
        rgba(3, 5, 15, 0.86) 100%
      ),
      radial-gradient(
        circle at 52% 40%,
        rgba(83, 45, 140, 0.18),
        rgba(4, 6, 17, 0) 50%
      );
  }

  .brand,
  .hero-copy,
  .development-card {
    position: relative;
    inset: auto;
  }

  .brand {
    width: 160px;
    margin: 34px 0 0 24px;
    text-align: center;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .hero-copy {
    width: auto;
    max-width: 520px;
    margin: 118px 24px 0;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(47px, 14vw, 62px);
    line-height: 0.98;
  }

  .hero-rule {
    gap: 18px;
    max-width: 486px;
    margin-top: 28px;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-copy p br {
    display: none;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 486px;
    height: auto;
    overflow: visible;
    border-radius: 12px;
    background: rgba(5, 7, 21, 0.76);
  }

  .email-field {
    min-height: 58px;
  }

  .waitlist-form button {
    min-height: 55px;
    margin: 0 5px 5px;
  }

  .development-card {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand {
    margin-left: 18px;
  }

  .hero-copy,
  .development-card {
    margin-right: 18px;
    margin-left: 18px;
  }

  .hero-copy h1 {
    font-size: 45px;
  }
}
