:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #17181c;
  --text-secondary: #5a5e6b;
  --border: rgba(23, 24, 28, 0.08);
  --shadow: 0 1px 3px rgba(23, 24, 28, 0.05), 0 8px 24px rgba(23, 24, 28, 0.06);
  --shadow-hover: 0 2px 6px rgba(23, 24, 28, 0.07), 0 16px 40px rgba(23, 24, 28, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --surface: #16181f;
    --text: #f2f3f7;
    --text-secondary: #9aa0af;
    --border: rgba(242, 243, 247, 0.09);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */
header {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header.compact { padding: 56px 0 48px; }
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(ellipse at center,
    rgba(99, 91, 255, 0.22) 0%,
    rgba(255, 61, 148, 0.12) 45%,
    transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #635bff;
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) {
  .badge { color: #9d97ff; }
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 .gradient {
  background: linear-gradient(92deg, #635bff 0%, #b53dff 50%, #ff3d94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(92deg, #635bff, #b53dff);
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.45);
}

/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }

/* ---- App detail hero ---- */
.app-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.app-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.app-hero-info { text-align: left; }
.app-hero-info h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}
.app-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Section headings ---- */
section { padding: 40px 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ---- App grid ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}
a.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 91, 255, 0.4);
}
a.app-card:hover .app-card-cta { text-decoration: underline; }
.app-card.is-unreleased:hover {
  border-color: rgba(128, 128, 128, 0.3);
}
.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
img.app-icon, img.app-hero-icon {
  object-fit: cover;
  background: none;
}
.app-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-platform {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: -12px;
}
.app-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #635bff;
  margin-top: auto;
}
@media (prefers-color-scheme: dark) {
  .app-card-cta { color: #9d97ff; }
}

.status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: -6px;
}
.status-badge.available {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.unreleased {
  color: var(--text-secondary);
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid var(--border);
}
.app-card.is-unreleased { opacity: 0.62; cursor: default; }
.app-card.is-unreleased .app-icon { filter: grayscale(55%); }

/* Vivid per-app icon gradients */
.g-flavor      { background: linear-gradient(135deg, #ff6b35, #ff2d78); }
.g-kept        { background: linear-gradient(135deg, #10b981, #059669); }
.g-leap        { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.g-ledger      { background: linear-gradient(135deg, #f59e0b, #b45309); }
.g-memento     { background: linear-gradient(135deg, #f472b6, #a21caf); }
.g-meridian    { background: linear-gradient(135deg, #fb7185, #e11d48); }
.g-planum      { background: linear-gradient(135deg, #6366f1, #3730a3); }
.g-relay       { background: linear-gradient(135deg, #38bdf8, #6d28d9); }
.g-sereno      { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.g-suggestions { background: linear-gradient(135deg, #facc15, #f97316); }
.g-summit      { background: linear-gradient(135deg, #818cf8, #db2777); }
.g-torque      { background: linear-gradient(135deg, #fbbf24, #dc2626); }
.g-valise      { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.g-vanta       { background: linear-gradient(135deg, #64748b, #1e1b4b); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
}
.faq-body a { color: #635bff; font-weight: 600; text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .faq-body a { color: #9d97ff; }
}

/* ---- Contact ---- */
.contact-card {
  background: linear-gradient(120deg, #635bff, #b53dff 55%, #ff3d94);
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}
.contact-card h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 24px;
}
.contact-btn {
  display: inline-block;
  background: #fff;
  color: #4438e6;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.contact-btn:hover { transform: translateY(-2px); }

/* ---- Privacy policy ---- */
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 36px;
}
.policy-card .policy-meta {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 16px;
}
.policy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
}
.policy-card h3:first-of-type { margin-top: 0; }
.policy-card p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.policy-card p:last-child { margin-bottom: 0; }
.policy-card a {
  color: #635bff;
  font-weight: 600;
  text-decoration: none;
}
.policy-card a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .policy-card a { color: #9d97ff; }
}

/* ---- Footer ---- */
footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
footer a { color: inherit; }
