/* ROXANNA.ai landing page. Static, no build step, no third-party requests. */

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/orbitron-800-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/chakra-petch-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/chakra-petch-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/chakra-petch-600-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/chakra-petch-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #051c16;
  --bg-raised: #072a21;
  --surface: #0b3b2e;
  --surface-hi: #0e4436;
  --line: rgba(124, 245, 200, 0.16);
  --line-strong: rgba(124, 245, 200, 0.42);
  --text: #e8f2ee;
  --muted: rgba(232, 242, 238, 0.72);
  --mint: #7cf5c8;
  --mint-hi: #a8fbdc;
  --ink: #062019;
  --warn: #e3a44a;
  --warn-ink: #1b1206;
  --radius: 16px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-head: "Chakra Petch", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-claim: "Orbitron", "Chakra Petch", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--mint);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mint-hi);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--mint-hi);
  color: var(--ink);
  box-shadow: 0 0 28px rgba(124, 245, 200, 0.28);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn--ghost {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 28, 22, 0.55);
  color: var(--text);
  font-size: 15px;
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(124, 245, 200, 0.12);
  color: var(--text);
  box-shadow: none;
}

/* Header */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
}

.top img {
  width: 217px;
  height: auto;
}

.eyebrow--top {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 100px var(--gutter) 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 68% 32%, #12503f 0%, rgba(18, 80, 63, 0) 70%),
    linear-gradient(180deg, #0a3329 0%, #082a22 45%, var(--bg) 100%);
  isolation: isolate;
}

.hero__net {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero__art {
  position: absolute;
  /* A little air above her head. */
  /* The whole frame is on screen, so both hands and their skin are visible; only the very
     last rows fade, and the ramp goes down from there, never up into her. */
  --figure-h: min(calc((100% - 52px) * 1.1), calc(54vw * 1088 / 816));
  inset: auto 3vw 0 auto;
  z-index: -1;
  width: auto;
  height: var(--figure-h);
  aspect-ratio: 816 / 1088;
}

/* Only the last rows of the frame fade out, smoothly, below both hands. */
.hero__art {
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 1) 95.5%,
    rgba(0, 0, 0, 0.991) 95.95%,
    rgba(0, 0, 0, 0.942) 96.4%,
    rgba(0, 0, 0, 0.837) 96.85%,
    rgba(0, 0, 0, 0.683) 97.3%,
    rgba(0, 0, 0, 0.5) 97.75%,
    rgba(0, 0, 0, 0.317) 98.2%,
    rgba(0, 0, 0, 0.163) 98.65%,
    rgba(0, 0, 0, 0.058) 99.1%,
    rgba(0, 0, 0, 0.009) 99.55%,
    rgba(0, 0, 0, 0) 100.0%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 1) 95.5%,
    rgba(0, 0, 0, 0.991) 95.95%,
    rgba(0, 0, 0, 0.942) 96.4%,
    rgba(0, 0, 0, 0.837) 96.85%,
    rgba(0, 0, 0, 0.683) 97.3%,
    rgba(0, 0, 0, 0.5) 97.75%,
    rgba(0, 0, 0, 0.317) 98.2%,
    rgba(0, 0, 0, 0.163) 98.65%,
    rgba(0, 0, 0, 0.058) 99.1%,
    rgba(0, 0, 0, 0.009) 99.55%,
    rgba(0, 0, 0, 0) 100.0%
  );
}

/* The keyed video is drawn here; black in the footage becomes transparent. */
.hero__figure {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* The video element only feeds the canvas (and the sound); it stays out of sight. */
.hero__video {
  position: absolute;
  inset: 0 auto auto 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.no-webgl .hero__figure {
  display: none;
}

.no-webgl .hero__video {
  position: static;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: 50% 0;
  mix-blend-mode: lighten;
}

.sound {
  position: absolute;
  right: var(--gutter);
  top: 20px;
  z-index: 4;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 28, 22, 0.72);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.sound:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.sound[aria-pressed="true"] {
  border-color: var(--mint);
  color: var(--mint);
}

.sound[aria-pressed="false"] .sound__waves {
  opacity: 0.35;
}

.hero__body {
  position: relative;
  max-width: 620px;
}

/* A soft veil between the network and the text: the network stays behind, never on top. */
.hero__body::before {
  content: "";
  position: absolute;
  inset: -70px -110px -60px -80px;
  z-index: -1;
  background: radial-gradient(
    ellipse closest-side,
    rgba(5, 28, 22, 0.86) 0%,
    rgba(5, 28, 22, 0.78) 55%,
    rgba(5, 28, 22, 0) 100%
  );
  pointer-events: none;
}

.hero__foot {
  position: absolute;
  inset: auto var(--gutter) 26px;
  display: flex;
  gap: 18px;
  color: rgba(232, 242, 238, 0.45);
  font-size: 13px;
  letter-spacing: 0.04em;
}

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

.hero__foot a:hover {
  color: var(--mint);
}

.eyebrow {
  color: var(--mint);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.claim {
  display: grid;
  /* Orbitron letters start 0.054em inside their box; pull them onto the shared left line. */
  margin: 24px 0 22px -0.054em;
  font-family: var(--font-claim);
  /* Capped by height too, so the claim, the lede and the form stay on one screen. */
  font-size: clamp(60px, min(9.2vw, 13.2vh), 132px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.lede {
  max-width: 34em;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.claim span {
  width: max-content;
}

.claim__more {
  position: relative;
  color: #6f8a83;
  text-decoration: none;
}

.claim__more::after {
  content: "";
  position: absolute;
  inset: 62% -0.12em auto;
  height: 0.07em;
  border-radius: 1px;
  background: var(--mint);
  transform-origin: 0 50%;
}

/* The line is drawn only once the word is really on screen (main.js watches for that),
   a second later. Without scripts, or with reduced motion, the word is simply struck. */
.claim__more.is-waiting::after {
  transform: scaleX(0);
}

.claim__more.is-struck::after {
  animation: strike 0.7s cubic-bezier(0.7, 0, 0.2, 1) 1s backwards;
}

@keyframes strike {
  from {
    transform: scaleX(0);
  }
}

/* Sign-up form */

.signup {
  margin-top: 8px;
  max-width: 520px;
}

.signup__row {
  display: flex;
  gap: 10px;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 28, 22, 0.94);
  color: var(--text);
  font: inherit;
}

.signup input[type="email"]::placeholder {
  color: rgba(232, 242, 238, 0.45);
}

.signup input[type="email"]:focus-visible {
  outline-offset: 0;
  border-color: var(--mint);
}

.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__fine {
  margin-top: 14px;
  color: rgba(232, 242, 238, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.signup__status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 15px;
}

.signup__status[data-kind="ok"] {
  color: var(--mint);
}

.signup__status[data-kind="error"] {
  color: var(--warn);
}

/* Success: the form gives way to a drawn check mark and one line. */
.signup.is-done .signup__status {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  margin-top: 0;
  color: var(--mint);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: arrive 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.signup.is-done .signup__status::before {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 20.5l6 6 12-13' fill='none' stroke='%23062019' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat,
    var(--mint);
  box-shadow: 0 0 0 0 rgba(124, 245, 200, 0.55);
  animation:
    pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both,
    ring 1.4s ease-out 0.15s both;
}

.signup__thanks {
  display: grid;
  gap: 2px;
}

.signup__thanks strong {
  font-weight: 600;
  line-height: 1.2;
}

.signup__thanks span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes pop {
  from {
    transform: scale(0.3);
  }
}

@keyframes ring {
  to {
    box-shadow: 0 0 0 26px rgba(124, 245, 200, 0);
  }
}

.signup.is-done .signup__row,
.signup.is-done .signup__fine {
  display: none;
}

/* Plain text pages */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
}

.doc h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
}

.doc h2 {
  margin-top: 40px;
  font-size: 22px;
}

.doc p,
.doc ul {
  margin-top: 14px;
  color: var(--muted);
}

.doc ul {
  padding-left: 22px;
}

.doc h3 {
  margin-top: 26px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.doc li + li {
  margin-top: 8px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc .doc__lead {
  margin-top: 20px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.doc .eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
}

.doc .doc__cta {
  margin-top: 44px;
}

.doc .doc__more {
  margin-top: 22px;
  font-size: 15px;
}

.doc mark {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warn);
  color: var(--warn-ink);
}

/* Narrow screens */

@media (max-width: 860px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 60px;
    background:
      radial-gradient(ellipse 120% 46% at 50% 22%, #12503f 0%, rgba(18, 80, 63, 0) 72%),
      linear-gradient(180deg, #0a3329 0%, #082c23 100%);
  }

  .hero__art {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: auto;
    /* The figure starts below the header band (logo + descriptor), clear of the hair. */
    margin-top: 112px;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .top img {
    width: 190px;
  }

  /* Sits under the wordmark, not under the tile: starts where "ROXANNA.ai" starts
     (106 of the lockup's 510 units) and is spaced out to end where it ends. */
  .eyebrow--top {
    display: block;
    margin-left: calc(190px * 106 / 510);
    font-size: 12px;
    letter-spacing: 3.08px;
    white-space: nowrap;
  }

  .eyebrow--claim {
    display: none;
  }

  .lede {
    margin-bottom: 20px;
  }

  .sound {
    right: var(--gutter);
    top: 16px;
    min-height: 44px;
    padding: 0 14px 0 12px;
    font-size: 14px;
  }

  .hero__body {
    position: relative;
    max-width: none;
    /* The text starts under her hands, not over them. */
    margin-top: 4px;
    padding: 0 var(--gutter);
  }

  /* On phones the veil must not reach up over her hands: it would read as a dark band. */
  .hero__body::before {
    inset: 0 -40px -40px;
    background: radial-gradient(
      ellipse closest-side,
      rgba(5, 28, 22, 0.2) 0%,
      rgba(5, 28, 22, 0.14) 55%,
      rgba(5, 28, 22, 0) 100%
    );
  }

  .claim {
    margin: 18px 0 18px -0.054em;
    font-size: clamp(46px, 13.2vw, 92px);
  }

  .signup__row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .claim__more::after,
  .signup.is-done .signup__status,
  .signup.is-done .signup__status::before {
    animation: none;
  }
}

.top--doc a:first-child {
  display: block;
}

/* Very narrow screens: the logo needs the room, so the sound button is just its icon. */
@media (max-width: 480px) {
  .sound {
    padding: 0 12px;
  }

  .sound__label {
    display: none;
  }
}
