/* Homepage-only Tiff hero and message launcher. */
.tiff-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 48px;
  border-bottom: 1px solid #252032;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(136, 65, 232, .15), transparent 59%),
    radial-gradient(ellipse at 82% 65%, rgba(92, 50, 170, .055), transparent 44%),
    #08090d;
}
.tiff-hero-inner { position: relative; max-width: 920px; text-align: center; }
.tiff-hero h1 {
  margin: 0 0 23px;
  color: #f5f5f5;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2.45rem, 6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-wrap: balance;
}
.tiff-chat-shell { width: min(100%, 750px); margin: 0 auto; text-align: left; }
.tiff-launch-form {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  border: 1px solid #35323b;
  border-radius: 26px;
  background: #202020;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .18);
  transition: border-color .18s, box-shadow .18s;
}
.tiff-launch-form:focus-within {
  border-color: #725995;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .2), 0 0 30px rgba(138, 71, 219, .1);
}
.tiff-launch-form textarea {
  display: block;
  width: 100%;
  min-height: 142px;
  max-height: 240px;
  resize: none;
  padding: 20px 24px 78px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
}
.tiff-launch-form textarea::placeholder { color: #aaa; opacity: 1; }
.tiff-launch-form button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #414141;
  color: #fff;
  cursor: pointer;
  transition: background-color .16s, transform .16s;
}
.tiff-launch-form button:hover { transform: translateY(-1px); background: #505050; }
.tiff-launch-form button svg { width: 26px; height: 26px; }
.tiff-launch-form :focus-visible { outline: 2px solid #c5a7ea; outline-offset: 4px; }
.tiff-chat-status { min-height: 0; margin: 0; color: #e2a6a6; font-size: .8rem; }
.tiff-chat-status:empty { display: none; }
.tiff-model-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 25px; color: #bca9d8; font-size: .82rem; }
.tiff-model-link:hover { color: #d5bcff; text-decoration: underline; }
@media (max-width: 700px) {
  .tiff-hero { padding: 34px 0 40px; }
  .tiff-hero h1 { margin-bottom: 21px; font-size: clamp(2.15rem, 8vw, 3.25rem); }
  .tiff-chat-shell { margin-top: 0; }
  .tiff-launch-form { min-height: 128px; border-radius: 22px; }
  .tiff-launch-form textarea { min-height: 126px; padding: 18px 18px 68px; font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .tiff-launch-form button { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .tiff-launch-form button svg { width: 24px; height: 24px; }
  .tiff-model-link { margin-top: 22px; font-size: .78rem; }
}
@media (max-width: 370px) {
  .tiff-hero h1 { font-size: clamp(2rem, 9vw, 2.25rem); line-height: 1.1; }
}
@media (prefers-reduced-motion: reduce) {
  .tiff-launch-form, .tiff-launch-form button { transition: none; }
}
