*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
  background: #0e0e0e;
  color: #f5f5f5;
}

/* ── Horizontal slider ─────────────────────────────────────── */
.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* ── Individual pages ──────────────────────────────────────── */
.page {
  min-width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle distinct backgrounds per page */
#page-1 { background: #0e0e0e; }
#page-2 { background: #121820; position: relative; }
#page-3 { background: #0d1a14; position: relative; }
#page-4 { background: #1a0d12; position: relative; }
#page-5 { background: #0d0d1a; position: relative; }
#page-6 { background: #0d1a1a; position: relative; }
#page-7 { background: #1a1a0d; position: relative; }
#page-8 { background: #0e0e0e; position: relative; }

/* ── Centered content block ────────────────────────────────── */
.content {
  min-width: 80vw;
  text-align: center;
  margin: 0 auto;
}

/* ── Page 1 intro text ─────────────────────────────────────── */
#page-1 .content .intro {
  font-size: 14px;
  line-height: 1.7;
  color: #aaa;
  margin-top: 20px;
  width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Page 1 inline link ────────────────────────────────────── */
.page-link {
  color: #aaa;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 3px;
  cursor: pointer;
}

.page-link:hover {
  color: #aaa;
}

/* ── Page 1 slide hint ─────────────────────────────────────── */
.slide-hint {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slide-hint-text {
  font-size: 13px;
  color: #aaa;
  letter-spacing: 0.05em;
}

.slide-hint-arrow {
  width: 28px;
  height: 28px;
  animation: bounce-right 1.2s ease-in-out infinite;
}

@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}

/* ── Page 1 headline ───────────────────────────────────────── */
#page-1 .content h1 {
  font-size: 32px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f5f5f5;
}

/* ── Other page headings ───────────────────────────────────── */
.content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #f5f5f5;
}

.content p {
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
}

/* ── Page 2 title: starts centered, slides to top (centered) ── */
.page2-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-2.animated .page2-title {
  top: 40px;
}

/* ── Page 2 body: centered in the middle, fades in ─────────── */
.page2-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page2-body p + p {
  margin-top: 20px;
}

.page2-image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 6px;
}

#page-2.show-text .page2-body {
  opacity: 1;
}

/* ── Page 3 title: starts centered, slides to top (centered) ── */
.page3-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-3.animated .page3-title {
  top: 40px;
}

/* ── Page 3 body: centered in the middle, fades in ─────────── */
.page3-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page3-body p + p {
  margin-top: 20px;
}

.page3-image {
  display: block;
  margin: 70px auto 20px;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}

#page-3.show-text .page3-body {
  opacity: 1;
}

/* ── Page 4 title: starts centered, slides to top (centered) ── */
.page4-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-4.animated .page4-title {
  top: 40px;
}

/* ── Page 4 body: centered in the middle, fades in ─────────── */
.page4-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page4-body p + p {
  margin-top: 20px;
}

#page-4.show-text .page4-body {
  opacity: 1;
}

.page4-image {
  display: block;
  margin: 70px auto 20px;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Page 5 title: starts centered, slides to top ───────────── */
.page5-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-5.animated .page5-title {
  top: 40px;
}

/* ── Page 5 body: centered in the middle, fades in ─────────── */
.page5-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-5.show-text .page5-body {
  opacity: 1;
}

.page5-body p + p {
  margin-top: 8px;
}

.page5-body p:nth-child(3) {
  margin-top: 40px;
}

/* ── Page 6 title: starts centered, slides to top ───────────── */
.page6-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-6.animated .page6-title {
  top: 40px;
}

/* ── Page 6 body: centered in the middle, fades in ─────────── */
.page6-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page6-body p {
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: left;
  max-width: 400px;
}

#page-6.show-text .page6-body {
  opacity: 1;
}

.page6-image {
  flex-shrink: 0;
  max-height: 250px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Page 7 title: starts centered, slides to top ───────────── */
.page7-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-7.animated .page7-title {
  top: 40px;
}

/* ── Page 7 body: centered in the middle, fades in ─────────── */
.page7-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-7.show-text .page7-body {
  opacity: 1;
}

.page7-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
}

.page7-images {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.page7-image {
  max-width: 45%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Page 8 title: starts centered, slides to top ───────────── */
.page8-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  transition: top 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#page-8.animated .page8-title {
  top: 40px;
}

/* ── Page 8 body: centered in the middle, fades in ─────────── */
.page8-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-8.show-text .page8-body {
  opacity: 1;
}

.page8-link {
  color: #aaa;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 3px;
}

.page8-link:hover {
  color: #f5f5f5;
  text-decoration-color: #f5f5f5;
}

.page8-note {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 16px;
  text-align: left;
}

.page8-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page8-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #aaa;
}

.page8-row p {
  margin: 0;
}

/* ── Dot navigation ────────────────────────────────────────── */
.dots {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

.dot[data-tooltip] {
  position: relative;
}

.dot[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: #f5f5f5;
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dot[data-tooltip]:hover::before {
  opacity: 1;
}
