:root {
  --background-color: #1a1a1a;
  --text-color: #ffffff;
  --text-color-secondary: #a0a0a0;
  --card-background: #2c2c2e;
  --border-color: #444444;
  --primary-color: #007aff;
  --accent-color: #e53935;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-color); text-decoration: none; }

h1, h2 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color);
}
.btn-primary:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}
.btn-secondary {
  background-color: var(--card-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* Header sticky + blur */
.main-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(26,26,26,0.85);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.main-header .container {
  display: flex; justify-content: space-between; align-items: center;
}
/* Styling baru untuk online users */
.online-users {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-background);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color-secondary);
}
.online-users .dot {
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Hero Section with bg overlay */
.hero-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  /* background: url('https://i.imgur.com/P5lJ9tR.jpeg') center/cover no-repeat;  <-- Hapus baris ini */
}
.hero-section::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
}
.hero-section .container { position: relative; z-index: 1; }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-color-secondary);
  max-width: 600px; margin: 0 auto 2.5rem;
}
.hero-buttons {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.ad-slot { width: 468px; height: 60px; margin: 2.5rem auto 0; max-width: 100%; }
.ad-slot img { width: 100%; height: 100%; object-fit: contain; }

.pass-features { margin-top: 2.5rem; max-width: 600px; margin-inline: auto; text-align: left; color: var(--text-color-secondary);}
.pass-features h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-color); margin-bottom: 1rem; text-align: center; }
.pass-features ul { list-style: none; }
.pass-features li {
  padding-left: 2rem; position: relative; margin-bottom: 0.75rem;
}
.pass-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--primary-color);
}

/* Sections */
section { padding: 5rem 0; }
.stream-section p, .feature-section p, .devices-section p {
  max-width: 600px; margin: 0 auto 2rem; color: var(--text-color-secondary); font-size: 1.125rem;
}
.feature-section img, .stream-section img {
  margin-top: 3rem; border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.feature-section .text-content { text-align: left; }
.feature-section.alt-layout .image-content { order: -1; }
.devices-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.devices-grid {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem;
}
.devices-grid span {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 500;
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem; color: var(--text-color-secondary);
}
.footer-nav { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-color-secondary); }

/* Modal */
.modal {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.7); display:flex; justify-content:center; align-items:center;
  opacity:0; visibility:hidden; transition:0.3s; z-index:1000;
}
.modal.open { opacity:1; visibility:visible; }
.modal-content {
  background: var(--background-color); border:1px solid var(--border-color);
  padding:2rem; border-radius:12px; width:90%; max-width:600px;
}
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; }
.close-btn { background:none; border:none; color:var(--text-color-secondary); font-size:1.5rem; cursor:pointer; }

/* Back-to-top */
.back-to-top-btn {
  position: fixed; bottom: 3rem; right: 2rem;
  background-color: var(--primary-color); color: var(--text-color);
  border: none; width: 3.5rem; height: 3.5rem;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer;
  display:flex; justify-content:center; align-items:center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  opacity:0; visibility:hidden; transition:0.3s; z-index:999;
}
.back-to-top-btn.show { opacity:1; visibility:visible; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; } h2 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }
  .grid-2 { grid-template-columns: 1fr; gap:2rem; text-align:center; }
  .feature-section .text-content { text-align:center; }
  .feature-section.alt-layout .image-content { order:0; }
}