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

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1A1A1F;
  --text-light: #6B6B75;
  --text-muted: #9A9AA3;
  --line: #E8E8E2;
  --radius: 18px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

/* Header */

.site-header {
  padding: 24px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 10px 4px;
  margin: -10px -4px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 4px;
  margin: -10px -4px;
  transition: color 0.15s;
}

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

/* Hero */

.hero {
  padding: 80px 0 56px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero .lede {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 560px;
}

/* Apps grid */

.apps {
  padding: 24px 0 96px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--app-accent, var(--text-muted));
  opacity: 0.9;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
  border-color: var(--app-accent, var(--line));
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--app-accent-soft, rgba(0, 0, 0, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

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

.app-icon.mono {
  background: var(--app-accent-soft, rgba(0, 0, 0, 0.04));
  color: var(--app-accent, var(--text-muted));
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.app-icon.mono-tenfall span {
  background: linear-gradient(135deg, #5CABEB 0%, #B373D9 60%, #E6943A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-icon.mono-soon {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-muted);
  font-size: 1.75rem;
  font-weight: 300;
}

.app-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-meta h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-meta .kind {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-meta .tag {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: 6px;
}

.open {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--app-accent, var(--text));
  align-self: flex-start;
}

.open span {
  display: inline-block;
  transition: transform 0.18s ease;
}

.app-card:hover .open span {
  transform: translateX(3px);
}

/* Placeholder card */

.app-card.placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  cursor: default;
}

.app-card.placeholder::before {
  display: none;
}

.app-card.placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.app-card.placeholder .app-meta h2 {
  color: var(--text-light);
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.site-footer a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 0;
}

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

.site-footer .copyright {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 8px;
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .lede {
    font-size: 1rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .nav-links {
    gap: 16px;
  }
}
