:root {
  --bg0: #0c0f14;
  --bg1: #141a22;
  --bg2: #1b2430;
  --text: #e8eef6;
  --muted: #9aa8b8;
  --accent: #5ec8b5;
  --accent2: #c9a4ff;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100%;
}

body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(94, 200, 181, 0.18), transparent 60%),
    radial-gradient(800px 480px at 90% 0%, rgba(201, 164, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #0e131a 0%, var(--bg0) 40%, #0a0d12 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(12, 15, 20, 0.75);
  z-index: 10;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 1.15rem;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3aa996);
  color: #06221c;
}
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent2);
  border: 1px solid rgba(201, 164, 255, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}
.hero-visual img {
  width: min(320px, 80%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 3rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2rem 0 3rem;
}
.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}
.section .sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.pet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.pet-card:hover {
  border-color: rgba(94, 200, 181, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.pet-card .thumb {
  aspect-ratio: 1;
  background:
    linear-gradient(180deg, var(--bg2), var(--bg1));
  display: grid;
  place-items: center;
}
.pet-card .thumb img {
  width: 78%;
  height: auto;
}
.pet-card .meta {
  padding: 0.9rem 1rem 1.1rem;
}
.pet-card .meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.pet-card .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rank-table th, .rank-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.rank-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.rank-table tr:last-child td { border-bottom: none; }

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.preview-stage {
  background: linear-gradient(160deg, #1a2230, #121820);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
}
.preview-stage canvas, .preview-stage img.big {
  width: min(280px, 70%);
  height: auto;
  image-rendering: auto;
}
.muted { color: var(--muted); }
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  margin: 1rem 0;
}
@media (max-width: 820px) {
  .hero, .detail, .features { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
}
