:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: #111114;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a1a1a8;
  --blue: #5a9ef2;
  --blue-bright: #7db6ff;
  --blue-deep: #2a5bdb;
  --raise: #e5484d;
  --call: #30a46c;
  --fold: #2a2a30;
  --gold: #f5c451;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .lede, .section-head p { text-wrap: balance; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 18px rgba(90, 158, 242, 0.45); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(90, 158, 242, 0.12);
  border: 1px solid rgba(90, 158, 242, 0.35);
  color: var(--blue-bright);
  font-size: 14px;
  font-weight: 600;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-bright);
  animation: blink 2.4s ease-in-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 96px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(closest-side at 50% 38%, rgba(42, 91, 219, 0.55), transparent 70%),
    radial-gradient(closest-side at 18% 70%, rgba(229, 72, 77, 0.16), transparent 70%),
    radial-gradient(closest-side at 84% 66%, rgba(48, 164, 108, 0.14), transparent 70%);
  z-index: -2;
  pointer-events: none;
}
.hand-grid {
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(980px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%) perspective(1400px) rotateX(52deg);
  transform-origin: 50% 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(closest-side at 50% 42%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, #000 35%, transparent 100%);
}
.hand-grid span {
  border-radius: 6px;
  background: var(--fold);
  animation: paint 9s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes paint {
  0%, 12% { background: var(--fold); }
  20%, 70% { background: var(--c); }
  80%, 100% { background: var(--fold); }
}

.icon-stage {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
  display: grid;
  place-items: center;
}
.icon-stage::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(125, 182, 255, 0.9) 30%, transparent 42%, transparent 62%, rgba(90, 158, 242, 0.7) 74%, transparent 86%);
  filter: blur(14px);
  animation: spin 9s linear infinite;
  opacity: 0.8;
}
.icon-stage::after {
  content: "";
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 158, 242, 0.5), transparent 72%);
  animation: pulse 4.5s ease-in-out infinite;
  z-index: -1;
}
.app-icon {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(90, 158, 242, 0.55);
  animation: float 6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto 20px;
  max-width: 820px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #a9c8f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0 auto 32px;
  max-width: 600px;
  color: #c8c8ce;
  font-size: clamp(18px, 2.2vw, 21px);
}

/* ---------- Showcase (phones) ---------- */
.section { padding: 88px 24px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }

.phones {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.phone-card { margin: 0; text-align: center; }
.phone-card:nth-child(2) { transform: translateY(-28px); }
.phone {
  position: relative;
  width: min(100%, 290px);
  margin: 0 auto;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(160deg, #3a3a42, #121216 40%, #26262c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(90, 158, 242, 0.12);
}
.phone video, .phone img {
  width: 100%;
  aspect-ratio: 540 / 1168;
  object-fit: cover;
  border-radius: 38px;
  background: #000;
}
.phone-card figcaption { margin-top: 22px; }
.phone-card figcaption strong { display: block; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 4px; }
.phone-card figcaption span { color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(90, 158, 242, 0.18)), transparent);
  pointer-events: none;
}
.feature .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--tint, rgba(90, 158, 242, 0.16));
  color: var(--ink, var(--blue-bright));
}
.feature .glyph svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature.red { --tint: rgba(229, 72, 77, 0.16); --ink: #ff7a7e; --glow: rgba(229, 72, 77, 0.16); }
.feature.green { --tint: rgba(48, 164, 108, 0.16); --ink: #5fd39a; --glow: rgba(48, 164, 108, 0.15); }
.feature.gold { --tint: rgba(245, 196, 81, 0.14); --ink: var(--gold); --glow: rgba(245, 196, 81, 0.12); }

/* ---------- Promise band ---------- */
.promise {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 36px;
  border-radius: 28px;
  background:
    radial-gradient(closest-side at 15% 50%, rgba(42, 91, 219, 0.35), transparent 80%),
    linear-gradient(180deg, #121722, #0c0e14);
  border: 1px solid rgba(90, 158, 242, 0.22);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.promise h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.promise p { margin: 0; color: #c8c8ce; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.promise li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--call) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #08080a; }
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand span { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.footer-links a:hover { text-decoration: none; border-color: rgba(90, 158, 242, 0.5); color: var(--blue-bright); }
.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 36px;
  color: #6e6e76;
  font-size: 13px;
}

/* ---------- Document pages (privacy, support) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 24px 48px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.doc h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #d6d6db; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .muted { color: var(--muted); }
.contact-card {
  margin: 28px 0;
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(closest-side at 0% 0%, rgba(42, 91, 219, 0.35), transparent 85%),
    var(--surface);
  border: 1px solid rgba(90, 158, 242, 0.25);
}
.contact-card .label { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.contact-card a { font-size: clamp(20px, 4vw, 26px); font-weight: 700; color: var(--blue-bright); }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hand-grid span { background: var(--c); }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .phones {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 14% 24px;
    margin: 0 -24px;
    gap: 22px;
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone-card { scroll-snap-align: center; }
  .phone-card:nth-child(2) { transform: none; }
  .features { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 32px 24px; }
  .section { padding: 64px 24px; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 20px 72px; }
  .icon-stage, .app-icon { width: 156px; height: 156px; }
  .app-icon { border-radius: 36px; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
}
