/* ===== POINCHAIN - Stylesheet ===== */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --neon: #00ff88;
  --dark: #0a0e27;
  --dark-2: #111735;
  --dark-3: #1a2150;
  --light: #e2e8f0;
  --gray: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated background */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0a0e27 0%, #111735 50%, #1a2150 100%);
}

.bg-animation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.08), transparent 50%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Particles canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon), var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  -webkit-text-fill-color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--neon); }

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--neon);
  margin-bottom: 1.5rem;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 255, 136, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Countdown */
.countdown-section {
  margin: 2rem 0;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(26, 33, 80, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  min-width: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.countdown-item:hover {
  transform: translateY(-5px);
  border-color: var(--neon);
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

.countdown-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label-sm {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid rgba(99, 102, 241, 0.5);
}

.btn-secondary:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 5rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* PPOB Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: rgba(26, 33, 80, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover::before { opacity: 1; }

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: transform 0.4s;
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(-5deg);
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

.product-card .product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  background: var(--neon);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
}

/* Blockchain Section */
.blockchain-section {
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.blockchain-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.blockchain-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.chain-block {
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(26, 33, 80, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
  animation: float 4s ease-in-out infinite;
}

.chain-block:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.chain-block:nth-child(2) { top: 50%; left: 40%; animation-delay: 1s; border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); }
.chain-block:nth-child(3) { top: 25%; left: 70%; animation-delay: 2s; border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
.chain-block:nth-child(4) { top: 70%; left: 20%; animation-delay: 1.5s; }
.chain-block:nth-child(5) { top: 75%; left: 65%; animation-delay: 0.5s; border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.chain-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  opacity: 0.4;
  transform-origin: left center;
}

.chain-block small {
  font-size: 0.6rem;
  color: var(--gray);
  margin-top: 2px;
}

.blockchain-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.blockchain-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.feature-list li .check {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--dark);
  flex-shrink: 0;
  font-weight: 900;
}

/* Crypto Support */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.crypto-card {
  background: rgba(26, 33, 80, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.crypto-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon);
  background: rgba(26, 33, 80, 0.7);
}

.crypto-symbol {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-symbol img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.crypto-card:hover .crypto-symbol img {
  transform: scale(1.15) rotate(5deg);
}

.crypto-name {
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.crypto-ticker {
  font-size: 0.8rem;
  color: var(--gray);
}

.crypto-network {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50px;
  display: inline-block;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Stats */
.stats-section {
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(26, 33, 80, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: white;
  font-size: 1.05rem;
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--gray);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* CTA Final */
.cta-final {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 30px;
  max-width: 1000px;
  margin: 3rem auto;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.email-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.email-form input:focus {
  border-color: var(--neon);
}

.email-form button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.email-form button:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(10, 14, 39, 0.5);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--gray);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--neon); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--gray);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .blockchain-content { grid-template-columns: 1fr; }
  .blockchain-visual { height: 300px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .countdown-item { min-width: 75px; padding: 0.8rem 1rem; }
  .countdown-num { font-size: 2rem; }
  section { padding: 3rem 1rem; }
  .hero { padding: 5rem 1rem 1rem; }
}

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for hero icons */
.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float-around 10s linear infinite;
}

@keyframes float-around {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -40px) rotate(90deg); }
  50% { transform: translate(-20px, -80px) rotate(180deg); }
  75% { transform: translate(-50px, -40px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Glow effect */
.glow-text {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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