:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #111827;
  --muted: #5b6474;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #1688ff;
  --blue-dark: #0067d9;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 136, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.page-shell {
  position: relative;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 44px;
}

.hero { max-width: 760px; margin-bottom: 36px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 70px);
  letter-spacing: -.055em;
  line-height: 1;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.app-card.featured {
  border-color: rgba(22, 136, 255, .22);
  box-shadow: 0 22px 60px rgba(22, 136, 255, .14);
}

.app-header { display: flex; align-items: center; gap: 18px; }
.app-icon {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.gainly-icon {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(145deg, #6b5cff, #2720a8);
}

.app-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.app-description { margin: 24px 0 0; color: var(--muted); line-height: 1.8; }
.feature-list { margin: 18px 0 0; padding-left: 1.25em; color: var(--muted); line-height: 1.75; }
.button-stack { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }

.button {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 24px rgba(22, 136, 255, .24); }
.button-secondary { color: var(--text); background: #eef3f9; }

footer {
  margin-top: 32px;
  padding: 24px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
footer p { margin: 4px 0; }
footer a { color: var(--blue-dark); }
.copyright { margin-top: 14px; opacity: .75; }

@media (max-width: 760px) {
  .page-shell { padding-top: 46px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { padding: 22px; border-radius: 24px; }
  .app-icon { width: 68px; height: 68px; flex-basis: 68px; border-radius: 19px; }
  h2 { font-size: 28px; }
}
