@font-face {
  font-family: "SF Pro Rounded";
  src: url("/assets/images/sf-pro-rounded-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: url("/assets/images/sf-pro-rounded-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: url("/assets/images/sf-pro-rounded-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #eff0ed;
  --surface: #ffffff;
  --surface-subtle: rgba(0, 0, 0, 0.04);
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.56);
  --faint: rgba(0, 0, 0, 0.24);
  --divider: rgba(0, 0, 0, 0.08);
  --accent: #0082ff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-subtle: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.24);
  --divider: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 480ms cubic-bezier(0.22, 1, 0.36, 1), color 360ms ease;
}

body,
.theme-toggle,
.waitlist-form input,
.waitlist-form button,
.site-footer,
.footer-divider {
  transition:
    background-color 480ms cubic-bezier(0.22, 1, 0.36, 1),
    color 360ms ease,
    border-color 360ms ease,
    box-shadow 360ms ease;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: theme-fade-out;
}

::view-transition-new(root) {
  animation-name: theme-fade-in;
}

@keyframes theme-fade-out {
  to { opacity: 0; }
}

@keyframes theme-fade-in {
  from { opacity: 0; }
}

.appear {
  animation: appear-up 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.appear-one {
  animation-delay: 40ms;
}

.appear-two {
  animation-delay: 100ms;
}

.appear-three {
  animation-delay: 170ms;
}

.appear-four {
  animation-delay: 240ms;
}

.appear-five {
  animation-delay: 300ms;
}

@keyframes appear-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
input {
  font: inherit;
}

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

.topbar {
  height: 100px;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1200px);
  height: 100%;
  margin: 0 auto;
  padding: 24px 40px;
}

.app-icon {
  display: block;
}

.app-icon-large {
  width: 52px;
  height: 52px;
}

.theme-toggle {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-toggle .moon-icon {
  display: none;
  fill: currentColor;
  stroke: none;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.hero {
  width: 100%;
  padding-top: 56px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 120px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.waitlist-form {
  position: relative;
  width: 450px;
  height: 52px;
}

.waitlist-fields {
  display: flex;
  width: 100%;
  height: 52px;
  gap: 8px;
  transition:
    opacity 320ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
}

.waitlist-form input,
.waitlist-form button {
  height: 52px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  font-size: 16px;
}

.waitlist-form input[type="email"] {
  min-width: 0;
  flex: 1;
  padding: 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
  line-height: 20px;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

.waitlist-form input[type="email"]:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.waitlist-form button {
  position: relative;
  display: grid;
  width: 128px;
  flex: 0 0 128px;
  place-items: center;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}

.waitlist-form button:active,
.theme-toggle:active {
  transform: scale(0.97);
}

.website-field {
  position: absolute;
  width: 1px;
  height: 1px !important;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.button-loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: loader-spin 700ms linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.waitlist-form.is-loading .button-label {
  opacity: 0;
}

.waitlist-form.is-loading .button-loader {
  opacity: 1;
}

.waitlist-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(61, 214, 137, 0.3);
  border-radius: 12px;
  background: color-mix(in srgb, #24c875 13%, var(--surface));
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  pointer-events: none;
}

.success-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #24c875;
  color: #fff;
  transform: scale(0);
}

.success-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.success-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #24c875;
  opacity: 0;
}

.spark-one { top: 4px; left: 31%; }
.spark-two { top: 12px; right: 27%; }
.spark-three { bottom: 5px; left: 38%; }
.spark-four { right: 36%; bottom: 7px; }

.waitlist-form.is-success .waitlist-fields {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
}

.waitlist-form.is-success .waitlist-success {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 300ms ease 100ms,
    transform 600ms cubic-bezier(0.16, 1.35, 0.3, 1) 80ms,
    background-color 480ms ease,
    color 360ms ease;
}

.waitlist-form.is-success .success-mark {
  animation: success-pop 520ms cubic-bezier(0.16, 1.5, 0.3, 1) 220ms both;
}

.waitlist-form.is-success .success-mark path {
  animation: check-draw 420ms ease 430ms forwards;
}

.waitlist-form.is-success .success-spark {
  animation: spark-pop 700ms ease 280ms both;
}

@keyframes success-pop {
  from { transform: scale(0) rotate(-18deg); }
  to { transform: scale(1) rotate(0); }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes spark-pop {
  0% { opacity: 0; transform: scale(0); }
  35% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(0.3) translateY(-8px); }
}

.waitlist-message {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  margin: 0;
  color: #ff6b6b;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.waitlist-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stage {
  position: relative;
  height: 869px;
  overflow: hidden;
}

.mockup {
  position: absolute;
  top: 0;
  left: 50%;
  width: 605px;
  height: 924px;
  --mockup-x: -50%;
  transform: translateX(var(--mockup-x));
  pointer-events: none;
}

.mockup.appear {
  animation-name: mockup-appear;
}

@keyframes mockup-appear {
  from {
    opacity: 0;
    transform: translateX(var(--mockup-x)) translateY(34px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(var(--mockup-x)) translateY(0) scale(1);
  }
}

.mockup img {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 605px;
  height: 924px;
  pointer-events: none;
}

.mockup video {
  position: absolute;
  z-index: 1;
  top: 74px;
  left: 152px;
  display: block;
  width: 302px;
  height: 634px;
  border-radius: 48px;
  object-fit: cover;
  background: #000;
}

.hero-fade {
  position: absolute;
  z-index: 3;
  top: 427px;
  right: 0;
  left: 0;
  height: calc(100% - 427px);
  pointer-events: none;
}

.hero-fade::before,
.hero-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-fade::before {
  background: linear-gradient(transparent 0%, #eff0ed 100%);
  opacity: 1;
}

.hero-fade::after {
  background: linear-gradient(transparent 0%, #000 100%);
  opacity: 0;
}

:root[data-theme="dark"] .hero-fade::before {
  opacity: 0;
}

:root[data-theme="dark"] .hero-fade::after {
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-direction: column;
  width: min(100%, 1200px);
  margin: 40px auto 0;
  padding: 40px;
  gap: 24px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.app-icon-small {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 48px;
  font-size: 14px;
  line-height: 1.2;
}

.footer-links a {
  transition: color 150ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 809px) {
  .topbar-content {
    padding-inline: 40px;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(60px, 19.75vw, 77px);
  }

  .waitlist-form {
    width: 320px;
    max-width: calc(100vw - 70px);
  }

  .hero-stage {
    height: 853px;
  }

  .hero-fade {
    top: 427px;
  }

  .site-footer {
    margin-top: 40px;
    padding: 40px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    width: max-content;
    max-width: 100%;
    gap: 48px;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .topbar-content,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .waitlist-form {
    max-width: calc(100vw - 48px);
  }

  .waitlist-form button {
    width: 124px;
    flex-basis: 124px;
    padding-inline: 12px;
  }

  .footer-links {
    gap: 28px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .appear {
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
