/* Wingbits brand: near-black, greys, orange as the only accent. */
:root {
  --bg: #1e1b1b;
  --card: #272323;
  --card-hover: #302b2b;
  --line: #3a3535;
  --text: #efefef;
  --muted: #acafae;
  --accent: #ff7121;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px) 32px;
}
header {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.eyebrow,
h2,
.hint,
footer {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.eyebrow {
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.lede {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
section {
  margin-bottom: 40px;
}
h2 {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  min-height: 112px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.card:hover {
  background: var(--card-hover);
  border-color: #554d4d;
}
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1e1b1b;
  color: var(--text);
}
.icon svg {
  width: 22px;
  height: 22px;
}
.card:hover .icon {
  color: var(--accent);
}
.body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.body strong {
  font-size: 18px;
  font-weight: 600;
}
.text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.hint {
  color: #8d8f8e;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-top: 4px;
}
.go {
  color: var(--muted);
  font-size: 18px;
}
.card:hover .go {
  color: var(--accent);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8d8f8e;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 16px;
}
footer a {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
/* Sign-in gate (served by worker.js). */
.signin {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.signin-card {
  width: 100%;
  max-width: 420px;
}
.signin-card h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 32px;
}
.signin-card label {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.signin-card input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.signin-card input:focus-visible,
.signin-card button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.signin-card button {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  font: inherit;
  font-weight: 600;
  color: #1e1b1b;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.signin-card .error {
  color: #ff9a6b;
  font-size: 14px;
  margin: 12px 0 0;
}

/* Recorded AI demos reuse the existing launcher palette and typography. */
.ai-value {
  max-width: 850px;
  color: var(--accent);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 22px 0 14px;
}
.ai-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.ai-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.demo-card {
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.demo-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  position: relative;
  background: #111;
  border-bottom: 1px solid var(--line);
}
.demo-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.68;
}
.demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--bg);
  background: var(--accent);
}
.demo-play svg { width: 28px; height: 28px; margin-left: -2px; }
.demo-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #1e1b1be6;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.demo-card .body { padding: 20px; }
.demo-card .body strong { font-size: 21px; }
.demo-card .text { font-size: 15px; }
.demo-action { margin-top: 10px; color: var(--accent); font-size: 14px; font-weight: 600; }
.video-open { overflow: hidden; }
#demo-player {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
}
#demo-player::backdrop { background: #000c; }
.player-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#demo-title { margin: 0 0 8px; padding: 0; border: 0; color: var(--text); font: 600 24px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: -0.02em; }
.player-meta { margin: 0; color: var(--muted); font-size: 13px; }
.player-description { color: var(--muted); line-height: 1.45; font-size: 15px; margin: 16px 0; }
.player-close { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.player-close span { font-size: 21px; line-height: 1; }
.player-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#demo-video { display: block; width: 100%; max-height: 72dvh; object-fit: contain; background: #000; border-radius: 6px; }
#demo-error { font-size: 15px; line-height: 1.5; }
#demo-error a { color: var(--accent); }
@media (max-width: 600px) {
  .ai-grid { grid-template-columns: 1fr; gap: 16px; }
  #demo-player { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  #demo-title { font-size: 20px; }
  .player-close { padding: 8px; }
  #demo-video { max-height: 65dvh; }
}
