/* ==========================================================================
   ANT AI — orb, feeds, sample chat, pinned rule, limits
   ========================================================================== */

.hero--ai .hero__title .serif { color: #c3a4ff; text-shadow: 0 0 80px rgba(152, 94, 255, 0.5); }
.hero--ai .hero__title { max-width: 60%; }
@media (max-width: 760px) { .hero--ai .hero__title { max-width: none; } }

/* ---------- Feeds ---------- */
.feeds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feeds li {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.feeds li:hover { background: rgba(152, 94, 255, 0.08); }
.feeds b { display: block; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; font-weight: 600; color: var(--white); }
.feeds span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) { .feeds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feeds { grid-template-columns: 1fr; } }

/* ---------- Chat ---------- */
.chat {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: min(78vh, 760px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 60px 160px rgba(152, 94, 255, 0.16);
}

.chat__side { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }

.surfaces { display: flex; flex-wrap: wrap; gap: 6px; }
.surfaces button {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.surfaces button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.prompts { display: flex; flex-direction: column; gap: 8px; }
.prompt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(152, 94, 255, 0.22);
  background: rgba(152, 94, 255, 0.06);
  font-size: 14px;
  line-height: 1.4;
  color: var(--paper);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.prompt:hover:not(:disabled) { border-color: rgba(195, 164, 255, 0.7); background: rgba(152, 94, 255, 0.14); transform: translateX(4px); }
.prompt:disabled { opacity: 0.45; cursor: default; }

.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__who { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--white); }
.chat__dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9b3ff, var(--purple) 50%, #1a0d33 85%); box-shadow: 0 0 20px rgba(152, 94, 255, 0.6); }

.chat__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.chat__hello { margin: auto; text-align: center; color: var(--muted); }
.chat__hello b { display: block; font-size: clamp(28px, 3vw, 44px); color: var(--white); margin-bottom: 10px; }

.msg { max-width: 88%; font-size: 15px; line-height: 1.6; }
.msg--me { align-self: flex-end; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--paper); color: var(--ink); }
.msg--ai { align-self: flex-start; padding: 18px 20px; border-radius: 18px 18px 18px 4px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--paper); }
.msg--ai p { margin: 0; }
.msg--guard { border-color: rgba(244, 33, 46, 0.5); box-shadow: 0 0 40px rgba(244, 33, 46, 0.12); }

.ans + .ans { margin-top: 14px; }
.ans h4 { margin: 0 0 6px; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #c3a4ff; }
.ans ul { margin: 0; padding-left: 18px; }
.ans li + li { margin-top: 4px; }
.ans li::marker { color: var(--subtle); }

.msg__foot { margin: 16px 0 0 !important; font-size: 10px; letter-spacing: 0.08em; color: var(--subtle); }

.msg__thinking { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.msg__thinking i { width: 6px; height: 6px; border-radius: 50%; background: #c3a4ff; animation: think 1s infinite ease-in-out; }
.msg__thinking i:nth-child(2) { animation-delay: 0.15s; }
.msg__thinking i:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }
@keyframes think { 50% { transform: translateY(-5px); opacity: 0.4; } }

.chat__input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat__input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #22262a;
  background: #0e1012;
  color: var(--white);
  font: 15px var(--font-sans);
  outline: 0;
}
.chat__input input:focus { border-color: rgba(195, 164, 255, 0.7); }
.chat__input .btn:disabled { opacity: 0.5; }

@media (max-width: 900px) {
  .chat { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: auto; }
  .chat__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .prompts { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .prompt { flex-shrink: 0; max-width: 240px; }
  .chat__main { height: 70vh; }
  .chat__top .pill { display: none; }
  .msg { max-width: 96%; }
}

/* ---------- Answer anatomy ---------- */
.anatomy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.anatomy li { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5); }
.anatomy span { font-size: 11px; color: #c3a4ff; }
.anatomy b { display: block; margin: 28px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; color: var(--white); }
.anatomy p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .anatomy { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .anatomy { grid-template-columns: 1fr; } }

/* ---------- Pinned rule ---------- */
.line-sec { position: relative; height: 240vh; }
.line-sec__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.line-sec__title { margin: 20px 0 30px; font-size: clamp(64px, 14vw, 250px); color: var(--white); }
.line-sec__title .w { display: inline-block; }
.line-sec__body { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.6; color: rgba(231, 233, 234, 0.72); }

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.limit { padding: 34px; border-radius: 26px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5); }
.limit b { display: block; margin: 20px 0 6px; font-size: clamp(90px, 14vw, 220px); letter-spacing: -0.06em; color: var(--white); }
.limit p { margin: 0; color: var(--muted); font-size: 16px; }
.limit--mars { border-color: rgba(255, 120, 70, 0.35); background: radial-gradient(circle at 80% 0%, rgba(255, 90, 40, 0.18), rgba(0, 0, 0, 0.5) 60%); }
.limit--mars .eyebrow { color: #ff9a6b; }
@media (max-width: 620px) { .limits { grid-template-columns: 1fr; } }
