:root {
  --bg: #11101b;
  --bg-soft: #1e1b2a;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f1ff;
  --muted: #bdb3de;
  --accent: #a56fff;
  --accent-strong: #ffd276;
  --accent-dark: #7b53c6;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  background-image: linear-gradient(180deg, rgba(17, 16, 27, 0.94), rgba(24, 19, 40, 0.92));
  background-size: cover;
  background-position: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 221, 118, 0.16), transparent 14%),
              radial-gradient(circle at 80% 20%, rgba(165, 111, 255, 0.14), transparent 12%),
              radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.1), transparent 16%);
  pointer-events: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(17, 16, 27, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 90px 0 60px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 620px;
}

.hero-carousel {
  display: flex;
  justify-content: center;
}

.carousel {
  position: relative;
  width: min(480px, 100%);
  border-radius: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

.eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 24px 0 30px;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffd276);
  color: #1a0d2f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-top {
  display: flex;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.95rem;
  color: white;
  font-weight: 700;
}

.screen-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255, 214, 118, 0.28), transparent 18%),
              radial-gradient(circle at 18% 20%, rgba(165, 111, 255, 0.2), transparent 12%);
  pointer-events: none;
}

.screen-content {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(0,0,0,0.2);
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-label {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.user-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.status-heart {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ff8abf;
  font-size: 1rem;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd276, #a56fff);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.feature-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.story-section {
  padding: 90px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.story-copy h2 {
  margin-top: 0;
  font-size: 2.6rem;
}

.story-copy p {
  max-width: 540px;
  color: var(--muted);
}

.story-preview {
  display: grid;
  gap: 22px;
}

.book-card,
.book-shelf {
  padding: 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-card {
  display: grid;
  gap: 16px;
}

.book-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.book-meta {
  color: var(--muted);
}

.book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.92rem;
}

.book-shelf {
  display: grid;
  gap: 14px;
}

.book-item {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-item.finished {
  background: linear-gradient(135deg, rgba(165, 111, 255, 0.15), rgba(255, 210, 118, 0.14));
}

.cta-section {
  padding: 75px 0 90px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.cta-panel p {
  margin: 18px 0 0;
  max-width: 520px;
  color: var(--muted);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-panel,
  .story-grid,
  .cta-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .feature-card,
  .book-card,
  .book-shelf,
  .cta-panel {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card,
  .feature-card,
  .book-card,
  .book-shelf,
  .cta-panel {
    padding: 22px;
  }
}
