:root {
  --bg:        #0b0b13;
  --bg-raise:  #14141f;
  --line:      #262636;
  --line-soft: #1d1d2b;
  --text:      #ececf4;
  --text-dim:  #a2a2b8;
  --text-mute: #6e6e88;
  --accent:    #7c78f5;
  --accent-2:  #4b3fe4;
  --accent-dim:#221f4a;
  --radius:    16px;
  --maxw:      920px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 50% -12rem, rgba(124,120,245,.22), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── header ─────────────────────────────────────────────────────────── */

.site-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { border-radius: 9px; display: block; }

/* ── launcher ───────────────────────────────────────────────────────── */

.launcher {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 64px;
  text-align: center;
}

.tagline {
  margin: 0 0 44px;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 640;
  color: var(--text);
}

/* auto-fill, so a third tool just drops in */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 168px));
  justify-content: center;
  gap: 14px 30px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}

.app:hover { background: var(--bg-raise); }

.app-icon {
  display: block;
  margin-bottom: 12px;
  border-radius: 24px;
  /* The icons carry their own rounded corners; this shadow sits under them. */
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .16s cubic-bezier(.2,.7,.3,1);
}

.app-icon img { display: block; border-radius: 24px; }

.app:hover .app-icon  { transform: translateY(-4px) scale(1.03); }
.app:active .app-icon { transform: translateY(-1px) scale(.99); }

.app-name {
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-meta {
  font-size: .8rem;
  color: var(--text-mute);
}

/* ── one section per tool ───────────────────────────────────────────── */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.tool {
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.tool-icon {
  border-radius: 12px;
  flex-shrink: 0;
}

.tool h2 {
  margin: 0 0 2px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.tool-sub {
  margin: 0;
  color: var(--accent);
  font-size: .97rem;
}

.tool-body {
  margin: 0 0 20px;
  color: var(--text-dim);
  max-width: 44em;
}

.features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: 44em;
}

.features li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--text-dim);
}

.features li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.features code {
  font-family: var(--mono);
  font-size: .86em;
  background: #1d1d2b;
  border-radius: 5px;
  padding: 1px 5px;
  color: #c8c5ff;
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.meta {
  font-size: .86rem;
  color: var(--text-mute);
}

/* ── buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: .95rem;
  font-weight: 570;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, background .15s, border-color .15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 8px 22px -12px var(--accent-2);
}

.btn-primary:hover { filter: brightness(1.08); }

/* ── install details ────────────────────────────────────────────────── */

.install {
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.install summary {
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-dim);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.install summary::-webkit-details-marker { display: none; }

.install summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 17px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--accent);
}

.install[open] summary::before { content: "–"; }
.install summary:hover { color: var(--text); }

.install ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: .93rem;
  display: grid;
  gap: 8px;
}

.install strong { color: var(--text); font-weight: 600; }

.fineprint {
  margin: 16px 0 0;
  font-size: .85rem;
  color: var(--text-mute);
}

/* ── footer ─────────────────────────────────────────────────────────── */

.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 46px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mute);
  font-size: .88rem;
}

.site-foot img { border-radius: 7px; opacity: .75; }
.site-foot p { margin: 0; }

/* ── narrow ─────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .launcher { padding: 26px 20px 48px; }
  .tagline  { margin-bottom: 34px; }

  /* Two across, phone-home-screen style, rather than one big tile per row. */
  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .app { padding: 14px 4px 16px; }

  .app-icon img { width: 88px; height: 88px; }
  .app-icon, .app-icon img { border-radius: 20px; }

  .app-name { font-size: .9rem; }

  .tool { padding: 24px 20px; }
  .btn  { flex: 1 1 auto; }

  /* The subtitle wraps to two lines here, so centring the icon against it
     leaves the icon floating low. Pin it to the heading instead. */
  .tool-head { align-items: flex-start; }
}
