:root {
  color-scheme: dark;
  --elo-product-bg: #0f1c2e;
  --elo-product-bg-2: #13243a;
  --elo-product-blue: #1e6fae;
  --elo-product-blue-soft: #7fb6e6;
  --elo-product-text: #f6f9fc;
  --elo-product-muted: rgba(246, 249, 252, 0.64);
  --elo-product-line: rgba(127, 182, 230, 0.22);
  --elo-product-surface: rgba(19, 36, 58, 0.76);
  --elo-product-shadow: rgba(3, 10, 20, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: auto;
  background: #07111f;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--elo-product-text);
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(82, 130, 180, 0.24),
      transparent 34%
    ),
    linear-gradient(180deg, #07111f 0%, #0b1828 42%, #07111f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a,
button,
input {
  font: inherit;
}

.elo-product-top {
  position: fixed;
  top: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 34px);
  z-index: 10;
  background: transparent;
}

.elo-about-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(127, 182, 230, 0.14);
  border-radius: 999px;
  color: rgba(246, 249, 252, 0.9);
  background: rgba(19, 36, 58, 0.28);
  box-shadow: 0 8px 22px rgba(3, 10, 20, 0.08);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(18px);
}

.elo-product-shell {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(34px, 5vh, 58px) 22px clamp(26px, 5vh, 52px);
  background: transparent;
}

.elo-product-center {
  position: relative;
  width: min(1240px, 100%);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  transform: none;
}

.elo-product-center::before {
  position: absolute;
  inset: -120px -80px -100px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(127, 182, 230, 0.18), transparent 62%);
  content: "";
}

.elo-product-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: start;
  gap: 10px;
  color: var(--elo-product-text);
  text-decoration: none;
  text-align: left;
}

.elo-mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #2458d6, #7dd3fc, #8b5cf6, #2458d6);
  box-shadow: 0 0 28px rgba(125, 211, 252, 0.14);
}

.elo-mark::before {
  position: absolute;
  inset: 22%;
  border: 6px solid #071019;
  border-left-color: transparent;
  border-radius: 999px;
  content: "";
}

.elo-mark::after {
  position: absolute;
  right: 12%;
  bottom: 19%;
  width: 35%;
  height: 35%;
  border: 6px solid #071019;
  border-top-color: transparent;
  border-radius: 999px;
  content: "";
}

.elo-product-brand strong,
.elo-product-brand small {
  display: block;
}

.elo-brand-name {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2.05rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}

.elo-product-brand small {
  margin-top: 0;
  color: rgba(246, 249, 252, 0.68);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.2;
}

.elo-product-heading {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: clamp(10px, 2vh, 18px);
  text-align: center;
}

.elo-hero-title {
  min-height: 58px;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(245, 250, 255, 0.94);
  font-size: clamp(2.25rem, 3.6vw, 3.7rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-align: center;
}

.elo-product-heading p {
  margin: 6px 0 0;
  color: rgba(220, 234, 250, 0.62);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.elo-discovery-panel {
  width: min(1020px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: clamp(16px, 2.4vh, 24px);
  text-align: center;
}

.elo-discovery-panel p {
  max-width: 820px;
  margin: 0;
  color: rgba(236, 246, 255, 0.82);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.45;
}

.elo-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.elo-prompt-chips button,
.elo-capability-grid button {
  border: 1px solid rgba(127, 182, 230, 0.2);
  color: rgba(240, 248, 255, 0.92);
  background: rgba(19, 36, 58, 0.5);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.elo-prompt-chips button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
}

.elo-prompt-chips button:hover,
.elo-capability-grid button:hover {
  border-color: rgba(127, 182, 230, 0.46);
  background: rgba(30, 111, 174, 0.28);
  transform: translateY(-1px);
}

.elo-capability-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(16px, 2.5vh, 24px);
}

.elo-capability-grid article {
  min-height: 182px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(127, 182, 230, 0.18);
  border-radius: 18px;
  background: rgba(19, 36, 58, 0.46);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.elo-capability-grid strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.08rem;
  line-height: 1.25;
}

.elo-capability-grid span {
  color: rgba(220, 234, 250, 0.64);
  font-size: 0.98rem;
  line-height: 1.4;
}

.elo-capability-grid button {
  align-self: end;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
}

.elo-rotating-text {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.elo-rotating-text.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.elo-rotating-text strong,
.elo-highlight {
  font-weight: 300;
  background: linear-gradient(90deg, #ffffff, #77aaff, #8c6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.elo-attachment-preview {
  width: min(560px, calc(100vw - 32px));
  margin: 46px auto 18px;
  display: none;
}

.elo-attachment-preview.is-visible {
  display: flex;
  justify-content: center;
}

.elo-attachment-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(125, 170, 220, 0.22);
  border-radius: 18px;
  color: #eaf3ff;
  background: rgba(22, 39, 62, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.elo-attachment-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #8ec0ff;
  background: rgba(91, 151, 235, 0.18);
}

.elo-attachment-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elo-attachment-size {
  color: rgba(230, 241, 255, 0.62);
  font-size: 0.92rem;
}

.elo-attachment-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 210, 245, 0.12);
  border-radius: 999px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.elo-product-chat {
  width: min(1120px, 100%);
  margin: clamp(14px, 2.2vh, 20px) auto 0;
}

body:has(.elo-standalone-panel.is-chat-active) .elo-product-shell {
  padding-top: clamp(16px, 2vh, 24px);
}

.elo-product-chat:has(.elo-standalone-panel.is-chat-active) {
  margin-top: 12px;
}

.elo-product-chat .elo-widget,
.elo-product-chat .elo-standalone-widget {
  position: static;
  z-index: auto;
  width: 100%;
  margin: 0 auto;
}

.elo-product-chat .elo-standalone-panel {
  position: static;
  min-height: 124px;
  max-height: 146px;
  display: grid;
  grid-template-rows: auto;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(100, 155, 210, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(19, 36, 58, 0.9), rgba(15, 28, 46, 0.86));
  outline: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  width: 100%;
  backdrop-filter: blur(20px);
}

.elo-product-chat .elo-input-hint {
  display: none;
  margin: 0 18px 8px;
  color: rgba(220, 234, 250, 0.58);
  font-size: 0.94rem;
  line-height: 1.35;
}

.elo-product-chat .elo-standalone-panel:not(.is-chat-active) .elo-input-hint {
  display: block;
}

.elo-product-chat .elo-standalone-panel.is-chat-active {
  height: clamp(270px, 31vh, 340px);
  min-height: min(270px, calc(100svh - 340px));
  max-height: min(38vh, 360px);
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: 28px;
}

.elo-product-chat .elo-standalone-panel::before,
.elo-product-chat .elo-standalone-panel::after {
  display: none;
  content: none;
}

.elo-product-chat .elo-header,
.elo-product-chat .elo-standalone-actions,
.elo-product-chat .elo-context-suggestions,
.elo-product-chat .elo-tools {
  display: none;
}

.elo-product-chat .elo-tools-menu {
  display: none;
}

.elo-product-chat .elo-messages {
  max-height: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  scroll-behavior: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}

.elo-product-chat .elo-standalone-panel.is-chat-active .elo-messages {
  max-height: none;
  min-height: 0;
  padding: 12px 14px 6px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.elo-product-chat .elo-messages:empty {
  display: none;
}

.elo-product-chat .elo-footer {
  padding: 0;
  border: 0;
  background: transparent;
}

.elo-product-chat .elo-input-row {
  min-height: 82px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.elo-input-shell,
.elo-chat-input-shell,
.elo-input-wrapper {
  outline: none !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(100, 155, 210, 0.28) !important;
}

.elo-input-shell::before,
.elo-input-shell::after,
.elo-chat-input-shell::before,
.elo-chat-input-shell::after,
.elo-input-wrapper::before,
.elo-input-wrapper::after {
  display: none !important;
  content: none !important;
}

.elo-header,
.elo-topbar,
.elo-nav,
.elo-hero,
.elo-main {
  background: transparent !important;
}

.elo-product-chat .elo-input {
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  color: var(--elo-product-text);
  background: transparent;
  font-size: clamp(1.18rem, 1.9vw, 1.38rem);
  outline: 0;
}

.elo-product-chat .elo-attach-button {
  min-width: 58px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: rgba(202, 226, 250, 0.88);
  background: rgba(127, 182, 230, 0.055);
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

.elo-product-chat .elo-attach-button.is-attached {
  color: #9dccff;
  background: rgba(91, 151, 235, 0.12);
}

.elo-product-chat .elo-attachment-input {
  display: none;
}

.elo-product-chat .elo-attachment-status {
  min-height: 0;
  margin: 10px 14px 0;
  color: var(--elo-product-blue-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
}

.elo-product-chat .elo-attachment-status:empty {
  display: none;
}

.elo-product-chat .elo-input::placeholder {
  color: rgba(246, 249, 252, 0.46);
}

.elo-product-chat .elo-send-button {
  min-width: 104px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--elo-product-blue), var(--elo-product-blue-soft));
  box-shadow: 0 14px 32px rgba(30, 111, 174, 0.28);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.elo-product-chat .elo-send-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.elo-product-chat .elo-message {
  max-width: min(900px, 100%);
}

.elo-product-chat .elo-message.user {
  align-self: flex-end;
}

.elo-product-chat .elo-message-bubble {
  border: 1px solid rgba(127, 182, 230, 0.18);
  border-radius: 22px;
  color: var(--elo-product-text);
  background: rgba(19, 36, 58, 0.72);
  box-shadow: none;
  padding: 11px 14px;
  font-size: clamp(1.12rem, 1.45vw, 1.28rem);
  line-height: 1.5;
}


.elo-product-chat .elo-message.user .elo-message-bubble {
  color: #ffffff;
  border-color: rgba(127, 182, 230, 0.22);
  background: rgba(30, 111, 174, 0.26);
  font-weight: 650;
}

.elo-product-chat .elo-message.system .elo-message-bubble {
  color: var(--elo-product-text);
  border-color: rgba(127, 182, 230, 0.16);
  background: rgba(15, 28, 46, 0.64);
}

.elo-product-chat .elo-message.is-typing .elo-message-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  color: rgba(232, 243, 255, 0.78);
  background: rgba(19, 36, 58, 0.58);
}

.elo-product-chat .elo-typing-label {
  white-space: nowrap;
}

.elo-product-chat .elo-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.elo-product-chat .elo-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(127, 182, 230, 0.9);
  animation: eloTypingPulse 1s infinite ease-in-out;
}

.elo-product-chat .elo-typing-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.elo-product-chat .elo-typing-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes eloTypingPulse {
  0%,
  80%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .elo-product-top {
    top: 14px;
    right: 14px;
  }

  .elo-product-shell {
    align-items: start;
    justify-items: center;
    padding: 72px 12px 20px;
  }

  .elo-product-center {
    transform: none;
  }

  .elo-product-brand {
    gap: 6px;
  }

  .elo-mark {
    width: 54px;
    height: 54px;
  }

  .elo-mark::before,
  .elo-mark::after {
    border-width: 6px;
  }

  .elo-product-heading {
    margin-top: 22px;
  }

  .elo-hero-title {
    min-height: 52px;
    max-width: 16ch;
    font-size: clamp(2rem, 8.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .elo-product-heading p {
    font-size: 1.05rem;
  }

  body:has(.elo-standalone-panel.is-chat-active) .elo-discovery-panel,
  body:has(.elo-standalone-panel.is-chat-active) .elo-capability-grid {
    display: none;
  }

  .elo-discovery-panel {
    gap: 10px;
    margin-top: 16px;
  }

  .elo-prompt-chips {
    gap: 7px;
  }

  .elo-prompt-chips button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .elo-capability-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .elo-capability-grid article {
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .elo-capability-grid button {
    width: 100%;
  }

  .elo-attachment-preview {
    margin-top: 20px;
  }

  .elo-attachment-chip {
    border-radius: 16px;
  }

  .elo-attachment-name {
    max-width: 190px;
  }

  .elo-product-chat .elo-standalone-panel {
    min-height: 116px;
    max-height: 136px;
    padding: 8px;
    border-radius: 26px;
  }

  .elo-product-chat .elo-standalone-panel.is-chat-active {
    height: min(40vh, 340px);
    min-height: min(300px, calc(100svh - 300px));
    max-height: min(40vh, 340px);
    border-radius: 22px;
  }

  .elo-product-chat .elo-messages {
    max-height: 0;
    gap: 10px;
  }

  .elo-product-chat .elo-input-row {
    min-height: 68px;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
    border-radius: 999px;
  }

  .elo-product-chat .elo-input {
    height: 48px;
    font-size: 1.08rem;
  }

  .elo-product-chat .elo-message-bubble {
    padding: 10px 12px;
    font-size: 1.06rem;
    line-height: 1.48;
  }

  .elo-product-chat .elo-send-button {
    min-width: 82px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.96rem;
  }

  .elo-product-chat .elo-attach-button {
    min-width: 50px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .elo-product-chat .elo-attachment-status {
    margin: 8px 10px 0;
    font-size: 0.8rem;
  }
}
