/* ===== CSS Variables ===== */
:root {
  --primary: #e59da6;
  --primary-light: #f0c4ca;
  --primary-dark: #d4808b;
  --secondary-1: #a93872;
  --secondary-2: #6280b1;
  --secondary-3: #e9a71f;
  --bg-dark: #1a1a2e;
  --bg-darker: #12121f;
  --bg-card: #222240;
  --bg-card-hover: #2a2a4a;
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-muted: #a0a0b8;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 50%, #1a2a3e 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary-1));
  --gradient-accent: linear-gradient(135deg, var(--secondary-3), var(--primary));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 18, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 157, 166, 0.1);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(18, 18, 31, 0.98);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 6px;
}

.nav-menu a {
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(229, 157, 166, 0.1);
}

.nav-menu a i {
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: auto;
  padding: 100px 0 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(169, 56, 114, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(98, 128, 177, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 157, 166, 0.15);
  border: 1px solid rgba(229, 157, 166, 0.25);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-badge i {
  font-size: 0.8rem;
}

.hero-content h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-meta .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.hero-meta .meta-tag i {
  color: var(--secondary-3);
  font-size: 0.8rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-features .feature-tag {
  background: linear-gradient(135deg, rgba(169, 56, 114, 0.2), rgba(229, 157, 166, 0.15));
  border: 1px solid rgba(169, 56, 114, 0.25);
  color: var(--primary-light);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(229, 157, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(229, 157, 166, 0.45);
  color: var(--text-white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(229, 157, 166, 0.08);
}

.hero-image {
  flex: 0 0 320px;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(229, 157, 166, 0.2);
}

/* ===== News Section ===== */
.news {
  background: var(--bg-darker);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 157, 166, 0.2);
  box-shadow: var(--shadow-md);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.news-tag.update {
  background: rgba(98, 128, 177, 0.2);
  color: var(--secondary-2);
}

.news-tag.announce {
  background: rgba(233, 167, 31, 0.2);
  color: var(--secondary-3);
}

.news-tag.event {
  background: rgba(169, 56, 114, 0.2);
  color: var(--primary);
}

.news-card h3 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 10px;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-link i {
  transition: transform var(--transition);
}

.news-link:hover i {
  transform: translateX(4px);
}

/* ===== Gallery Section ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--text-white);
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(229, 157, 166, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== Reviews Section ===== */
.reviews {
  background: var(--bg-darker);
}

.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-stars {
  color: var(--secondary-3);
  font-size: 1.2rem;
  margin-top: 4px;
}

.review-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.review-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

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

.review-card {
  min-width: 100%;
  padding: 0 10px;
}

.review-card-inner {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
  flex-shrink: 0;
}

.review-info h4 {
  color: var(--text-white);
  font-size: 1rem;
}

.review-info .review-stars {
  color: var(--secondary-3);
  font-size: 0.85rem;
}

.review-card-inner p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  font-style: italic;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(229, 157, 166, 0.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== Version History ===== */
.version-history {
  background: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary-2), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
}

.timeline-item:first-child .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(229, 157, 166, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: rgba(229, 157, 166, 0.15);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-version {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-3);
  font-size: 0.75rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-meta span i {
  color: var(--secondary-2);
}

.timeline-meta .btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  margin-left: auto;
}

/* ===== Strategy Section ===== */
.strategy {
  background: var(--bg-darker);
}

.strategy-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 7px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(229, 157, 166, 0.1);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.strategy-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.strategy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 157, 166, 0.2);
  box-shadow: var(--shadow-md);
}

.strategy-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.strategy-card-icon.route {
  background: rgba(98, 128, 177, 0.2);
  color: var(--secondary-2);
}

.strategy-card-icon.guide {
  background: rgba(229, 157, 166, 0.2);
  color: var(--primary);
}

.strategy-card-icon.ending {
  background: rgba(169, 56, 114, 0.2);
  color: var(--secondary-1);
}

.strategy-card-icon.collect {
  background: rgba(233, 167, 31, 0.2);
  color: var(--secondary-3);
}

.strategy-card h3 {
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.strategy-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.strategy-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.difficulty {
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 50px;
}

.difficulty.easy {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.difficulty.medium {
  background: rgba(233, 167, 31, 0.2);
  color: var(--secondary-3);
}

.difficulty.hard {
  background: rgba(169, 56, 114, 0.2);
  color: var(--primary);
}

.recommend-stars {
  color: var(--secondary-3);
  font-size: 0.8rem;
}

/* ===== Chapters Section ===== */
.chapters {
  background: var(--bg-dark);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.chapter-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  border-color: rgba(229, 157, 166, 0.2);
  box-shadow: var(--shadow-md);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
}

.chapter-card.main::before {
  background: var(--gradient-primary);
}

.chapter-card.character::before {
  background: linear-gradient(to bottom, var(--secondary-2), var(--secondary-3));
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.chapter-badge.main-badge {
  background: rgba(229, 157, 166, 0.15);
  color: var(--primary);
}

.chapter-badge.char-badge {
  background: rgba(98, 128, 177, 0.15);
  color: var(--secondary-2);
}

.chapter-card h3 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 10px;
}

.chapter-card .chapter-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.chapter-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chapter-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chapter-info span i {
  color: var(--secondary-3);
}

.chapter-mood {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}

.mood-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* ===== FAQ Section ===== */
.faq {
  background: var(--bg-darker);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: rgba(229, 157, 166, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
}

.faq-question i {
  color: var(--primary);
  transition: transform var(--transition);
  font-size: 0.85rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand h3 img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

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

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(229, 157, 166, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: 0 0 auto;
    max-width: 280px;
    order: -1;
  }

  .hero-meta,
  .hero-features,
  .hero-buttons {
    justify-content: center;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-image {
    max-width: 220px;
  }

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

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

  .reviews-stats {
    gap: 30px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-dot {
    left: 8px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 0 50px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-meta .meta-tag {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}
