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

:root {
  --c-bg: #fafaf9;
  --c-surface: #ffffff;
  --c-text: #1c1917;
  --c-text-muted: #78716c;
  --c-accent: #0d9488;
  --c-accent-hover: #0f766e;
  --c-border: #e7e5e4;
  --c-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --c-card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --max-w: 960px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-accent-hover); }

/* --- Top Nav --- */
.topnav {
  background: var(--c-text);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.topnav-brand:hover { color: #d6d3d1; }
.topnav-brand svg { flex-shrink: 0; }
.topnav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.topnav-links a {
  color: #d6d3d1;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.topnav-links a:hover { color: #fff; }

/* --- Page Container --- */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* --- Hero --- */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- App Cards Grid --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: var(--c-card-shadow);
  text-decoration: none;
  color: inherit;
}
.app-card:hover {
  box-shadow: var(--c-card-shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}
.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.app-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}
.app-card-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
}
.badge-live { background: #d1fae5; color: #065f46; }
.badge-soon { background: #fef3c7; color: #92400e; }

/* --- Footer --- */
.page-footer {
  background: var(--c-text);
  color: #a8a29e;
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
}
.page-footer a { color: #d6d3d1; }
.page-footer a:hover { color: #fff; }
.privacy-btn {
  background: none;
  border: none;
  color: #d6d3d1;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0;
}
.privacy-btn:hover { color: #fff; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: #d6d3d1; }

@media (max-width: 480px) {
  .topnav { padding: 0.6rem 1rem; }
  .topnav-links { gap: 0.75rem; }
  .page { padding: 1.5rem 1rem 3rem; }
  .hero { margin-bottom: 2rem; }
}
