:root {
  --bg-dark: #0a0b10;
  --bg-card: #141622;
  --bg-card-hover: #1c1f2e;
  --primary: #e63946;
  --primary-glow: rgba(230, 57, 70, 0.4);
  --secondary: #f4a261;
  --text-main: #f8f9fa;
  --text-muted: #a0aabf;
  --border-color: #2a2d3e;
  --gradient-main: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --gradient-dark: linear-gradient(180deg, #141622 0%, #0a0b10 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-main);
}

.brand img {
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: none;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.btn-download {
  background: var(--gradient-main);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #1c1f2e 0%, var(--bg-dark) 70%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--border-color);
  border-color: var(--primary);
}

.hero-btn.primary {
  background: var(--gradient-main);
  border: none;
  color: #fff;
}

.hero-btn.primary:hover {
  transform: scale(1.05);
}

/* Hero Slider */
.hero-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.hero-slide:hover {
  transform: translateY(-5px);
}

.hero-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 20px 10px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
}

/* Section Common */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* Daily Updates */
.daily-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.daily-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.daily-item:hover {
  background: var(--bg-card-hover);
}

.daily-item img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.daily-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.daily-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daily-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(230, 57, 70, 0.2);
  color: var(--primary);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.tag.date {
  background: rgba(244, 162, 97, 0.1);
  color: var(--secondary);
  border-color: rgba(244, 162, 97, 0.3);
}

/* Timeline Section */
.timeline-section {
  background: var(--gradient-dark);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.timeline-time {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.timeline-content img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.timeline-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

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

/* Ranking Section */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.rank-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.rank-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.rank-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.rank-info {
  padding: 12px;
}

.rank-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info span {
  font-size: 0.75rem;
  color: var(--secondary);
}

/* Moga (Modified) Section */
.moga-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.moga-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moga-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.moga-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.moga-score {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary);
}

/* Recommend Section */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.rec-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.rec-card-img {
  position: relative;
  height: 180px;
}

.rec-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.rec-content {
  padding: 16px;
}

.rec-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.rec-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rec-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  background: var(--gradient-dark);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.review-body h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--secondary);
}

.review-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Wishlist Section */
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wish-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.wish-name {
  font-size: 0.95rem;
}

.wish-votes {
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(244, 162, 97, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Platform News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 3px solid var(--secondary);
}

.news-date {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: bold;
  flex-shrink: 0;
}

.news-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Discover Wall */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wall-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}

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

.wall-item:hover img {
  transform: scale(1.05);
}

.wall-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.8rem;
  text-align: center;
}

/* Download Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.step-item {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-cta {
  text-align: center;
  padding: 40px 20px;
  background: var(--gradient-dark);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 60px;
}

.download-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.download-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

/* Responsive */
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .moga-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .wall-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slide { flex: 0 0 240px; }
  .hero-slide img { height: 340px; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .daily-grid { grid-template-columns: repeat(3, 1fr); }
  .moga-grid { grid-template-columns: repeat(3, 1fr); }
  .community-grid { grid-template-columns: repeat(3, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
  .wall-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-slider { gap: 24px; }
}