/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 40%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 68px;
}

/* Grid texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Left: copy */
.hero-copy {
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-bright);
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.15);
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 24px;
  letter-spacing: .5px;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-bright), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.hero-actions .btn-ghost {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

/* Right: AI demo */
.ai-demo {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 520px;
  width: 100%;
}

.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ai-demo-header .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-demo-header .icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.ai-demo-header .label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

.ai-demo-header .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-bright);
  background: rgba(96,165,250,.1);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Chat bubbles */
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  animation: fadeInUp .6s ease both;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border-bottom-left-radius: 4px;
}

.chat-bubble .mention {
  color: var(--blue-bright);
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  border-bottom-left-radius: 4px;
  max-width: 85%;
  opacity: 0;
  transition: opacity .3s;
}

.typing-indicator.visible {
  opacity: 1;
}

.typing-indicator .dot-typing {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  animation: typing-bounce 1.4s infinite;
}

.typing-indicator .dot-typing:nth-child(2) { animation-delay: .2s; }
.typing-indicator .dot-typing:nth-child(3) { animation-delay: .4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo wall */
.hero-logos {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.hero-logos-label {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-logos-grid .logo-item {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
  letter-spacing: .5px;
  transition: var(--transition);
}

.hero-logos-grid .logo-item:hover {
  color: rgba(255,255,255,.45);
}

/* Trust badges */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--blue-bright);
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .ai-demo { max-width: 100%; }
  .hero-trust { justify-content: center; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 108px; padding-bottom: 60px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 14px; }
  .ai-demo { padding: 20px; }
  .hero-logos-grid { gap: 24px; }
}
