/* turbo-teams.norrminds.com: the look of the app's first-run welcome (src/app/welcome.c):
   black, a violet spotlight, the logo, the title, the accent pill with its halo. Everything
   is there at once: no intro animation (the app keeps its own). */

:root {
  --bg: #050507;
  --accent: #8683f4;
  --accent-rgb: 134, 131, 244;
  --ring: 175, 194, 255;
  --title: #c9cbd6;
  --text: #f2f2f5;
  --text-2: #adadad;
  --text-3: #7a7a7a;
  --amber: #f2b04c;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.075);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* The spotlight behind everything */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 50% 30%, rgba(var(--accent-rgb), 0.085), transparent 62%),
    radial-gradient(120vmax 80vmax at 50% 120%, rgba(var(--accent-rgb), 0.05), transparent 60%);
}

/* ------------------------------------------------------------------ splash */

.splash { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  text-align: center;
}

.logo {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 30px rgba(var(--accent-rgb), 0.35));
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--title);
}

.tagline {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.foot {
  position: relative;
  padding: 0 16px 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ----------------------------------------------------------------- buttons */

/* The accent pill (the welcome's "Sign in with Microsoft") */
.pill-button {
  --gx: 50%;
  --gy: 50%;
  --hot: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(320px, 100%);
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background:
    radial-gradient(160px circle at var(--gx) var(--gy), rgba(255, 255, 255, calc(0.16 * var(--hot))), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 45%),
    rgba(var(--accent-rgb), 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, calc(0.08 + 0.18 * var(--hot)));
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pill-button:hover { --hot: 1; transform: translateY(-1px); background-color: rgba(var(--accent-rgb), 1); }
.pill-button:active { transform: translateY(0) scale(0.985, 0.96); }
.pill-button:focus-visible { outline: 2px solid rgba(var(--ring), 0.9); outline-offset: 3px; }

/* Its halo: soft light under the pill, like light on a surface */
.pill-button .halo {
  position: absolute;
  z-index: -1;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: -6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.5);
  filter: blur(18px);
  opacity: 0.6;
  transition: opacity 0.25s, filter 0.25s;
}
.pill-button:hover .halo { opacity: 0.95; filter: blur(22px); }

.pill-button.disabled {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  color: var(--text-2);
  cursor: default;
}

/* The quiet one: a translucent pill, like the app's secondary buttons */
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.ghost-button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.ghost-button:focus-visible { outline: 2px solid rgba(var(--ring), 0.7); outline-offset: 2px; }

.pill-button.small, .ghost-button.small {
  width: auto;
  height: 34px;
  margin: 0;
  padding: 0 16px;
  gap: 8px;
  font-size: 13px;
}
.ghost-button.small { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ghost-button.small:hover { background: rgba(255, 255, 255, 0.11); }
.pill-button.small .halo { filter: blur(12px); }

.icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.small .icon { width: 15px; height: 15px; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 2px;
}
.tag.accent { background: rgba(var(--accent-rgb), 0.2); color: #c4c2ff; }
.tag.amber { background: rgba(242, 176, 76, 0.18); color: #f7cf8d; }

/* ---------------------------------------------------------------- releases */

.page { min-height: 100vh; }

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(5, 5, 7, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--title);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.column {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.lede { margin: 8px 0 28px; color: var(--text-2); }

.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.card {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-line);
}
.card.latest {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02)), var(--glass);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22);
}
.card.empty { color: var(--text-2); }

.release-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.release-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-title h2 { margin: 0; font-size: 18px; font-weight: 600; }
.release-meta { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }

.notes { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.notes li { margin: 2px 0; }
.notes li::marker { color: rgba(var(--accent-rgb), 0.8); }

.sha {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font: 11px var(--font);
  text-align: left;
  cursor: copy;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sha code { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.sha:hover code { color: var(--text-2); }
.sha.copied::after { content: "Copied"; margin-left: 8px; color: #c4c2ff; }

.hint { margin-top: 28px; font-size: 13px; color: var(--text-3); }
.hint em { font-style: normal; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 520px) {
  .bar { padding: 12px 16px; }
  .card { padding: 16px; }
  .release-head .small { width: 100%; justify-content: center; }
}
