@font-face {
  font-family: Jakarta;
  src: url('./assets/plus-jakarta-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Jakarta, Arial, sans-serif;
  color: #f5faf7;
  background: #112222;
  font-synthesis: none;
  --primary: #02bc7e;
  --primary-dark: #029963;
  --dark-teal: #112222;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, input, #cap-view { outline-offset: 6px; }
:focus-visible { outline: 2px solid var(--primary); }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
h1, h2, p { margin: 0; }
::selection { background: var(--primary); color: var(--dark-teal); }
.page {
  position: relative;
  min-height: 660px;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 47%, #1a2e2e 0%, #112222 59%);
}
.header { position: absolute; top: 42px; left: 4.2%; z-index: 5; }
.brand { display: block; line-height: 0; }
.brand img { width: 94px; height: auto; }
.main { position: absolute; inset: 0; }
.headline {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
.headline span {
  display: block;
  font-size: clamp(32px, 4.2vw, 66px);
  font-weight: 450;
  letter-spacing: -.055em;
  color: #e3ede7;
  margin-bottom: 6px;
  animation: title-arrive 900ms cubic-bezier(.2,.7,.2,1) both;
}
.headline strong {
  display: block;
  font-size: clamp(126px, 16.5vw, 250px);
  font-weight: 550;
  letter-spacing: -.075em;
  color: var(--primary);
  line-height: 1.02;
  padding-right: .07em;
  animation: title-arrive 1100ms 100ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes title-arrive {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.product {
  position: absolute;
  z-index: 1;
  top: 29%;
  bottom: 10%;
  left: 50%;
  width: min(90vw, 1120px);
  transform: translateX(-50%);
  isolation: isolate;
}
.product-halo {
  position: absolute;
  inset: -30% -20% -15%;
  background: radial-gradient(ellipse at 50% 55%, #02bc7e12 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}
.cap-shadow {
  position: absolute;
  left: 32%;
  right: 32%;
  top: 90%;
  height: 8%;
  background: radial-gradient(ellipse, #030e0d99 0%, transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}
#cap-view { position: absolute; inset: -8% -6% -2%; touch-action: pan-y; cursor: grab; }
#cap-view:active { cursor: grabbing; }
#cap-view canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.scene-ready #cap-view canvas { opacity: 1; }
#cap-view:focus-visible { outline: none; }
#cap-view:focus-visible::after {
  content: '↔';
  position: absolute;
  bottom: 15px;
  left: calc(50% - 116px);
  transform: translateX(-50%);
  padding: 6px 9px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: var(--dark-teal);
  color: #cce8da;
  font-size: 10px;
  pointer-events: none;
}
.loading {
  position: absolute;
  top: 45%;
  left: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 1px solid #02bc7e33;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loading 1s linear infinite;
}
@keyframes loading { to { transform: rotate(360deg); } }
.join { position: absolute; z-index: 3; bottom: 7.5%; left: 50%; transform: translateX(-50%); }
#join-waitlist { animation: title-arrive 900ms 300ms ease both; }
#join-waitlist {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px 22px 16px 25px;
  border: 1px solid #02bc7e66;
  border-radius: 40px;
  color: #f1faf5;
  background: #11222280;
  font-size: 12px;
  font-weight: 450;
  transition: background .25s, border-color .25s, color .25s;
}
#join-waitlist svg { width: 17px; height: 17px; color: var(--primary); transition: transform .25s; }
#join-waitlist:hover { background: var(--primary); border-color: var(--primary); color: #09251b; }
#join-waitlist:hover svg { color: #09251b; transform: translateX(3px); }
#reset-view {
  position: absolute;
  bottom: 7.5%;
  right: 4.2%;
  z-index: 4;
  padding: 12px;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  background: transparent;
  color: #b3c5bc;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.has-rotated #reset-view { opacity: 1; visibility: visible; }
#reset-view:hover { color: var(--primary); border-color: var(--primary); }
dialog {
  width: min(420px, calc(100% - 40px));
  padding: 44px 34px 32px;
  border: 1px solid #02bc7e40;
  border-radius: 16px;
  color: #eef7f1;
  background: #112222;
  box-shadow: 0 30px 100px #00000066;
}
dialog::backdrop { background: #061211aa; backdrop-filter: blur(10px); }
dialog h2 { font-size: 38px; font-weight: 500; letter-spacing: -2px; }
.dialog-description { margin-top: 13px; font-size: 12px; line-height: 1.8; color: #a5b9af; }
.close-dialog { position: absolute; right: 14px; top: 14px; padding: 6px; border: 0; background: transparent; color: #9cb3a7; line-height: 0; }
.close-dialog:hover { color: #ffffff; }
.email-field { display: flex; margin-top: 28px; border: 1px solid #435951; border-radius: 8px; padding: 5px; }
.email-field[hidden] { display: none; }
.email-field:focus-within { border-color: var(--primary); }
.email-field input { min-width: 0; width: 100%; padding: 11px; border: 0; background: none; color: #f4faf7; outline: 0; font-size: 13px; }
.email-field input::placeholder { color: #8aa398; }
.email-field button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 4px; color: #09251b; background: var(--primary); }
.email-field button:hover { background: #12d66e; }
.email-field button:disabled { opacity: .55; cursor: wait; }
#form-note { min-height: 32px; margin-top: 16px; color: #8aa398; font-size: 10px; line-height: 1.6; }
#form-note:empty { display: none; }
#form-note[data-state="error"] { color: #f3b7a9; }
.privacy-note { margin-top: 16px; color: #8aa398; font-size: 10px; line-height: 1.6; }
.privacy-note a { color: inherit; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--primary); }
.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; }
@media (max-width: 760px) {
  .page { min-height: 590px; }
  .header { top: 28px; left: 26px; }
  .brand img { width: 80px; }
  .headline { top: 15%; }
  .headline span { font-size: 8.1vw; letter-spacing: -.045em; margin-bottom: 7px; }
  .headline strong { font-size: 24.3vw; letter-spacing: -.075em; padding-right: .07em; }
  .product { top: 30%; bottom: 17%; width: 114%; }
  #cap-view { inset: -2% -6% -4%; }
  .cap-shadow { top: 91%; left: 25%; right: 25%; }
  .join { bottom: 10%; }
  #join-waitlist { font-size: 12px; padding: 15px 20px 15px 23px; gap: 28px; }
  #reset-view { bottom: 3%; right: 24px; padding: 9px; }
  #reset-view svg { width: 17px; height: 17px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .page { min-height: 540px; }
  .header { top: 26px; }
  .headline { top: 10%; }
  .headline span { font-size: 38px; }
  .headline strong { font-size: 160px; }
  .product { top: 24%; bottom: 13%; }
  .join, #reset-view { bottom: 5%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
