:root {
  --night: #070a18;
  --ink: #eef1ff;
  --muted: #a9b2e0;
  --muted-2: #8d96c4;
  --line: rgba(123, 140, 255, 0.18);
  --panel: rgba(16, 20, 42, 0.72);
  --blue: #5b7cff;
  --violet: #8a6bff;
  --aqua: #37e0f0;
  --max: 1152px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a { color: inherit; }

button, input { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 8px;
  background: #14182e;
  color: var(--ink);
  text-decoration: none;
}

.skip:focus { top: 16px; }

.aurora,
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(91, 124, 255, 0.18), transparent 60%),
    radial-gradient(1000px 800px at 100% 0, rgba(55, 224, 240, 0.12), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(138, 107, 255, 0.16), transparent 60%),
    var(--night);
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.aurora::before {
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.5), transparent 65%);
  animation: drift 18s ease-in-out infinite;
}

.aurora::after {
  right: -8%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(55, 224, 240, 0.42), transparent 65%);
  animation: drift 24s ease-in-out infinite reverse;
}

.stars {
  opacity: 0.6;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 70% 60%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.6px 1.6px at 40% 80%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 85% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.3px 1.3px at 55% 15%, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -16px, 0); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 24, 0.8);
  backdrop-filter: blur(18px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Sora, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 40px -6px rgba(55, 224, 240, 0.5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a,
.menu a.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover,
.menu a.nav-item:hover { color: var(--ink); }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--night);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(91, 124, 255, 0.4), 0 12px 40px -8px rgba(91, 124, 255, 0.5);
  transition: transform 0.2s ease;
}

.store:hover { transform: translateY(-2px); }

.store small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: rgba(7, 10, 24, 0.6);
}

.store strong {
  display: block;
  font-family: Sora, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.store-desktop { display: none; }

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink);
}

.burger {
  position: relative;
  width: 24px;
  height: 16px;
}

.burger span {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }

.menu-btn[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 24, 0.95);
  backdrop-filter: blur(18px);
}

.menu[hidden] { display: none; }

.menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px 20px;
}

.menu a.nav-item {
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
}

.menu a.nav-item:hover { background: var(--panel); }

.menu .store { justify-content: center; margin-top: 12px; }

@media (min-width: 768px) {
  .bar { padding: 0 24px; }
  .nav-links, .store-desktop { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

#features,
#inside,
#how,
#faq { scroll-margin-top: 84px; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 20px 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

.hero-copy { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 20, 42, 0.6);
  color: var(--muted);
  font-size: 12px;
}

.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
}

h1, h2, h3 { font-family: Sora, system-ui, sans-serif; letter-spacing: -0.03em; }

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
}

.lede {
  max-width: 34rem;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.ghost:hover { background: rgba(255, 255, 255, 0.04); }

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
}

.rating {
  display: flex;
  flex: none;
  gap: 2px;
}

.rating svg { display: block; }

.proof p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.proof p span { color: var(--ink); }

.stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 40% 35%, rgba(91, 124, 255, 0.5), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(55, 224, 240, 0.4), transparent 55%);
  filter: blur(64px);
  opacity: 0.7;
}

.phones {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  overflow: hidden;
  width: 33%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  background: #111634;
  box-shadow: 0 24px 70px -24px #111634;
}

.phone img,
.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
}

.phone-sheen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-side { opacity: 0.95; }

.phone-left {
  transform: translateY(1.5rem) rotate(-7deg);
  animation: drift 22s ease-in-out infinite;
}

.phone-right {
  transform: translateY(1.5rem) rotate(7deg);
  animation: drift 14s ease-in-out infinite;
}

.phone-center {
  z-index: 20;
  width: 40%;
  margin: 0 -20px;
  box-shadow:
    0 0 0 1px rgba(91, 124, 255, 0.4),
    0 12px 40px -8px rgba(91, 124, 255, 0.5),
    0 24px 70px -24px #111634;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translateY(-24px) scale(1.08); }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 20px;
}

.section h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.section .intro {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.feature { display: flex; gap: 16px; }

.icon-bubble {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.2), rgba(55, 224, 240, 0.14));
  color: #c9b6ff;
}

.icon-bubble svg { width: 24px; height: 24px; }

.feature h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.look {
  padding: 80px 0;
}

.look .section {
  padding-top: 0;
  padding-bottom: 0;
}

.rail-wrap {
  margin-top: 40px;
  max-width: 100%;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 20px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar { display: none; }

.shot {
  width: 220px;
  flex: none;
  margin: 0;
}

.rail.is-grabbing {
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
}

.rail.is-grabbing .shot { scroll-snap-align: start; }

.frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  background: #12162b;
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.8);
}

.phone { min-width: 0; }

.shot h3 {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.shot p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.steps {
  display: grid;
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step h3 {
  margin: 20px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.22), rgba(55, 224, 240, 0.14));
  font-family: Sora, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.num span {
  background: linear-gradient(100deg, #7b93ff 0%, #8a6bff 45%, #37e0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #c4b6ff;
}

.band-wrap { padding-top: 32px; padding-bottom: 32px; }

.band {
  position: relative;
  overflow: hidden;
  padding: 48px 28px;
  border-radius: 2rem;
  background: linear-gradient(rgba(28, 18, 56, 0.75), rgba(15, 9, 32, 0.6));
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(91, 124, 255, 0.42), rgba(55, 224, 240, 0.22) 60%, transparent);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.band-glow {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.6), transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
}

.band-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.band h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); }

.band .intro { margin-left: auto; margin-right: auto; }

.qr-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.qr-card {
  width: 164px;
  height: 164px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.qr-card img,
.qr-card svg {
  display: block;
  width: 132px;
  height: 132px;
}

.qr-block p { margin: 0; color: var(--muted); font-size: 12px; }

.faq-wrap { max-width: 760px; }

.faq-wrap h2 { text-align: center; max-width: none; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }

.faq {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(rgba(28, 18, 56, 0.75), rgba(15, 9, 32, 0.6));
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
}

.faq-q span:first-child {
  font-family: Sora, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.plus {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq.is-open .plus { transform: rotate(45deg); color: #c9b6ff; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}

.faq.is-open .faq-a { grid-template-rows: 1fr; opacity: 1; }

.faq-a p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-a a { color: #9eb0ff; }

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 28px;
}

.foot-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.foot-brand p {
  max-width: 24rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.foot-cols h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.foot-cols a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.foot-cols a:hover { color: var(--ink); }

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.foot-bottom p { margin: 0; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 20px 24px;
}

.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
}

.doc .updated { margin: 12px 0 0; color: var(--muted); }

.doc h2 {
  margin: 36px 0 8px;
  font-size: 1.35rem;
}

.doc h3 {
  margin: 22px 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.doc p, .doc li { color: var(--muted); }

.doc strong { color: var(--ink); }

.doc a { color: #9eb0ff; }

.doc ul { margin: 8px 0 16px; padding-left: 1.2em; }

.doc li { margin: 0 0 10px; }

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 20, 42, 0.55);
  color: var(--ink);
  font-weight: 600;
}

.callout svg { flex: none; width: 22px; height: 22px; fill: var(--aqua); }

.sdk-card {
  margin: 0 0 12px;
  padding: 16px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 20, 42, 0.45);
}

.sdk-card h3 { margin-top: 0; }

.contact-card {
  margin-top: 8px;
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 20, 42, 0.45);
}

.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .hero, .section, .foot { padding-left: 24px; padding-right: 24px; }
  .look { padding-top: 96px; padding-bottom: 96px; }
  .rail { padding-left: 24px; padding-right: 24px; }
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .shot { width: 248px; }
  .cta-row { flex-direction: row; justify-content: center; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-bottom p:last-child { max-width: 28rem; text-align: right; }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 64px;
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(90deg, rgba(138, 107, 255, 0.5), transparent);
  }
}

@media (min-width: 1024px) {
  .hero { padding-top: 128px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-copy, .proof { text-align: left; justify-content: flex-start; }
  .lede, .cta-row { margin-left: 0; justify-content: flex-start; }
  .band { padding: 64px 56px; }
  .band-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .band .intro { margin-left: 0; }
  .foot-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .rail {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora::before,
  .aurora::after,
  .phone-left,
  .phone-right { animation: none; }
  .store, .faq-a, .plus, .burger span { transition: none; }
}
