/* ==========================================================================
   PLATFORM HUB — "Choose Your Platform" page (light, bento layout)
   ========================================================================== */

.hub-hero { text-align: center; max-width: 780px; margin: 0 auto 44px; padding-top: 64px; position: relative; z-index: 1; }
.hub-hero h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 800; color: var(--color-text-dark); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.hub-hero h1 span { color: var(--color-accent); }

/* ── Bento grid ─────────────────────────────────────────────────────────── */
.hub-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(90px, auto);
  gap: 14px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hub-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30,58,138,0.06);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(30,58,138,0.14);
  border-color: rgba(37,99,235,0.28);
}
.hub-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Sizes within the 6-col grid */
.hub-card--dashboard { grid-column: span 4; grid-row: span 2; }
.hub-card--webtrader  { grid-column: span 2; grid-row: span 2; }
.hub-card--mt5-wide   { grid-column: span 6; }
.hub-card--capital    { grid-column: span 3; }
.hub-card--pro         { grid-column: span 3; }

.hub-card--dashboard { background: linear-gradient(150deg, #eef2ff 0%, #ffffff 55%); }

.hub-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; position: relative; z-index: 1; }
.hub-card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hub-card-icon svg { width: 36px; height: 36px; color: var(--color-accent); }
.hub-card-icon img { width: 100%; height: 100%; object-fit: contain; }

.hub-card-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; display: block; position: relative; z-index: 1; }
.hub-card-title { font-size: 19px; font-weight: 800; color: var(--color-text-dark); margin: 0; letter-spacing: -0.01em; position: relative; z-index: 1; }
.hub-card--dashboard .hub-card-title { font-size: 22px; }
.hub-card--dashboard .hub-card-icon { width: 62px; height: 62px; }
.hub-card-desc { font-size: 12.5px; color: #64748b; line-height: 1.5; margin: 0 0 10px; position: relative; z-index: 1; max-width: 440px; }

.hub-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; position: relative; z-index: 1; }
.hub-card-tag { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.14); color: #3b5bdb; }

.hub-card-spacer { flex: 1; }

.hub-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
  position: relative; z-index: 1;
}
.hub-card-cta:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.hub-card-secondary { font-size: 11.5px; font-weight: 600; color: var(--color-accent); text-decoration: none; margin-top: 6px; display: inline-block; position: relative; z-index: 1; }
.hub-card-secondary:hover { text-decoration: underline; }

.hub-store-row { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hub-store-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  background: #0f172a;
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.hub-store-btn:hover { background: #1e293b; transform: translateY(-1px); }
.hub-store-btn svg { flex-shrink: 0; }

.hub-help {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  padding: 16px 26px;
  border-radius: 18px;
  background: #eef2ff;
  border: 1px solid rgba(37,99,235,0.12);
  position: relative;
  z-index: 1;
}
.hub-help p { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }
.hub-help a { color: var(--color-accent); font-weight: 700; text-decoration: none; }
.hub-help a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .hub-bento { grid-template-columns: repeat(2, 1fr); }
  .hub-card--dashboard, .hub-card--webtrader, .hub-card--mt5-wide, .hub-card--capital, .hub-card--pro {
    grid-column: span 2; grid-row: span 1;
  }
}
@media (max-width: 600px) {
  .hub-hero { margin-bottom: 44px; }
  .hub-card { padding: 24px; }
}


.hub-mt5-split { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.hub-mt5-info { flex: 1; min-width: 0; }
.hub-mt5-info .hub-card-tags { margin-bottom: 0; }
.hub-mt5-right { display: flex; flex-direction: column; align-items: center; gap: 18px; flex-shrink: 0; }
.hub-mt5-groups { display: flex; align-items: center; gap: 24px; }
.hub-mt5-group { display: flex; flex-direction: column; gap: 8px; }
.hub-mt5-group-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #64748b; }
.hub-mt5-divider { width: 1px; align-self: stretch; background: rgba(37,99,235,0.14); }
.hub-mt5-note { font-size: 12px; color: #64748b; margin: 0; text-align: center; max-width: 340px; line-height: 1.6; }
.hub-mt5-note a { color: var(--color-accent); font-weight: 700; text-decoration: none; }
.hub-mt5-note a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hub-mt5-split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hub-mt5-right { align-items: flex-start; }
  .hub-mt5-groups { flex-wrap: wrap; }
  .hub-mt5-note { text-align: left; }
}


.hub-card-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }