/* SST Innovation Portal — internal front door */
:root {
  --sst-red: #FA4616;          /* PMS 172 — Simpson Strong-Tie brand orange-red */
  --logo-r:  #FA4616;          /* drives the orange half of the SST lockup */
  --sst-red-deep: #C8350F;
  --sst-red-soft: #FFE5DA;
  --ink: #0E1116;
  --ink-2: #1B2028;
  --paper: #F7F5F0;            /* warm off-white */
  --paper-2: #EDEAE2;
  --line: #D9D4C7;
  --muted: #5C636E;
  --accent: var(--sst-red);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Satoshi', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: "ss01", "ss02";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(14,17,22,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,17,22,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,245,240,.8);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--sst-red);
}
.brand-logo {
  height: 44px; width: auto; display: block;
  /* Two-tone lockup: black SIMPSON over PMS 172 Strong-Tie — inline fills, do not override */
}
.brand-divider {
  width: 1px; height: 26px; background: var(--line);
}
.brand-title {
  color: var(--ink); font-weight: 600; font-size: 16px;
  letter-spacing: -.005em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover { color: var(--sst-red); border-color: var(--sst-red); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 96px 40px 64px; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sst-red-deep); font-weight: 700;
  background: var(--sst-red-soft);
  border: 1px solid var(--sst-red);
  border-radius: 999px;
  padding: 6px 12px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -.025em;
  font-weight: 900; margin: 0 0 22px; max-width: 18ch;
}
.hero .lede {
  font-size: 19px; color: var(--ink-2); max-width: 62ch; margin: 0 0 48px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-stats > div {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats > div:last-child { border-right: none; }
.stat-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 44px; font-weight: 700; color: var(--sst-red);
  letter-spacing: -.03em; line-height: 1;
}
.stat-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Section base ---------- */
.section { position: relative; z-index: 1; padding: 72px 40px; max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2,
.section.split h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 60ch; }

/* ---------- Tile grid ---------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.tile {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); border-radius: 14px 0 0 14px;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -18px rgba(14,17,22,.25);
  border-color: var(--accent);
}
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-tag {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.tile-status {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
}
.status-live { background: #E6F2EA; color: #1F6B36; }
.status-new  { background: #FFF1D6; color: #8A5A00; }
.tile h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -.015em;
  margin: 4px 0 0;
}
.tile p { color: var(--ink-2); font-size: 15px; margin: 0; }
.bullets {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 5px;
}
.bullets li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.bullets li::before {
  content: "›"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.tile-actions {
  margin-top: auto; padding-top: 14px;
  display: flex; gap: 8px; align-items: stretch;
  border-top: 1px dashed var(--line);
}
.tile-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tile-cta-primary {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.tile-cta-primary:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}
.tile-cta-secondary {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.tile-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Split (stack) section ---------- */
.section.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(250,70,22,.04));
}
.section.split p { color: var(--muted); font-size: 17px; max-width: 50ch; margin: 0; }
.stack-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.stack-list li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.stack-list span {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding-top: 2px;
}
.stack-list b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500; color: var(--ink);
}

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phase {
  background: var(--ink);
  color: #F2EEE6; border-radius: 14px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.phase-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em;
  background: var(--sst-red); color: #fff;
  padding: 4px 8px; border-radius: 4px; font-weight: 700;
}
.phase h4 { font-size: 19px; font-weight: 700; margin: 4px 0 0; letter-spacing: -.01em; }
.phase p { font-size: 14.5px; color: #BFBDB6; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  background: var(--paper-2);
}
.foot-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.foot-meta { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 16px 22px; }
  .site-nav { display: none; }
  .hero { padding: 56px 22px 40px; }
  .section { padding: 56px 22px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-stats > div:nth-child(2) { border-right: none; }
  .hero-stats > div:nth-child(1),
  .hero-stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section.split { grid-template-columns: 1fr; gap: 24px; }
  .roadmap { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; gap: 6px; align-items: flex-start; padding: 22px; }
}
