:root {
  --accent: #4f46e5;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #14141f;
  --muted: #6b7280;
  --border: #e6e6ef;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.05), 0 8px 24px rgba(20, 20, 40, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}

.brand-mark svg { width: 18px; height: 18px; }

.social { display: flex; gap: 8px; }

.social-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.15s ease;
}

.social-link:hover { color: var(--accent); border-color: var(--accent); }

.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(500px 260px at 10% 0%, rgba(168, 85, 247, 0.08), transparent 70%);
  text-align: center;
}

.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto 14px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  margin: 0 auto 36px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.platform-chips { margin-top: 10px; }

.count {
  font-size: 14px;
  color: var(--muted);
  margin: 28px 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(20, 20, 40, 0.06), 0 16px 32px rgba(20, 20, 40, 0.1);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef0f6;
  overflow: hidden;
}

.card-media.has-ph { background: #eef0f6; }

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-img {
  display: grid;
  place-items: center;
  color: #b3b8c7;
  background:
    linear-gradient(135deg, #e8eaf6 0%, #dde1f3 100%);
}

.ph-icon { width: 44px; height: 44px; }

.ph-icon svg { width: 100%; height: 100%; }

.platform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.card-price-compare {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.off-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  border-radius: 6px;
  padding: 2px 6px;
  margin-right: 6px;
  vertical-align: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
}

.buy-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  margin-top: 4px;
  transition: filter 0.15s ease;
}

.buy-btn:hover { filter: brightness(1.08); }

.btn-arrow { width: 16px; height: 16px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.empty p { font-size: 16px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.disclosure {
  font-size: 13px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 12px;
}

.credit { font-size: 12px; }

.admin-link {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.7;
}

.admin-link:hover { color: var(--accent); opacity: 1; }

.landing-hero {
  padding-top: 84px;
  padding-bottom: 72px;
}

.landing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

.landing-btn {
  padding: 14px 28px;
  font-size: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

.landing-btn:hover { filter: brightness(1.08); }

.invite-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.go-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
}

.go-form input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  outline: none;
}

.go-form input:focus { border-color: var(--accent); }

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 20px;
  border-radius: 999px;
}

.btn-outline:hover { background: var(--accent); color: #fff; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feat h3 { font-size: 15px; margin-bottom: 6px; }

.feat p { font-size: 14px; color: var(--muted); }

.status-hero { padding-top: 72px; padding-bottom: 72px; }

.status-hero .btn { margin-top: 12px; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .landing-hero { padding-top: 56px; }
  .go-form { flex-direction: column; }
}