/* Quantmind subsite — supplementary styles.
   Extends the shared Quant Intelligence design system (../../css/style.css).
   Does not redefine anything already provided there. Violet-only accent. */

/* ---------- Nav: back-to-parent + solid-violet brand mark ---------- */

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-back:hover { color: var(--text-dim); }

/* Quantmind is a single product on this subsite — its mark is solid violet,
   not the two-tone company gradient used on the parent site. */
.nav-brand .nav-mark {
  background: var(--violet);
  box-shadow: 0 0 18px rgba(167, 107, 255, 0.55);
}

@media (max-width: 640px) {
  .nav-back span.nav-back-label { display: none; }
}

/* ---------- Section tag / eyebrow accent override ---------- */

.section-tag { color: var(--violet); }

.hero-eyebrow .dot {
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

/* ---------- Feature grids ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  padding: 38px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--violet);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--violet); }
.feature-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Numbered step cards (onboarding) ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(167, 107, 255, 0.4);
  color: var(--violet);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; margin: 0; }

/* Tighter gap into the CTA band that follows Getting Started, roughly
   half the default section rhythm (120px + 100px) on this transition
   only, without touching the shared section/.cta-band spacing used
   elsewhere on the page or on other pages. */
#getting-started { padding-bottom: 60px; }
#getting-started + .cta-band { padding-top: 50px; }

@media (max-width: 1100px) and (min-width: 861px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Simple content sections (non-hero) ---------- */

.quantmind-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.quantmind-section.wide { max-width: var(--maxw); }

.quantmind-section p.lede {
  font-size: 1.02rem;
  margin: 0 auto 48px;
  max-width: 620px;
}

/* ---------- Risk notice callout ---------- */

.risk-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--violet);
  background: var(--surface);
  text-align: left;
}

.risk-note.wide { max-width: 100%; }

.risk-note strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.risk-note p, .risk-note span { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.risk-note p + p { margin-top: 10px; }

/* ---------- Forms (signup / login) ---------- */

.form-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--bg-elevated);
}

.form-field { margin-bottom: 20px; text-align: left; }

.form-field label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus {
  outline: none;
  border-color: var(--violet);
}

.form-panel .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-note {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 24px;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.form-note a { color: var(--violet); border-bottom: 1px solid rgba(167, 107, 255, 0.4); }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 107, 255, 0.35);
  background: var(--violet-soft);
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
}

.form-success a { color: var(--violet); }

.form-success.show { display: block; }

.form-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-top: 24px;
}

.form-footnote a { color: var(--text-dim); border-bottom: 1px solid var(--surface-border); }
.form-footnote a:hover { color: var(--violet); border-color: var(--violet); }
