/* ============================================================
   DEFI55 — Premium Casino & VIP Lounge Brand System
   Concept: Macau/Vegas Old Money Luxury – Emerald, Amber, Brass
   Palette: Deep Emerald (#0a1f1a) + Antique Gold (#bf9428) + Amber (#c8702a)
   Font: Cinzel Decorative (headings), Spectral (body), Noto Sans SC (CN)
   ============================================================ */

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

:root {
  --bg-deep: #0a1f1a;
  --bg-mid: #0f2822;
  --bg-card: #152f28;
  --bg-card-hover: #1c3c33;
  --bg-cream: #f5efe6;

  --gold: #bf9428;
  --gold-light: #e0c16a;
  --gold-dark: #8a6e1a;

  --amber: #c8702a;
  --amber-light: #e8944a;

  --emerald: #1a5c48;
  --emerald-light: #2a7c64;

  --text: #e8e0d0;
  --text-muted: #a09880;
  --text-dim: #706858;
  --text-dark: #1a1510;

  --border: rgba(191, 148, 40, 0.2);
  --border-glow: rgba(191, 148, 40, 0.4);

  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --trans: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ── PAGE WRAPPER ── */
.page-wrapper { flex: 1 0 auto; position: relative; z-index: 1; }
main { min-height: 30vh; }

/* ── VELVET TEXTURE OVERLAY ── */
.velvet-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 15% 25%, rgba(26, 92, 72, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 600px 800px at 85% 50%, rgba(200, 112, 42, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 400px 400px at 50% 85%, rgba(191, 148, 40, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      transparent 3px
    );
}

/* ── NAV ── */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 31, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.logo span { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.nav-links a { transition: var(--trans); }
.nav-links a:hover { color: var(--gold-light); }
.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--gold); font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}
.btn-hero-nav { margin-left: auto; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-cn);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 0 20px rgba(191, 148, 40, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-cn);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
}
.btn-outline:hover {
  background: rgba(191, 148, 40, 0.1);
  box-shadow: 0 0 15px rgba(191, 148, 40, 0.15);
}

/* ── SECTION COMMON ── */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  position: relative;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-badge::before,
.section-badge::after {
  content: '◆';
  font-size: 0.4rem;
  opacity: 0.5;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 140%; height: 140%;
  background:
    radial-gradient(ellipse 500px 400px at 30% 40%, rgba(191,148,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 400px 500px at 70% 60%, rgba(200,112,42,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 600px 300px at 50% 80%, rgba(26,92,72,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero h1 .accent { color: var(--amber); }
.hero h1 .accent-light { color: var(--gold-light); }
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 2rem;
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust span { display: flex; align-items: center; gap: 0.3rem; }

/* ── INNER HERO (subpages) ── */
.inner-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 30%, rgba(191,148,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 400px 500px at 70% 60%, rgba(200,112,42,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.breadcrumb { color: var(--text-dim); font-size: 0.75rem; margin-bottom: 1rem; position: relative; }
.breadcrumb a { color: var(--gold); }
.inner-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  position: relative;
}
.inner-hero .hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  position: relative;
}

/* ── BRAND CARDS ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--trans);
  cursor: default;
}
.brand-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.brand-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.brand-card h3 { font-size: 0.9rem; color: var(--gold); margin-bottom: 0.25rem; }
.brand-card p { font-size: 0.75rem; color: var(--text-dim); }

/* ── GRID CARDS (generic) ── */
.card-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--trans);
}
.card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.card h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 3rem; margin-top: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--emerald), transparent);
}
.tl-item { position: relative; margin-bottom: 2rem; }
.tl-item::before {
  content: '◆';
  position: absolute; left: -2.4rem; top: 0.2rem;
  color: var(--gold);
  font-size: 0.7rem;
}
.tl-item h3 { font-size: 1rem; color: var(--gold); margin-bottom: 0.2rem; }
.tl-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2rem; }
.split-visual {
  background: linear-gradient(135deg, rgba(26,92,72,0.15), rgba(191,148,40,0.05));
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--border);
}
.split-visual .splash { font-size: 5rem; line-height: 1; }
.split-text h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); margin-bottom: 0.75rem; }
.split-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.split-text ul { margin: 1rem 0; }
.split-text li { font-size: 0.85rem; color: var(--text-muted); padding: 0.3em 0; padding-left: 1.5em; position: relative; }
.split-text li::before { content: '▸'; position: absolute; left: 0; color: var(--amber); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin-top: 2rem; }
details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
summary {
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem 0;
  transition: var(--trans);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
summary::before {
  content: '+';
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}
details[open] summary::before { content: '−'; }
summary:hover { color: var(--gold-light); }
details[open] summary { color: var(--gold); }
details[open] > div {
  padding: 0.75rem 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, rgba(26,92,72,0.2), rgba(191,148,40,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.cta-box h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testi-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.75rem; }
.testi-card p { font-size: 0.85rem; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.testi-author { display: block; margin-top: 1rem; font-size: 0.8rem; color: var(--gold); }
.testi-author small { color: var(--text-dim); }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ── AWARDS BADGES ── */
.award-list { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.award-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.5rem 1.25rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.award-badge .award-icon { font-size: 1rem; }

/* ── TABLE ── */
.comp-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.comp-table th {
  background: var(--emerald); color: var(--gold);
  padding: 1rem; text-align: left;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.comp-table td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.comp-table tr:hover td { background: rgba(191,148,40,0.04); }
.comp-table .check { color: var(--emerald-light); }
.comp-table .cross { color: var(--text-dim); }

/* ── BENTO GRID ── */
.bento { display: grid; gap: 1rem; margin-top: 2rem; }
.bento-3 { grid-template-columns: 1fr 1fr 1fr; }
.bento-tall { grid-row: span 2; }
.bento-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: var(--trans);
  display: flex; flex-direction: column; justify-content: center;
}
.bento-item:hover { border-color: var(--gold); background: var(--bg-card-hover); }
.bento-item h3 { font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.bento-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.bento-item .bento-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.bento-highlight {
  background: linear-gradient(135deg, rgba(26,92,72,0.2), rgba(191,148,40,0.08));
  border-color: var(--gold-dark);
}

/* ── GALLERY STRIP ── */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 2rem; }
.gallery-cell {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-dim);
  transition: var(--trans);
}
.gallery-cell:hover { border-color: var(--gold); background: var(--bg-card-hover); }

/* ── COUNTER SQUARES ── */
.counter-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.counter-sq {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.counter-sq .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--amber); }
.counter-sq .label { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem; }

/* ── INFO PANEL ── */
.info-panel {
  background: linear-gradient(135deg, rgba(191,148,40,0.06), rgba(26,92,72,0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid; gap: 1rem; margin-top: 2rem;
}
.info-panel-3 { grid-template-columns: repeat(3, 1fr); }
.info-panel-item { text-align: center; }
.info-panel-item h4 { font-size: 0.85rem; color: var(--gold); }
.info-panel-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── SCROLL ANIMATIONS ── */
.card, .brand-card, .testi-card, .bento-item, .counter-sq, .award-badge {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.card:nth-child(1), .brand-card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2), .brand-card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3), .brand-card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4), .brand-card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5), .brand-card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6), .brand-card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7), .brand-card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8), .brand-card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9), .brand-card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10), .brand-card:nth-child(10) { animation-delay: 0.5s; }

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

/* ── FOOTER ── */
.footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-mid) 0%, #071410 100%);
  border-top: 2px solid var(--gold-dark);
  position: relative; z-index: 2;
  display: block; width: 100%; clear: both;
}
.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 .logo { font-size: 1.4rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.75rem; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  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(--trans);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.tg-link { color: var(--emerald-light) !important; }
.btn-footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
  width: 100%;
}
.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); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 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,31,26,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 1rem;
  }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .card-grid-4, .card-grid-2,
  .split, .testi-grid, .stats-row,
  .bento-3, .counter-row, .info-panel-3 {
    grid-template-columns: 1fr;
  }
  .gallery-strip { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
