:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --blue: #0071e3;
  --blue-ink: #0077ed;
  --paper: #ffffff;
  --film: #000000;
  --film-ink: #f5f5f7;
  --shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.45);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-logo {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 980px;
  padding: 6px 14px;
}

.hero {
  padding: 140px 24px 40px;
  text-align: center;
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-ink);
  margin-bottom: 14px;
}

.eyebrow.light { color: #2997ff; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title .line:nth-child(2) { animation-delay: 0.12s; }
.hero-title .accent { background: linear-gradient(90deg, #1d1d1f, #0071e3); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
}

.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: rgba(0, 113, 227, 0.1); color: var(--blue-ink); }
.btn.dark { background: #1d1d1f; color: #fff; }

.stage {
  position: relative;
  margin: 72px auto 0;
  max-width: 880px;
  perspective: 1400px;
}

.orb {
  position: absolute;
  filter: blur(40px);
  border-radius: 50%;
  animation: drift 9s ease-in-out infinite;
}

.orb-a { width: 280px; height: 280px; left: 6%; top: 10%; background: #7ec8ff; opacity: 0.45; }
.orb-b { width: 240px; height: 240px; right: 8%; bottom: 0; background: #c5b7ff; opacity: 0.4; animation-delay: -3s; }

.device {
  position: relative;
  margin: 0 auto;
  width: min(680px, 100%);
  border-radius: 28px;
  background: #111;
  color: #f5f5f7;
  box-shadow: var(--shadow);
  transform: rotateX(12deg) rotateY(-8deg);
  transform-style: preserve-3d;
  animation: floatIn 1.1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }
.device-title { margin-left: 10px; font-size: 12px; color: #a1a1a6; }

.device-body { padding: 28px 28px 26px; text-align: left; }

.install-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.tiny { font-size: 12px; color: #86868b; letter-spacing: 0.08em; text-transform: uppercase; }
.install-head h2 { font-size: 28px; letter-spacing: -0.03em; margin-top: 6px; }

.ring {
  position: relative;
  width: 92px;
  height: 92px;
}

.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: #2c2c2e; }
.ring .progress {
  stroke: #2997ff;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.35s linear;
}

.ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.checklist { list-style: none; margin: 26px 0 22px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #86868b;
  transition: color 0.3s ease;
}

.checklist li i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3c;
  box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.4);
}

.checklist li.done { color: #f5f5f7; }
.checklist li.done i { background: #30d158; }
.checklist li.active { color: #2997ff; }
.checklist li.active i {
  background: #2997ff;
  animation: pulse 1.2s ease-in-out infinite;
}

.install-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #0071e3;
  color: #fff;
  cursor: pointer;
}

.install-btn:disabled { opacity: 0.55; cursor: default; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 48px;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 22s linear infinite;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story, .steps, .suite, .get { padding: 120px 24px; max-width: 1120px; margin: 0 auto; }

.display {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.display.light { color: var(--film-ink); }

.lede {
  max-width: 560px;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.tile, .card, .cell {
  background: var(--paper);
  border-radius: 28px;
  padding: 32px;
}

.tile h3, .card h3, .cell h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.tile p, .card p, .cell p { color: var(--muted); line-height: 1.6; font-size: 17px; }

.film {
  background: var(--film);
  color: var(--film-ink);
  padding: 120px 24px 100px;
}

.film-copy, .film-grid { max-width: 1120px; margin: 0 auto; }
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.card {
  background: #161617;
  min-height: 240px;
}

.card span { display: block; color: #2997ff; font-size: 13px; margin-bottom: 28px; }

.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-list em {
  display: block;
  font-style: normal;
  font-size: 40px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.step-list p { color: var(--muted); font-size: 17px; line-height: 1.6; }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 48px;
}

.cell.big { grid-row: span 2; }
.cell.wide { grid-column: 2 / 4; }

.fake-shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.sku {
  height: 92px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef3ff, #d9e6ff);
  animation: shimmer 2.4s ease-in-out infinite;
}

.sku:nth-child(2) { animation-delay: 0.2s; }
.sku:nth-child(3) { animation-delay: 0.4s; }

.get { text-align: center; }
.get .lede { margin-left: auto; margin-right: auto; }

.foot {
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }
.reveal.late { transition-delay: 0.12s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes floatIn {
  from { opacity: 0; transform: rotateX(18deg) rotateY(-12deg) translateY(40px); }
  to { opacity: 1; transform: rotateX(12deg) rotateY(-8deg) translateY(0); }
}

@keyframes drift {
  50% { transform: translate(20px, -16px) scale(1.08); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(41, 151, 255, 0); }
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

@keyframes shimmer {
  50% { filter: brightness(1.08); transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .tiles, .film-grid, .step-list, .bento { grid-template-columns: 1fr; }
  .cell.big, .cell.wide { grid-column: auto; grid-row: auto; }
  .device { transform: none; animation: none; }
}
