/* Ravel coming-soon page. Values come from design/source/ (RavelSplash, RavelToday,
   RavelMarkets, RavelAtlas) and design/STYLE_GUIDE.md: style A, Electric. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --bg: #040A1C;
  --why: #FFB547;
  --why-light: #FFC870;
  --down-text: #FF8A8A;
  --muted: #8FA6D6;
  --muted-light: #B8C8EA;
  --button: linear-gradient(135deg, #3FD0FF, #2F6BFF);
  --glass-fill: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
  --glass-line: rgba(255,255,255,.13);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 36px rgba(0,0,0,.38);
  --heading: 'Space Grotesk', sans-serif;
  --body: Inter, system-ui, sans-serif;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

p, h1 { margin: 0; }

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

/* Background: navy, three layered glows, perspective grid */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(420px 360px at 95% -5%, rgba(61,139,255,.55), transparent 65%),
    radial-gradient(380px 340px at -10% 55%, rgba(63,208,255,.22), transparent 65%),
    radial-gradient(360px 300px at 110% 105%, rgba(255,181,71,.16), transparent 65%),
    var(--bg);
}

.backdrop-grid {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3120px;
  max-width: none;
  height: 260px;
  margin-left: -1560px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60%);
  mask-image: linear-gradient(180deg, transparent 0, #000 60%);
}

/* Layout */

.page {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 342px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.halo {
  position: absolute;
  left: 50%;
  top: -17px;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,208,255,.35), transparent 65%);
  pointer-events: none;
}

/* 3D logo tile */

.tile {
  position: relative;
  width: 168px;
  height: 168px;
  flex: none;
  border-radius: 40px;
  background: linear-gradient(150deg, #1E4FD8, #0A1E6E);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -6px 14px rgba(0,0,0,.18),
    0 10px 0 #06123F,
    0 30px 60px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The logo file has a wider canvas than the mark in the source HTML; these
   numbers put the drawing at exactly the same size and position. */
.tile img {
  display: block;
  flex: none;
  width: 136.4px;
  height: 95.07px;
  transform: translateX(2.07px);
}

.tile::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 90%;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

/* Type */

.wordmark {
  position: relative;
  margin-top: 30px;
  font-family: var(--heading);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.tagline {
  position: relative;
  margin-top: 10px;
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--why-light);
}

.soon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--why);
}

.soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--why);
  box-shadow: 0 0 8px var(--why);
}

/* Glass */

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.atlas {
  position: relative;
  width: 100%;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  text-align: left;
}

.atlas-line { font-size: 14px; line-height: 1.4; }

.atlas-face {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 15px;
  background: radial-gradient(circle at 38% 28%, #5B8EE0, #2148A0 50%, #0B1A44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 17px rgba(63,184,255,.45);
}

.atlas-visor {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 24%;
  bottom: 22%;
  border-radius: 9px;
  background: var(--bg);
}

.atlas-eye {
  position: absolute;
  top: 40%;
  width: 14%;
  height: 16%;
  border-radius: 50%;
  background: #9EE4FF;
  box-shadow: 0 0 6px #3FB8FF;
}
.atlas-eye.left { left: 28%; }
.atlas-eye.right { right: 28%; }

/* Form */

.waitlist {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

.waitlist[hidden] { display: none; }

.field {
  position: relative;
  height: 52px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: border-color .15s, box-shadow .15s;
}

.field:focus-within {
  border-color: rgba(63,208,255,.75);
  box-shadow: var(--glass-shadow), 0 0 0 3px rgba(63,208,255,.25);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: #FFFFFF;
  font-family: var(--body);
  font-size: 16px; /* below 16px makes iPhones zoom in on focus */
}

.field input::placeholder { color: var(--muted); opacity: 1; }

.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #FFFFFF;
  caret-color: #FFFFFF;
  transition: background-color 99999s;
}

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

.cta {
  position: relative; /* paints above the input's drop shadow */
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 20px;
  background: var(--button);
  box-shadow:
    0 7px 0 #0E2C8C,
    0 20px 36px rgba(47,107,255,.5),
    inset 0 1px 0 rgba(255,255,255,.45);
  color: #FFFFFF;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
}

.cta:hover { filter: brightness(1.06); }

.cta:active {
  transform: translateY(5px);
  box-shadow:
    0 2px 0 #0E2C8C,
    0 10px 20px rgba(47,107,255,.5),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.cta[disabled] { opacity: .75; cursor: progress; }

.status {
  position: relative;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--down-text);
}

.status:empty { display: none; }

.privacy {
  position: relative;
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.privacy a { color: #7FD0FF; text-decoration: none; }
.privacy a:hover, .privacy a:focus-visible { text-decoration: underline; }

/* Footer */

.foot {
  position: relative;
  flex: none;
  padding: 0 24px 22px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.foot a { color: inherit; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: #FFFFFF; text-decoration: underline; }

/* Privacy page */

.doc { position: relative; width: 100%; max-width: 560px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
}

/* The logo file's canvas, sized so the mark matches the source's 44px header mark */
.brand img { display: block; width: 48.4px; height: 33.73px; margin-left: -1.47px; }

.brand-name {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.doc-title {
  margin-top: 24px;
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.doc-lead {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-light);
}

.doc-card { margin-top: 18px; padding: 4px 16px; border-radius: 24px; }
.doc-card section { padding: 14px 0; }
.doc-card section + section { border-top: 1px solid rgba(255,255,255,.07); }
.doc-card h2 { margin: 0; font-size: 15px; font-weight: 600; }
.doc-card p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted-light); }
.doc-card a { color: #7FD0FF; text-decoration: none; }
.doc-card a:hover, .doc-card a:focus-visible { text-decoration: underline; }

/* Short screens: the 128px tile from the style sheet */

@media (max-height: 760px) {
  .page { padding-top: 32px; padding-bottom: 28px; }
  .tile {
    width: 128px;
    height: 128px;
    border-radius: 31px;
    box-shadow:
      inset 0 2px 0 rgba(255,255,255,.45),
      inset 0 -6px 14px rgba(0,0,0,.18),
      0 8px 0 #06123F,
      0 24px 48px rgba(0,0,0,.45);
  }
  .tile img { width: 104px; height: 72.5px; transform: translateX(1.58px); }
  .wordmark { margin-top: 24px; font-size: 56px; }
  .halo { width: 240px; height: 240px; margin-left: -120px; }
}

/* Decorative 3D market tiles: wide screens only, no figures on purpose */

.floaters { display: none; }
.floaters .defs { position: absolute; }

.mtile {
  position: fixed;
  width: 112px;
  height: 92px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.mtile svg { display: block; width: 100%; overflow: visible; }

.mtile.up {
  background: linear-gradient(160deg, #41D69E, #1C9E6C);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 0 #0B5A3C, 0 16px 26px rgba(0,0,0,.3);
}

.mtile.down {
  background: linear-gradient(160deg, #E77A7A, #A53F3F);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 0 #561E1E, 0 16px 26px rgba(0,0,0,.3);
}

@media (min-width: 700px) {
  .backdrop {
    background:
      radial-gradient(900px 600px at 92% -8%, rgba(61,139,255,.55), transparent 65%),
      radial-gradient(760px 620px at -8% 58%, rgba(63,208,255,.22), transparent 65%),
      radial-gradient(720px 520px at 106% 106%, rgba(255,181,71,.16), transparent 65%),
      var(--bg);
  }
  .hero { max-width: 390px; }
}

@media (min-width: 1040px) and (min-height: 620px) {
  .floaters { display: block; }
  .pos-a { left: calc(50% - 470px); top: 22%; transform: rotate(-6deg); }
  .pos-b { left: calc(50% - 390px); top: 58%; transform: rotate(5deg); }
  .pos-c { right: calc(50% - 400px); top: 26%; transform: rotate(5deg); }
  .pos-d { right: calc(50% - 480px); top: 60%; transform: rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
