/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 120px clamp(18px, 5vw, 64px) 60px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 540px;
}

.hero .actions { margin-top: 28px; }
.hero .button.primary {
  gap: 8px;
  padding: 0 24px;
  min-height: 50px;
  font-size: 1rem;
}
.hero .button.primary svg { flex-shrink: 0; }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.trust-item svg { flex-shrink: 0; }

/* ---- Dialogue preview (hero visual) ---- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialogue-preview {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(143,215,199,0.06);
}
.dp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--line);
}
.dp-dot { width: 10px; height: 10px; border-radius: 50%; }
.dp-dot.red { background: #f0968d; }
.dp-dot.amber { background: #e3bb6a; }
.dp-dot.green { background: #8fd7c7; }
.dp-title { margin-left: 10px; font-size: 0.78rem; color: var(--muted); transition: opacity 0.3s ease; }
.dp-body { padding: 16px; max-height: 400px; overflow-y: auto; scroll-behavior: smooth; }
.dp-body::-webkit-scrollbar { width: 4px; }
.dp-body::-webkit-scrollbar-thumb { background: rgba(143,215,199,0.2); border-radius: 2px; }
.dp-msg { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dp-msg.learner { justify-content: flex-end; }
.dp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.tutor-avatar { background: rgba(143,215,199,0.18); color: var(--accent); }
.learner-avatar { background: rgba(227,187,106,0.18); color: var(--accent-2); }
.dp-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(143,215,199,0.06);
  border: 1px solid rgba(143,215,199,0.12);
  max-width: 80%;
}
.dp-bubble.learner-bubble {
  background: rgba(227,187,106,0.06);
  border-color: rgba(227,187,106,0.12);
}
.dp-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(143,215,199,0.06);
  border: 1px solid rgba(143,215,199,0.12);
  border-radius: 8px;
  margin-top: 8px;
}
.dp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dp-progress-mini {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

/* Dialogue animation */
.dp-msg, .dp-indicator {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dp-msg.visible, .dp-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}
.dp-bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}
.dp-bubble.learner-bubble .cursor { background: var(--accent-2); }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.dp-typing {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dp-typing.visible { opacity: 1; }
.dp-typing-dots {
  display: flex;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(143,215,199,0.06);
  border: 1px solid rgba(143,215,199,0.12);
}
.dp-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.35;
  animation: dotBounce 1.2s infinite ease-in-out;
}
.dp-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.dp-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.dp-indicator, .dp-brain {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.dp-indicator .dp-progress-mini {
  transition: width 0.6s ease;
}

/* Brain reasoning indicator */
.dp-brain {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 0.7rem;
  color: rgba(143,215,199,0.65);
  opacity: 0;
  transform: translateY(4px);
}
.dp-brain.visible { opacity: 1; transform: translateY(0); }
.dp-brain-emoji { font-size: 0.72rem; }
.dp-brain-text { letter-spacing: 0.02em; }

/* Move tag on tutor bubbles */
.dp-move-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 3px;
}

/* Brain badge next to tutor avatar */
.dp-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.dp-brain-badge {
  font-size: 0.55rem;
  line-height: 1;
  opacity: 0.5;
}

/* ---- Stats strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 18, 0.7);
}
.stat {
  padding: 28px clamp(16px, 3vw, 32px);
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Feature cards ---- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fcard {
  padding: 28px 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.25s;
}
.fcard:hover {
  border-color: rgba(143,215,199,0.3);
  transform: translateY(-2px);
}
.fcard-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(143,215,199,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fcard h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.fcard p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.section-sub {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 12px;
}

/* ---- Topics section ---- */
.topics-section {
  padding: 80px clamp(18px, 5vw, 64px);
  background: rgba(7, 16, 18, 0.6);
}
.topic-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}
.topic-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.15s;
}
.topic-card.available:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.topic-card.coming { opacity: 0.55; }
.tc-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(143,215,199,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-content { flex: 1; }
.tc-content h3 { font-size: 1.05rem; margin: 0 0 6px; }
.tc-content p { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin: 0 0 6px; }
.tc-meta { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.tc-arrow { color: var(--accent); flex-shrink: 0; }

/* ---- CTA ---- */
.cta-section {
  padding: 80px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(7, 16, 18, 0.85);
}
.cta-inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}
.footer-inner > p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.footer-org {
  margin-left: auto;
  font-size: 0.78rem !important;
  color: rgba(183,194,187,0.5) !important;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-visual { order: -1; }
  .dialogue-preview { max-width: 380px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .stats-strip { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .topic-card { flex-direction: column; align-items: flex-start; }
  .tc-arrow { display: none; }
  .trust-row { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-org { margin-left: 0; }
}
