/* Trader Midas - Premium Black & Gold Theme */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --gold: #d4af37;
  --gold-2: #f4d03f;
  --gold-soft: #b8860b;
  --text: #f5f5f5;
  --text-dim: #a0a0a0;
  --border: rgba(212, 175, 55, 0.25);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Background ambient gold glow */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.06), transparent 50%);
  pointer-events: none; z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.05em;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #000 !important; padding: 0.6rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem;
  box-shadow: var(--shadow-gold);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.8rem;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-soft));
  color: #000; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 15px 50px -10px rgba(212,175,55,.6); }
.btn-outline {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }

/* Hero */
.hero { padding: 6rem 0 5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 1.5rem; }
.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-lbl { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-img {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(212,175,55,.3);
  border: 1px solid var(--border);
}
.hero-img img { width: 100%; height: 600px; object-fit: cover; }
.hero-img::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6)); }

/* Section */
.section { padding: 5rem 0; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 0.7rem; }
.section-head p { color: var(--text-dim); margin-top: 1rem; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Channel cards */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.channel-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.channel-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); }
.channel-card.featured { border-color: var(--gold); }
.channel-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: #000; font-size: 0.65rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 999px; letter-spacing: 0.1em;
}
.channel-tier { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.7rem; }
.channel-card h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.channel-deposit { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.channel-deposit strong { color: var(--gold); }
.channel-features { list-style: none; margin-bottom: 2rem; }
.channel-features li { padding: 0.6rem 0; border-bottom: 1px dashed rgba(255,255,255,0.05);
  font-size: 0.95rem; display: flex; align-items: center; gap: 0.7rem;
}
.channel-features li::before { content: '✦'; color: var(--gold); }
.channel-card .btn { width: 100%; justify-content: center; }

/* Gallery preview (home) */
.gallery-preview { padding: 5rem 0; }
.gallery-cinema {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.8rem;
}
.gallery-cinema .cell {
  position: relative; overflow: hidden; border-radius: 0.8rem; cursor: pointer;
  border: 1px solid var(--border);
}
.gallery-cinema .cell img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1); filter: brightness(0.85);
}
.gallery-cinema .cell:hover img { transform: scale(1.08); filter: brightness(1); }
.gallery-cinema .cell::after {
  content: attr(data-phase); position: absolute; bottom: 0.8rem; left: 0.8rem;
  color: var(--gold); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(0,0,0,0.6); padding: 0.3rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.gallery-cinema .cell.tall { grid-row: span 2; }
.gallery-cinema .cell.wide { grid-column: span 2; }

/* Phase gallery (gallery.html) */
.phase-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.phase-section.struggle { background: linear-gradient(180deg, #0a0a0a, #050505); }
.phase-section.achievement {}
.phase-section.luxury { background: linear-gradient(180deg, #0a0a0a, #1a1408 50%, #0a0a0a); }
.phase-label { display: inline-block; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.struggle .phase-label { color: #888; border: 1px solid #333; }
.achievement .phase-label { color: var(--gold); border: 1px solid var(--border); }
.luxury .phase-label { color: #000; background: linear-gradient(135deg, var(--gold-2), var(--gold-soft)); }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.phase-item { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 3/4;
  border: 1px solid var(--border); transition: transform .3s;
}
.phase-item:hover { transform: translateY(-5px); }
.phase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.phase-item:hover img { transform: scale(1.05); }
.struggle .phase-item img { filter: grayscale(0.6) contrast(1.1) brightness(0.85); }
.struggle .phase-item:hover img { filter: grayscale(0.3) contrast(1.1); }
.luxury .phase-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(212,175,55,0.15));
  pointer-events: none;
}

/* Video */
.video-wrap { max-width: 900px; margin: 0 auto; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-gold); }
.video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.blog-card h3 { font-size: 1.2rem; margin: 0.6rem 0; line-height: 1.3; }
.blog-card p { font-size: 0.9rem; color: var(--text-dim); }
.read-more { display: inline-block; margin-top: 1rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text);
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 1.5rem; transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s, padding .3s;
  color: var(--text-dim); padding: 0; }
.faq-item.open .faq-a { max-height: 500px; padding: 1rem 0 0; }

/* Article */
.article { max-width: 800px; margin: 0 auto; padding: 4rem 0; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.15; }
.article .meta { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem; }
.article h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text); }
.article h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.7rem; color: var(--gold); }
.article p { margin-bottom: 1.2rem; color: #d4d4d4; font-size: 1.05rem; }
.article ul, .article ol { margin: 1rem 0 1.5rem 1.5rem; color: #d4d4d4; }
.article li { margin-bottom: 0.5rem; }
.article blockquote { border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 1.5rem 0;
  font-style: italic; color: var(--text-dim); }

/* Breadcrumb */
.breadcrumb { padding: 1.5rem 0; font-size: 0.85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--gold); }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.02));
  border: 1px solid var(--border); border-radius: 1.5rem; padding: 3rem; text-align: center; }
.newsletter h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.newsletter p { color: var(--text-dim); margin-bottom: 1.5rem; }
.newsletter form { display: flex; max-width: 480px; margin: 0 auto; gap: 0.5rem; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 0.9rem 1.2rem; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text); font-size: 0.95rem; }
.newsletter input:focus { outline: none; border-color: var(--gold); }

/* Risk Disclaimer */
.risk-banner { background: rgba(212,175,55,0.06); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 1.2rem 0; font-size: 0.85rem;
  color: var(--text-dim); text-align: center; }
.risk-banner strong { color: var(--gold); }

/* Footer */
.site-footer { background: #050505; border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-about p { color: var(--text-dim); font-size: 0.9rem; margin-top: 1rem; max-width: 360px; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex;
  justify-content: space-between; color: var(--text-dim); font-size: 0.85rem; flex-wrap: wrap; gap: 1rem; }

/* Sticky Join + Popup */
.sticky-join {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-soft));
  color: #000; font-weight: 700; padding: 1rem 1.5rem; border-radius: 999px;
  box-shadow: 0 10px 40px -5px rgba(212,175,55,.6); display: flex; align-items: center; gap: 0.6rem;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 10px 40px -5px rgba(212,175,55,.6);} 50% { box-shadow: 0 10px 50px 0 rgba(212,175,55,.9);} }

.join-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.join-popup-overlay.open { display: flex; }
.join-popup { background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--gold); border-radius: 1.5rem; padding: 3rem; max-width: 480px; text-align: center;
  position: relative; box-shadow: var(--shadow-gold);
}
.join-popup-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none;
  color: var(--text-dim); font-size: 1.5rem; cursor: pointer; }
.join-popup h3 { font-size: 1.7rem; color: var(--gold); margin-bottom: 0.5rem; }
.join-popup p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Search */
.search-box { max-width: 480px; margin: 0 auto 2.5rem; }
.search-box input { width: 100%; padding: 1rem 1.5rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1rem; }
.search-box input:focus { outline: none; border-color: var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img img { height: 400px; }
  .channels, .blog-grid { grid-template-columns: 1fr; }
  .gallery-cinema { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .article { padding: 2rem 0; }
}
@media (max-width: 560px) {
  .phase-grid { grid-template-columns: 1fr; }
  .gallery-cinema { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Logo image + Register CTA */
.logo-img { height: 56px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(212,175,55,0.35)); }
@media (max-width: 768px){ .logo-img { height: 44px; } }
.nav-cta-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold), var(--gold-soft)) !important;
  color: #0a0a0a !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 24px -8px rgba(212,175,55,.6);
  border: 1px solid rgba(255,255,255,.2);
}
.nav-cta-gold:hover { transform: translateY(-2px); }

.register-banner {
  position: relative; z-index: 1;
  margin: 3rem auto; max-width: 1180px;
  padding: 2.25rem 2rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(212,175,55,.14), transparent 60%),
    linear-gradient(135deg, #1a1305, #0a0a0a 60%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.register-banner h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--gold-2); margin-bottom: .35rem; }
.register-banner p { color: var(--text-dim); max-width: 620px; }
.register-banner .btn-register {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.1rem 2.2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold), var(--gold-soft));
  color: #0a0a0a; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 14px 40px -12px rgba(212,175,55,.7);
  transition: transform .2s ease;
}
.register-banner .btn-register:hover { transform: translateY(-3px) scale(1.02); }
.register-banner .logo-mini { height: 80px; width: auto; filter: drop-shadow(0 6px 18px rgba(212,175,55,.45)); }
