/* Trisigma institutional refresh — 2026 */
:root,
[data-theme="light"] {
  --bg-primary: #f3f6f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9eff2;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafb;
  --bg-glass: rgba(255, 255, 255, .92);
  --border-subtle: #dfe7eb;
  --border-strong: #cbd7dd;
  --border-focus: #1e7893;
  --text-main: #142a37;
  --text-muted: #5d707a;
  --text-light: #82929a;
  --accent-gold: #b78f4b;
  --accent-gold-light: #d2b77c;
  --accent-gold-dark: #967239;
  --accent-gold-glow: rgba(183, 143, 75, .2);
  --accent-blue: #176981;
  --accent-blue-light: #438aa0;
  --accent-blue-dark: #10566c;
  --accent-blue-glow: rgba(23, 105, 129, .15);
  --accent-emerald: #25745f;
  --accent-red: #b84d49;
  --container-max: 1280px;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-sm: 0 2px 8px rgba(20, 42, 55, .05);
  --shadow-md: 0 14px 36px rgba(20, 42, 55, .09);
  --shadow-lg: 0 24px 60px rgba(5, 18, 28, .18);
  --shadow-glow: 0 0 28px rgba(183, 143, 75, .2);
}

[data-theme="dark"] {
  --bg-primary: #081923;
  --bg-secondary: #0d202c;
  --bg-tertiary: #132c39;
  --bg-card: #0e2431;
  --bg-card-hover: #142e3c;
  --bg-glass: rgba(8, 25, 35, .93);
  --border-subtle: rgba(201, 220, 228, .11);
  --border-strong: rgba(201, 220, 228, .2);
  --border-focus: #72b6c9;
  --text-main: #edf4f6;
  --text-muted: #a2b4bb;
  --text-light: #738991;
  --accent-gold: #d1ad69;
  --accent-gold-light: #e1c68e;
  --accent-gold-dark: #a78342;
  --accent-gold-glow: rgba(209, 173, 105, .18);
  --accent-blue: #307d96;
  --accent-blue-light: #76b5c7;
  --accent-blue-dark: #205d72;
  --accent-blue-glow: rgba(48, 125, 150, .2);
  --accent-emerald: #70c0a4;
  --accent-red: #ed8d86;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .14);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, .22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .32);
  --shadow-glow: 0 0 28px rgba(209, 173, 105, .15);
}

html { scroll-padding-top: 100px; }
body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
::selection { background: rgba(183, 143, 75, .28); color: inherit; }
a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--border-focus); outline-offset: 3px; }
.container { width: min(100% - 48px, var(--container-max)); padding-inline: 0; }

.ticker-bar {
  background: #0a1d29;
  border: 0;
  color: #bdcbd0;
  min-height: 34px;
}
.ticker-inner { gap: 18px 30px; min-height: 34px; animation: none; flex-wrap: wrap; justify-content: space-between; overflow: visible; }
.ticker-item { gap: 7px; font-size: 11px; letter-spacing: .035em; white-space: nowrap; }
.ticker-tag { color: #d3b474; background: transparent; padding: 0; font-size: 10px; }
.ticker-value { color: #e7c982; font-weight: 600; }

.site-header {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 5px 20px rgba(10, 32, 43, .035);
}
.header-inner { min-height: 78px; height: auto; gap: 22px; }
.logo-img { height: 44px; }
.main-nav { gap: clamp(14px, 1.8vw, 28px); }
.nav-link { font-size: 13px; font-weight: 600; letter-spacing: .005em; }
.nav-link.active::after { height: 2px; background: var(--accent-gold); }
.header-actions { gap: 10px; }
.theme-toggle-btn { width: 40px; height: 40px; border-radius: 50%; background: transparent; }
.mobile-nav-toggle { color: var(--text-main); border-radius: 10px; }

.btn {
  border-radius: 9px;
  min-height: 44px;
  padding: .7rem 1.15rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .005em;
  box-shadow: none;
}
.btn-sm { min-height: 36px; padding: .5rem .8rem; font-size: 12px; }
.btn-primary { color: #142a37; background: #d4b878; border-color: #d4b878; box-shadow: 0 5px 14px rgba(183, 143, 75, .18); }
.btn-primary:hover { color: #102431; background: #e2c990; border-color: #e2c990; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(183, 143, 75, .24); }
.btn-secondary { background: var(--accent-blue); border-color: var(--accent-blue); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-tertiary); border-color: var(--accent-blue-light); color: var(--text-main); }

.hero-section {
  color: #f3f7f7;
  background:
    radial-gradient(ellipse at 78% 16%, rgba(41, 108, 128, .34), transparent 37%),
    radial-gradient(ellipse at 9% 93%, rgba(188, 151, 82, .12), transparent 34%),
    linear-gradient(120deg, #081a25 0%, #0b2432 55%, #0c2b39 100%);
  padding: clamp(56px, 7vw, 92px) 0 68px;
  border-bottom: 1px solid rgba(213, 231, 236, .08);
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -8%;
  top: -47%;
  border: 1px solid rgba(205, 180, 122, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(205,180,122,.025), 0 0 0 108px rgba(205,180,122,.02), 0 0 0 162px rgba(205,180,122,.015);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr); gap: clamp(32px, 5vw, 74px); }
.hero-badge { padding: 7px 11px; background: rgba(211, 180, 116, .1); border: 1px solid rgba(211, 180, 116, .32); color: #e0c887; font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
.badge-pulse { background: #d4b878; box-shadow: none; animation: none; }
.hero-title { max-width: 780px; font-size: clamp(40px, 5vw, 68px); line-height: 1.03; font-weight: 650; letter-spacing: -.055em; margin-bottom: 22px; }
.hero-title span.highlight-gold { background: none; -webkit-text-fill-color: #d8bd7e; color: #d8bd7e; }
.hero-title span.highlight-blue { background: none; -webkit-text-fill-color: #8ab9c6; color: #8ab9c6; }
.hero-desc { max-width: 650px; color: #bbcbd0; font-size: 16px; line-height: 1.75; margin-bottom: 27px; }
.hero-actions { gap: 10px; margin-bottom: 34px; }
.hero-actions .btn-outline { color: #e5edef; border-color: rgba(225,239,242,.26); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.08); color: white; }
.hero-stats-row { border-top-color: rgba(222,237,240,.16); gap: 20px; padding-top: 21px; }
.stat-item .stat-num { color: #e8d5a3 !important; font-size: 27px; font-weight: 600; letter-spacing: -.04em; }
.stat-item .stat-label { color: #a9bcc2; font-size: 11px; line-height: 1.5; max-width: 175px; }
.hero-card { background: rgba(11, 31, 43, .78); border: 1px solid rgba(212, 231, 236, .17); border-radius: 18px; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 28px 80px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.hero-card::before { width: 170px; height: 170px; background: radial-gradient(circle, rgba(66, 133, 151, .2) 0%, transparent 70%); }
.hero-card-header { border-bottom-color: rgba(222,237,240,.14); margin-bottom: 13px; }
.hero-card-title { color: #edf4f5; font-size: 14px; }
.hero-card .live-badge { background: rgba(211, 180, 116, .12); color: #e0c887; border: 1px solid rgba(211,180,116,.22); border-radius: 99px; }
.mini-rating-list { gap: 7px; }
.mini-rating-item { background: rgba(255,255,255,.035); border: 1px solid rgba(222,237,240,.1); padding: 11px 13px; border-radius: 11px; }
.hero-card .mini-rating-item { text-decoration: none; }
.mini-rating-item:hover { background: rgba(255,255,255,.075); border-color: rgba(222,237,240,.2); transform: translateX(2px); }
.mini-rating-info h4 { font-size: 13px; color: #eef5f5; }
.mini-rating-info p { color: #9fb3ba; font-size: 10px; }
.hero-card a { color: #e0c887 !important; }

.section-wrapper { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-secondary); border-color: var(--border-subtle); }
.section-head { text-align: left; max-width: 780px; margin: 0 0 30px; }
.section-tag { color: var(--accent-gold); font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.04em; line-height: 1.12; font-weight: 650; margin-bottom: 11px; }
.section-subtitle { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 700px; }
.grid-2, .grid-3, .grid-4 { gap: 16px; }
.card { border-radius: 15px; padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; font-size: 18px; }
.card-title { font-size: 17px; letter-spacing: -.02em; margin-bottom: 8px; }
.card-text { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.filter-bar { gap: 14px; margin-bottom: 18px; }
.filter-pills { gap: 7px; }
.pill-btn { color: var(--text-muted); background: var(--bg-secondary); border-color: var(--border-subtle); border-radius: 99px; padding: 8px 13px; font-size: 11px; font-weight: 650; }
.pill-btn:hover { color: var(--text-main); border-color: var(--border-strong); }
.pill-btn.active { color: white; background: var(--accent-blue); border-color: var(--accent-blue); box-shadow: none; }
.search-box-wrapper { min-width: min(100%, 280px); }
.search-input { background: var(--bg-secondary); border: 1px solid var(--border-strong); border-radius: 9px; padding: 11px 14px 11px 38px; font-size: 12px; color: var(--text-main); }
.search-input:focus { background: var(--bg-secondary); }
.table-responsive { border-color: var(--border-subtle); border-radius: 15px; box-shadow: var(--shadow-sm); }
.ratings-table { font-size: 12px; }
.ratings-table th { background: var(--bg-tertiary); color: var(--text-muted); font-size: 9px; letter-spacing: .09em; padding: 13px 16px; }
.ratings-table td { padding: 14px 16px; border-bottom-color: var(--border-subtle); }
.ratings-table tbody tr:hover { background: var(--bg-card-hover); }
.entity-name { font-size: 12px; }
.entity-meta { font-size: 10px; }
.rating-badge { border-radius: 7px; font-size: 11px; padding: 5px 9px; letter-spacing: .01em; }
.outlook-tag { font-size: 11px; }
.scale-grid { gap: 12px; }
.scale-card { border-radius: 12px; padding: 15px; box-shadow: var(--shadow-sm); }
.scale-risk { font-size: 10px; }
.scale-desc { font-size: 11px; }

.calc-container { border-radius: 18px; padding: clamp(20px, 3vw, 34px); gap: clamp(22px, 4vw, 52px); box-shadow: var(--shadow-md); }
.calc-results-panel { border-radius: 15px; padding: 24px; }
.calc-result-grade { font-size: clamp(46px, 6vw, 66px); }
.calc-label { font-size: 12px; }
.calc-val-badge { border-radius: 7px; }
.calc-slider { accent-color: var(--accent-blue); }
.tech-banner, .dgx-banner { border-radius: 20px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(135deg, #0b2735, #11394a); border: 1px solid rgba(116, 177, 194, .23); }
.tech-step-card { border-radius: 12px; }
.form-control { border-radius: 9px; background: var(--bg-secondary); border-color: var(--border-strong); }
.form-control:focus { background: var(--bg-secondary); }

.site-footer { padding: 54px 0 22px; background: #071720; color: #aabcc2; border-top: 1px solid rgba(214, 232, 236, .1); }
.site-footer .footer-top { gap: 30px; margin-bottom: 30px; }
.footer-col h5 { color: #eaf1f2; font-size: 12px; letter-spacing: .04em; }
.footer-links { gap: 9px; font-size: 12px; }
.footer-bottom { padding-top: 18px; border-color: rgba(214, 232, 236, .12); font-size: 10px; }
.footer-disclaimer { border-radius: 12px; }

.demo-strip {
  position: relative;
  z-index: 2;
  padding: 10px 0;
  color: #55451f;
  background: #f4eddc;
  border-bottom: 1px solid #e6dbc0;
  font-size: 11px;
  line-height: 1.5;
}
[data-theme="dark"] .demo-strip { color: #e7d6ad; background: #352e20; border-color: rgba(211,180,116,.2); }
.demo-strip .container { display: flex; align-items: flex-start; gap: 9px; }
.demo-strip strong { font-weight: 750; }
.demo-strip-mark { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #ae873d; }
.demo-callout { display: flex; gap: 12px; padding: 14px 16px; margin: 18px 0 22px; border: 1px solid #e5d9b9; border-radius: 12px; background: #faf6eb; color: #63552f; font-size: 12px; line-height: 1.6; }
.demo-callout strong { color: #574722; }
[data-theme="dark"] .demo-callout { background: #28271f; border-color: rgba(211,180,116,.22); color: #c9bb98; }
[data-theme="dark"] .demo-callout strong { color: #e3cd91; }
.demo-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 8px; color: #665322; background: #f2e8cd; border: 1px solid #dfcea3; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
[data-theme="dark"] .demo-pill { color: #e7d6ad; background: #3d3523; border-color: rgba(211,180,116,.24); }
.hero-card .demo-pill { color: #e7d6ad; background: rgba(211,180,116,.1); border-color: rgba(211,180,116,.2); }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 590px; padding: 6px; margin: 0 0 24px; border: 1px solid rgba(230,240,242,.22); border-radius: 12px; background: rgba(255,255,255,.07); }
.hero-search svg { flex: 0 0 auto; margin-left: 11px; color: #a9c3c9; }
.hero-search input { flex: 1; min-width: 0; color: #f2f7f7; background: transparent; border: 0; outline: 0; padding: 9px 2px; font-size: 12px; }
.hero-search input::placeholder { color: #9db1b7; }
.hero-search button { min-height: 38px; border: 0; border-radius: 8px; padding: 0 14px; color: #122b37; background: #d4b878; font-size: 11px; font-weight: 750; cursor: pointer; }
.hero-search-hint { color: #97aeb5; font-size: 10px; margin: -16px 0 22px 3px; }
.prototype-note { max-width: 680px; margin: 8px 0 28px; padding-left: 12px; border-left: 2px solid rgba(211, 180, 116, .55); color: #b7c6ca; font-size: 12px; line-height: 1.65; }
.prose-note { color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.methodology-disclosure { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent-gold); background: var(--bg-tertiary); color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.registry-actions { flex-wrap: wrap; }
.table-scroll-hint { display: none; }

@media (max-width: 1080px) {
  .main-nav { gap: 12px; }
  .nav-link { font-size: 11px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(330px, .9fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 680px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > * { min-width: 0; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--container-max)); }
  .header-inner { min-height: 66px; }
  .logo-img { height: 38px; }
  .header-actions > .btn { display: none; }
  .hero-section { padding: 48px 0 46px; }
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .hero-desc { font-size: 14px; }
  .hero-actions { align-items: stretch; gap: 8px; margin-bottom: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats-row { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .stat-item .stat-num { font-size: 21px; }
  .stat-item .stat-label { font-size: 10px; line-height: 1.4; }
  .section-wrapper { padding: 48px 0; }
  .section-head { margin-bottom: 23px; }
  .section-title { font-size: 29px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; }
  .search-box-wrapper { min-width: 100%; }
  .ratings-table { min-width: 760px; }
  .table-scroll-hint { display: block; margin: 0 0 8px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
  .table-responsive { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
  .ratings-table th:first-child,
  .ratings-table td:first-child { position: sticky; left: 0; }
  .ratings-table th:first-child { z-index: 3; }
  .ratings-table td:first-child { z-index: 1; background: var(--bg-card); box-shadow: 6px 0 10px -10px rgba(0, 0, 0, .7); }
  .ratings-table tbody tr:hover td:first-child { background: var(--bg-card-hover); }
  .ticker-inner { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; overflow-x: auto; padding: 0 0 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(211,180,116,.55) transparent; }
  .ticker-inner::-webkit-scrollbar { display: block; height: 4px; }
  .ticker-inner::-webkit-scrollbar-thumb { background: rgba(211,180,116,.55); border-radius: 99px; }
  .ticker-item { scroll-snap-align: start; }
  .calc-container { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-group { min-width: 0; }
  .form-control { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .form-group.full { grid-column: span 1; }
  #requestForm { width: 100%; padding: 20px !important; }
  #requestForm .form-control { min-width: 0; }
  .registry-actions { gap: 8px !important; }
  .registry-actions > * { max-width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input { flex-basis: calc(100% - 54px); }
  .hero-search button { width: 100%; }
  .demo-strip { font-size: 10px; }
  .dgx-flow, .tech-flow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
