/* ============================================================
   TRAC — site.css
   Additive layer for the TRAC umbrella homepage + product pages.
   Loads AFTER prism.css and reuses its :root design tokens.
   ============================================================ */

/* ---------- shared accents / typography ---------- */
.accent {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.logo-sep { color: var(--text-muted); margin: 0 2px; font-weight: 400; }

/* ---------- hero variants ---------- */
.hero.hero--home,
.hero.hero--product {
  min-height: auto;
  padding: 160px 24px 110px;
  text-align: center;
}
.hero--home .hero-content,
.hero--product .hero-content { max-width: 900px; margin: 0 auto; }
.hero--home h1,
.hero--product h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero--home .hero-subtitle,
.hero--product .hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 14px;
  line-height: 1.55;
}
.hero-trust {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-trust::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--border-light);
  display: inline-block;
}
.hero--home .hero-ctas,
.hero--product .hero-ctas { justify-content: center; margin-top: 34px; }

/* status pill used in hero (e.g. "In development") */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-pill.live { color: #6ee7b7; border-color: rgba(16,185,129,0.4); }
.status-pill.live .dot { background: var(--accent-green); box-shadow: 0 0 0 4px var(--accent-green-soft); }
.status-pill.dev .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- centered section heads ---------- */
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }

/* ---------- thesis points ---------- */
.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.point-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.point-card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.point-card .point-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 14px;
}
.point-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.point-card p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.6; }

/* ---------- product portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0; transition: opacity 0.2s;
}
.product-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }
.product-card.is-flagship { background: linear-gradient(160deg, #131c30 0%, var(--bg-card) 60%); }
.product-badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid var(--border-light); color: var(--text-muted);
}
.product-badge.live { color: #6ee7b7; border-color: rgba(16,185,129,0.45); background: var(--accent-green-soft); }
.product-badge.dev { color: var(--accent-light); border-color: rgba(99,102,241,0.5); background: var(--accent-soft); }
.product-name { font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.product-tag { color: var(--accent-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.product-desc { color: var(--text-secondary); line-height: 1.62; margin-bottom: 22px; }
.product-bullets { list-style: none; margin: 0 0 28px; padding: 0; }
.product-bullets li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  color: var(--text-secondary); font-size: 0.95rem;
}
.product-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.product-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--accent-light);
  display: inline-flex; align-items: center; gap: 8px;
}
.product-link svg { transition: transform 0.2s; }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* ---------- approach / principles ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.approach-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-light);
  margin-bottom: 18px;
}
.approach-icon svg { width: 24px; height: 24px; }
.approach-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.approach-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.58; }

/* ---------- engagement steps ---------- */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-light);
  background: var(--accent-soft); border: 1px solid var(--accent);
  margin-bottom: 16px;
}
.step-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.step-item .step-when { display:block; margin-top:12px; font-size:0.78rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color: var(--text-muted); }

/* ---------- two-column ask/gain ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.twocol-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 32px; }
.twocol-card.accent-card { border-color: rgba(99,102,241,0.5); background: linear-gradient(160deg, #131c30 0%, var(--bg-card) 60%); }
.twocol-card h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 20px; }
.twocol-card.alt h3 { color: #6ee7b7; }
.twocol-list { list-style: none; margin: 0; padding: 0; }
.twocol-list li { position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--text-secondary); line-height: 1.55; }
.twocol-list li svg { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--accent-light); }
.twocol-card.alt .twocol-list li svg { color: var(--accent-green); }

/* ---------- capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.cap-card .approach-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.cap-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.cap-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }

/* ---------- risk grid ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.risk-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 24px 28px; }
.risk-card::before { content:""; position:absolute; left:0; top:16px; bottom:16px; width:4px; border-radius:4px; background: var(--accent); }
.risk-card.warn::before { background: #f59e0b; }
.risk-card.bad::before { background: var(--accent-red); }
.risk-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.risk-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }

/* ---------- founder / credibility ---------- */
.founder-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px;
  max-width: 640px; margin: 0 auto; text-align: left;
}
.founder-name { font-size: 1.3rem; margin-bottom: 4px; }
.founder-role { color: var(--accent-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.founder-card ul { list-style: none; margin: 0; padding: 0; }
.founder-card li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--text-secondary); line-height: 1.55; font-size: 0.95rem; }
.founder-card li::before { content:""; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #161f33 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 54px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); max-width: 620px; margin: 0 auto 30px; font-size: 1.05rem; line-height: 1.6; }

/* ---------- perspectives teaser ---------- */
.persp-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color 0.2s, transform 0.2s; }
.persp-card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.persp-card .persp-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }
.persp-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.persp-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; }
.persp-card a { font-weight: 600; color: var(--accent-light); }

/* ---------- footer links ---------- */
.footer-links { margin: 6px 0 14px; font-size: 0.9rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-light); }
a.footer-brand { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .points-grid, .approach-grid, .steps-flow, .cap-grid, .risk-grid, .persp-teaser { grid-template-columns: 1fr 1fr; }
  .portfolio-grid, .twocol, .founder { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .points-grid, .approach-grid, .steps-flow, .cap-grid, .risk-grid, .persp-teaser { grid-template-columns: 1fr; }
  .hero.hero--home, .hero.hero--product { padding: 130px 20px 80px; }
  .cta-band { padding: 40px 24px; }
}
