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

:root {
  --bg: #05061e;
  --surface: #0b0e2e;
  --border: #232852;
  --text: #f2ede9;
  --text2: #a6acc9;
  --text3: #6f76a0;
  --accent: #9ea0f2;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(7,10,48,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-logo .nav-wordmark { height: 15px; }
.nav-crumb { font-size: 13px; color: var(--text3); }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; color: var(--text2); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px 64px;
  border-bottom: 1px solid var(--border);
}
.hero-brand {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 auto 24px;
}
.hero-logo { height: 56px; width: auto; display: block; }
.hero-wordmark { height: 38px; width: auto; display: block; }
.hero p { font-size: 17px; color: var(--text2); max-width: 420px; margin: 0 auto; }

/* CATEGORY PAGE HEADER (smaller than the hub hero) */
.page-header {
  text-align: center;
  padding: 56px 20px 48px;
  border-bottom: 1px solid var(--border);
}
.page-header p.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 10px;
}
.page-header h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.page-header p.desc { font-size: 16px; color: var(--text2); max-width: 480px; margin: 0 auto; }

/* HUB — category tiles */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.category-tile:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.35); border-color: #3f4570; transform: translateY(-2px); }
.category-tile .cat-count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text3); text-transform: uppercase;
}
.category-tile .cat-name { font-size: 22px; font-weight: 800; color: var(--text); }
.category-tile .cat-desc { font-size: 14px; color: var(--text2); }
.category-tile .cat-arrow { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }

/* SECTIONS */
.section { max-width: 960px; margin: 0 auto; padding: 56px 24px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 28px;
}

/* APP GRID */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.app-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.35); border-color: #3f4570; }

.app-card-header { display: flex; align-items: center; gap: 14px; }
.app-card-header img {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  flex-shrink: 0;
}
.app-name { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.2; }
.app-tag {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 20px;
  background: #1a1f4a; color: var(--text2);
}

.app-desc { font-size: 14px; color: var(--text2); line-height: 1.55; }

.app-features { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.app-features li { font-size: 13px; color: var(--text2); padding-left: 16px; position: relative; }
.app-features li::before { content: '–'; position: absolute; left: 0; color: var(--text3); }

.app-store-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px; align-self: flex-start;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.app-store-btn:hover { opacity: 0.8; }
.app-store-btn.soon { background: #1a1f4a; color: var(--text2); cursor: default; pointer-events: none; }

/* INFO SECTIONS */
.info-section { max-width: 640px; margin: 0 auto; padding: 56px 24px; }
.info-section + .info-section { border-top: 1px solid var(--border); }
.info-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.info-section p { font-size: 15px; color: var(--text2); margin-bottom: 10px; }
.info-section a { color: var(--text); font-weight: 500; }
.info-section a:hover { text-decoration: underline; }
.info-section strong { color: var(--text); }

footer {
  text-align: center; padding: 32px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text3);
}

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .hero h1, .page-header h1 { font-size: 26px; }
  .section, .info-section { padding: 40px 16px; }
}
