:root {
  --bg: #050506;
  --bg-soft: #0d0d0f;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #933aff;
  --brand-dark: #6b2fd4;
  --content: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }

.site-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 6%, rgba(147, 58, 255, 0.08), transparent 28%),
    var(--bg);
}
.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(230px circle at var(--pointer-x) var(--pointer-y), rgba(147,58,255,.16), transparent 72%);
  mix-blend-mode: screen;
  content: "";
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 9px 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  isolation: isolate;
}

.space, .space > span { position: absolute; }
.space { inset: 0; z-index: -2; overflow: hidden; background: #050506; }

.space::before {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.4px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, black, transparent 83%);
  content: "";
}

.space-grid {
  inset: -15% -10% 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at 72% 48%, black 0, transparent 68%);
  transform: perspective(900px) rotateX(65deg) translateY(28%);
  transform-origin: 50% 100%;
}

.orb { border-radius: 50%; filter: blur(2px); mix-blend-mode: screen; }
.orb-one {
  top: 6%; right: 5%; width: 480px; height: 480px;
  background: radial-gradient(circle at 38% 34%, rgba(190, 120, 255, .42), rgba(113, 24, 224, .08) 44%, transparent 70%);
  animation: driftOne 12s ease-in-out infinite alternate;
}
.orb-two {
  right: 34%; bottom: 4%; width: 310px; height: 310px;
  background: radial-gradient(circle, rgba(55, 101, 255, .22), transparent 68%);
  animation: driftTwo 15s ease-in-out infinite alternate;
}
.orb-three {
  top: 34%; left: -12%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(147, 58, 255, .15), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .72fr);
  gap: 82px;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  min-height: 900px;
  margin: 0 auto;
  padding: 126px 0 74px;
}

.hero-copy { position: relative; z-index: 3; max-width: 760px; padding-right: 10px; }
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 19px;
  color: #b877ff;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 18px rgba(147,58,255,.9); }

h1 {
  max-width: 6.2em;
  margin-bottom: 28px;
  padding: 0 .08em .1em 0;
  font-size: clamp(64px, 6.8vw, 102px);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -.075em;
  text-wrap: balance;
}
h1 span {
  display: block;
  margin-top: .06em;
  color: transparent;
  background: linear-gradient(105deg, #fff 0%, #c6c5cb 46%, #8f8e95 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.lede {
  max-width: 34em;
  margin-bottom: 34px;
  color: rgba(235, 235, 245, .68);
  font-size: 17px;
  line-height: 1.72;
  text-wrap: pretty;
}
.hero-entry {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 20px;
  align-items: center;
  width: min(100%, 430px);
  padding: 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: rgba(18,18,20,.62);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(20px);
}
.hero-code {
  display: grid;
  width: 122px;
  height: 122px;
  padding: 8px;
  place-items: center;
  border-radius: 50%;
  background: white;
}
.hero-code img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-entry-copy { display: grid; min-width: 0; align-content: center; }
.hero-entry-copy span { color: #b978ff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.hero-entry-copy strong { margin-top: 2px; font-size: 18px; }
.hero-entry-copy p { margin: 11px 0 0; color: rgba(255,255,255,.38); font-size: 10px; }
.hero-entry-copy b { font-size: 15px; }

.hero-device {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
}

.phone-stage {
  position: relative;
  z-index: 4;
  width: min(100%, 360px);
  user-select: none;
}
.phone-frame {
  position: relative;
  overflow: hidden;
  border-radius: 56px;
  background: transparent;
  box-shadow: 0 32px 90px rgba(0,0,0,.52);
  touch-action: pan-y;
}
.phone-screen { position: relative; aspect-ratio: 620 / 1350; overflow: hidden; border-radius: inherit; background: #090909; }
.phone-track { position: absolute; inset: 0; }
.phone-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.phone-slide.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}
.phone-slide img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.slide-controls { display: flex; gap: 7px; justify-content: center; margin-top: 23px; }
.slide-controls button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.38);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.slide-controls button span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: transform 180ms ease; }
.slide-controls button:hover, .slide-controls button:focus-visible { color: rgba(255,255,255,.75); outline: 0; }
.slide-controls button.active { color: #a84fff; }
.slide-controls button.active span { transform: scale(1.45); }

.hero-floor {
  position: absolute;
  right: -10%; bottom: -48%; left: -10%; z-index: -1;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(147,58,255,.16), rgba(57,28,91,.05) 40%, transparent 70%);
  filter: blur(22px);
}

.section-shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.section-heading { max-width: 840px; }
.section-heading h2, .boundary h2 {
  margin-bottom: 27px;
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 680;
  line-height: 1.01;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.section-heading > p:last-child, .boundary > p:last-child { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.72; text-wrap: pretty; }

.feature-section { padding-top: 120px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card {
  --accent: #933aff;
  --accent-rgb: 147,58,255;
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 26px 28px 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(34,34,38,.66), rgba(15,15,18,.48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 28px 80px rgba(0,0,0,.2);
  backdrop-filter: blur(24px) saturate(1.15);
}
.feature-card:nth-child(1) { --accent: #0a84ff; --accent-rgb: 10,132,255; }
.feature-card:nth-child(2) { --accent: #933aff; --accent-rgb: 147,58,255; }
.feature-card:nth-child(3) { --accent: #ff6b9d; --accent-rgb: 255,107,157; }
.feature-card::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb),.62);
  content: "";
}
.feature-card::after {
  position: absolute;
  top: -105px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.2), transparent 68%);
  content: "";
}
.feature-card > span {
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: 1;
  color: rgba(var(--accent-rgb),.18);
  font-size: 112px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.08em;
}
.feature-card h2 { position: relative; z-index: 1; margin: 118px 0 13px; font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.feature-card p { position: relative; z-index: 1; max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; }

.boundary {
  position: relative;
  overflow: hidden;
  margin-top: 110px;
  padding: 90px 70px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 46px;
  background: linear-gradient(125deg, rgba(22,22,25,.96), rgba(10,10,12,.96));
}
.boundary h2 { max-width: 9.5em; }
.boundary > p:last-child { position: relative; z-index: 1; }
.boundary .site-note {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 34px 0 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.43);
  font-size: 13px;
  line-height: 1.72;
  text-wrap: pretty;
}
.boundary-glow { position: absolute; top: -260px; right: -160px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(147,58,255,.26), rgba(71,26,126,.08) 42%, transparent 70%); animation: breathe 7s ease-in-out infinite; }

.faq { display: grid; grid-template-columns: minmax(280px,.55fr) minmax(0,1.45fr); gap: 110px; padding-top: 180px; }
.faq-heading { position: sticky; top: 110px; align-self: start; }
.faq-heading h2 { max-width: 410px; font-size: clamp(48px, 4.8vw, 70px); line-height: 1.02; }
.faq-heading h2 span { display: block; color: #aaa9b0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 620; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--muted); font-size: 22px; font-weight: 300; transition: transform 220ms ease; }
details[open] summary span { transform: rotate(45deg); }
details p { max-width: 700px; margin: -3px 0 27px; color: var(--muted); font-size: 15px; }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  margin: 140px auto 0;
  padding: 29px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { color: white; }
.footer-brand img { width: 30px; height: 30px; }
footer p { margin: 0; }
footer a:hover { color: white; }

@keyframes driftOne { to { transform: translate(-42px, 34px) scale(1.08); } }
@keyframes driftTwo { to { transform: translate(54px, -36px) scale(.92); } }
@keyframes breathe { 50% { transform: scale(1.12) translate(-20px, 20px); opacity: .74; } }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr minmax(350px,.72fr); gap: 28px; }
  h1 { font-size: clamp(62px, 8vw, 88px); }
}

@media (max-width: 820px) {
  .site-header { top: 12px; width: calc(100% - 24px); }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 124px 0 100px; }
  .hero-copy { max-width: 680px; }
  h1 { font-size: clamp(58px, 14vw, 88px); }
  .hero-device { min-height: 650px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .feature-card > span { font-size: 96px; }
  .feature-card h2 { margin-top: 94px; }
  .boundary { padding: 70px 36px; }
  .faq { grid-template-columns: 1fr; gap: 34px; }
  .faq-heading { position: static; }
  footer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 520px) {
  .brand span { font-size: 13px; }
  .hero-inner, .section-shell, footer { width: calc(100% - 32px); }
  .hero-copy { width: 100%; padding-right: 0; }
  h1 { max-width: 6.2em; margin-bottom: 22px; font-size: clamp(43px, 13vw, 55px); line-height: 1.04; }
  .lede { max-width: 32em; font-size: 15px; line-height: 1.75; }
  .hero-entry { grid-template-columns: 104px 1fr; gap: 15px; width: 100%; border-radius: 24px; }
  .hero-code { width: 104px; height: 104px; }
  .hero-entry-copy strong { font-size: 16px; }
  .hero-device { min-height: 590px; }
  .phone-stage { width: min(82vw, 320px); }
  .slide-controls button span { width: 8px; height: 8px; }
  .section-heading h2, .boundary h2 { font-size: clamp(39px, 12vw, 46px); }
  .boundary h2 { max-width: 8em; }
  .section-heading > p:last-child, .boundary > p:last-child { font-size: 15px; }
  .boundary { margin-top: 120px; padding: 52px 24px; border-radius: 32px; }
  .faq { padding-top: 130px; }
  footer { margin-top: 100px; }
}

@media (max-width: 380px) {
  .hero-entry { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px; }
  .hero-code { width: 92px; height: 92px; }
  .hero-entry-copy span { font-size: 10px; letter-spacing: .04em; }
  .hero-entry-copy strong { font-size: 15px; }
  .hero-entry-copy b { font-size: 14px; }
}

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