:root {
  color-scheme: dark;
  --ground: #070B1A;
  --surface: #0D1330;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #F1F1FA;
  --muted: #8B8FB4;
  --violet: #8C8DF5;
  --lavender: #C4B4F7;
  --blue: #4E95D9;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { background: var(--ground); overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }

.app-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  background: rgba(7,11,26,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.app-nav__inner {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.app-nav__brand img { width: 20px; height: 20px; }
.app-nav__brand strong { color: var(--text); font-weight: 650; }
.app-nav__links { display: flex; gap: 28px; }
.app-nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: .02em;
  transition: color .2s cubic-bezier(.2,.8,.2,1);
}
.app-nav__links a:hover { color: var(--text); }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 42% at 22% 88%, rgba(92,75,200,.20), transparent 70%),
    radial-gradient(ellipse 70% 46% at 78% 96%, rgba(36,82,201,.18), transparent 72%),
    radial-gradient(ellipse 60% 40% at 60% 4%, rgba(29,58,133,.14), transparent 74%),
    var(--ground);
}

main { position: relative; z-index: 1; }
.hero, .feature { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 100svh;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px 56px;
}
.hero-copy { max-width: 28rem; }
.brand-lockup {
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.03em;
}
.brand-lockup img { width: 28px; height: 28px; }
.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(52px, 8.2vw, 96px);
  font-weight: 620;
  letter-spacing: -.06em;
  line-height: .92;
}

.phone {
  position: relative;
  width: 320px;
  padding: 10px;
  border-radius: 52px;
  background: #04060F;
  box-shadow:
    0 40px 90px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.09);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 42px; }
.phone--lit::before {
  content: "";
  position: absolute;
  inset: -22% -30%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(140,141,245,.18), transparent 68%);
  pointer-events: none;
}
.hero-store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--text);
  font-size: 17px;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s cubic-bezier(.2,.8,.2,1);
}
.hero-store:hover { border-bottom-color: var(--text); }
.hero .phone { width: clamp(240px, calc((100svh - 210px) * 0.4601), 360px); }

.feature {
  padding: 120px 0 140px;
  border-top: 1px solid var(--line);
}
.feature h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: 1;
}
.feature-graphic {
  margin: 72px auto 0;
  width: min(980px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.widget-tile { display: block; height: auto; border-radius: 22px; }
.widget-tile--small { width: 200px; }
.widget-tile--medium { width: 420px; }

.app-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.app-footer__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}
.app-footer__inner img { opacity: .8; }

.doc-page { position: relative; z-index: 1; padding: 112px 0 90px; }
.doc-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.doc-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 46px; }
.doc-brand img { width: 42px; height: 42px; }
.doc-brand span { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.doc-page h1 { margin: 0 0 46px; font-size: clamp(42px, 7vw, 64px); font-weight: 620; letter-spacing: -.055em; }
.doc-page h2 { margin: 48px 0 16px; font-size: 22px; font-weight: 620; letter-spacing: -.025em; }
.doc-page p, .doc-page li { color: #C0C2D6; font-size: 16px; line-height: 1.7; }
.doc-page a { color: var(--lavender); }
.doc-note { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 24px; }

.manual-page { padding-bottom: 110px; }
.manual-shell { width: min(940px, calc(100% - 40px)); margin: 0 auto; }
.manual-page .doc-brand { margin-bottom: 34px; }
.manual-page h1 { margin-bottom: 64px; }

.manual-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 54px;
  align-items: center;
  padding: 46px 0 66px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manual-overview h2, .manual-card h2 { margin: 0 0 14px; }
.manual-overview p, .manual-card p { margin: 0; }
.manual-overview .phone { width: 240px; }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--line);
  background: var(--line);
}
.manual-card {
  min-height: 230px;
  padding: 34px;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.manual-token { display: flex; align-items: center; gap: 10px; }
.manual-chip {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}
.manual-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
.manual-count b { font-size: 34px; font-weight: 650; color: var(--violet); letter-spacing: -.03em; }
.manual-count span { font-size: 13px; font-weight: 560; color: var(--muted); }
.manual-row {
  width: 100%;
  max-width: 300px;
  height: 54px;
  display: flex;
  align-items: center;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #0F1533;
}
.manual-row i {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 11px;
  background: linear-gradient(90deg, #5457DE, #8A83EF);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
}
.manual-row em {
  width: 84px;
  text-align: center;
  font-style: normal;
  font-size: 19px;
  font-weight: 650;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.manual-widget { width: 96px; }
.manual-note { margin-top: 52px; }

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    padding-top: 104px;
  }
  .hero-copy { margin-inline: auto; }
  .hero h1 { align-items: center; }
  .hero .phone { width: min(320px, 82vw); }
  .phone { width: min(300px, 76vw); }
  .feature { padding: 88px 0 96px; }
  .feature-graphic { gap: 40px; }
  .widget-tile--medium { width: min(420px, 88vw); }
  .manual-overview { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .manual-grid { grid-template-columns: minmax(0, 1fr); }
}
