/* ==========================================================================
   2WAYBET Pro - Theme & Styling
   Primary Palette: Blue (#0052D4, #4364F7, #6FB1FC, #00d2ff, #0a192f)
   ========================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-glass: rgba(10, 25, 47, 0.85);
  
  --primary-blue: #1d4ed8;
  --bright-blue: #3b82f6;
  --cyan-accent: #06b6d4;
  --glow-blue: rgba(59, 130, 246, 0.5);
  
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.5);
  --green-accent: #10b981;
  
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  
  --border-color: rgba(59, 130, 246, 0.2);
  --border-active: rgba(6, 182, 212, 0.6);

  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.6;
  padding-bottom: 75px; /* Clearance for sticky footer */
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
}

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

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

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

/* ==========================================================================
   Header Section (Sticky Header with Centered Logo)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(29, 78, 216, 0.2);
  padding: 12px 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  transition: var(--transition);
}

.header-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.8));
}

.header-quick-buttons {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .header-quick-buttons {
    display: none; /* Mobile accesses buttons via hero & sticky footer */
  }
}

/* Header Buttons */
.btn-header-login {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  transition: var(--transition);
}

.btn-header-login:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-header-daftar {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}

.btn-header-daftar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

/* ==========================================================================
   Banner & Hero Section
   ========================================================================== */
.hero-section {
  padding: 20px 0 10px 0;
}

.banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.banner-wrapper:hover {
  border-color: var(--cyan-accent);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.4);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Primary Action Buttons (DAFTAR & LOGIN) */
.action-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 480px) {
  .action-buttons-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg);
  transition: var(--transition);
  animation: shine 3.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

.btn-daftar {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  color: #0d1322;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.btn-daftar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #b45309 100%);
}

.btn-login {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.btn-login:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(6, 182, 212, 0.7);
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #06b6d4 100%);
}

/* Quick Links / Link Alternatif Section */
.alternatif-links-card {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.alternatif-title {
  font-size: 0.95rem;
  color: var(--cyan-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.alternatif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.link-alt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-white);
  transition: var(--transition);
}

.link-alt-item:hover {
  border-color: var(--cyan-accent);
  background: rgba(59, 130, 246, 0.2);
  color: var(--cyan-accent);
}

.status-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Highlight Feature Cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--bright-blue);
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.25);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--cyan-accent);
  margin-bottom: 8px;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   SEO Section (Focusing on 2WAYBET Keywords)
   ========================================================================== */
.seo-section {
  margin-top: 36px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .seo-section {
    padding: 20px 16px;
  }
}

.seo-title-main {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 12px;
}

.seo-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 24px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-subtitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, #3b82f6, #06b6d4);
  border-radius: 2px;
}

.seo-content p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: var(--text-light);
  text-align: justify;
}

.seo-keyword-tag {
  font-weight: 400;
  color: var(--text-light);
}

/* Bullet list in SEO content */
.seo-list {
  list-style: none;
  margin: 16px 0 24px 0;
  padding-left: 0;
}

.seo-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.seo-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* SEO Info Table */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.seo-table th {
  background: rgba(30, 58, 138, 0.5);
  color: #38bdf8;
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.seo-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
}

.seo-table tr:hover td {
  background: rgba(59, 130, 246, 0.1);
}

/* FAQ Accordion */
.faq-section {
  margin-top: 28px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.98rem;
}

.faq-header:hover {
  color: var(--cyan-accent);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--bright-blue);
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: rgba(15, 23, 42, 0.4);
  font-size: 0.92rem;
  color: var(--text-light);
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 14px 20px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer Base (Desktop Copyright & Information)
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  background: rgba(7, 11, 20, 0.95);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 16px auto;
  opacity: 0.85;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 14px auto;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ==========================================================================
   Sticky Bottom Footer (Mobile & Desktop Sticky Navigation)
   Menu: LOGIN, RTP, DAFTAR, PROMO, LIVECHAT
   ========================================================================== */
.sticky-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 18, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(29, 78, 216, 0.3);
  padding: 6px 0;
}

.sticky-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

.sticky-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  transition: var(--transition);
  position: relative;
}

.sticky-nav-item:hover,
.sticky-nav-item.active {
  color: var(--cyan-accent);
}

.sticky-nav-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: var(--transition);
}

.sticky-nav-item:hover .sticky-nav-icon {
  transform: translateY(-2px);
  color: var(--cyan-accent);
}

/* Special Highlighting for center DAFTAR button */
.sticky-nav-item.cta-daftar {
  color: #000;
  margin-top: -18px;
}

.sticky-nav-item.cta-daftar .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.8), 0 0 0 4px rgba(10, 18, 36, 0.94);
  transition: var(--transition);
  color: #0d1322;
  font-size: 1.35rem;
}

.sticky-nav-item.cta-daftar:hover .icon-wrapper {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 1), 0 0 0 4px rgba(10, 18, 36, 0.94);
}

.sticky-nav-item.cta-daftar span {
  margin-top: 4px;
  color: #f59e0b;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
}
