/* ============================================================
   AUXIONMARKETS — Sections (Quiet Luxury)
   ============================================================ */

section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ── 3D Decorative Floating Elements (Global) ──────────────── */
.decor-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* Keep visible above background */
  overflow: hidden;
}

.decor-3d {
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0, 82, 255, 0.12));
  user-select: none;
  z-index: 0;
}

.decor-3d--float {
  animation: floating 6s ease-in-out infinite;
}

.decor-3d--slow {
  animation: floating 10s ease-in-out infinite;
  animation-delay: -2s;
}

.decor-3d--fast {
  animation: floating 4s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes floating {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

section.bg-grey {
  background-color: var(--bg-surface);
}

/* ── "Phone Sandwich" (Features) ────────────────────────── */
.sandwich {
  text-align: center;
}

.sandwich__grid {
  display: grid;
  grid-template-columns: 1fr 300px 1fr; /* Slimmer phone, wider luxury gutters */
  gap: 80px;
  align-items: center;
  margin-top: 80px;
}

.sandwich-col {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sandwich-col.left { text-align: right; }
.sandwich-col.right { text-align: left; }

.s-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sandwich-col.left .s-feature { align-items: flex-end; }
.sandwich-col.right .s-feature { align-items: flex-start; }

.s-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.s-title { font-weight: 600; color: var(--text-dark); font-size: var(--text-base); letter-spacing: -0.3px;}
.s-desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; max-width: 260px; }

.sandwich-center {
  display: flex;
  justify-content: center;
  position: relative;
}

/* The mock iPhone */
.mock-phone {
  width: 280px;
  height: 560px;
  background: #0A0F1C; /* sleek black */
  border-radius: 36px;
  border: 6px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.mock-phone-screen {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}
.mock-phone-header { height: 60px; background: var(--bg-primary); color: var(--text-dark); display: flex; align-items:flex-end; padding: 12px 20px; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--border-faint);}
.mock-phone-body { padding: 20px; display: flex; flex-direction: column; gap: 16px;}
.mock-skeleton { height: 40px; background: var(--bg-surface); border-radius: 8px; border: 1px solid var(--border-faint); }

@media (max-width: 992px) {
  .sandwich__grid { grid-template-columns: 1fr; gap: 40px; }
  .sandwich-col.left, .sandwich-col.right { text-align: center; }
  .sandwich-col.left .s-feature, .sandwich-col.right .s-feature { align-items: center; }
  .sandwich-center { grid-row: 1; margin-bottom: 40px; }
  .acct-grid { grid-template-columns: 1fr; gap: 24px; }
  .decor-wrap { display: none; } /* Better to hide 3D clutter on mobile */
}

/* ── Account Types Grid ─────────────────────────────────── */
.acct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
}

@media (max-width: 992px) {
  .acct-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
}

.acct-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.acct-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.acct-card.featured {
  box-shadow: var(--shadow-md);
  position: relative;
  /* removing the harsh 1px accent border for a top stroke only */
  border-top: 3px solid var(--accent);
}
.acct-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.acct-title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.acct-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.acct-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}
.acct-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark-secondary);
}
.acct-features svg {
  color: var(--text-light); /* softer checkmarks */
  flex-shrink: 0;
}
.acct-features strong {
  font-weight: 500;
  color: var(--text-dark);
}

/* ── Institutional Pricing Table ────────────────────────── */
.jm-table-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 40px;
}

.jm-table {
  width: 100%;
  border-collapse: collapse;
}

.jm-table th {
  background: var(--bg-primary);
  padding: 24px 32px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-faint);
}

.jm-table td {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-faint);
  font-size: 14px;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text-dark-secondary);
}

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

.jm-table-wrapper {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow-x: auto; /* Enable horizontal scroll on mobile */
  border: 1px solid var(--border-faint);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.jm-table {
  min-width: 800px; /* Force minimum width for table logic on mobile */
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .jm-table th, .jm-table td {
    padding: 16px 20px;
    font-size: 13px;
  }
}

/* ── Popular Instruments (Header & Tabs) ──────────────── */
.inst-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .inst-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
}
.view-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 8px; /* aligns with bottom of mega title */
}
.view-all-btn:hover { text-decoration: underline; }

.inst-tabs-wrap {
  margin-bottom: 24px;
}
.inst-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.inst-tabs::-webkit-scrollbar { display: none; }
.inst-tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid transparent; /* matches active state jump */
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.inst-tab:hover {
  background: var(--bg-surface);
}
.inst-tab.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}
.jm-sym { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 500; 
  color: var(--text-dark); 
}
.jm-sym svg { stroke: var(--text-muted); }
/* High-Fidelity Asset Logos */
.asset-logo-wrap {
  display: flex;
  position: relative;
  width: 36px;
  height: 32px;
}
.asset-flag {
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
}
.asset-flag:nth-child(1) {
  /* First icon (Primary): BIGGER and UNDER */
  width: 32px;
  height: 32px;
  left: 0;
  top: 0;
  z-index: 1;
  border: none;
  box-shadow: none;
}
.asset-flag:nth-child(2) {
  /* Second icon (Secondary): SMALLER and on TOP as a badge */
  width: 18px;
  height: 18px;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  border: 2px solid var(--bg-primary); /* Cut-out effect */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Single Icon Enlargement */
.asset-logo-wrap.single-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.asset-flag--single {
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Awards Showcase ─────────────── */
.awards-section {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.awards-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.award-card {
  background: var(--bg-secondary);
  padding: 32px 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.award-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  background: var(--bg-primary);
}
.award-icon {
  margin-bottom: 20px;
  color: var(--accent);
}
.award-icon svg {
  width: 40px;
  height: 40px;
}
.award-year {
  font-family: var(--font-number);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.award-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.award-org {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 991px) {
  .awards-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .awards-content {
    margin-bottom: 40px;
  }
  .awards-content p {
    margin: 0 auto;
  }
  .awards-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .awards-badges {
    grid-template-columns: 1fr;
  }
}

/* ── Funding Ecosystem ─────────────── */
.funding-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.funding-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.fund-logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: var(--transition-base);
  filter: grayscale(1);
}

.fund-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.fund-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .funding-logos { gap: 40px; }
  .fund-logo { height: 32px; }
}

.funding-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.f-metric {
  background: var(--bg-primary); /* White cards on Grey background */
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}
.f-metric:hover {
  transform: translateY(-5px);
}
.f-val {
  font-family: var(--font-number);
  font-size: 40px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.f-lbl {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 768px) {
  .funding-metrics {
    grid-template-columns: 1fr;
  }
  .funding-logos {
    gap: 30px;
  }
}

/* ── App Download (V2.4 Clean Light Theme) ─────────────── */
.app-download {
  padding: 120px 0 0 0; /* Huge top padding, zero bottom for phone stick-out */
  overflow: hidden;
  border-top: 1px solid var(--border-faint);
}

.app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.app-content {
  padding-bottom: 120px;
}

.official-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-badge-link {
  display: block;
  transition: transform 0.2s var(--ease-out);
}
.app-badge-link:hover {
  transform: translateY(-2px);
}
.app-badge {
  height: 48px;
  width: auto;
}

.app-visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.clean-phone-frame {
  width: 320px;
  height: 640px;
  background: var(--bg-surface);
  border: 12px solid #E2E8F0; /* Clean silver bezel */
  border-radius: 48px 48px 0 0;
  border-bottom: none;
  box-shadow: 0 40px 100px rgba(0,0,0,0.08), inset 0 0 0 2px #fff;
  position: absolute;
  bottom: 0;
  overflow: hidden;
}

.clean-phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  position: relative;
  padding: 40px 24px;
}

.cp-header { display: flex; justify-content: center; margin-bottom: 40px; }
.cp-notch { width: 120px; height: 24px; background: #E2E8F0; border-radius: 0 0 16px 16px; position: absolute; top:0; }

.cp-chart-line { width: 100%; height: 120px; background: linear-gradient(180deg, rgba(0,82,255,0.1) 0%, transparent 100%); border-top: 2px solid var(--accent); margin-bottom: 32px; border-radius: 8px;}
.cp-balance { font-size: 32px; font-weight: 600; color: var(--text-dark); letter-spacing: -1px; text-align: center; }
.cp-profit { font-size: 14px; color: var(--profit); font-weight: 500; text-align: center; margin-bottom: 40px; }

.cp-rows { display: flex; flex-direction: column; gap: 16px; }
.cp-row { height: 48px; background: #F8FAFC; border-radius: 8px; border: 1px solid var(--border-faint); }

@media (max-width: 992px) {
  .app-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .app-content { padding-bottom: 0px; display: flex; flex-direction: column; align-items: center;}
  .official-badges { justify-content: center; }
  .app-visual { height: 400px; }
  .clean-phone-frame { height: 440px; }
}

/* ── Proof in Numbers (Stats Bar) ───────────────────────── */
.stats-bar {
  padding: 0; /* Remove default massive section padding */
  background: var(--bg-primary);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.stats-grid {
  display: flex;
  justify-content: space-between;
}

.stat-block {
  flex: 1;
  padding: 60px 24px;
  text-align: center;
  border-right: 1px solid var(--border-faint);
}
.stat-block:last-child { border-right: none; }

.stat-val {
  font-size: clamp(32px, 4vw, var(--text-2xl));
  font-weight: 400; /* Thin, huge numbers look very expensive */
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-grid { flex-direction: column; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--border-faint); padding: 40px; }
}

/* ── Security Shield (V2.3 Trust Grid) ──────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 48px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 32px;
  border: 1px solid var(--border-faint);
}
.trust-icon svg { width: 32px; height: 32px; stroke-width: 1.25px; }

.trust-title {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.trust-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

/* ── FAQ (V2.3 Sticky Asymmetrical) ─────────────────────── */
.faq-modern {
  background: var(--bg-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
}

.sticky-block {
  position: sticky;
  top: 120px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-faint);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--text-dark);
  text-align: left;
}

.accordion-trigger:hover { color: var(--accent); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.accordion-body.open {
  max-height: 600px; 
}

.accordion-content {
  padding-bottom: 40px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

@media (max-width: 992px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .sticky-block { position: static; text-align: center; margin-bottom: 40px;}
}

/* ── Payment Strip ──────────────────────────────────────── */
.payment-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-faint);
  padding: 60px 0;
  text-align: center;
}

.payment-title {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 32px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
}

.payment-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light); /* monochrome look */
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
  letter-spacing: -0.5px;
}
.payment-logo:hover {
  color: var(--text-muted);
}
.payment-logo svg {
  width: 28px;
  height: 28px;
}
