/* ========== Base ========== */
body {
  background-color: #121212;
  color: #d4d4d4;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 115%;
  text-align: center;
  line-height: 1.6;
}

a {
  color: #ccc;             /* off-white link color */
  text-decoration: none;
}
a:hover { color: #fff; }

/* ========== Hero logo ========== */
img.logo {
  max-width: 100%;
  height: auto;
  margin: 2rem 0 1rem;
}
@media (max-width: 768px) {
  img.logo { max-width: 65%; } /* mobile: smaller hero logo */
}

/* ========== Chat area ========== */
.chat-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;            /* no clipping of borders */
  overflow: visible;
}

/* Desktop: single line, fixed height, borders fully visible */
#chat-container {
  width: 640px;
  max-width: 90%;
  background-color: #1e1e1e;
  color: #ffffffdd;
  padding: 0.6rem 1rem;      /* ensure borders not cropped */
  border: 1px solid #888;    /* darker grey border */
  border-radius: 8px;
  display: flex;
  align-items: center;        /* vertical center for one line */
  justify-content: flex-start;
  text-align: left;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 3.2rem;             /* one-line slot on desktop */
  overflow: hidden;
}

#typed-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: #ffffffee;
  flex: 1 1 auto;
  white-space: nowrap;        /* desktop: single line */
  text-overflow: ellipsis;
  overflow: hidden;
}

/* cursor */
#typed-text::after {
  content: '|';
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========== Button ========== */
.signup-button {
  margin-top: 2rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #f0f0f0;   /* brighter than prompt box */
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.signup-button:hover {
  background-color: #ffffff11;
  border-color: #ffffff88;
  transform: scale(1.05);
}

/* ========== Footer (single source of truth) ========== */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;   /* centered by default */
  gap: 1rem;
  width: 100%;
  margin: 4rem 0 2rem;
  text-align: center;
  font-size: 1rem;
  color: #888;
  flex-wrap: wrap;
}

/* Desktop-only: stick to bottom */
@media (min-width: 769px) {
  body.home .footer-bar {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== Logos bar ========== */
.image-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 4.8rem auto;
}
.image-bar img {
  max-height: 34px;
  width: auto;
  opacity: 0.8;
}

/* Animate once */
.animate-once { opacity: 0; animation: fadePulse 1.2s ease-out forwards; }
@keyframes fadePulse {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

/* ========== Tablet tweaks (preserve 2x3 grid) ========== */
@media (max-width: 768px) {
  .image-bar { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .image-bar img { max-height: 28px; }
}

/* ========== Mobile (<600px) gutters & mobile chat ========== */
@media (max-width: 600px) {
  /* Use dynamic viewport height for reliable bottom anchoring */
  body.home {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* Global side gutters */
  .hero-content,
  .image-bar,
  .footer-bar {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  /* Vertical spacing */
  .hero-content { gap: 2.4rem; padding-top: 0.8rem; }

  /* Prompt box: up to 3 lines on mobile, borders visible */
  #chat-container {
    height: 6.8rem;          /* adjust if you want 2.5–3 lines */
    padding: 0.6rem 1rem;
    align-items: flex-start;
    overflow: hidden;
  }
  #typed-text { white-space: normal; line-height: 1.35; }

  /* Button: same compact pill as desktop */
  .signup-button {
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
  }

  /* Logos: spaced from button, closer to footer */
  .image-bar {
    gap: 16px;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
  }
  .image-bar img { max-height: 22px; }

  /* Footer: pushed to bottom with safe margin */
  body.home .footer-bar {
    position: static !important;
    margin-top: auto;
    margin-bottom: 0.8rem;   /* adjust to taste */
    justify-content: center;
    text-align: center;
  }


}
