/* ============================================================
   Meet Dilly AI, landing-page section
   Left: animated dilly face on a navy gradient with a soft cyan ring.
   Right: real chat sample + 3 proof stats.
   ============================================================ */

.meet-dilly { background: #050912; }

.meet-dilly-grid {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meet-dilly-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.meet-dilly-glow {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: 760px;
  height: 60vw;
  max-height: 760px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: md-glow-drift 14s ease-in-out infinite alternate;
}

@keyframes md-glow-drift {
  0%   { transform: translate(-50%, -50%) translate(-20px, -10px); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) translate(30px, 20px);   opacity: 1; }
}

.meet-dilly-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
}

@media (max-width: 900px) {
  .meet-dilly-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── LEFT: Face column ─────────────────────────────────── */
.meet-dilly-face-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.meet-dilly-face-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 36vw, 420px);
  height: clamp(280px, 36vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: md-ring-pulse 4.5s ease-in-out infinite;
}

@keyframes md-ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

#md-face-circle {
  position: relative;
  z-index: 1;
  width: clamp(220px, 30vw, 340px);
  height: clamp(220px, 30vw, 340px);
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 8px rgba(0, 229, 255, 0.05),
    0 0 0 1px rgba(0, 229, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Pop-in entrance */
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1),
              transform 0.9s cubic-bezier(.34,1.56,.64,1);
}

#md-face-circle.is-in {
  opacity: 1;
  transform: scale(1);
  animation: md-face-breathe 5.5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes md-face-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.meet-dilly-face-label {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 229, 255, 0.78);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

#md-face-circle.is-in + .meet-dilly-face-label {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .meet-dilly-glow,
  .meet-dilly-face-ring,
  #md-face-circle.is-in { animation: none; }
  #md-face-circle { opacity: 1; transform: scale(1); }
  .meet-dilly-face-label { opacity: 1; transform: none; }
}

/* ── RIGHT: Copy + chat ───────────────────────────────── */
.meet-dilly-copy-col { color: #fff; }

.meet-dilly-eyebrow,
.meet-dilly .meet-dilly-eyebrow {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #00e5ff !important;
  margin-bottom: 1.25rem !important;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
  opacity: 1 !important;
}

.meet-dilly-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1rem;
}
.meet-dilly-title em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5ff 0%, #6dd9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.meet-dilly-lead {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

/* Chat, no fixed height, no scroll. All bubbles render at full height
   from the start (opacity:0 still occupies layout space) so the panel
   never grows mid-animation. The dilly face on the left stays put because
   the entire panel size is settled before the first bubble fades in. */
.meet-dilly-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  margin-bottom: 1.25rem;
}

.md-bubble {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 1;
  transform: none;
  flex-shrink: 0;
  /* No transition, chat is fully static, nothing animates in. */
}
.md-bubble.is-in { opacity: 1; transform: none; }

.md-bubble--user {
  align-self: flex-end;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: #d8f7ff;
  border-bottom-right-radius: 4px;
}
.md-bubble--user p { margin: 0; }
.md-bubble--user .md-bubble-meta {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 229, 255, 0.55);
}

.md-bubble--dilly {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 4px;
}
.md-bubble--dilly p { margin: 0; }
.md-bubble--dilly ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.md-bubble--dilly li {
  margin: 0.3rem 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}
.md-bubble--dilly li strong { color: #fff; font-weight: 600; }

.md-bubble-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 229, 255, 0.78);
}
.md-bubble-head strong { color: #00e5ff; font-weight: 700; }

.md-mini-face {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
}
.md-mini-face::before, .md-mini-face::after {
  content: "";
  position: absolute;
  width: 2px; height: 2px;
  background: #2B3A8E;
  border-radius: 50%;
  top: 5px;
}
.md-mini-face::before { left: 4px; }
.md-mini-face::after { right: 4px; }

/* Typing indicator */
.md-bubble--typing { padding: 0.85rem 1.1rem; }
.md-typing-dots {
  display: inline-flex;
  gap: 4px;
}
.md-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: md-typing 1.2s infinite ease-in-out;
}
.md-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.md-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes md-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Caret blink removed, chat is fully static. */
.md-typed::after { content: ""; }
.md-typed.md-typed--done::after { content: ""; }

/* Proof row */
.meet-dilly-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .meet-dilly-proof { grid-template-columns: 1fr; gap: 0.65rem; }
}
.meet-dilly-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.meet-dilly-proof-item strong {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.meet-dilly-proof-item span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .md-bubble, .md-typed { opacity: 1; transform: none; }
  .md-typed::after { display: none; }
  .md-typing-dots span { animation: none; }
}
