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

:root {
  --kvibe-surface: #191b24;
  --kvibe-grid-dot: rgba(50, 52, 62, 0.45);
  --kvibe-accent: #bdf077;
  --kvibe-purple: #9a56c0;
  --kvibe-blue: #339af0;
  --kvibe-pink: #f06595;
  --kvibe-orange: #ff922b;
  --kvibe-green: #51cf66;
  --kvibe-red: #ff6b6b;
  --slide-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: #e8eaf0;
  background-color: var(--kvibe-surface);
  background-image: radial-gradient(
    var(--kvibe-grid-dot) 1px,
    var(--kvibe-surface) 1px
  );
  background-size: 20px 20px;
  overflow: hidden;
}

.presentation {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Прогресс-бар */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kvibe-accent), var(--kvibe-purple));
  transition: width var(--slide-transition);
  width: 5%;
}

/* Счётчик слайдов */
.slide-counter {
  position: fixed;
  top: 16px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 100;
}

/* Кнопки навигации */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-btn--prev {
  left: 20px;
}

.nav-btn--next {
  right: 20px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Подсказка клавиатуры */
.keyboard-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  z-index: 100;
}

.keyboard-hint span {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 2px;
}

/* Контейнер слайдов */
.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Слайд */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: all var(--slide-transition);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-50px);
}

.slide-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* Слайд с градиентом */
.slide--gradient {
  background: linear-gradient(135deg, rgba(154, 86, 192, 0.1) 0%, rgba(51, 154, 240, 0.1) 100%);
}

.slide--final {
  background: linear-gradient(135deg, rgba(189, 240, 119, 0.1) 0%, rgba(154, 86, 192, 0.1) 100%);
}

/* Титульный слайд */
.slide--title .slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emoji-big {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

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

.main-title {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--kvibe-accent), var(--kvibe-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 28px;
  font-weight: 400;
  color: #b8b8c8;
  margin-bottom: 30px;
}

.decorative-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--kvibe-accent), var(--kvibe-purple));
  border-radius: 2px;
  margin-bottom: 20px;
}

.hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* Заголовок слайда */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.slide-header .emoji {
  font-size: 40px;
}

.slide-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

/* Список целей */
.goals-list {
  list-style: none;
  text-align: left;
  display: inline-block;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.5s ease forwards;
  animation-delay: var(--delay);
}

.slide.active .goal-item {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.goal-icon {
  font-size: 24px;
}

/* Карточки квиза */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quiz-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--kvibe-accent);
  transform: translateY(-5px);
}

.quiz-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.quiz-card p {
  font-size: 16px;
  color: #b8b8c8;
}

/* AI чат */
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message--ai {
  justify-content: flex-start;
}

.chat-avatar {
  font-size: 32px;
}

.chat-bubble {
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 18px;
  font-size: 16px;
}

.chat-message--user .chat-bubble {
  background: var(--kvibe-purple);
  border-bottom-right-radius: 4px;
}

.chat-message--ai .chat-bubble {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}

/* Примеры запросов */
.examples-box {
  background: rgba(189, 240, 119, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.examples-title {
  font-size: 14px;
  color: var(--kvibe-accent);
  margin-bottom: 12px;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

/* Шаги */
.steps-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px 30px;
  text-align: center;
  min-width: 160px;
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--kvibe-accent);
  margin-bottom: 10px;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: #b8b8c8;
}

.step-arrow {
  font-size: 28px;
  color: var(--kvibe-accent);
}

/* Подсказки и предупреждения */
.tip-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(189, 240, 119, 0.15);
  border-left: 4px solid var(--kvibe-accent);
  padding: 15px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
}

.tip-icon {
  font-size: 20px;
}

.warning-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 146, 43, 0.15);
  border-left: 4px solid var(--kvibe-orange);
  padding: 15px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  margin-bottom: 15px;
}

.warning-icon {
  font-size: 20px;
}

.highlight-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(51, 154, 240, 0.15);
  border-left: 4px solid var(--kvibe-blue);
  padding: 15px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  margin-top: 20px;
}

.use-case-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 18px;
  margin: 20px 0;
}

/* Демонстрация текста */
.text-bold {
  font-weight: 700;
  font-size: 24px;
}

.text-italic {
  font-style: italic;
  font-size: 24px;
}

.text-underline {
  text-decoration: underline;
  font-size: 24px;
}

.text-plain {
  font-size: 24px;
  color: #888;
  margin-bottom: 15px;
}

/* Выделение текста */
.text-to-select {
  font-size: 28px;
  margin-bottom: 30px;
  display: inline-block;
}

.text-selected {
  background: var(--kvibe-blue);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Демо размеров */
.size-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.size-example {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: fit-content;
}

.size-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--kvibe-accent);
  min-width: 30px;
}

/* Демо шрифтов */
.font-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.font-example {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.font-example:hover {
  background: rgba(255, 255, 255, 0.1);
}

.font-name {
  display: block;
  font-size: 12px;
  color: var(--kvibe-accent);
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.font-sample {
  font-size: 24px;
}

/* Демо цветов */
.color-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.color-text {
  font-size: 28px;
  font-weight: 600;
}

/* Демо выравнивания */
.alignment-demo {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 25px;
}

.align-example {
  text-align: left;
}

.align-label {
  font-size: 14px;
  color: var(--kvibe-accent);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.align-text {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 18px;
  color: #b8b8c8;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* Тулбар демо */
.toolbar-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.toolbar-btn--bold {
  font-weight: 700;
}

.toolbar-btn--italic {
  font-style: italic;
}

.toolbar-btn--underline {
  text-decoration: underline;
}

.toolbar-icon {
  font-size: 20px;
}

.toolbar-hint {
  font-size: 14px;
  color: #888;
}

/* Демо вставки */
.desktop-demo {
  margin-bottom: 25px;
}

.desktop-screen {
  width: 400px;
  height: 250px;
  background: linear-gradient(135deg, #1a1c24, #2a2d38);
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.desktop-wallpaper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.context-menu {
  background: #2d2d2d;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.menu-item {
  padding: 10px 20px;
  color: #fff;
  font-size: 14px;
}

.menu-item--active {
  background: #3d3d3d;
}

.menu-subitem {
  padding: 10px 30px;
  color: #fff;
  font-size: 13px;
}

.instruction-box {
  font-size: 18px;
  color: #b8b8c8;
}

/* Демо вставки текста */
.doc-window {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.doc-toolbar {
  background: #f0f0f0;
  padding: 10px 15px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #ddd;
}

.doc-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

.doc-btn--active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-content {
  padding: 30px;
  min-height: 150px;
}

.doc-title-line {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.doc-text-line {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.paste-demo {
  margin-bottom: 20px;
}

/* Демо вставки картинки */
.insert-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.insert-step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  min-width: 150px;
}

.insert-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--kvibe-accent);
  margin-bottom: 10px;
}

.insert-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.insert-step p {
  font-size: 14px;
  color: #b8b8c8;
}

.insert-arrow {
  font-size: 24px;
  color: var(--kvibe-accent);
}

.tips-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tip-box--small {
  font-size: 14px;
  padding: 12px 18px;
}

/* Демо сохранения */
.save-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.save-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.save-btn--success {
  background: var(--kvibe-green);
  color: #000;
}

.save-arrow {
  font-size: 20px;
  color: var(--kvibe-accent);
}

/* ДЗ */
.homework-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.homework-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 18px;
  text-align: left;
  opacity: 0;
  animation: slideIn 0.5s ease forwards;
  animation-delay: var(--delay);
}

.slide.active .homework-item {
  opacity: 1;
  transform: translateX(0);
}

.hw-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--kvibe-accent);
  min-width: 30px;
}

.homework-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  display: inline-block;
}

.check-item {
  font-size: 16px;
  color: #b8b8c8;
  padding: 8px 0;
}

.final-emoji {
  font-size: 80px;
  margin: 30px 0 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.final-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--kvibe-accent);
}

/* Подсветка текста */
.text-highlight {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  margin: 8px;
}

.highlight-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.description {
  font-size: 20px;
  color: #b8b8c8;
  margin-bottom: 25px;
}

/* Демо заголовка */
.title-demo {
  margin-bottom: 25px;
}

.doc-preview {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.doc-title-line {
  font-size: 24px;
  font-weight: 700;
  color: var(--kvibe-blue);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.doc-text-line {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

/* Адаптивность */
@media (max-width: 768px) {
  .slide {
    padding: 60px 20px;
  }

  .slide-header h2 {
    font-size: 24px;
  }

  .main-title {
    font-size: 48px;
  }

  .subtitle {
    font-size: 20px;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .steps-visual {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .insert-steps {
    flex-direction: column;
  }

  .insert-arrow {
    transform: rotate(90deg);
  }

  .font-examples {
    grid-template-columns: 1fr;
  }

  .tips-row {
    flex-direction: column;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .nav-btn--prev {
    left: 10px;
  }

  .nav-btn--next {
    right: 10px;
  }

  .desktop-screen {
    width: 100%;
    max-width: 350px;
    height: 200px;
  }
}