/* EXCAR homepage — "Your car, alive.": EXCAR as a companion that knows you, learns your world and talks with you.
   Four short principles beside an example conversation in EXCAR AI's look (dark surfaces, user bubbles in blue,
   EXCAR answers on #1A1918). The conversation appears once, line by line, when it scrolls into view. */
.home-v3-section.home-v3-companion { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.home-v3-companion::before {
  content: ''; position: absolute; left: 50%; top: 18%; width: min(1100px, 120vw); height: 70%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at 62% 50%, rgba(30, 145, 255, .14), transparent 62%);
  pointer-events: none;
}
.home-v3-companion__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(36px, 6vw, 96px); }
.home-v3-companion h2 { margin-top: 18px; }
.home-v3-companion .home-v3-lead { margin-top: 22px; max-width: 30em; }

.home-v3-traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.home-v3-traits li { display: grid; gap: 6px; padding: 18px 18px 17px; border: 1px solid rgba(119, 169, 215, .16); border-radius: 18px; background: linear-gradient(160deg, rgba(14, 28, 44, .75), rgba(6, 12, 20, .6)); }
.home-v3-traits svg { width: 22px; height: 22px; fill: none; stroke: #52b8fc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-v3-traits b { color: #f1f5fb; font: 700 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.home-v3-traits span { color: #9aafc0; font-size: 14px; line-height: 1.45; }

/* The conversation (EXCAR AI) */
.home-v3-chat {
  position: relative; display: grid; gap: 14px; padding: 22px 20px 18px;
  border: 1px solid rgba(233, 228, 220, .12); border-radius: 30px;
  background: linear-gradient(180deg, rgba(26, 25, 24, .94), rgba(17, 16, 16, .96));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .3);
}
.home-v3-chat__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid #2b2927; }
.home-v3-chat__orb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #12243a, #070b12); box-shadow: 0 0 0 1px rgba(57, 150, 239, .35), 0 0 18px rgba(30, 145, 255, .25); }
.home-v3-chat__orb img { width: 22px; height: 22px; }
.home-v3-chat__head b { color: #e9e4dc; font: 600 16px/1.2 var(--font-body); }
.home-v3-chat__head small { display: block; color: #928d85; font: 400 12px/1.3 var(--font-body); }
.home-v3-chat__tag { margin-left: auto; padding: 3px 9px; border: 1px solid rgba(233, 228, 220, .16); border-radius: 99px; color: #928d85; font: 500 10.5px/1.4 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.home-v3-chat__log { display: grid; gap: 10px; margin: 0; padding: 4px 2px; list-style: none; }
.home-v3-chat__log li { max-width: 86%; padding: 11px 15px; border-radius: 20px; font: 400 15px/1.45 var(--font-body); }
.home-v3-chat__log .is-you { justify-self: end; border-bottom-right-radius: 6px; color: #fff; background: #1e7fe0; }
.home-v3-chat__log .is-excar { justify-self: start; border: 1px solid #2b2927; border-bottom-left-radius: 6px; color: #e9e4dc; background: #201f1e; }
.home-v3-chat__log .is-excar small { display: block; margin-top: 4px; color: #928d85; font-size: 12px; }
.home-v3-chat__bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 8px 8px 16px; border: 1px solid #2b2927; border-radius: 99px; color: #928d85; background: #151413; font: 400 14px/1 var(--font-body); }
.home-v3-chat__bar > span:first-child { flex: 1; }
.home-v3-chat__mic { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #3996ef; }
.home-v3-chat__mic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-v3-chat__hey { justify-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid rgba(69, 214, 154, .3); border-radius: 99px; color: #c7efe0; background: rgba(69, 214, 154, .08); font: 500 12.5px/1.2 var(--font-body); }
.home-v3-chat__hey::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #45d69a; }

/* One reveal, line by line, when the conversation comes into view (no loop). */
.home-v3-chat.is-armed .home-v3-chat__log li { opacity: 0; transform: translateY(8px); }
.home-v3-chat.is-playing .home-v3-chat__log li { animation: home-v3-chat-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.home-v3-chat.is-playing .home-v3-chat__log li:nth-child(2) { animation-delay: .55s; }
.home-v3-chat.is-playing .home-v3-chat__log li:nth-child(3) { animation-delay: 1.3s; }
.home-v3-chat.is-playing .home-v3-chat__log li:nth-child(4) { animation-delay: 1.85s; }
.home-v3-chat.is-playing .home-v3-chat__log li:nth-child(5) { animation-delay: 2.6s; }
.home-v3-chat.is-playing .home-v3-chat__log li:nth-child(6) { animation-delay: 3.15s; }
@keyframes home-v3-chat-in { to { opacity: 1; transform: none; } }

/* A quiet mantra line used across the page. */
.home-v3-mantra { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: #9fd6ff; font: 500 13px/1.3 var(--font-mono); letter-spacing: .06em; }
.home-v3-mantra::before { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, #52b8fc); }

@media (max-width: 899px) {
  .home-v3-companion__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-v3-section.home-v3-companion { padding: 72px 0 56px; }
  .home-v3-traits { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
  .home-v3-traits li { padding: 14px; }
  .home-v3-traits b { font-size: 15px; }
  .home-v3-traits span { font-size: 12.5px; }
  .home-v3-chat { padding: 16px 12px 14px; border-radius: 24px; }
  .home-v3-chat__log li { max-width: 92%; font-size: 14px; padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-v3-chat.is-armed .home-v3-chat__log li { opacity: 1; transform: none; }
  .home-v3-chat.is-playing .home-v3-chat__log li { animation: none; }
}
