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

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0e121d;
  --card-bg: rgba(18, 24, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(139, 92, 246, 0.4);
  
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Glow Background Orbs */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  top: -100px;
  left: 20%;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
  top: 500px;
  right: -100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

.icon-tg {
  width: 18px;
  height: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-telegram {
  background: rgba(41, 169, 235, 0.12);
  color: #29a9eb;
  border: 1px solid rgba(41, 169, 235, 0.3);
}

.btn-telegram:hover {
  background: #29a9eb;
  color: #ffffff;
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
}

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

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: var(--radius-xl);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Catalog Section */
.catalog-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  width: 100%;
  height: 160px;
  background: #111420;
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

.card-price-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-price-val {
  font-size: 1.18rem;
  font-weight: 800;
  color: #38bdf8;
}

.btn-card {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Guarantee Section */
.guarantee-section {
  padding: 80px 0;
}

.guarantee-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.guarantee-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.guarantee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee-list li {
  color: #c7d2fe;
  font-size: 0.92rem;
  font-weight: 500;
}

/* FAQ */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-secondary);
}

details[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #040609;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 16px 0 20px;
  max-width: 380px;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--accent-secondary);
  text-decoration: none;
}

.footer-links-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s;
}

.modal-backdrop.hidden {
  display: none;
  opacity: 0;
}

.modal-card {
  background: #111522;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}

.legal-card {
  max-width: 650px;
}

.legal-body {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-body h4 {
  color: var(--text-main);
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 8px;
}

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

.modal-price-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-price-box strong {
  font-size: 1.3rem;
  color: #38bdf8;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #090c15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-hint {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 6px;
}

.payment-method-box {
  margin-bottom: 24px;
}

.method-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.method-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.method-title {
  font-size: 0.85rem;
  font-weight: 600;
}

/* QRIS Display */
.qris-order-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.qris-order-tag span {
  font-family: monospace;
  color: var(--accent-secondary);
}

.qris-amount-box {
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
}

.qris-amount-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qris-amount-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 2px 0;
}

.qris-note {
  font-size: 0.75rem;
  color: var(--warning);
}

.qris-image-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  max-width: 240px;
  margin: 16px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qris-image-container img {
  width: 100%;
  display: block;
}

.qris-instructions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: left;
}

.qris-instructions ol {
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polling-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

/* Success Screen */
.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.license-box {
  background: #090c14;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 8px;
}

.btn-copy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.license-box pre {
  font-family: monospace;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.license-tip {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Loading Spinner */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.4rem; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}
