/* FxPortalOS — Onboarding guide page */

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

:root {
  --navy: #0B1628;
  --navy-light: #132035;
  --navy-mid: #1A2D4A;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-dim: rgba(201, 168, 76, 0.10);
  --cream: #F4F1EC;
  --text-secondary: #8FA3BF;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--navy); }
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; }

/* === NAV === */
.on-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.on-nav-inner {
  max-width: 860px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 12px;
}
.on-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.on-nav-logo span {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--cream); letter-spacing: -0.5px;
}
.on-nav-links {
  display: flex; gap: 4px; margin-left: 24px;
}
.on-nav-link {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  padding: 6px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.on-nav-link:hover { color: var(--cream); background: rgba(255,255,255,0.05); }
.on-nav-link.active { color: var(--gold); background: var(--gold-dim); }
.on-nav-cta {
  margin-left: auto; font-size: 13px;
  background: var(--gold); color: var(--navy); font-weight: 600;
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  transition: background 0.2s;
}
.on-nav-cta:hover { background: var(--gold-light); }

/* === PAGE HERO === */
.on-hero {
  padding: 80px 24px 60px;
  max-width: 860px; margin: 0 auto;
}
.on-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.on-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; color: var(--cream);
  margin-bottom: 16px;
}
.on-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 600px; line-height: 1.7;
}

/* === CONTENT === */
.on-content {
  max-width: 860px; margin: 0 auto; padding: 0 24px 100px;
}

/* Section */
.on-section { margin-bottom: 72px; }
.on-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.on-section-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--cream); margin-bottom: 12px;
  line-height: 1.2;
}
.on-section-sub {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  max-width: 600px; margin-bottom: 32px;
}

/* Step cards */
.on-steps { display: flex; flex-direction: column; gap: 16px; }
.on-step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 20px; align-items: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px;
}
.on-step:hover { border-color: rgba(201,168,76,0.2); }
.on-step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px;
  color: var(--gold); flex-shrink: 0;
}
.on-step-body {}
.on-step-title {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--cream); margin-bottom: 8px;
}
.on-step-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
}
.on-step-desc code {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: rgba(201,168,76,0.12); color: var(--gold);
  padding: 2px 6px; border-radius: 4px;
}
.on-step-link {
  display: inline-block; margin-top: 10px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  text-decoration: none;
}
.on-step-link:hover { text-decoration: underline; }

/* Info box */
.on-info {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 12px; padding: 20px 24px;
  margin-top: 24px;
}
.on-info-title {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.on-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.on-info p + p { margin-top: 8px; }

/* Divider */
.on-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.05);
  margin: 64px 0;
}

/* Email visual */
.on-email-block {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 28px;
  margin-top: 24px;
}
.on-email-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.on-email-meta {
  font-size: 12px; color: var(--text-secondary); margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.on-email-meta strong { color: var(--cream); font-weight: 600; }
.on-email-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.on-email-body strong { color: var(--cream); }
.on-email-body .email-highlight {
  display: block; background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold); padding: 12px 16px;
  border-radius: 0 8px 8px 0; margin: 12px 0;
  font-family: 'Courier New', monospace; font-size: 13px;
  color: var(--cream);
}

/* DB table snippet */
.on-code-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 20px 24px;
  margin-top: 16px; overflow-x: auto;
}
.on-code-block pre {
  font-family: 'Courier New', monospace; font-size: 13px;
  color: var(--text-secondary); line-height: 1.6;
}
.on-code-block .sql-kw { color: var(--gold); }
.on-code-block .sql-str { color: #7dd3fc; }
.on-code-block .sql-comment { color: #6b7280; font-style: italic; }

/* Flow diagram */
.on-flow {
  display: flex; align-items: center; gap: 0;
  margin: 32px 0; flex-wrap: wrap; gap: 8px;
}
.on-flow-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; font-weight: 600; color: var(--cream);
  white-space: nowrap;
}
.on-flow-arrow {
  color: var(--gold); font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .on-steps { gap: 12px; }
  .on-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .on-step-num { width: 40px; height: 40px; font-size: 16px; }
  .on-flow { gap: 6px; }
  .on-flow-step { font-size: 12px; padding: 10px 12px; }
}