/* ==========================================================================
   mclinks — Dark Brushed Steel Theme
   Palette: Steel grays, Warm gold (#D4A853), Cool silver
   Background: Dark brushed metal texture matching reference image
   ========================================================================== */

:root {
  --bg-dark: #1a1d21;
  --bg-darker: #131517;
  --bg-card: rgba(35, 38, 45, 0.65);
  --bg-card-solid: #1e2127;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(212, 168, 83, 0.4);
  --gold: #D4A853;
  --gold-light: #E8C876;
  --gold-dark: #B8903A;
  --silver: #A8B2C1;
  --text-primary: #E8ECF1;
  --text-secondary: #8892A0;
  --text-muted: #5A6472;
  --green: #34D399;
  --red: #F87171;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;

  /* Dark brushed metal background */
  background-color: var(--bg-darker);
  background-image:
    /* Horizontal hairline grain */
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 3px),
    /* Subtle vertical noise */
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.008) 0px,
      rgba(255, 255, 255, 0.008) 1px,
      transparent 1px,
      transparent 5px),
    /* Base gradient */
    linear-gradient(180deg, #18191d 0%, #1d1f24 30%, #222528 50%, #1d1f24 70%, #18191d 100%);
  background-attachment: fixed;
}

/* Brushed metal shine overlay */
.shine-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background: radial-gradient(ellipse 80% 50% at 60% 30%, rgba(255, 255, 255, 0.06), transparent 60%);
}

::selection {
  background: var(--gold);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-sm {
  max-width: 800px;
}

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

.text-right {
  text-align: right;
}

.mt-48 {
  margin-top: 48px;
}

.w-full {
  width: 100%;
  text-align: center;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0f1012;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: var(--transition);
  background: rgba(19, 21, 23, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

#navbar.scrolled {
  background: rgba(19, 21, 23, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f1012;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.3);
}

.nav-logo-img {
  height: 92px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.06);
}

.auth-card-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.auth-card-logo-img:hover {
  transform: scale(1.08) rotate(3deg);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-text span,
.drawer-logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn-ghost {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.nav-actions .btn-primary {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-darker);
  border-left: 1px solid var(--border);
  z-index: 201;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.drawer-logo {
  font-size: 1.3rem;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-nav a {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: var(--transition);
}

.drawer-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ========== HERO ========== */
.hero {
  padding: 230px 0 100px;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-sub {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 70px;
  padding: 28px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ========== FEATURE CARDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Card specular shine on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  left: 120%;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 168, 83, 0.1);
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.icon-amber {
  background: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.15);
}

.icon-green {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.15);
}

.icon-sky {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.15);
}

.icon-rose {
  background: rgba(251, 113, 133, 0.1);
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.15);
}

.icon-teal {
  background: rgba(45, 212, 191, 0.1);
  color: #2DD4BF;
  border-color: rgba(45, 212, 191, 0.15);
}

.icon-orange {
  background: rgba(251, 146, 60, 0.1);
  color: #FB923C;
  border-color: rgba(251, 146, 60, 0.15);
}

.icon-indigo {
  background: rgba(129, 140, 248, 0.1);
  color: #818CF8;
  border-color: rgba(129, 140, 248, 0.15);
}

/* ========== STEPS ========== */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.step-connector {
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ========== RATES TABLE ========== */
.rates-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rates-table thead tr {
  background: rgba(0, 0, 0, 0.3);
}

.rates-table th {
  padding: 16px 24px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.rates-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 500;
}

.rates-table tbody tr:hover {
  background: rgba(212, 168, 83, 0.03);
}

.rates-table tbody tr:last-child td {
  border-bottom: none;
}

.flag {
  font-size: 1.3rem;
  margin-right: 8px;
}

.rate-highlight {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold) !important;
}

.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-hot {
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.15);
}

.badge-active {
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.15);
}

/* ========== PAYOUTS ========== */
.payout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.payout-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.payout-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.payout-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 14px;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.payout-card h4 {
  margin-bottom: 4px;
}

.payout-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.faq-item.active {
  border-color: rgba(212, 168, 83, 0.2);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  gap: 16px;
}

.faq-q i {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-q i {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-item.active .faq-a {
  max-height: 300px;
}

.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.8rem;
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--gold);
  border-color: var(--border-hover);
  background: rgba(212, 168, 83, 0.06);
}

footer h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 10px;
}

footer li a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.footer-email:hover {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .stats-row {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .stat-item {
    padding: 12px 0;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 8px 0;
  }

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

  .payout-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .rates-table-wrap {
    overflow-x: auto;
  }

  .rates-table {
    min-width: 600px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-lg {
    width: 100%;
    justify-content: center;
  }
}