:root {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #888;
  --accent: #fafafa;
  --border: #1f1f1f;
  --card: #111;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

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

main {
  flex: 1;
  padding: 80px 0;
}

.hero {
  max-width: 720px;
  margin-bottom: 96px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 96px;
}

.app-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.app-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.app-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.app-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.app-card .arrow {
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-card:hover .arrow {
  color: var(--fg);
}

.about {
  max-width: 640px;
  margin-bottom: 96px;
}

.about h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 16px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-meta {
  color: var(--muted);
  font-size: 13px;
}

/* Legal pages */
.legal {
  max-width: 720px;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p {
  margin-bottom: 16px;
  color: #ccc;
}

.legal ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #ccc;
}

.legal li {
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal a {
  color: var(--fg);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 13px;
  }
  main {
    padding: 48px 0;
  }
}
