/* Homepage — floating entity composer aesthetic (brand colors) */

.home-page .background {
  background:
    radial-gradient(ellipse 90% 70% at 50% 15%, rgba(31, 142, 201, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 55%, rgba(72, 207, 206, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 88% 65%, rgba(255, 145, 0, 0.12), transparent 48%),
    linear-gradient(175deg, #e4f2f9 0%, var(--cream-mid) 42%, #faf6f0 100%);
}

.home-page .background::after {
  opacity: 0.15;
}

.home-page nav {
  border-bottom-color: transparent;
  background: transparent;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-page nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 62, 106, 0.05);
  z-index: -1;
}

.hero-entity {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.hero-entity::before {
  display: none;
}

.entity-stage {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.entity-intro {
  text-align: center;
  max-width: 680px;
}

.entity-intro .badge {
  margin-bottom: 20px;
}

.entity-headline {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 16px;
}

.entity-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
}

.entity-presence {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.92;
  flex-wrap: wrap;
  justify-content: center;
}

.entity-presence .logo-mark-card {
  width: 44px;
  height: 44px;
  border-radius: var(--card-radius-inner);
}

.entity-presence .logo-mark {
  width: 32px;
  height: 32px;
}

.entity-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--navy);
}

.entity-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.entity-voice {
  width: 100%;
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-voice-line {
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
}

.entity-voice-line--soft {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

.entity-suggestions {
  width: 100%;
  text-align: center;
}

.entity-suggestions-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.entity-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.entity-prompt {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(8, 62, 106, 0.1);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 4px 14px rgba(8, 62, 106, 0.06);
  backdrop-filter: blur(8px);
}

.entity-prompt:hover {
  background: #fff;
  color: var(--teal);
  border-color: rgba(72, 207, 206, 0.35);
  transform: translateY(-1px);
}

.entity-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(72, 207, 206, 0.25);
  animation: entityStatusPulse 2.5s ease-in-out infinite;
}

@keyframes entityStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(72, 207, 206, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(72, 207, 206, 0.08); }
}

.entity-composer {
  width: 100%;
  background: linear-gradient(165deg, var(--navy-deep) 0%, #062038 100%);
  border-radius: var(--card-radius);
  padding: 28px 36px 24px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 48px 96px -24px rgba(8, 62, 106, 0.45),
    0 24px 48px -16px rgba(31, 142, 201, 0.2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.entity-composer:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 56px 110px -20px rgba(8, 62, 106, 0.5),
    0 28px 56px -12px rgba(72, 207, 206, 0.22);
}

.entity-composer-message {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: center;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.2px;
  color: var(--text-muted);
}

.entity-input {
  width: 100%;
  min-height: 56px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.2px;
}

.entity-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.entity-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.entity-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.entity-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.entity-tool:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.entity-tool svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entity-tool-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 6px;
}

.entity-send {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--navy-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entity-send:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.entity-send--listening {
  background: var(--aqua);
  color: var(--navy-deep);
  box-shadow:
    0 0 0 4px rgba(72, 207, 206, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.2);
  animation: entitySendPulse 1.6s ease-in-out infinite;
}

.entity-send--unsupported {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes entitySendPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(72, 207, 206, 0.35),
      0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(72, 207, 206, 0.15),
      0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

.entity-send svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entity-hint {
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.6;
}

.entity-hint a {
  color: var(--teal);
  font-weight: 600;
}

.entity-hint a:hover {
  color: var(--orange);
}

.home-sign-in {
  min-height: auto;
  padding: 56px 0 88px;
  scroll-margin-top: 32px;
}

.home-page .footer {
  padding: 48px 0 56px;
  font-size: 13px;
}

@media (max-width: 850px) {
  .entity-input {
    min-height: 72px;
    font-size: 16px;
  }

  .entity-send {
    width: 46px;
    height: 46px;
  }

  .entity-headline {
    letter-spacing: -1.5px;
  }
}

@media (max-width: 480px) {
  .entity-headline {
    font-size: clamp(28px, 8vw, 36px);
  }
}
