/* ═══════════════════════════════════════════════════════════════
   828 TREASURY — Crisp White + Emerald + Gold Ultra-Premium
   Plasma particles, underglow, gasping beauty, x30 factor
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500;600;700&family=Cinzel:wght@400;500;600;700;900&display=swap');

:root {
  /* 828group.vip matching dark foundation */
  --bg-pure: hsl(0, 0%, 9%);
  --bg-cream: hsl(0, 0%, 12%);
  --bg-pearl: hsl(0, 0%, 15%);
  --bg-mist: hsl(0, 0%, 20%);

  /* Gold spectrum — matching 828group.vip #df9920, #f6ce55 */
  --emerald-deep: #92400E;
  --emerald: #df9920;
  --emerald-mid: #e5a82a;
  --emerald-bright: #f6ce55;
  --emerald-light: #FCD34D;
  --emerald-glow: rgba(223, 153, 32, 0.15);
  --emerald-shimmer: rgba(223, 153, 32, 0.06);

  /* Gold spectrum */
  --gold-deep: #92400E;
  --gold: #df9920;
  --gold-bright: #f6ce55;
  --gold-light: #FCD34D;
  --gold-glow: rgba(246, 206, 85, 0.15);

  /* Text hierarchy — light on dark */
  --text-primary: hsl(0, 0%, 93%);
  --text-secondary: hsl(0, 0%, 78%);
  --text-muted: hsl(0, 0%, 56%);
  --text-subtle: hsl(0, 0%, 43%);

  /* Plasma accents */
  --plasma-cyan: #06B6D4;
  --plasma-violet: #8B5CF6;
  --plasma-rose: #F43F5E;
  --plasma-amber: #f6ce55;

  /* Typography — matching 828group.vip */
  --font-display: 'Cinzel', serif;
  --font-elegant: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --font-data: 'Outfit', sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 10rem);
  --content-max: 1280px;

  /* Underglow */
  --underglow: 0 8px 40px -12px rgba(16, 185, 129, 0.25), 0 4px 20px -8px rgba(245, 158, 11, 0.15);
  --underglow-hover: 0 20px 60px -15px rgba(16, 185, 129, 0.35), 0 10px 30px -10px rgba(245, 158, 11, 0.2);
  --underglow-intense: 0 0 80px rgba(16, 185, 129, 0.2), 0 0 160px rgba(245, 158, 11, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-pure);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--emerald);
  color: var(--bg-pure);
}

/* ═══════════════════════════════════════
   GLOBAL UNDERGLOW EFFECT
   ═══════════════════════════════════════ */

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(16,185,129,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(245,158,11,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(139,92,246,0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 20s ease-in-out infinite;
}

@keyframes ambientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ═══════════════════════════════════════
   NAVIGATION — Frosted Glass
   ═══════════════════════════════════════ */

.nav-treasury {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(223, 153, 32, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-treasury.scrolled {
  padding: 0.7rem 3rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 60px rgba(223,153,32,0.05);
  border-bottom-color: rgba(223,153,32,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-logo .eye-symbol {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 12px rgba(16,185,129,0.4));
  animation: eyePulse 4s ease-in-out infinite;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

/* ═══════════════════════════════════════
   HERO SECTION — The Vault Opens
   ═══════════════════════════════════════ */

.hero-vault {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-pure) 0%, var(--bg-cream) 100%);
}

#masonic-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
}

.hero-emblem {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(16,185,129,0.2));
}

.hero-emblem svg {
  width: 100%;
  height: 100%;
}

.hero-overline {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title .emerald {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-elegant);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

/* ═══════════════════════════════════════
   BUTTONS — Emerald + Gold
   ═══════════════════════════════════════ */

.btn-gold {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  border: none;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: var(--underglow);
  border-radius: 2px;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--underglow-hover);
}

.btn-gold:hover::before { opacity: 1; }

.btn-ghost {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  border: 2px solid var(--bg-mist);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
  border-radius: 2px;
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 30px rgba(16,185,129,0.1);
}

/* ═══════════════════════════════════════
   SACRED DIVIDER — Emerald Lines
   ═══════════════════════════════════════ */

.sacred-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.sacred-divider .line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-bright), var(--gold-bright), transparent);
}

.sacred-divider .glyph {
  color: var(--emerald);
  font-size: 1.2rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(16,185,129,0.3));
}

/* ═══════════════════════════════════════
   SECTIONS — Alternating backgrounds
   ═══════════════════════════════════════ */

section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 2rem;
}

section:nth-child(even) {
  background: hsl(0, 0%, 11%);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-overline {
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════
   CREED / POETRY — Elegant Script
   ═══════════════════════════════════════ */

.creed-section {
  background: linear-gradient(180deg, var(--bg-cream), var(--bg-pure)) !important;
  text-align: center;
}

.creed-block {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 3rem 3.5rem;
  border: 1px solid rgba(16,185,129,0.12);
  background: hsl(0, 0%, 12%);
  position: relative;
  box-shadow: var(--underglow);
  transition: all 0.5s;
}

.creed-block:hover {
  box-shadow: var(--underglow-hover);
  transform: translateY(-2px);
}

.creed-block::before,
.creed-block::after {
  content: '◆';
  position: absolute;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.7rem;
}

.creed-block::before { top: -0.4rem; left: 50%; transform: translateX(-50%); }
.creed-block::after { bottom: -0.4rem; left: 50%; transform: translateX(-50%); }

.creed-text {
  font-family: var(--font-elegant);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 2;
  font-weight: 400;
}

.creed-attribution {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin-top: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   TREASURY METRICS — Glass Cards
   ═══════════════════════════════════════ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-card {
  background: hsl(0, 0%, 12%);
  border: 1px solid rgba(16,185,129,0.08);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
  border-radius: 4px;
}

/* Underglow bar at bottom */
.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--underglow-hover);
  border-color: rgba(16,185,129,0.2);
}

.metric-card:hover::after { transform: scaleX(1); }

.metric-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(16,185,129,0.3));
}

.metric-value {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.metric-label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════
   THREE PILLARS — Glass Morphism
   ═══════════════════════════════════════ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: hsl(0, 0%, 12%);
  border: 1px solid rgba(16,185,129,0.08);
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
  overflow: hidden;
  border-radius: 4px;
}

/* Glowing underglow */
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 10%;
  right: 10%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(16,185,129,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--underglow-hover);
  border-color: rgba(16,185,129,0.2);
}

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

.pillar-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(16,185,129,0.1), rgba(16,185,129,0.03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pillar-symbol {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 15px rgba(16,185,129,0.3));
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--emerald-deep), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pillar-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   MONEY POOL DASHBOARD
   ═══════════════════════════════════════ */

.pool-section {
  background: var(--bg-pearl) !important;
}

.pool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pool-container { grid-template-columns: 1fr; }
}

.pool-vault {
  background: hsl(0, 0%, 12%);
  border: 1px solid rgba(16,185,129,0.1);
  padding: 2.5rem;
  box-shadow: var(--underglow);
  border-radius: 4px;
  transition: all 0.5s;
}

.pool-vault:hover {
  box-shadow: var(--underglow-hover);
}

.pool-vault-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pool-vault-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--emerald-deep);
}

.pool-balance {
  font-family: var(--font-data);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.pool-balance-sub {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pool-progress {
  height: 8px;
  background: var(--bg-mist);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}

.pool-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-bright));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(16,185,129,0.4);
  position: relative;
}

/* Animated shimmer on progress bar */
.pool-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmerSlide 2s linear infinite;
}

@keyframes shimmerSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.pool-target {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: right;
  margin-bottom: 2rem;
}

.pool-members-list {
  list-style: none;
}

.pool-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bg-mist);
  font-family: var(--font-data);
  font-size: 0.85rem;
  transition: all 0.3s;
}

.pool-member:hover { background: var(--emerald-shimmer); padding-left: 0.5rem; }
.pool-member .name { color: var(--text-secondary); }
.pool-member .amount { color: var(--emerald); font-weight: 700; }

/* Dopamine live counter */
.dopamine-box {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--emerald-shimmer), var(--gold-glow));
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.dopamine-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--emerald), var(--gold), var(--emerald), var(--gold));
  background-size: 400% 400%;
  animation: borderGlow 6s linear infinite;
  z-index: -1;
  border-radius: 5px;
  opacity: 0.3;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contribute panel */
.contribute-panel {
  background: hsl(0, 0%, 12%);
  border: 1px solid rgba(16,185,129,0.08);
  padding: 2.5rem;
  box-shadow: var(--underglow);
  border-radius: 4px;
}

.contribute-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: hsl(0, 0%, 11%);
  border: 2px solid var(--bg-mist);
  color: var(--text-primary);
  font-family: var(--font-data);
  font-size: 0.9rem;
  transition: all 0.3s;
  border-radius: 3px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-glow);
  background: hsl(0, 0%, 12%);
}

/* QR Code display */
.qr-display {
  text-align: center;
  padding: 2rem;
  background: hsl(0, 0%, 11%);
  border: 2px dashed rgba(16,185,129,0.2);
  margin-top: 1.5rem;
  display: none;
  border-radius: 4px;
}

.qr-display.active { display: block; animation: fadeUp 0.5s ease; }

.qr-label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════
   DEAL CARDS
   ═══════════════════════════════════════ */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.deal-card {
  background: hsl(0, 0%, 12%);
  border: 1px solid rgba(16,185,129,0.06);
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.02);
  border-radius: 4px;
}

.deal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
  transform: scaleX(0);
  transition: transform 0.5s;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--underglow);
  border-color: rgba(16,185,129,0.15);
}

.deal-card:hover::after { transform: scaleX(1); }

.deal-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.deal-tag.gold { color: var(--gold); background: var(--gold-glow); }
.deal-tag.oil { color: #0284C7; background: rgba(2,132,199,0.1); }
.deal-tag.realestate { color: var(--emerald); background: var(--emerald-glow); }
.deal-tag.crypto { color: #D97706; background: rgba(217,119,6,0.1); }
.deal-tag.tech { color: var(--plasma-violet); background: rgba(139,92,246,0.1); }

.deal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.deal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   MEMBERS CONSTELLATION
   ═══════════════════════════════════════ */

.members-section { text-align: center; }

#constellation-canvas {
  width: 100%;
  height: 450px;
  margin: 2rem 0;
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   SECURITY BADGES
   ═══════════════════════════════════════ */

.security-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.security-badge:hover { transform: translateY(-3px); }

.security-badge .icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(16,185,129,0.2));
}

.security-badge .label {
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════
   VIDEO CONTAINER
   ═══════════════════════════════════════ */

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  aspect-ratio: 16/9;
  border: 1px solid rgba(16,185,129,0.1);
  overflow: hidden;
  box-shadow: var(--underglow-intense);
  border-radius: 4px;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer-treasury {
  border-top: 1px solid var(--bg-mist);
  padding: 5rem 2rem;
  text-align: center;
  background: hsl(0, 0%, 11%);
}

.footer-emblem {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(16,185,129,0.3));
}

.footer-text {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--emerald); }

.footer-copy {
  font-family: var(--font-data);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════
   LOADING SCREEN — Vault Opening
   ═══════════════════════════════════════ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(0, 0%, 12%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s, visibility 1s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-eye {
  font-size: 4rem;
  animation: eyePulse 1.5s ease-in-out infinite;
  margin-bottom: 2rem;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ternary-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.ternary-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  animation: ternaryPulse 1.2s ease-in-out infinite;
}

.ternary-dots span:nth-child(2) { animation-delay: 0.2s; }
.ternary-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

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

@keyframes eyePulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(16,185,129,0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(16,185,129,0.7)); transform: scale(1.05); }
}

@keyframes ternaryPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}

/* Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children .reveal { transition-delay: calc(var(--i, 0) * 0.12s); }

/* Gold/Emerald shimmer text */
.text-shimmer {
  background: linear-gradient(90deg, var(--emerald), var(--gold-bright), var(--emerald), var(--gold-bright));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 5s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pool-container { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-treasury { padding: 0.8rem 1.5rem; }
}
