:root {
  --bg: #F8F8F6;
  --fg: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --border: #e6e6e6;
  --accent: #2bc5db;
  --radius: 12px;
  --maxw: 820px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Masthead */
.masthead { position: relative; margin-bottom: 56px; text-align: center; }
.atom-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* keep logo/links clickable; cursor tracked via window listener */
  pointer-events: none;
}
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.brand-logo { position: relative; z-index: 2; display: block; }
.brand-name { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand-ai { color: var(--accent); }

/* Intro */
.intro { margin-bottom: 40px; }
.intro h1 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.lede { position: relative; z-index: 1; margin: 12px 0 0; color: var(--muted); font-size: 17px; }

/* App grid */
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apps li { display: flex; }

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  background: #fff;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.app:hover,
.app:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  outline: none;
}
.app-title {
  font-weight: 600;
  font-size: 18px;
  transition: color .15s ease;
}
.app:hover .app-title,
.app:focus-visible .app-title { color: var(--accent); }
.app-desc { color: var(--muted); font-size: 14px; }
.app-host {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--faint);
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 56px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 520px) {
  .page { padding: 32px 20px 48px; }
  .masthead { margin-bottom: 40px; }
}
