/* ============================================================
   DEFI77 — Premium VIP Brand System
   Color: Deep Noir + Royal Gold + Electric Cyan
   Font: Noto Sans SC (CN) + Playfair Display (accent) + JetBrains Mono (code)
   Concept: Dark luxury with neon energy — think high-end casino meets fintech
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;

  --gold: #d4a84b;
  --gold-light: #f0d282;
  --gold-dark: #a88330;

  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);

  --accent: #ff3366;
  --accent-glow: rgba(255, 51, 102, 0.3);

  --text: #eaeaea;
  --text-muted: #8892a8;
  --text-dim: #556070;

  --border: rgba(212, 168, 75, 0.15);
  --border-glow: rgba(212, 168, 75, 0.3);

  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: var(--font-cn);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

main {
  min-height: 30vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }



/* --- ORB BACKGROUND --- */
.orb-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 10% 20%, rgba(212, 168, 75, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 700px 900px at 90% 40%, rgba(0, 229, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 50% 80%, rgba(255, 51, 102, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, #0d0d1a 40%, var(--bg-secondary) 100%);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  padding: 0.35em 1em;
  border-radius: 100px;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.8em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-primary);
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.4);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-link:hover { color: var(--gold-light); gap: 0.7em; }

/* --- SECTION BASE --- */
.section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.section h2 {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 50% 30%, rgba(212, 168, 75, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 800px 800px at 70% 70%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  z-index: 0;
}

.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-hero-nav {
  font-size: 0.85rem;
  padding: 0.5em 1.5em;
}

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

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease 0.3s both;
}
.hero-content h1 {
  font-family: var(--font-accent);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25em;
  animation: scaleIn 1s ease 0.5s both;
}
.accent-text { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeIn 1s ease 0.7s both;
}
.hero-actions { animation: fadeIn 1s ease 0.9s both; }

.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease 1.1s both;
}

/* ============================================================
   S1: USDT PAY
   ============================================================ */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}
.pay-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-4px);
}
.pay-card-highlight {
  border-color: rgba(212, 168, 75, 0.3);
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.08), transparent);
}
.pay-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.pay-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.pay-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.pay-features { margin-bottom: 1.5rem; }
.pay-features li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.35em 0;
}

/* ============================================================
   S2: BRANDS
   ============================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.brand-card:hover::before { transform: translateX(100%); }
.brand-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}
.brand-num {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.brand-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.brand-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  flex: 1;
}
.brand-arrow {
  color: var(--gold);
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}
.brand-card:hover .brand-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   S3: ADVANTAGE
   ============================================================ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.adv-card:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.adv-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.adv-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.adv-card p { font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================
   S4: STATS
   ============================================================ */
.s-stats { padding-top: 3rem; padding-bottom: 3rem; }
.stats-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.08), rgba(0, 229, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 4rem 2rem;
}
.stats-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(212, 168, 75, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-num {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ============================================================
   S5: SECURITY
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.security-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.security-item:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}
.sec-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  color: var(--cyan);
}
.security-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.security-item p { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   S6: TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.testi-card:hover {
  border-color: var(--gold-dark);
}
.testi-stars { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; }
.testi-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; }
.testi-author { font-size: 0.85rem; color: var(--text-dim); }
.testi-author small { color: var(--gold); }

/* ============================================================
   S7: PROCESS
   ============================================================ */
.process-steps {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.process-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.step-num {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.85rem; color: var(--text-dim); }
.process-connector {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  flex-shrink: 0;
}

/* ============================================================
   S8: CTA
   ============================================================ */
.s-cta { padding-top: 3rem; padding-bottom: 3rem; }
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.1), rgba(255, 51, 102, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
}
.cta-box h2 {
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.cta-box p { color: var(--text-muted); margin-bottom: 2rem; }
.btn-cta { font-size: 1.1rem; padding: 0.8em 2.5em; }

/* ============================================================
   S9: FAQ
   ============================================================ */
.faq-list { max-width: 800px; }
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
details[open] { border-color: var(--gold-dark); }
summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}
details div[itemprop="text"] {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============================================================
   S10: LINK GRID
   ============================================================ */
.s-links { padding-top: 3rem; padding-bottom: 3rem; }
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.link-grid a {
  padding: 0.5em 1.25em;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.link-grid a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 75, 0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 3px solid #d4a84b;
  background: #0d0d1f;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: block;
  width: 100%;
  clear: both;
}

footer { display: block !important; visibility: visible !important; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.75rem; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links a, .footer-contact a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.tg-link { color: var(--cyan) !important; }
.btn-footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Staggered entry for cards */
.brand-card, .pay-card, .adv-card, .security-item, .testi-card {
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}
.brand-card:nth-child(1) { animation-delay: 0.05s; }
.brand-card:nth-child(2) { animation-delay: 0.1s; }
.brand-card:nth-child(3) { animation-delay: 0.15s; }
.brand-card:nth-child(4) { animation-delay: 0.2s; }
.brand-card:nth-child(5) { animation-delay: 0.25s; }
.brand-card:nth-child(6) { animation-delay: 0.3s; }
.brand-card:nth-child(7) { animation-delay: 0.35s; }
.brand-card:nth-child(8) { animation-delay: 0.4s; }
.brand-card:nth-child(9) { animation-delay: 0.45s; }
.brand-card:nth-child(10) { animation-delay: 0.5s; }

.pay-card:nth-child(1) { animation-delay: 0.1s; }
.pay-card:nth-child(2) { animation-delay: 0.2s; }
.pay-card:nth-child(3) { animation-delay: 0.3s; }

.adv-card:nth-child(1) { animation-delay: 0.05s; }
.adv-card:nth-child(2) { animation-delay: 0.1s; }
.adv-card:nth-child(3) { animation-delay: 0.15s; }
.adv-card:nth-child(4) { animation-delay: 0.2s; }
.adv-card:nth-child(5) { animation-delay: 0.25s; }
.adv-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-hero-nav { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .pay-grid,
  .adv-grid,
  .testi-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-steps { flex-direction: column; }
  .process-connector { width: 1px; height: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 1rem; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .hero-content h1 { font-size: 3rem; }
}
