/* Quiet marketing backdrop on the clean landing hero page */
.fgs--clean-landing .fgs-bg::before,
.fgs--clean-landing .fgs-bg::after,
.fgs--clean-site .fgs-bg::before,
.fgs--clean-site .fgs-bg::after {
  opacity: 0.35;
}
.fgs--clean-landing .fgs-bg__spark,
.fgs--clean-landing .fgs-bg__ring,
.fgs--clean-site .fgs-bg__spark,
.fgs--clean-site .fgs-bg__ring {
  display: none;
}

/* Inner marketing pages share the same quiet shell as the landing */
.fgs--clean-site .fgs-nav {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.fgs--clean-site .fgs-h1,
.fgs--clean-site .fgs-h2,
.fgs--clean-site .fgc__title,
.fgs--clean-site .fgp__title,
.fgs--clean-site .fgx__title {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.fgs-hero--page {
  position: relative;
  min-height: auto;
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.fgs-hero--page::before {
  display: none;
}
.fgs-hero--page .fgs-hero__canvas {
  display: none !important;
}
.fgs-hero--page > .fgs-container {
  position: relative;
  z-index: 1;
}
.fgs-hero--page .fgs-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.fgs-hero--page .fgs-h1 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
  font-size: clamp(22px, 2.4vw, 32px);
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  overflow: visible;
}
.fgs-hero--page .fgs-lead {
  margin-left: auto;
  margin-right: auto;
  margin-top: 12px;
  font-size: clamp(13.5px, 1.35vw, 16px);
  line-height: 1.45;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .fgs-hero--page .fgs-h1,
  .fgs-hero--page .fgs-lead {
    white-space: normal;
    width: auto;
    text-wrap: balance;
  }
  .fgs-hero--page .fgs-h1 {
    font-size: clamp(22px, 5.5vw, 28px);
  }
  .fgs-hero--page .fgs-lead {
    font-size: 14px;
    max-width: 36rem;
  }
}
.fgs-hero--page .fgs-hero__cta {
  justify-content: center;
}


.fgs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fgs-hero--clean {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 820px);
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(42% 36% at 50% 18%, rgba(10, 108, 255, 0.14), transparent 70%),
    radial-gradient(28% 24% at 78% 30%, rgba(68, 209, 253, 0.1), transparent 72%),
    linear-gradient(180deg, #f5f4f1 0%, #ffffff 52%);
}
.fgs-hero--clean::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 12, 10, 0.055) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}
.fgs-hero__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(720px, 88vw);
  height: 280px;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, rgba(10, 108, 255, 0.12), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}
.fgs-hero--clean > .fgs-container {
  position: relative;
  z-index: 1;
}
.fgs-hero--clean .fgs-hero__inner {
  max-width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fgs-clean-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 780;
  font-size: clamp(46px, 7.2vw, 76px);
  letter-spacing: -0.052em;
  line-height: 1.02;
  color: var(--text-strong);
  text-wrap: balance;
  animation: fgs-hero-in 520ms var(--ease) both;
}
.fgs-clean-title__accent {
  background: linear-gradient(105deg, #0a6cff 0%, #44d1fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fgs-clean-lead {
  display: none;
}
@keyframes fgs-hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Primary mode — Flutter-only product badge */
.fgs-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.fgs-modes--single {
  margin-left: auto;
  margin-right: auto;
}
.fgs-modes__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-blue, #0a6cff) 28%, #e6e4df);
  background: #fff;
  color: var(--text-strong, #0d0c0a);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  cursor: default;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 24px -18px rgba(10, 108, 255, 0.28);
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}
.fgs-modes__btn .fgs-fi {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}
.fgs-modes__btn .fgs-fi svg {
  width: 14px;
  height: 14px;
}
.fgs-modes__ic {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.85;
}
.fgs-modes__ic svg {
  width: 100%;
  height: 100%;
}
.fgs-modes__btn.is-active {
  color: var(--text-strong, #0d0c0a);
  background: #fff;
  border-color: color-mix(in srgb, var(--brand-blue, #0a6cff) 45%, #e6e4df);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 28px -16px rgba(10, 108, 255, 0.35);
}
.fgs-modes__btn.is-active .fgs-modes__ic {
  opacity: 1;
}

/* Chat inbox composer — clean Claude / ChatGPT style */
.fgs-prompt {
  width: 100%;
  margin-top: 34px;
  max-width: 720px;
  animation: fgs-hero-in 560ms var(--ease) 80ms both;
}
.fgs-prompt__box,
.fgs-inbox__shell {
  width: 100%;
  padding: 20px 20px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 12, 10, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(13, 18, 30, 0.04),
    0 28px 56px -28px rgba(13, 24, 50, 0.28);
  text-align: left;
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}
.fgs-prompt__box.is-dragover {
  border-color: color-mix(in srgb, var(--brand-blue) 45%, rgba(13, 12, 10, 0.1));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--brand-blue) 12%, transparent),
    0 28px 56px -24px rgba(10, 108, 255, 0.22);
}
.fgs-prompt__box:focus-within {
  border-color: color-mix(in srgb, var(--brand-blue) 40%, rgba(13, 12, 10, 0.1));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--brand-blue) 11%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -28px rgba(10, 108, 255, 0.2);
}
:root[data-theme="dark"] .fgs-prompt__box {
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fgs-prompt__box {
    background: var(--surface);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.55);
  }
}
.fgs-prompt__input {
  display: block;
  width: 100%;
  min-height: 78px;
  max-height: 200px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.016em;
  padding: 2px 4px 12px;
  field-sizing: content;
}
.fgs-prompt__input::placeholder {
  color: #9b9890;
}
.fgs-prompt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  border-top: 0;
}
.fgs-prompt__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fgs-prompt__hint {
  font-size: 13px;
  color: #8f8b83;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fgs-prompt__hint[hidden] {
  display: none !important;
}

/* Attachment chips + popover */
.fgs-attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.fgs-attach-chips[hidden] {
  display: none !important;
}
.fgs-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-strong) 4%, var(--surface));
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
}
.fgs-attach-chip__thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  flex: 0 0 auto;
}
.fgs-attach-chip__glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.fgs-attach-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fgs-attach-chip__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.fgs-attach-chip__type {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-soft);
}
.fgs-attach-chip__remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}
.fgs-attach-chip__remove:hover {
  background: color-mix(in srgb, var(--text-strong) 8%, transparent);
  color: var(--text-strong);
}
.fgs-attach {
  position: relative;
  flex: 0 0 auto;
}
.fgs-attach__btn {
  appearance: none;
  min-height: 36px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #6f6c66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease);
}
.fgs-attach__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}
.fgs-attach__label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: inherit;
}
.fgs-attach__btn:hover,
.fgs-attach__btn[aria-expanded="true"] {
  background: rgba(13, 12, 10, 0.05);
  color: var(--text-strong);
}
.fgs-attach__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(280px, calc(100vw - 48px));
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e6e4df;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 32px -18px rgba(13, 12, 10, 0.28);
  text-align: left;
  animation: fgsAttachIn 160ms var(--ease) both;
}
.fgs-attach__menu[hidden] {
  display: none !important;
}
@keyframes fgsAttachIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fgs-attach__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 140ms var(--ease);
}
.fgs-attach__item:hover {
  background: color-mix(in srgb, var(--brand-blue) 7%, transparent);
}
/* Plain glyph only — no 3D box tiles in this menu */
.fgs-attach__glyph {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue, #0a6cff);
}
.fgs-attach__glyph svg {
  width: 16px;
  height: 16px;
  max-width: none;
  display: block;
}
.fgs-attach__item[data-guest-attach-action="figma"] .fgs-attach__glyph {
  color: #a259ff;
}
.fgs-attach__item[data-guest-attach-action="github"] .fgs-attach__glyph {
  color: #24292f;
}
.fgs-attach__copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  line-height: 1.25;
}
.fgs-attach__item-ic {
  display: none;
}
.fgs-attach__item strong {
  display: inline;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.fgs-attach__item em {
  display: inline;
  margin: 0;
  font-size: 11px;
  font-style: normal;
  color: var(--text-soft);
  font-weight: 500;
}

.fgs-link-dialog {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 21;
  width: min(340px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 5%, transparent),
    0 18px 40px -18px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.fgs-link-dialog[hidden] {
  display: none !important;
}
.fgs-link-dialog__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-strong);
}
.fgs-link-dialog__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-strong) 3%, var(--surface));
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}
.fgs-link-dialog__input:focus {
  border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 12%, transparent);
}
.fgs-link-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.fgs-link-dialog__cancel,
.fgs-link-dialog__add {
  appearance: none;
  border-radius: 9px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 7px 12px;
  cursor: pointer;
}
.fgs-link-dialog__cancel {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}
.fgs-link-dialog__add {
  border: 0;
  background: var(--brand-blue);
  color: #fff;
}

/* GitHub / ZIP import modal */
.fgs-import-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.fgs-import-modal[hidden] {
  display: none !important;
}
.fgs-import-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fgs-import-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.fgs-import-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}
.fgs-import-modal__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.fgs-import-modal__lead {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.fgs-import-modal__close {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.fgs-import-modal__close:hover {
  background: color-mix(in srgb, var(--text-strong) 8%, transparent);
  color: var(--text-strong);
}
.fgs-import-modal__body {
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fgs-import-modal__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-muted);
}
.fgs-import-modal__label span {
  font-weight: 500;
  color: var(--text-soft);
}
.fgs-import-modal__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--text-strong) 3%, var(--surface));
  color: var(--text-strong);
  font: inherit;
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
}
.fgs-import-modal__input:focus {
  border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 12%, transparent);
}
.fgs-import-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .fgs-import-modal__row {
    grid-template-columns: 1fr;
  }
}
.fgs-import-modal__connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-strong) 3%, transparent);
}
.fgs-import-modal__status {
  font-size: 12.5px;
  color: var(--text-muted);
  min-width: 0;
}
.fgs-import-modal__status.is-ok {
  color: color-mix(in srgb, #22c55e 75%, var(--text-strong));
}
.fgs-import-modal__status.is-wait {
  color: var(--brand-blue);
}
.fgs-import-modal__error {
  margin: 0;
  font-size: 12.5px;
  color: #ef4444;
}
.fgs-import-modal__error[hidden] {
  display: none !important;
}
.fgs-import-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 18px;
}
.fgs-import-modal__primary,
.fgs-import-modal__secondary {
  appearance: none;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 14px;
  cursor: pointer;
}
.fgs-import-modal__secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}
.fgs-import-modal__primary {
  border: 0;
  background: var(--brand-blue);
  color: #fff;
}
.fgs-import-modal__primary:disabled,
.fgs-import-modal__secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Recent projects — own section under the hero, full viewport width */
.fgs-recent-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(16px, 2.2vw, 32px) clamp(28px, 4vw, 48px);
  box-sizing: border-box;
  text-align: left;
}
.fgs-recent {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: clamp(8px, 1.5vw, 16px);
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  text-align: left;
}
.fgs-recent[hidden] {
  display: none !important;
}
.fgs-recent-wrap:has(.fgs-recent[hidden]) {
  display: none;
}
.fgs-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fgs-recent__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fgs-recent__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.fgs-recent__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
}
.fgs-recent__count[hidden] {
  display: none !important;
}
.fgs-recent__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}
.fgs-recent__all:hover {
  text-decoration: underline;
}
.fgs-recent__row {
  display: grid;
  /* Match Projects gallery card width (phone + body). */
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}
.fgs-recent__card {
  --fgs-card-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--brand-blue) 16%);
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 90%, #fff 5%),
      color-mix(in srgb, var(--surface) 94%, var(--brand-blue) 5%)
    );
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 16px 36px -28px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 200ms var(--fgs-card-ease),
    box-shadow 200ms var(--fgs-card-ease),
    transform 200ms var(--fgs-card-ease);
}
.fgs-recent__card:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 46%, var(--border));
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 14%, transparent) inset,
    0 0 0 1px color-mix(in srgb, var(--brand-blue) 14%, transparent),
    0 28px 56px -22px color-mix(in srgb, var(--brand-blue) 40%, rgba(0, 0, 0, 0.55));
}
.fgs-recent__thumb {
  aspect-ratio: 4 / 5;
  flex: none;
  min-height: 0;
  position: relative;
  overflow: hidden;
  /* Checkerboard for framed icons / glyphs (Projects tone). */
  background-color: #f4f4f5;
  background-image:
    linear-gradient(45deg, #e4e4e7 25%, transparent 25%, transparent 75%, #e4e4e7 75%, #e4e4e7),
    linear-gradient(45deg, #e4e4e7 25%, transparent 25%, transparent 75%, #e4e4e7 75%, #e4e4e7);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}
.fgs-recent__thumb.is-bleed {
  background-color: #0b0c10;
  background-image:
    radial-gradient(80% 70% at 50% 18%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 70%),
    linear-gradient(160deg, #14161c 0%, #0b0c10 55%, #090a0e 100%);
}
.fgs-recent__preview-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px 16px 22px;
  z-index: 1;
}
.fgs-recent__thumb.is-bleed .fgs-recent__preview-stage {
  padding: 0;
}
.fgs-recent__device {
  position: relative;
  width: min(58%, 118px);
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  padding: 5px;
  background: linear-gradient(145deg, #6a7180 0%, #2a303a 45%, #12161d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 36px -14px rgba(0, 0, 0, 0.7),
    0 0 40px -16px color-mix(in srgb, var(--brand-blue) 40%, transparent);
  transition: transform 400ms var(--fgs-card-ease);
}
.fgs-recent__device::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 28%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070c;
  z-index: 2;
}
.fgs-recent__thumb.is-bleed .fgs-recent__device {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.fgs-recent__thumb.is-bleed .fgs-recent__device::before {
  display: none;
}
.fgs-recent__device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #0a0a0c;
}
.fgs-recent__thumb.is-bleed .fgs-recent__device-screen {
  border-radius: 0;
}
.fgs-recent__brand-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  opacity: 0.22;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: opacity 200ms var(--fgs-card-ease);
}
.fgs-recent__thumb.has-cover[data-cover-kind="screen"] .fgs-recent__brand-mark,
.fgs-recent__thumb.has-cover[data-cover-kind="image"] .fgs-recent__brand-mark,
.fgs-recent__thumb.has-cover[data-cover-kind="showcase"] .fgs-recent__brand-mark {
  opacity: 0;
}
.fgs-recent__thumb-media,
.fgs-recent__glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fgs-recent__thumb-media {
  transition: transform 420ms var(--fgs-card-ease);
}
.fgs-recent__device-screen {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #1a2030 0%, #0c1018 100%);
}
.fgs-recent__thumb.has-cover[data-cover-kind="icon"] .fgs-recent__device-screen,
.fgs-recent__thumb.has-cover[data-cover-kind="logo"] .fgs-recent__device-screen,
.fgs-recent__thumb.has-cover[data-cover-kind="avatar"] .fgs-recent__device-screen {
  background:
    linear-gradient(45deg, #e8eaef 25%, transparent 25%, transparent 75%, #e8eaef 75%, #e8eaef),
    linear-gradient(45deg, #e8eaef 25%, transparent 25%, transparent 75%, #e8eaef 75%, #e8eaef);
  background-color: #f4f5f7;
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
/* Avatar / custom logo: soft tile inside phone. Screens fill the whole device. */
.fgs-recent__thumb.has-cover[data-cover-kind="avatar"] .fgs-recent__thumb-media,
.fgs-recent__thumb.has-cover[data-cover-kind="logo"] .fgs-recent__thumb-media {
  object-fit: contain;
  object-position: center;
  padding: 14%;
  border-radius: 22%;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
.fgs-recent__thumb.has-cover[data-cover-kind="icon"] .fgs-recent__thumb-media,
.fgs-recent__thumb.has-cover[data-cover-kind="image"] .fgs-recent__thumb-media,
.fgs-recent__thumb.has-cover[data-cover-kind="showcase"] .fgs-recent__thumb-media,
.fgs-recent__thumb.has-cover[data-cover-kind="screen"] .fgs-recent__thumb-media {
  object-fit: cover;
  object-position: center top;
  padding: 0;
  border-radius: 0;
  filter: none;
}
/* Icons that still slip through: fill phone, not a tiny center chip. */
.fgs-recent__thumb.has-cover[data-cover-kind="icon"] .fgs-recent__device-screen {
  background: #0a0a0c;
}
.fgs-recent__thumb.is-framed.has-cover[data-cover-kind="screen"] .fgs-recent__device-screen,
.fgs-recent__thumb.is-framed.has-cover[data-cover-kind="image"] .fgs-recent__device-screen {
  background: #0a0a0c;
}
.fgs-recent__glyph {
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #eef4ff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-blue) 28%, #1a1f2a), #12151c);
}
.fgs-recent__card:hover .fgs-recent__device {
  transform: translateY(-4px) scale(1.04);
}
.fgs-recent__card:hover .fgs-recent__thumb.is-bleed .fgs-recent__thumb-media {
  transform: scale(1.06);
}
.fgs-recent__status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 52px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #fff;
  background: color-mix(in srgb, #0b0b0d 58%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fgs-recent__status-pill--succeeded,
.fgs-recent__status-pill--published {
  color: #e8fff2;
  background: color-mix(in srgb, #22c55e 46%, #0b0b0d 54%);
  border-color: color-mix(in srgb, #22c55e 42%, transparent);
}
.fgs-recent__status-pill--running,
.fgs-recent__status-pill--queued {
  color: #dcebff;
  background: color-mix(in srgb, var(--brand-blue) 48%, #0b0b0d 52%);
  border-color: color-mix(in srgb, var(--brand-blue) 48%, transparent);
}
.fgs-recent__status-pill--awaiting_input {
  color: #fff4df;
  background: color-mix(in srgb, #f59e0b 52%, #0b0b0d 48%);
  border-color: color-mix(in srgb, #f59e0b 45%, transparent);
}
.fgs-recent__status-pill--failed {
  color: #ffe8e6;
  background: color-mix(in srgb, #ef4444 48%, #0b0b0d 52%);
  border-color: color-mix(in srgb, #ef4444 42%, transparent);
}
.fgs-recent__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 70%, transparent) 0%,
      color-mix(in srgb, var(--surface) 94%, transparent) 100%
    );
}
.fgs-recent__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #2348b8;
  background: #e8efff;
  border: 1px solid rgba(35, 72, 184, 0.18);
}
.fgs-recent__name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fgs-recent__lead {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fgs-recent__foot {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fgs-recent__foot--succeeded,
.fgs-recent__foot--published {
  color: #3ecf8e;
}
.fgs-recent__foot--failed {
  color: #f87171;
}
.fgs-recent__foot--running,
.fgs-recent__foot--queued {
  color: color-mix(in srgb, var(--brand-blue) 80%, #fff);
}
@media (max-width: 640px) {
  .fgs-recent__row {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 12px;
  }
}
.fgs-prompt__go {
  appearance: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(160deg, #3b9bff 0%, #0a6cff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 20px -10px rgba(10, 108, 255, 0.7);
  transition:
    background 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    opacity 160ms var(--ease);
}
.fgs-prompt__go-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.fgs-prompt__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: fgs-clean-spin 0.7s linear infinite;
}
.fgs-prompt__spinner[hidden] {
  display: none !important;
}
/* Only one state visible — never arrow + spinner together */
.fgs-prompt__go.is-building .fgs-prompt__go-icon {
  display: none !important;
}
.fgs-prompt__go.is-building .fgs-prompt__spinner {
  display: block !important;
}
.fgs-prompt__go:hover {
  background: linear-gradient(160deg, #4aa4ff 0%, #0858d6 100%);
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 14px 24px -10px rgba(10, 108, 255, 0.78);
}
.fgs-prompt__go:active {
  transform: translateY(0) scale(0.97);
}
.fgs-prompt__go:disabled {
  cursor: progress;
  opacity: 0.85;
}
.fgs-prompt__status {
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.fgs-prompt__status[hidden] {
  display: none !important;
}

/* Inspiration block under the prompt */
.fgs-inspire {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fgs-hero-in 600ms var(--ease) 140ms both;
}

/* Category tiles — full-width row under example chips */
.fgs-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  width: 100%;
  padding-bottom: 0;
}
.fgs-tiles::-webkit-scrollbar {
  display: none;
}
.fgs-tiles[hidden] {
  display: none !important;
}
.fgs-tile {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  width: 100%;
  padding: 20px 12px 18px;
  border-radius: 20px;
  border: 1px solid #e6e4df;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 20px -16px rgba(13, 12, 10, 0.18);
  transition:
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    background 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}
.fgs-tile .fgs-fi {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
}
.fgs-tile .fgs-fi svg {
  width: 24px;
  height: 24px;
}
.fgs-tile__ic {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--text-soft);
  transition: color 160ms var(--ease);
}
.fgs-tile__ic svg {
  width: 100%;
  height: 100%;
}
.fgs-tile:hover,
.fgs-tile.is-active {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--brand-blue) 35%, #e6e4df);
  background: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 28px -16px rgba(10, 108, 255, 0.28);
}
.fgs-tile:hover .fgs-fi,
.fgs-tile.is-active .fgs-fi {
  transform: rotateX(6deg) rotateY(-4deg) translateY(-2px);
}
.fgs-tile:hover .fgs-tile__ic,
.fgs-tile.is-active .fgs-tile__ic {
  color: var(--brand-blue);
}

/* Example prompts — sit above category tiles */
.fgs-examples {
  margin-top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.fgs-examples__head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}
.fgs-examples__refresh {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6e4df;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 140ms var(--ease), background 140ms var(--ease), transform 200ms var(--ease), border-color 140ms var(--ease);
}
.fgs-examples__refresh svg {
  width: 15px;
  height: 15px;
}
.fgs-examples__refresh:hover {
  color: var(--brand-blue);
  border-color: color-mix(in srgb, var(--brand-blue) 35%, #e6e4df);
  background: #fff;
}
.fgs-examples__refresh.is-spinning {
  transform: rotate(180deg);
}
.fgs-examples__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.fgs-example-chip {
  appearance: none;
  border: 1px solid #e6e4df;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 16px 18px;
  min-height: 56px;
  border-radius: 18px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    border-color 140ms var(--ease),
    color 140ms var(--ease),
    background 140ms var(--ease),
    transform 140ms var(--ease),
    box-shadow 140ms var(--ease);
}
.fgs-example-chip:hover {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--brand-blue) 35%, #e6e4df);
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 22px -16px rgba(10, 108, 255, 0.28);
}

@keyframes fgs-clean-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .fgs-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fgs-examples__row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .fgs-hero--clean {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 32px);
  }
  .fgs-modes {
    justify-content: center;
  }
  .fgs-modes__btn {
    padding: 9px 14px 9px 11px;
    font-size: 12.5px;
  }
  .fgs-clean-title {
    font-size: clamp(34px, 9vw, 44px);
  }
  .fgs-prompt {
    margin-top: 22px;
    max-width: 100%;
  }
  .fgs-prompt__hint {
    display: none;
  }
  .fgs-attach__label {
    display: none;
  }
  .fgs-attach__btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .fgs-prompt__box,
  .fgs-inbox__shell {
    padding: 14px 14px 12px;
    border-radius: 22px;
  }
  .fgs-inspire {
    margin-top: 22px;
    gap: 14px;
  }
  .fgs-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .fgs-tile {
    min-height: 96px;
    padding: 14px 8px 12px;
    font-size: 13px;
  }
  .fgs-tile .fgs-fi {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .fgs-example-chip {
    font-size: 14px;
    min-height: 50px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fgs-clean-title,
  .fgs-prompt,
  .fgs-inspire,
  .fgs-prompt__go,
  .fgs-tile,
  .fgs-example-chip,
  .fgs-examples__refresh,
  .fgs-prompt__spinner {
    transition: none !important;
    animation: none !important;
  }
}
