:root {
  --primary: #ff8a7a;
  --primary-hover: #ff6b5e;
  --primary-soft: #ffe8e4;
  --accent: #7ec8e3;
  --accent-soft: #e8f6fc;
  --accent-strong: #3a8fb5;
  --bg: #fafaf8;
  --surface: #ffffff;
  --muted: #f5f4f2;
  --track: #f0eeea;
  --border: #e8e6e1;
  --border-strong: #d4d1ca;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --text-tertiary: #9c958e;
  --success: #6bc9a8;
  --success-soft: #e8f7f0;
  --warning: #e8a838;
  --warning-soft: #fff8e8;
  --error: #e85d5d;
  --error-soft: #fdecec;
  --shadow: 0 12px 40px rgba(45, 42, 38, 0.08);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
}

.nav-back {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

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

.nav-back:focus-visible,
.nav-menu-toggle:focus-visible,
.footer a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--muted);
}

.btn-disabled,
.btn-primary.btn-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn:active {
  transform: scale(0.98);
}

.hero {
  padding: 72px 0 96px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 17px;
}

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

.pet-preview {
  width: 180px;
  height: 220px;
  margin: 48px auto 0;
  filter: drop-shadow(0 16px 24px rgba(45, 42, 38, 0.12));
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 96px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 32px 0 96px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.download-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.download-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.download-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.note {
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-compact {
  padding: 48px 0 24px;
}

.hero-compact h1 {
  font-size: 40px;
}

.version-line {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-band {
  text-align: center;
  padding: 48px 24px 72px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta-band p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.card-muted {
  margin-bottom: 96px;
}

.simple-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  margin-top: 8px;
}

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

.page-legal {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.page-legal .hero-compact {
  padding-top: 24px;
}

.page-legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.page-legal h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-legal p,
.page-legal li {
  color: var(--text-secondary);
  font-size: 14px;
}

.page-legal ul {
  padding-left: 20px;
}

.requirements {
  margin-bottom: 32px;
}

.requirements h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.requirements-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.requirements-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.requirements-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1080px);
  }

  .nav {
    gap: 10px;
    padding: 14px 0;
  }

  .logo img {
    height: 48px;
  }

  .nav > .btn {
    height: 44px;
    padding: 0 14px;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .hero-compact {
    padding: 44px 0 8px;
  }

  .pet-preview {
    margin-top: 36px;
  }

  .features,
  .download-grid {
    gap: 14px;
    padding-bottom: 72px;
  }

  .card,
  .download-card {
    padding: 22px;
  }

  .cta-band {
    padding: 40px 22px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
