@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #12151b;
  --bg-deep: #090b10;
  --glass: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.15);
  --text: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.68);
  --soft: rgba(247, 248, 251, 0.44);
  --dark-text: #12151b;
  --green: #83f5b4;
  font-family: "Nunito", "SF Pro Rounded", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(122, 157, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.1), transparent 24rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #171c26);
  color: var(--text);
  font-weight: 400;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 26%, rgba(255, 255, 255, 0.035) 52%, transparent 76%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06), transparent 26rem);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  user-select: none;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.aurora,
.noise {
  position: fixed;
  pointer-events: none;
}

.aurora {
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.26;
  animation: drift 16s ease-in-out infinite alternate;
}

.aurora-one {
  top: 18%;
  left: -10rem;
  background: #95b9ff;
}

.aurora-two {
  right: -12rem;
  bottom: 2rem;
  background: #fbfbff;
  animation-delay: -5s;
}

.noise {
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 6px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(18, 21, 27, 0.56);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand,
.nav,
.nav-menu {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav {
  gap: 6px;
}

.nav-menu {
  position: relative;
}

.nav-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.subtle {
  color: var(--muted);
  background: transparent;
}

.subtle:hover,
.nav-menu.open .subtle {
  color: var(--text);
  border-color: var(--stroke);
  background: var(--glass);
}

.download-pill,
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
  background: linear-gradient(145deg, #ffffff, #e3ebf8 56%, #ffffff);
  box-shadow: 0 12px 28px rgba(220, 232, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 160px;
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 19px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  background: rgba(20, 24, 32, 0.78);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(160%);
  transition: 180ms ease;
}

.dropdown::before {
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
  content: "";
}

.dropdown a,
.dropdown-option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.dropdown a:hover,
.dropdown-option:hover {
  color: var(--text);
  background: var(--glass);
}

.dropdown-option.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.muted-option {
  cursor: default;
  opacity: 0.62;
}

.muted-option:hover {
  color: var(--muted);
  background: transparent;
}

.nav-menu.open .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

main {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 116px);
  padding: 48px 0 24px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.048em;
}

h2 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  width: fit-content;
}

.primary-cta {
  position: relative;
  isolation: isolate;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  overflow: visible;
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
    background 300ms ease,
    color 300ms ease,
    box-shadow 300ms ease,
    opacity 220ms ease;
}

.primary-cta > span {
  position: relative;
  z-index: 1;
}

.primary-cta.loading {
  cursor: wait;
  pointer-events: none;
  animation: cta-press 420ms cubic-bezier(0.18, 1, 0.22, 1);
}

.primary-cta.complete {
  animation: cta-pop 360ms cubic-bezier(0.18, 1, 0.22, 1);
}

.download-status {
  min-height: 1.2em;
  margin: 10px 0 0 0;
  color: rgba(234, 240, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

@keyframes cta-press {
  0% {
    transform: scale(1);
  }

  44% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes cta-pop {
  0% {
    transform: scale(1);
  }

  48% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.showcase {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 244px;
  min-height: 506px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 31px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.045));
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.phone-frame::before {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 5;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
  background: rgba(4, 6, 10, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.screen-orbit {
  position: relative;
  min-height: 490px;
  border-radius: 25px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.14), transparent 13rem),
    linear-gradient(150deg, #171b23, #0d1017);
}

.screen-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 14px 14px;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: screenCycle 30s infinite;
}

.screen-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.slide-one {
  animation-delay: 0s;
}

.slide-two {
  animation-delay: 10s;
}

.slide-three {
  animation-delay: 20s;
}

.pixel-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.pixel-bar::before,
.pixel-bar::after {
  position: absolute;
  content: "";
  top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.pixel-bar::before {
  left: 12px;
  width: 46px;
}

.pixel-bar::after {
  right: 12px;
  width: 28px;
}

.terminal-lines,
.runtime-lines,
.fallback-shell,
.screen-caption {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
}

.terminal-lines,
.runtime-lines,
.fallback-shell {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10.5px;
}

.terminal-lines span,
.fallback-shell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-lines .green,
.fallback-shell .green {
  color: var(--green);
}

.terminal-lines .dim {
  color: rgba(247, 248, 251, 0.42);
}

.runtime-lines span {
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.runtime-lines b {
  color: rgba(247, 248, 251, 0.5);
  font-weight: 700;
}

.runtime-lines em {
  float: right;
  color: var(--green);
  font-style: normal;
}

.fallback-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.05);
}

.fallback-shell .warn {
  color: #ffd69a;
}

.screen-caption {
  display: grid;
  gap: 5px;
}

.screen-caption strong {
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.screen-caption span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 34px;
  color: var(--soft);
  font-size: 13px;
}

footer a:hover {
  color: var(--text);
}

.reveal {
  animation: riseIn 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.language-swap .topbar,
body.language-swap .hero-copy,
body.language-swap footer {
  animation: riseIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 190ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    filter: blur(13px);
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes screenCycle {
  0%, 4% {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  8%, 30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  34%, 100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.99);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(64px, 28px, 0) scale(1.1);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .showcase {
    justify-content: flex-start;
  }

  .phone-frame {
    width: 244px;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(122, 157, 255, 0.09), transparent 20rem),
      radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.045), transparent 18rem),
      linear-gradient(145deg, #07090d, #0d1016 52%, #111620);
  }

  body::before {
    opacity: 0.48;
  }

  .aurora {
    opacity: 0.14;
  }

  .topbar {
    width: min(100% - 20px, 1040px);
    border-radius: 24px;
  }

  .brand span {
    display: none;
  }

  .nav {
    flex: 1;
    justify-content: flex-end;
    gap: 3px;
  }

  .nav-pill {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  main {
    width: min(100% - 24px, 1040px);
  }

  h1 {
    font-size: 42px;
  }

  .phone-frame {
    width: min(244px, 100%);
    min-height: 506px;
  }

  .screen-orbit {
    min-height: 490px;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
