/* OpenKitMule — Minimal Design System */
/* ──────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-2: #555555;
  --text-3: #999999;
  --border: #e8e8e8;
  --border-soft: #f3f3f3;
  --accent: #0a0a0a;
  --accent-text: #ffffff;
  --max-w: 640px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ──────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo svg {
  color: var(--text);
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color var(--transition);
}

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

/* ── Hero ───────────────────────────── */

.hero {
  padding: 100px 0 64px;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(180deg, #0a0a0a 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-3);
  margin-top: 8px;
  font-weight: 400;
}

/* ── Product List ───────────────────── */

.product-list {
  padding: 16px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.product-card .emoji {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.product-card .info { flex: 1; min-width: 0; }

.product-card .name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card .tagline {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--bg-soft);
  border-radius: 100px;
}

/* ── Loading ────────────────────────── */

.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-3);
  font-size: 0.875rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--text-3);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────── */

.footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}

/* ── Responsive ──────────────────────── */

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .hero-title { font-size: 2rem; }
  .product-card { flex-direction: row; }
}

/* ── Hidden ─────────────────────────── */

.hidden { display: none !important; }
