
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #AD976E;
  --accent-soft: rgba(173,151,110,0.16);
  --accent-soft-strong: rgba(205,184,146,0.35);
  --text-main: #f5f7fb;
  --text-muted: #9aa4c6;
  --border-subtle: rgba(255,255,255,0.05);
  --danger: #ff6b6b;
  --max-width: 1160px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
  --shadow-subtle: 0 10px 26px rgba(0,0,0,0.35);
  --nav-height: 74px;
  --transition-fast: 0.15s ease-out;
  --transition-med: 0.25s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #151a32 0, #050816 50%, #02030a 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Slightly darker soft gold for key phrases */
.text-soft-gold-strong {
    color: #CEB185; /* 10% lighter rich gold */
}


body {
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.main-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.section-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 44px;
}

.section-shell--tight {
  padding-top: 26px;
}

/* NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,8,22,0.98), rgba(5,8,22,0.88));
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 20px;
}

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

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 10%, #f3e2c0 0, #cdb892 35%, #ad976e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.75);
  overflow: hidden;
}

.brand-logo-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 6px 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link span.chevron {
  font-size: 10px;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link--active {
  color: #f7e5c5;
}

/* Primary pill buttons – header CTA + form buttons */
.nav-cta,
.btn-primary {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #cdb892, #ad976e);
  color: #050611;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-subtle);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* centers text nicely on mobile */
  gap: 6px;
  text-decoration: none;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-soft);
}

.nav-cta span:last-child {
  font-size: 14px;
}

/* Mega menu */

.mega {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%; /* directly under the main nav item – no gap */
  min-width: 420px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(205,184,146,0.18) 0, rgba(5,8,22,0.96) 45%, #050816 100%);
  border: 1px solid rgba(205,184,146,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  display: none;
  column-gap: 28px;
  row-gap: 10px;
  white-space: nowrap;
}

/* Keep mega menu open while hovering over parent OR dropdown */
.nav-item--mega:hover .mega,
.nav-item--mega:focus-within .mega,
.mega:hover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mega-link {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-main);
  border-radius: 999px;
  transition: background var(--transition-fast), padding-left var(--transition-fast), color var(--transition-fast);
}

.mega-link span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* Hover effect for whole item */
.mega-link:hover {
  background: rgba(255,255,255,0.04);
  padding-left: 6px;
  color: #f7e5c5;
}

/* Cleaner spacing + readability for the menu descriptions */
.mega-link .menu-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.mega-link .menu-desc {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 1px;
  max-width: 220px; /* prevents text overflowing into other columns */
  color: var(--text-muted);
  white-space: normal; /* ensure clean wrapping */
}

/* mobile nav */

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,20,40,0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f5f7fb;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f5f7fb;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-main--mobile {
  display: none;
}

/* HERO & TYPOGRAPHY */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.2fr);
  gap: 40px;
  padding-top: 34px;
  padding-bottom: 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(173,151,110,0.12);
  border-radius: 999px;
  padding: 4px 11px 4px 6px;
  border: 1px solid rgba(205,184,146,0.4);
  margin-bottom: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-kicker-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 15%, #f3e2c0 0, #cdb892 40%, #ad976e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title span {
  color: #f7e5c5;
}

/* Override hero-title highlight to use stronger gold */
.hero-title .text-soft-gold-strong {
  color: #CEB185; /* 10% lighter rich gold */
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-footnote {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-card {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, rgba(205,184,146,0.24) 0, rgba(5,8,22,0.95) 40%, #050816 90%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(205,184,146,0.45);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 600;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f7e5c5;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

/* Force 2×2 layout for the self-managed metrics box */
.hero-card .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-card--snapshot .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.metric-chip {
  background: rgba(3,7,23,0.86);
  border-radius: 14px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.metric-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-equity-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-equity-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  overflow: hidden;
}

.hero-equity-bar-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #f3e2c0, #cdb892, #ad976e);
}

.hero-mini-footer {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* GENERIC LAYOUT ELEMENTS */

.section-kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-heading {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-intro {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: rgba(3,7,23,0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 35px rgba(0,0,0,0.55);
}

.card h3 {
  font-size: 14px;
  margin: 2px 0 6px;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 24px;
  margin-top: 22px;
}

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.highlight-box {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: rgba(3,7,23,0.95);
  border: 1px solid var(--accent-soft-strong);
  box-shadow: 0 16px 38px rgba(0,0,0,0.7);
}

.highlight-box h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.highlight-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge-soft {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(173,151,110,0.16);
  color: #f7e5c5;
  border: 1px solid rgba(205,184,146,0.5);
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  margin-top: 10px;
  background: rgba(3,7,23,0.9);
}

/* Ensure Trading Score FAQ is fully visible when linked via anchor */
#trading-score-faq {
  scroll-margin-top: 120px;
}

.faq-q {
  font-size: 13px;
  font-weight: 500;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* FORMS */

.form-shell {
  margin-top: 18px;
  padding: 16px 18px 18px;
  border-radius: var(--radius-lg);
  background: rgba(3,7,23,0.95);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  max-width: 520px;
}

/* Stack label + input cleanly */
.form-row {
  display: flex;
  flex-direction: column;
}

.form-row + .form-row {
  margin-top: 10px;
}

.form-shell label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Inputs & textarea styled like FCS UI */
.form-shell input,
.form-shell textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,8,22,0.98);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-shell input::placeholder,
.form-shell textarea::placeholder {
  color: var(--text-muted);
}

.form-shell input:focus,
.form-shell textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(205,184,146,0.5);
  background: rgba(5,8,22,1);
}

/* Button spacing inside forms */
.form-shell .btn-primary {
  margin-top: 14px;
}

/* FORM STATUS MESSAGES */
.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-message--success {
  color: #3ba776; /* soft green / success tone */
}

.form-message--error {
  color: #cc4b4b; /* muted red / error tone */
}

/* FOOTER */

.footer-shell {
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, #101528 0, #050816 55%, #020309 100%);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-brand-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-foot img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-risk {
  font-size: 11px;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-main {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-main--mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px 12px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5,8,22,0.98);
  }
  .nav-main--mobile .group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-top: 4px;
  }
  .nav-main--mobile a {
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-main);
  }
  .hero-grid {
    padding-top: 24px;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nav-close {
  display: block;
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  line-height: 26px;
}

.nav-main--mobile {
  position: fixed;
  top: 60px; /* sits just under the header */
  left: 0;
  right: 0;
  z-index: 40;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
