:root {
  color-scheme: light;
  --ink: #17161f;
  --muted: #6f6a7c;
  --surface: #ffffff;
  --soft: #f6f3ee;
  --line: rgba(23, 22, 31, 0.12);
  --lime: #cbff4d;
  --pink: #ff4fa3;
  --cyan: #39d5ff;
  --violet: #8157ff;
  --orange: #ff9d2f;
  --green: #23c06b;
  --shadow: 0 20px 55px rgba(23, 22, 31, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(203, 255, 77, 0.32), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(255, 79, 163, 0.18), transparent 22rem),
    linear-gradient(135deg, #fffaf1 0%, #f2fbff 48%, #fff5fb 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Inter", "Noto Sans", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hub-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.hero,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.emoji-badge {
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.launcher-card p,
label {
  color: var(--muted);
}

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  font-weight: 800;
}

.tool-button,
.icon-button,
.chip-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.tool-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.headline {
  padding: 74px 0 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 6.8rem);
  line-height: 0.92;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.launcher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.launcher-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(23, 22, 31, 0.16);
}

.launcher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background:
    linear-gradient(135deg, var(--accent), transparent 58%),
    repeating-linear-gradient(45deg, rgba(23, 22, 31, 0.08) 0 1px, transparent 1px 10px);
}

.launcher-card > * {
  position: relative;
}

.emoji-badge {
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  background: #fff;
  font-size: 1.75rem;
}

.state {
  align-self: flex-start;
  margin-top: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(35, 192, 107, 0.16);
  color: #137b45;
  font-size: 0.78rem;
  font-weight: 950;
}

.state.soon {
  background: rgba(255, 157, 47, 0.17);
  color: #985000;
}

.launcher-card h2 {
  margin: 14px 0 10px;
  font-size: 1.65rem;
}

.launcher-card p {
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.meta-row span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
}

.tools-dialog {
  width: min(780px, calc(100% - 26px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(23, 22, 31, 0.3);
}

.tools-dialog::backdrop {
  background: rgba(23, 22, 31, 0.42);
  backdrop-filter: blur(5px);
}

.tools-dialog form {
  padding: 18px;
}

.icon-button {
  font-size: 1.45rem;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

summary {
  cursor: pointer;
  font-weight: 950;
}

details > * + * {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row button {
  min-height: 36px;
  padding: 0 10px;
}

.log-box {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.toggle-line input {
  width: auto;
  min-height: auto;
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hub-shell {
    width: min(100% - 24px, 1240px);
  }

  .headline {
    padding-top: 44px;
  }

  .launcher-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .launcher-card {
    min-height: 270px;
  }
}
