/* Home hero: block-based builder + assistant preview */

.home-hero {
  position: relative;
}

.home-hero .hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
}

.home-hero .hero-subtitle {
  font-size: 1.125rem;
  color: #515154;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #1d1d1f;
}
.hero-highlights .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #0071e3; margin-right: 10px;
}

.builder-stage {
  position: relative;
  min-height: 360px;
  background: linear-gradient(180deg, #fafafa, #f4f5f7);
  border-radius: 16px;
  padding: 18px 18px 18px 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.builder-stage .stack {
  position: absolute;
  left: 16px;
  right: 220px;
  bottom: 16px;
  top: 16px;
  display: grid;
  grid-template-rows: repeat(5, minmax(40px, 1fr));
  gap: 10px;
}

.block {
  border-radius: 12px;
  padding: 10px 12px;
  color: #1d1d1f;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(20px);
  opacity: 0;
  animation: block-in .8s cubic-bezier(.21,1,.9,1) forwards;
}

.block.b-text { background: #fff; border: 1px solid #ececee; }
.block.b-video { background: #e8f3ff; border: 1px solid #d6eaff; }
.block.b-quiz { background: #fff6e8; border: 1px solid #ffe3b5; }
.block.b-code { background: #f0f7f0; border: 1px solid #cfe6d0; }
.block.b-doc { background: #f7f3ff; border: 1px solid #e3dbff; }

.block[data-block="text"] { animation-delay: .05s; }
.block[data-block="video"] { animation-delay: .15s; }
.block[data-block="quiz"] { animation-delay: .25s; }
.block[data-block="code"] { animation-delay: .35s; }
.block[data-block="doc"] { animation-delay: .45s; }

@keyframes block-in {
  0% { transform: translateY(24px) scale(.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Assistant preview */
.assistant-mock {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 200px;
  height: calc(100% - 36px);
  background: rgba(255,255,255, .9);
  border: 1px solid #ececee;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.assistant-mock .am-header {
  padding: 8px;
  border-bottom: 1px solid #ececee;
}
.assistant-mock .am-tabs { display: flex; gap: 6px; }
.assistant-mock .am-tab {
  width: 26px; height: 26px; border-radius: 8px; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  background: #f2f2f7; color: #1d1d1f; cursor: default; user-select: none;
}
.assistant-mock .am-tab.active { background: #0071e3; color: #fff; }
.assistant-mock .am-body { padding: 10px; flex: 1; background: #fff; }
.assistant-mock .am-screen { display: none; }
.assistant-mock .am-screen.active { display: block; }

.typing { color: #515154; position: relative; }
.typing::after {
  content: '▍';
  margin-left: 3px;
  color: #0071e3;
  animation: cursor 1.2s steps(1,end) infinite;
}
@keyframes cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Simulated code/doc/calc lines */
.code-line, .doc-line, .calc-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9rem;
  color: #1d1d1f;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .block { animation: none; opacity: 1; transform: none; }
  .typing::after { animation: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .builder-stage { min-height: 420px; }
  .builder-stage .stack { right: 16px; grid-template-rows: repeat(5, 1fr); }
  .assistant-mock { position: absolute; bottom: 18px; top: auto; height: 160px; width: calc(100% - 36px); }
}


/* Student hero (left visuals) */
.hero-student .student-stage {
  position: relative;
  min-height: 360px;
  background: linear-gradient(180deg, #fafafa, #f4f5f7);
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.student-mock {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.9);
  border: 1px solid #ececee;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.student-mock .sm-header { padding: 8px; border-bottom: 1px solid #ececee; }
.student-mock .sm-stats { display: flex; gap: 12px; margin-bottom: 8px; }
.student-mock .sm-stats .stat { display: flex; flex-direction: column; align-items: flex-start; }
.student-mock .sm-stats .num { font-weight: 800; font-size: 1.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.student-mock .sm-stats .lbl { color: #6e6e73; font-size: .85rem; }
.student-mock .sm-tabs { display: flex; gap: 6px; }
.student-mock .sm-tab {
  width: 28px; height: 28px; border-radius: 8px; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: #f2f2f7; color: #1d1d1f; cursor: default; user-select: none;
}
.student-mock .sm-tab.active { background: #34c759; color: #fff; }
.student-mock .sm-body { padding: 10px; flex: 1; background: #fff; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; height: 300px; }
.student-mock .sm-screen { display: none; height: 100%; }
.student-mock .sm-screen.active { display: block; }

.sm-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.sm-card {
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(20px);
  opacity: 0;
  animation: sm-in .7s cubic-bezier(.21,1,.9,1) forwards;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
}
.sm-card + .sm-card { animation-delay: .08s; }
.sm-card-title { font-weight: 700; margin-bottom: 8px; }
.sm-row { display: flex; justify-content: space-between; margin-bottom: 6px; color: #1d1d1f; }
.sm-meta { display: flex; gap: 8px; margin-top: 6px; }
.pill { background: #f2f2f7; border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: .85rem; color: #1d1d1f; }

.sm-card.sm-motiv { background: #f7f3ff; border-color: #e3dbff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sm-motiv-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.sm-motiv-sub { color: #6e6e73; font-size: .9rem; }

.progress { position: relative; height: 8px; background: #f2f2f7; border-radius: 999px; overflow: hidden; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: #0071e3; border-radius: inherit; box-shadow: inset 0 0 6px rgba(0,0,0,.1); }
.bar.is-warning { background: #ff9f0a; }
.bar.is-success { background: #34c759; }

@keyframes sm-in {
  0% { transform: translateY(24px) scale(.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .hero-student .student-stage { min-height: 420px; }
  .sm-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .student-mock .sm-body { height: 360px; }
}



