:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, .12);

  /* finance accents */
  --navy: #0b1220;
  --green: #0a7a4b;
  --accent: #0b1220;  /* keep it institutional */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* ===== background like your references ===== */
.bg-grid{
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb{
  position: fixed;
  width: 900px;
  height: 900px;
  border-radius: 999px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(11,18,32,.06), rgba(11,18,32,0) 65%);
  pointer-events: none;
  z-index: 0;
}

/* ===== “rounded canvas” page ===== */
.page{
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 56px auto;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  overflow: hidden;
}

/* container inside the panel */
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== nav inside the panel ===== */
.nav{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}
.brand{
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--navy);
}
.nav-links{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav-links a{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover{color: var(--text)}

.nav-sep{
  color: rgba(15,23,42,.35);
  font-weight: 600;
  margin: 0 6px;
  user-select: none;
}

@media (max-width: 720px){
  .nav-sep{ display:none; }
}

/* ===== buttons: finance / institutional ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(11,18,32,.25);
  text-decoration: none;
}

.btn:hover{
  filter: brightness(1.06);
  color: #ffffff;
}

.btn.ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.ghost:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(249, 251, 255, 0.963);
  color: var(--text);
}

.btn:visited{
  color: #ffffff;
}
.btn.ghost:visited{
  color: var(--text);
}

/* ===== hero ===== */
.hero{
  padding: 64px 0 24px;
}

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

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(15,23,42,.03);
}
.pill::before{
  content: "●";
  font-size: 10px;
  color: var(--green);
}

h1{
  font-size: 44px;
  line-height: 1.08;
  margin: 16px 0 10px;
  letter-spacing: -.6px;
}

.sub{
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.cta{
  display:flex;
  gap: 12px;
  margin: 18px 0 10px;
}

.meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ===== section styling like clean portfolio templates ===== */
.section{
  padding: 42px 0;
  border-top: 1px solid rgba(15,23,42,.06);
}

.section-head{
  margin-bottom: 16px;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -.3px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
}

/* ===== cards: minimal, tight, finance ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stack{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.2px;
}
.card p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.tags span{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(15,23,42,.12);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.02);
}

/* make one tag look like "ticker" */
.tags span:first-child{
  color: var(--green);
  border-color: rgba(10,122,75,.22);
  background: rgba(10,122,75,.06);
}

/* row cards */
.row{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.link{
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.link:hover{text-decoration: underline}

.footer{
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid rgba(15,23,42,.06);
}
.muted{color: var(--muted)}

/* responsive */
@media (max-width: 920px){
  .page{margin: 18px 14px; border-radius: 22px;}
  .hero-grid{grid-template-columns: 1fr}
  .grid{grid-template-columns: 1fr}
  h1{font-size: 34px}
}

.ticker{
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ticker span{
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed rgba(15,23,42,.18);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.02);
}
.ticker span:first-child{ color: var(--green); border-color: rgba(10,122,75,.28); }


.hero-photo{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.hero-photo img{
  width: 260px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  background: white;
}
