:root {
  color-scheme: light;
  --ink: #11131a;
  --muted: #69707d;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --line: #dfe3ea;
  --night: #0b0d12;
  --cyan: #23f2ee;
  --red: #ff2f66;
  --green: #1f9d65;
  --shadow: 0 24px 70px rgba(13, 18, 32, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(246, 247, 249, 0.86);
  border-bottom: 1px solid rgba(223, 227, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: 46vw;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-ready {
  border-color: rgba(31, 157, 101, 0.28);
  color: #0e7448;
  background: #eaf8f1;
}

.status-pill.is-warn {
  border-color: rgba(255, 47, 102, 0.22);
  color: #b41643;
  background: #fff0f4;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  min-height: calc(100vh - 138px);
  padding: clamp(36px, 6vw, 82px) clamp(18px, 6vw, 78px) clamp(42px, 7vw, 90px);
  background:
    linear-gradient(135deg, rgba(35, 242, 238, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(255, 47, 102, 0.17), transparent 28%),
    var(--night);
  color: #fff;
}

.hero-copy {
  max-width: 700px;
}

.app-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.app-icon {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 900;
}

.meta-line {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.button-primary {
  background: #fff;
  color: #0b0d12;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.14);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.58;
}

.install-state {
  min-height: 56px;
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.phone-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(360px, 74vw);
  aspect-ratio: 0.52;
  padding: 72px 34px 34px;
  border: 10px solid #1d202a;
  border-radius: 42px;
  background: #f7f8fb;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.phone-speaker {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 78px;
  height: 7px;
  border-radius: 999px;
  background: #c5cad3;
  transform: translateX(-50%);
}

.phone-shell img {
  display: block;
  width: 112px;
  height: 112px;
  margin: 8px auto 28px;
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(12, 16, 24, 0.22);
}

.phone-lines {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  width: min(210px, 100%);
}

.phone-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d9dde5;
}

.phone-lines span:nth-child(2) {
  width: 78%;
  background: #cbd1dc;
}

.phone-lines span:nth-child(3) {
  width: 58%;
}

.phone-confirm {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: #11131a;
  color: #fff;
  font-weight: 850;
}

.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.detail-item {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  background: var(--panel);
}

.detail-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-item strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
}

.text-button {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-preview {
    justify-content: flex-start;
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 62px;
    padding: 10px 14px;
  }

  .brand span {
    max-width: 44vw;
  }

  .hero {
    padding: 28px 16px 42px;
  }

  .app-lockup {
    align-items: flex-start;
    gap: 16px;
  }

  .app-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .meta-line {
    font-size: 15px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .phone-shell {
    width: min(320px, 100%);
  }

  .details {
    grid-template-columns: 1fr;
  }
}
