/* ==========================================================================
   ARIA Hero Chat — Inline demo widget for marketing pages
   ========================================================================== */

.aria-hero-section {
  padding: var(--space-20) 0;
  background: var(--bg-secondary, #0d1117);
  position: relative;
  overflow: hidden;
}

.aria-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(var(--brand-primary-rgb, 96, 165, 250), 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.aria-hero-section .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.aria-hero-section .section-eyebrow {
  color: var(--brand-primary, #60a5fa);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.aria-hero-section .section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 var(--space-4);
  text-align: center;
}

.aria-hero-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted, #94a3b8);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Chat window ---- */

.aria-hero-chat {
  background: var(--bg-card, #0b1120);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.4));
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 560px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.aria-hero-chat--compact {
  height: 420px;
  max-width: 680px;
}

@media (max-width: 900px) {
  .aria-hero-chat {
    height: 460px;
    max-width: 100%;
  }

  .aria-hero-chat__header {
    padding: 10px 14px;
  }

  .aria-hero-chat__messages {
    padding: 14px;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .aria-hero-chat {
    height: 420px;
    border-radius: 16px;
  }

  .aria-hero-chat__messages {
    padding: 10px 12px;
  }
}

/* Header */
.aria-hero-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--bg-elevated, #1a2030);
  flex-shrink: 0;
}

.aria-hero-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-primary, #60a5fa) 0%,
    var(--brand-accent, #a78bfa) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.aria-hero-chat__title {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.aria-hero-chat__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  line-height: 1.2;
}

.aria-hero-chat__status {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 4px;
}

.aria-hero-chat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: aria-pulse 2s ease-in-out infinite;
}

@keyframes aria-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.aria-hero-chat__clear {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  display: flex;
  align-items: center;
}

.aria-hero-chat__clear:hover {
  color: var(--text-primary, #f1f5f9);
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

/* Messages */
.aria-hero-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.aria-hero-chat__messages::-webkit-scrollbar {
  width: 4px;
}

.aria-hero-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}

.aria-hero-chat__messages::-webkit-scrollbar-thumb {
  background: var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 2px;
}

/* Messages */
.aria-msg {
  display: flex;
  max-width: 80%;
}

.aria-msg--user {
  align-self: flex-end;
}

.aria-msg--assistant {
  align-self: flex-start;
}

.aria-msg__bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.aria-msg--user .aria-msg__bubble {
  background: var(--brand-primary, #60a5fa);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.aria-msg--assistant .aria-msg__bubble {
  background: var(--bg-elevated, #1a2030);
  color: var(--text-primary, #f1f5f9);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
  border-bottom-left-radius: 4px;
}

.aria-msg__bubble strong {
  color: var(--text-primary, #f1f5f9);
}
.aria-msg__bubble code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Typing indicator */
.aria-msg__bubble--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.aria-msg__bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted, #94a3b8);
  animation: aria-bounce 1.2s ease-in-out infinite;
}

.aria-msg__bubble--typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.aria-msg__bubble--typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes aria-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Suggestions */
.aria-hero-chat__suggestions {
  padding: 0 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.aria-suggestion-chip {
  background: var(--bg-elevated, #1a2030);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #94a3b8);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}

.aria-suggestion-chip:hover {
  border-color: var(--brand-primary, #60a5fa);
  color: var(--brand-primary, #60a5fa);
  background: rgba(var(--brand-primary-rgb, 96, 165, 250), 0.08);
}

/* Input row */
.aria-hero-chat__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--bg-elevated, #1a2030);
  flex-shrink: 0;
}

.aria-hero-chat__input {
  flex: 1;
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  color: var(--text-primary, #f1f5f9);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.aria-hero-chat__input::placeholder {
  color: var(--text-muted, #64748b);
}
.aria-hero-chat__input:focus {
  border-color: var(--brand-primary, #60a5fa);
}
.aria-hero-chat__input:disabled {
  opacity: 0.5;
}

.aria-hero-chat__send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-primary, #60a5fa);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.15s,
    transform 0.1s;
  flex-shrink: 0;
}

.aria-hero-chat__send:hover {
  opacity: 0.85;
}
.aria-hero-chat__send:active {
  transform: scale(0.95);
}
.aria-hero-chat__send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Disclaimer */
.aria-hero-chat__disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  text-align: center;
  padding: 6px 16px 10px;
  margin: 0;
  flex-shrink: 0;
}

.aria-hero-chat__disclaimer a {
  color: var(--brand-primary, #60a5fa);
  text-decoration: none;
}

.aria-hero-chat__disclaimer a:hover {
  text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aria-hero-chat__dot,
  .aria-msg__bubble--typing span {
    animation: none;
  }

  .aria-persona-card {
    transition: none;
  }

  .aria-persona-card:hover {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .aria-hero-chat {
    height: 480px;
    border-radius: 12px;
  }
  .aria-hero-chat--compact {
    height: 380px;
  }
  .aria-msg {
    max-width: 92%;
  }
  .aria-suggestion-chip {
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   ARIA feature page — hero portrait + persona showcase (illustrations)
   ========================================================================== */

.aria-feature-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.aria-feature-hero-portrait {
  text-align: center;
}

.aria-feature-hero-portrait__ring {
  margin: 0 auto 1rem;
  max-width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.55) 0%,
    rgba(99, 102, 241, 0.4) 50%,
    rgba(56, 189, 248, 0.35) 100%
  );
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(34, 211, 238, 0.08);
}

.aria-feature-hero-portrait__ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.aria-feature-hero-portrait__caption {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #94a3b8);
}

.aria-feature-hero-screenshot {
  margin-bottom: 0;
}

/* Persona grid — ties illustrations to product areas */
.aria-persona-showcase .section-header {
  margin-bottom: 2.5rem;
}

.aria-persona-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.aria-persona-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #111827);
  border: 1px solid var(--border-primary, rgba(148, 163, 184, 0.2));
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.aria-persona-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.aria-persona-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at 50% 20%, rgba(34, 211, 238, 0.12), #070d18 55%);
  overflow: hidden;
}

.aria-persona-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -24px 40px rgba(0, 0, 0, 0.5);
}

.aria-persona-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.aria-persona-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.aria-persona-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #f1f5f9);
  letter-spacing: -0.02em;
}

.aria-persona-card__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  flex: 1;
}

.aria-persona-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(34, 211, 238, 0.95);
}

.aria-persona-card__tag i {
  font-size: 0.75rem;
  opacity: 0.9;
}

