#login-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 16px 72px;
  box-sizing: border-box;
  position: relative;
}

#login-shell {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

#login-panel {
  width: 100%;
  padding: 24px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.2s ease;
  position: relative;
}

#login-panel input {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.login-status {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: rgba(37, 99, 235, 0.08);
  color: #2d5bd3;
  font-size: 0.95rem;
  line-height: 1.4;
  display: none;
}

.login-status.visible {
  display: block;
}

.login-error {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: rgba(220, 38, 38, 0.08);
  color: #d73737;
  font-size: 0.95rem;
  line-height: 1.4;
  display: none;
}

.login-error.visible {
  display: block;
}

.login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.login-intro-prompt {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #1e2a38;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.login-intro-prompt:hover,
.login-intro-prompt:focus-visible {
  color: #0056d6;
  transform: translateX(-50%) translateY(-4px);
}

.login-intro-arrow {
  font-size: 40px;
  font-weight: 700;
  text-shadow: 0 0 1px #1e2a38;
  animation: bounce-arrow 1.6s ease-in-out infinite;
  color: inherit;
}

.login-intro-text {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: inherit;
}

#jamtalk-overview {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px;
  background: linear-gradient(140deg, #e7f0ff 0%, #f8fbff 45%, #ffffff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jamtalk-overview::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.22), transparent 65%);
  top: -220px;
  right: -140px;
  transform: rotate(12deg);
  z-index: 0;
}

#jamtalk-overview::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 70% 70%, rgba(93, 135, 255, 0.18), transparent 72%);
  bottom: -140px;
  left: -120px;
  z-index: 0;
}

.overview-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  text-align: left;
  color: #1e2a38;
}

.overview-inner h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.overview-inner p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334561;
}

.jamtalk-demo {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.jamtalk-data-proof {
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.14), rgba(255, 255, 255, 0.95));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.jamtalk-data-proof h3 {
  margin: 0 0 24px;
  font-size: 1.45rem;
  color: #1e2a38;
  letter-spacing: -0.01em;
}

 .data-points {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 28px;
 }
 
 .data-sources {
   display: flex;
   gap: 18px;
   width: 100%;
   max-width: 520px;
   justify-content: center;
 }
 
 .data-card {
   background: rgba(255, 255, 255, 0.86);
   border-radius: 18px;
   padding: 20px 22px;
   box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
   display: flex;
   flex-direction: column;
   gap: 10px;
 }
 
 .data-card.source {
   flex: 1 1 0;
   min-width: 220px;
 }
 
 .data-card .metric {
   font-size: 1.4rem;
   font-weight: 700;
   color: #0056d6;
   letter-spacing: -0.01em;
 }
 
 .data-card.result {
   background: rgba(255, 255, 255, 0.96);
   border-radius: 20px;
   padding: 24px;
   box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.18), 0 18px 40px rgba(15, 23, 42, 0.12);
   align-items: flex-start;
   gap: 12px;
   max-width: 520px;
   width: 100%;
 }
 
 .data-card .metric.highlight {
   color: #0f172a;
   font-size: 1.5rem;
 }
 
 .data-card p {
   margin: 0;
   color: #334561;
   line-height: 1.6;
 }
 
.data-flow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px;
  max-width: 520px;
}

.data-flow::before {
  content: "";
  position: absolute;
   top: 0;
   bottom: 16px;
   width: 2px;
   left: 50%;
   transform: translateX(-50%);
   background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0));
   z-index: 0;
 }
 
 .data-flow::after {
   content: "";
   position: absolute;
   bottom: 0;
   width: 0;
   height: 0;
   left: 50%;
   transform: translateX(-50%);
   border-left: 8px solid transparent;
   border-right: 8px solid transparent;
   border-top: 10px solid rgba(0, 123, 255, 0.4);
   z-index: 0;
 }
 
 .flow-chip {
   position: relative;
   z-index: 1;
   background: rgba(0, 123, 255, 0.12);
   color: #0056d6;
   font-size: 0.85rem;
   font-weight: 600;
   padding: 8px 18px;
   border-radius: 999px;
   letter-spacing: 0.05em;
   text-transform: uppercase;
 }

.jamtalk-data-proof .caption {
  margin: 26px 0 0;
  font-size: 0.95rem;
  color: #44546f;
}

.data-summary {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.data-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.16);
  color: #1e2a38;
}

.data-chip .metric {
  font-weight: 700;
  font-size: 1rem;
  color: #0056d6;
}

.data-chip p {
  margin: 0;
  font-size: 0.9rem;
  color: #334561;
}

.jamtalk-proof {
  margin-top: 48px;
  padding: 34px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jamtalk-proof h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: #1e2a38;
  letter-spacing: -0.01em;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
}

.proof-card {
  padding: 20px 22px;
  background: linear-gradient(145deg, rgba(0, 123, 255, 0.12), rgba(255, 255, 255, 0.95));
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0056d6;
}

.proof-card p {
  margin: 0;
  color: #334561;
  line-height: 1.6;
  font-size: 0.95rem;
}

.proof-note {
  margin: 0;
  align-self: flex-start;
  font-size: 0.46rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.3);
  text-align: left;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.7;
}

.jamtalk-feedback {
  margin-top: 48px;
  padding: 34px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(0, 123, 255, 0.1));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #1e2a38;
}

.jamtalk-feedback h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.feedback-content p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #334561;
}

.feedback-content p strong {
  color: #0056d6;
}

.feedback-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feedback-highlights li {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  font-size: 0.96rem;
  line-height: 1.7;
  color: #304360;
}

.feedback-highlights li span {
  display: inline-block;
  font-weight: 700;
  color: #0056d6;
  margin-right: 8px;
}

.jamtalk-cta {
  margin-top: 48px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f7bff, #4f9dff);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(15, 123, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 123, 255, 0.3);
}

.chat-bubble {
  opacity: 0;
  transform: translateY(18px);
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  position: relative;
}

.chat-bubble .sender {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.chat-bubble.user {
  margin-left: auto;
  background: #eef4ff;
  border-radius: 16px 16px 4px 16px;
}

.chat-bubble.bot {
  margin-right: auto;
  border-radius: 16px 16px 16px 4px;
}

.chat-bubble.bot.highlight {
  border: 1px solid rgba(0, 123, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.1), rgba(255, 255, 255, 0.95));
}

.chat-bubble p {
  margin: 0;
  color: #1e2a38;
  line-height: 1.6;
}

.chat-bubble code {
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92rem;
}

.chat-bubble:nth-child(1) {
}

.chat-bubble:nth-child(2) {
}

.chat-bubble:nth-child(3) {
}

.chat-bubble:nth-child(4) {
}

.jamtalk-demo.is-active .chat-bubble {
  animation: chat-bubble-in 0.9s ease forwards;
}

.jamtalk-demo.is-active .chat-bubble:nth-child(1) {
  animation-delay: 0.2s;
}

.jamtalk-demo.is-active .chat-bubble:nth-child(2) {
  animation-delay: 1.2s;
}

.jamtalk-demo.is-active .chat-bubble:nth-child(3) {
  animation-delay: 2.3s;
}

.jamtalk-demo.is-active .chat-bubble:nth-child(4) {
  animation-delay: 3.5s;
}

@keyframes chat-bubble-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 4px;
  min-width: 100px;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background-color: #007bff;
  color: white;
}

.btn.secondary {
  background-color: white;
  color: #007bff;
  border: 1px solid #007bff;
}

/* 데모 링크 */
#demo-link {
  position: absolute;
  top: 100%;        /* 👈 박스의 바깥 아랫면에 붙게 */
  right: 0;         /* 👈 박스 우측 라인과 딱 맞게 */
  margin-top: 8px;  /* 👈 살짝 간격 */
  font-size: 13px;
}

#demo-link a {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

#demo-link a:hover {
  text-decoration: underline;
}

#login-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #1e2a38;
  font-weight: 600;
}

#login-spinner .spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #cfd9ea;
  border-top-color: #007bff;
  animation: spin 0.8s linear infinite;
}

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

@keyframes bounce-arrow {
  0%, 100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
}

body.checking-session #login-panel {
  opacity: 0;
  pointer-events: none;
}

body.checking-session #login-shell,
body.checking-session #login-hero {
  opacity: 0;
  pointer-events: none;
}

body.checking-session #login-spinner {
  display: flex;
}

@media (max-width: 768px) {
  #login-hero {
    padding: 80px 16px 60px;
  }

  #login-shell {
    width: 100%;
    max-width: 420px;
  }

  #login-panel {
    padding: 16px;                 /* 여백 축소 */
    font-size: 14px;               /* 전체 글자 크기 약간 축소 */
  }

  #login-panel input {
    font-size: 15px;
    padding: 8px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 80px;
  }

  #demo-link {
    font-size: 12px;
  }

  #jamtalk-overview {
    min-height: 100vh;
    padding: 120px 16px;
    align-items: flex-start;
  }

  .login-intro-prompt {
    bottom: 20px;
  }

  .overview-inner {
    padding: 40px 32px;
    border-radius: 20px;
  }

  .overview-inner h2 {
    font-size: 1.8rem;
  }

  .overview-inner p {
    font-size: 1rem;
  }

  .jamtalk-demo {
    padding: 20px;
    gap: 14px;
  }

  .jamtalk-data-proof {
    padding: 28px 24px;
    margin-top: 40px;
  }

  .data-points {
    gap: 22px;
  }

  .data-sources {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .data-card {
    padding: 18px 20px;
  }

  .data-flow {
    width: auto;
    padding: 28px 0 24px;
  }

  .flow-chip {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .jamtalk-proof {
    padding: 26px 22px;
    margin-top: 32px;
  }
  
  .proof-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .jamtalk-feedback {
    padding: 26px 22px;
    margin-top: 32px;
  }

  .feedback-highlights {
    gap: 12px;
  }

  .feedback-highlights li {
    font-size: 0.94rem;
    padding: 14px 16px;
  }

  .jamtalk-cta {
    margin-top: 36px;
  }

  .cta-button {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 400px) {
  .login-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    width: 100%; /* 버튼 한 줄씩 */
  }

  .login-intro-prompt {
    bottom: 16px;
  }

  .overview-inner {
    padding: 32px 24px;
  }

  .overview-inner h2 {
    font-size: 1.6rem;
  }

  .overview-inner p {
    font-size: 0.96rem;
  }

  .jamtalk-demo {
    padding: 18px;
  }

  .jamtalk-data-proof {
    padding: 24px 20px;
  }

  .flow-chip {
    font-size: 0.78rem;
  }
}
