/* ===========================
   SignalWealth V1 — main.css (FULL REPLACEMENT)
   Direction: A) Brand-Blue Primary (logo-aligned) + Teal secondary accents
   Goal: Fintech authority + studio polish (NOT FMS look)
   =========================== */

/* ---- CSS Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:root { color-scheme: dark; }

/* ---- Design Tokens ---- */
:root{
  /* Layout */
  --container: 1120px;
  --radius: 16px;
  --radius2: 22px;

  /* Typography (safe defaults; HTML can override by setting --font) */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Base: midnight graphite (slightly blue, not navy) */
  --bg-0: #070A0F;        /* page */
  --bg-1: #0B1018;        /* section */
  --bg-2: #0E1420;        /* deep panels */

  /* Surfaces (more “material” than app shell) */
  --panel: rgba(255,255,255,.055);
  --panel-2: rgba(255,255,255,.085);
  --panel-3: rgba(255,255,255,.115);

  /* Borders (soft, premium) */
  --border: rgba(255,255,255,.11);
  --border-2: rgba(255,255,255,.16);

  /* Text (slightly warm to avoid “dev UI”) */
  --text-0: rgba(255,255,255,.92);
  --text-1: rgba(255,255,255,.74);
  --text-2: rgba(255,255,255,.56);

  /* Brand blues (from logo family) */
  --brand-blue-1: #0C3A7A; /* deeper logo blue */
  --brand-blue-2: #1E86D8; /* lighter logo blue */

  /* Primary action = brand blue (logo-aligned) */
  --primary: var(--brand-blue-2);
  --primary-2: #36A0F2;         /* hover lift */
  --primary-ink: #071019;

  /* Secondary accent = teal (supporting only) */
  --accent: #2EE6C5;
  --accent-2: #7CF7E3;

  /* Shadows (less glow, more depth) */
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --shadow2: 0 14px 40px rgba(0,0,0,.42);

  /* Focus ring */
  --focus: 0 0 0 4px rgba(30,134,216,.22), 0 0 0 1px rgba(30,134,216,.55);

  /* Back-compat aliases (your HTML/CSS references these) */
  --bg: var(--bg-0);
  --bg2: var(--bg-1);
  --text: var(--text-0);
  --muted: var(--text-1);
  --faint: var(--text-2);
  --stroke: var(--border);
  --stroke-2: var(--border-2);
}

/* ---- Base ---- */
body{
  font-family: var(--font);
  background:
    /* studio sheen (subtle) */
    radial-gradient(1200px 700px at 18% -10%, rgba(30,134,216,.14), transparent 58%),
    radial-gradient(900px 620px at 85% 6%, rgba(46,230,197,.08), transparent 55%),
    radial-gradient(1000px 700px at 70% 88%, rgba(12,58,122,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.section{
  padding: 84px 0;
}

h1, h2, h3{
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

h1{
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
}

h2{
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.14;
}

h3{
  font-size: 18px;
  line-height: 1.25;
}

p{ margin: 0 0 14px; color: var(--text-1); }
.lead{ font-size: 18px; color: var(--text-1); max-width: 74ch; }
.muted{ color: var(--text-1); }
.fineprint{ font-size: 13px; color: var(--text-2); }
.emphasis{ color: var(--text-0); font-weight: 650; }

/* ---- Selection ---- */
::selection{
  background: rgba(30,134,216,.35);
  color: var(--text-0);
}

/* ---- Accessibility ---- */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position: fixed; left: 18px; top: 18px;
  width:auto; height:auto;
  padding: 10px 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
  box-shadow: var(--shadow2);
}

/* Home-page logo highlight */
.brand-link.is-home,
.footer-brand-link.is-home {
  cursor: default;
}

.brand-link.is-home .brand-wordmark,
.footer-brand-link.is-home .footer-wordmark {
  /* subtle highlight without changing layout */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* ---- Header ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,15,.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 180px;
}

/* You said header should be wordmark only; keep mark class but make it safe */
.brand-mark{
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-wordmark{
  width: 190px;
  height: auto;
  opacity: .98;
  transform: translateY(1px);
}

.site-nav{
  display:flex;
  align-items:center;
  gap: 18px;
  color: var(--text-1);
  font-weight: 600;
  font-size: 14px;
}

.site-nav a{
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}

.site-nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text-0);
}

.site-nav a.active{
  background: rgba(30,134,216,.12);
  border-color: rgba(30,134,216,.26);
  color: var(--text-0);
}

.header-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* (Mobile nav toggle placeholder — can wire later if needed) */
.nav-toggle{ display:none; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text-0);
  font-weight: 700;
  font-size: 14px;
  box-shadow: none;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.085);
  border-color: var(--border-2);
}

.btn:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}

/* Primary = brand blue (logo-aligned) */
.btn-primary{
  background: linear-gradient(180deg, rgba(30,134,216,.98), rgba(12,58,122,.92));
  border-color: rgba(30,134,216,.62);
  box-shadow: 0 14px 42px rgba(30,134,216,.22);
  color: rgba(255,255,255,.95);
}

.btn-primary:hover{
  background: linear-gradient(180deg, rgba(54,160,242,.98), rgba(30,134,216,.86));
  border-color: rgba(54,160,242,.70);
  box-shadow: 0 16px 50px rgba(30,134,216,.28);
}

/* Secondary = quiet studio */
.btn-secondary{
  background: rgba(255,255,255,.045);
}

/* Optional "ghost" style if you ever use it */
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.05);
}

/* ---- Hero ---- */
.hero{
  padding-top: 70px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

.hero-subhead{
  font-size: 18px;
  color: var(--text-1);
  max-width: 66ch;
}

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

.hero-note{
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
}

.hero-visual{
  display:flex;
  justify-content:flex-end;
}

/* Hero card: premium material */
.hero-card{
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(30,134,216,.18), transparent 58%),
    radial-gradient(520px 240px at 85% 40%, rgba(46,230,197,.10), transparent 55%);
  opacity: .6;
  pointer-events:none;
}

.hero-card-header{
  position: relative;
  color: var(--text-0);
  font-weight: 750;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.hero-card-body{
  position: relative;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text-1);
  font-weight: 650;
  font-size: 13px;
}

/* ---- Cards / grids ---- */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.035));
  box-shadow: var(--shadow2);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(30,134,216,.10), transparent 60%);
  opacity: .55;
  pointer-events:none;
}

.card > *{ position: relative; }

.three-up{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---- Lists ---- */
.bullet-list{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-1);
}
.bullet-list li{ margin: 8px 0; }

/* ---- Steps (How it works) ---- */
.steps{
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 16px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}

.step::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(520px 200px at 20% 0%, rgba(30,134,216,.14), transparent 62%),
    radial-gradient(520px 220px at 90% 45%, rgba(46,230,197,.08), transparent 58%);
  opacity: .6;
  pointer-events:none;
}

.step-head{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-num{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 850;
  color: rgba(255,255,255,.95);
  background: rgba(30,134,216,.18);
  border: 1px solid rgba(30,134,216,.30);
}

.step p, .step ul{ position: relative; color: var(--text-1); }

/* ---- CTA Strip ---- */
.cta-strip{
  padding: 52px 0;
}

.cta-strip-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(30,134,216,.20), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ---- Forms ---- */
.form{
  margin-top: 18px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label{
  display:flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 700;
}

.form-grid .full{
  grid-column: 1 / -1;
}

input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.14));
  color: var(--text-0);
  padding: 12px 12px;
  outline: none;
}

input::placeholder, textarea::placeholder{
  color: rgba(255,255,255,.42);
}

input:focus, textarea:focus{
  border-color: rgba(30,134,216,.60);
  box-shadow: var(--focus);
}

.form-actions{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Legal pages ---- */
.legal-grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items:start;
}

.legal-nav{
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 16px;
  box-shadow: var(--shadow2);
}

.legal-nav-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text-2);
  margin-bottom: 10px;
}

.legal-nav ol{
  margin: 0;
  padding-left: 18px;
  color: var(--text-1);
}

.legal-nav a{
  display:inline-block;
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.legal-nav a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  color: var(--text-0);
}

.legal-body{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 22px;
  box-shadow: var(--shadow2);
}

.legal-body h2{
  margin-top: 22px;
  font-size: 18px;
}

.legal-body p{ color: var(--text-1); }
.legal-body ul, .legal-body ol{ color: var(--text-1); }

/* ---- Footer ---- */
.site-footer{
  margin-top: 140px;
  padding: 64px 0 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(30,134,216,.10), transparent 62%),
    radial-gradient(900px 320px at 70% 0%, rgba(46,230,197,.06), transparent 65%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.22));
}

.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr;
  gap: 48px;
  align-items: start;
}

.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Footer should be wordmark only, sized correctly */
.footer-wordmark{
  width: 220px;
  height: auto;
  opacity: .95;
}

.footer-note{
  color: var(--text-1);
  font-size: 14px;
  max-width: 380px;
}

.footer-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-nav a{
  display: block;
  margin-bottom: 10px;
  color: var(--text-1);
  text-decoration: none;
}

.footer-nav a:hover{
  color: var(--text-0);
}

.footer-copy{
  color: var(--text-2);
  font-size: 13px;
  text-align: right;
}

/* ---- Small niceties ---- */
hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 22px 0;
}

/* ---- Responsive ---- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ justify-content: flex-start; }
  .three-up{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .legal-grid{ grid-template-columns: 1fr; }
  .legal-nav{ position: relative; top: 0; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-copy{ text-align: left; }
  .brand-wordmark{ width: 170px; }
  .footer-wordmark{ width: 190px; }
}

@media (max-width: 640px){
  .site-nav{ display: none; } /* keep simple for v1; can add mobile nav later */
  .header-inner{ gap: 12px; }
  .btn{ padding: 11px 14px; border-radius: 13px; }
}