:root {
  --blue: #2f6fed;
  --text: #1f242e;
  --muted: #737a85;
  --bg: #ffffff;
  --wash: #f7f7fa;
  --line: #e5e5eb;
  --device: #1c1c1e;
  --inset: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px var(--inset);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.nav-brand .app-icon {
  width: 28px;
  height: 28px;
  box-shadow: 0 1px 4px rgba(31, 36, 46, 0.12);
}

.nav nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav nav a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--inset) 80px;
  background: var(--wash);
  animation: rise 0.8s ease both;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin-bottom: 28px;
  animation: pop 0.7s ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 10vw, 80px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta .btn {
  width: 200px;
  padding: 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.block {
  background: var(--bg);
}

.block.wash {
  background: var(--wash);
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px var(--inset);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}

.inner.flip {
  grid-template-columns: 1fr auto;
}

.inner.flip .copy {
  order: 2;
  justify-self: end;
  text-align: right;
}

.inner.flip .phone {
  order: 1;
  justify-self: start;
}

.inner.flip .copy p {
  margin-left: auto;
}

.copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.copy p {
  margin: 16px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.phone {
  --w: 268px;
  position: relative;
  margin: 0;
  width: var(--w);
  padding: 11px;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 42%, #0d0d0f 100%);
  border-radius: 48px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px #0a0a0a,
    0 24px 48px rgba(31, 36, 46, 0.18);
  animation: float-in 0.9s ease both;
}

.phone-screen {
  overflow: hidden;
  border-radius: 38px;
  background: #000;
  line-height: 0;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-btn {
  position: absolute;
  background: #2c2c2e;
  box-shadow: inset 0 0 0 1px #111;
}

.phone-btn.silent {
  left: -3px;
  top: 92px;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.phone-btn.vol-up {
  left: -3px;
  top: 132px;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
}

.phone-btn.vol-down {
  left: -3px;
  top: 182px;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
}

.phone-btn.power {
  right: -3px;
  top: 160px;
  width: 3px;
  height: 64px;
  border-radius: 0 2px 2px 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px var(--inset) 48px;
  color: var(--muted);
  font-size: 13px;
}

.app-icon {
  display: block;
  border-radius: 22.37%;
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  margin-right: auto;
}

.footer-brand .app-icon {
  width: 22px;
  height: 22px;
  box-shadow: none;
}

.footer a:hover {
  color: var(--text);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .inner,
  .inner.flip {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px var(--inset);
  }

  .inner.flip .copy,
  .inner.flip .phone {
    order: unset;
    justify-self: start;
    text-align: left;
  }

  .inner.flip .copy p {
    margin-left: 0;
  }

  .phone {
    --w: min(240px, 72vw);
    justify-self: start;
  }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero,
  .hero-icon,
  .phone,
  .btn {
    animation: none;
    transition: none;
  }
}
