/* =========================================================
   singbet.cc — Contact Hub
   Edit links only in /js/config.js
   ========================================================= */

:root {
  --bg-0: #060a12;
  --bg-1: #0c1424;
  --card: rgba(16, 26, 44, 0.82);
  --border: rgba(212, 175, 55, 0.22);
  --border-strong: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-light: #f6e27a;
  --gold-dark: #a67c00;
  --text: #eef2f7;
  --muted: #9aa4b2;
  --dim: #6b7687;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --tg: #2aabee;
  --tg-dark: #229ed9;
  --fot: #e8a317;
  --radius: 20px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 720px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.splash-active {
  overflow: hidden;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

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

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(700px 400px at 10% 80%, rgba(37, 211, 102, 0.06), transparent 50%),
    radial-gradient(700px 400px at 90% 70%, rgba(42, 171, 238, 0.07), transparent 50%),
    linear-gradient(180deg, #060a12 0%, #0a1220 50%, #060a12 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
  animation: gridDrift 30s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  animation: orbFloat 14s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(212, 175, 55, 0.2);
  top: 8%;
  left: -60px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(37, 211, 102, 0.12);
  bottom: 10%;
  right: -40px;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(42, 171, 238, 0.12);
  top: 45%;
  left: 40%;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -28px) scale(1.08); }
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #050912, #0c1424 50%, #060a12);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  text-align: center;
}

.splash-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  animation: logoPulse 1.4s ease-in-out infinite;
}

.splash-logo svg {
  width: 100%;
  height: 100%;
}

.splash-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-bar {
  width: 140px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wa), var(--gold), var(--tg));
  animation: loadBar 1.4s ease forwards;
  border-radius: inherit;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes loadBar {
  to { width: 100%; }
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 1.75rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(18, 28, 48, 0.6));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.12);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5eead4;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  flex-shrink: 0;
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 10px #5eead4;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.75s ease 0.08s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #fff 10%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
  margin: 0 auto;
}

/* Auto redirect banner */
.auto-banner {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-strong);
  text-align: center;
  font-size: 0.92rem;
  color: var(--gold-light);
  animation: fadeUp 0.5s ease both;
}

.auto-banner a {
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- CTA cards ---------- */
.cta-stack {
  display: grid;
  gap: 1rem;
}

.cta-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.85;
}

.cta-card.wa::before {
  background: linear-gradient(90deg, transparent, var(--wa), transparent);
}

.cta-card.tg::before {
  background: linear-gradient(90deg, transparent, var(--tg), transparent);
}

.cta-card.fot::before {
  background: linear-gradient(90deg, transparent, var(--fot), transparent);
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cta-card.is-highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: cardPulse 1.2s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), 0 16px 40px rgba(0, 0, 0, 0.35); }
}

.cta-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.cta-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.cta-icon.wa {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.12));
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--wa);
}

.cta-icon.tg {
  background: linear-gradient(145deg, rgba(42, 171, 238, 0.2), rgba(34, 158, 217, 0.12));
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: var(--tg);
}

.cta-icon.fot {
  background: linear-gradient(145deg, rgba(232, 163, 23, 0.2), rgba(196, 137, 15, 0.12));
  border: 1px solid rgba(232, 163, 23, 0.35);
  color: var(--fot);
}

/* Animated ring around icon */
.cta-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  opacity: 0.5;
  animation: ringSpin 4s linear infinite;
}

.cta-icon.wa::after {
  border-top-color: var(--wa);
  border-right-color: rgba(37, 211, 102, 0.2);
}

.cta-icon.tg::after {
  border-top-color: var(--tg);
  border-right-color: rgba(42, 171, 238, 0.2);
}

.cta-icon.fot::after {
  border-top-color: var(--fot);
  border-right-color: rgba(232, 163, 23, 0.2);
}

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

.cta-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-head p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Buttons */
.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  color: #fff !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.cta-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cta-btn .arrow {
  width: 18px;
  height: 18px;
  margin-left: 0.15rem;
  transition: transform 0.25s ease;
}

.cta-btn:hover .arrow {
  transform: translateX(4px);
}

.cta-btn.wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32);
}

.cta-btn.tg {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.32);
}

.cta-btn.fot {
  background: linear-gradient(135deg, #f0b429, #c4890f);
  color: #1a1200 !important;
  box-shadow: 0 10px 28px rgba(232, 163, 23, 0.28);
}

.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Shine sweep */
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 140%; }
}

/* ---------- Info strip ---------- */
.info {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(18, 28, 48, 0.55);
  border: 1px solid var(--border);
}

.info h3 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}

.info ul {
  list-style: none;
}

.info li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.step {
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  background: rgba(18, 28, 48, 0.5);
  border: 1px solid var(--border);
  text-align: center;
}

.step strong {
  display: block;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.step span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.55;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--gold-light);
}

.disclaimer {
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 0.72rem;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating particles (CSS only) */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.35;
  animation: rise 8s linear infinite;
}

.particles span:nth-child(1) { left: 12%; bottom: -8px; animation-delay: 0s; }
.particles span:nth-child(2) { left: 28%; bottom: -8px; animation-delay: 1.2s; width: 3px; height: 3px; background: var(--wa); }
.particles span:nth-child(3) { left: 48%; bottom: -8px; animation-delay: 2.4s; }
.particles span:nth-child(4) { left: 66%; bottom: -8px; animation-delay: 0.8s; background: var(--tg); }
.particles span:nth-child(5) { left: 82%; bottom: -8px; animation-delay: 3s; width: 5px; height: 5px; }
.particles span:nth-child(6) { left: 92%; bottom: -8px; animation-delay: 1.8s; background: var(--wa); }

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.4; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.15rem, var(--max));
    padding-top: 1.1rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-btn {
    font-size: 0.98rem;
    min-height: 50px;
  }

  .orb {
    opacity: 0.25;
    filter: blur(55px);
  }
}

@media (hover: none) {
  .cta-card:hover {
    transform: none;
  }

  .cta-btn:hover {
    transform: none;
  }

  .cta-btn:hover .arrow {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .splash {
    display: none !important;
  }

  body.splash-active {
    overflow: auto;
  }
}
