:root {
  --bg: #081423;
  --bg-top: #07111c;
  --card: #0d1b2a;
  --card-2: #112338;
  --text: #f7f1e8;
  --muted: #d6dfea;
  --line: rgba(183, 202, 227, 0.16);
  --line-strong: rgba(183, 202, 227, 0.28);
  --button-bg: #b7cae3;
  --button-text: #102033;
  --glow: rgba(183, 202, 227, 0.24);
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(35, 63, 96, 0.24), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}

.page-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 20px 100px;
}

.slider-card {
  background: linear-gradient(180deg, rgba(17, 35, 56, 0.92), rgba(13, 27, 42, 0.98));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow:
    0 18px 50px var(--shadow),
    0 0 40px rgba(88, 123, 165, 0.08);
  padding: 34px 30px 28px;
}

.slider-top {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.88rem;
  opacity: 0.82;
}

.slider-top h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.12;
}

.tool-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.03rem;
}

.progress-wrap {
  margin-bottom: 26px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  width: 33.333%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fb7d7, #c7d8eb);
  transition: width 0.3s ease;
}

.progress-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.slides {
  position: relative;
}

.slide {
  display: none;
  animation: fadeIn 0.35s ease;
}

.slide.active {
  display: block;
}

.slide h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 500;
}

.slide-text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.prompt {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 18px;
  font-size: 1rem;
  line-height: 1.65;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

textarea::placeholder {
  color: rgba(214, 223, 234, 0.66);
}

textarea:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(183, 202, 227, 0.08);
}

.reflection-box {
  margin-bottom: 20px;
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(183, 202, 227, 0.12);
}

.reflection-box p {
  margin-top: 0;
  margin-bottom: 10px;
}

.reflection-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.closing-line {
  margin-top: 18px;
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
  opacity: 0.95;
}

.slider-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.nav-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

.nav-btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.nav-btn.primary {
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow:
    0 10px 25px rgba(183, 202, 227, 0.18),
    0 0 22px var(--glow);
}

.nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 56px 16px 80px;
  }

  .slider-card {
    padding: 24px 18px;
  }

  .slider-actions {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
  }

  textarea {
    min-height: 150px;
  }
}