:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 12px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-sub {
  margin-left: 6px;
  font-weight: 500;
  color: var(--muted);
}

.header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.header-nav a:hover { color: var(--text); }

.header-actions { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-fill {
  background: var(--accent);
  color: #fff;
}

.btn-fill:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-text {
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
}

.btn-text:hover { color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: min(72vh, 640px);
}

.hero-copy h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 11ch;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  max-width: 38ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.watch-frame {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
}

.watch-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0c1220;
}

.map-block {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.03) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.03) 24px);
}

.route-line {
  position: absolute;
  left: 22%;
  top: 58%;
  width: 56%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-28deg);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.watch-ui {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 9, 11, 0.82);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: var(--muted);
}

.watch-ui strong {
  color: var(--text);
  font-size: 15px;
}

/* Strip */
.strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 28px;
}

.strip-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-grid strong {
  font-size: 14px;
  font-weight: 600;
}

.strip-grid span {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--surface);
}

.section h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  margin-bottom: 32px;
}

.fine-print {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  min-height: 140px;
}

.bento-cell h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.bento-cell p {
  font-size: 14px;
  color: var(--muted);
  max-width: 36ch;
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.bento-tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface-2);
}

.walk-art {
  height: 120px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(160deg, #1e3a5f, #0f172a);
  border: 1px solid var(--line);
}

/* Devices */
.device-table {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.device-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.device-row:last-child { border-bottom: none; }

.device-head {
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.device-name { font-weight: 600; }

.device-featured {
  background: rgba(37, 99, 235, 0.06);
}

.device-featured .device-name { color: #93c5fd; }

/* Pricing */
.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.account-meta strong { display: block; font-size: 14px; }
.account-meta span { font-size: 13px; color: var(--muted); }

.login-box {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.login-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.pay-row select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.price-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s;
}

.price-card:hover { border-color: rgba(37, 99, 235, 0.35); }

.price-card.featured {
  border-color: rgba(37, 99, 235, 0.5);
}

.price-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.price-card .amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card .amount small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.price-card .meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.btn-buy {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.btn-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-buy:not(:disabled):active { transform: scale(0.98); }

.skel {
  height: 180px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Download */
.download-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.download-panel {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.version-tag {
  font-size: 14px;
  color: var(--muted);
}

.version-tag strong {
  color: var(--text);
  font-size: 18px;
  margin-left: 6px;
}

.version-notes {
  margin: 12px 0 20px;
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
}

.changelog {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.changelog li {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.changelog li:last-child { border-bottom: none; }

.changelog time {
  display: inline-block;
  min-width: 64px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* FAQ */
.faq-wrap {
  max-width: 640px;
}

.faq-wrap h2 { margin-bottom: 24px; }

.faq-wrap details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-wrap summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  list-style: none;
}

.faq-wrap summary::-webkit-details-marker { display: none; }

.faq-wrap p {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 16px;
  max-width: 58ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-panel {
  position: relative;
  width: min(400px, calc(100% - 32px));
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-panel h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 0;
}

.field-error {
  color: #f87171;
  font-size: 13px;
  margin-bottom: 10px;
}

.modal-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.nav-user {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
  }

  .hero-visual { justify-content: center; }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-wide {
    grid-template-columns: 1fr;
  }

  .strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .device-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .device-head { display: none; }

  .device-row span:first-child {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .download-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 32px); }

  .header-nav { display: none; }

  .hero { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skel { animation: none; }
  .btn:active { transform: none; }
}
