/* ============================================================
   TickingMinds × T-Sigma — modern.css  (Oct 2026)
   Sitewide upgrade layer. Loads AFTER shared.css.
   - Self-hosted type (no third-party font request, no consent gate)
   - Near-black base, cool neutrals, one warm accent + four pillar hues
   - Glass floating nav, pill buttons, separated cards, real hierarchy
   ============================================================ */

@font-face {
  font-family: 'Hanken Grotesk Variable';
  src: url('/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url('/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --bg:        #160D00;
  --bg-mid:    #1C1100;
  --bg-card:   #221500;
  --bg-card2:  #2A1A00;
  --gold:      #DFA900;
  --gold-lt:   #FFC933;
  --gold-dim:  #9A6F00;
  --white:     #FFFFFF;
  --cream:     #EDD9A3;
  --muted:     #A89377;
  --border:    rgba(255,235,190,0.08);
  --border-md: rgba(255,235,190,0.15);
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* pillar hues — Attest · Data Trust · Knowledge Base · Test Studio */
  --c-attest: #DFA900;  --c-attest-rgb: 223,169,0;
  --c-data:   #FFC933;  --c-data-rgb:   255,201,51;
  --c-kb:     #C98B2E;  --c-kb-rgb:     201,139,46;
  --c-ts:     #E8965A;  --c-ts-rgb:     232,150,90;

  --font: 'Hanken Grotesk Variable', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ── Type: one self-hosted family everywhere ── */
body :not(code):not(pre):not(svg):not(svg *):not([data-mono]) { font-family: var(--font) !important; }
[data-mono], .mono { font-family: var(--mono) !important; }
body { font-feature-settings: 'ss01','cv11'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4 { letter-spacing: -0.03em; font-weight: 700; }
p { line-height: 1.7; }

/* ambient light behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(223,169,0,.10), transparent 62%),
    radial-gradient(760px 460px at -8% 6%, rgba(255,201,51,.07), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(201,139,46,.06), transparent 60%);
}

/* gradient emphasis replaces the gold-italic tell */
em, .grad {
  font-style: normal;
  background: linear-gradient(95deg, #FFE08A 0%, var(--gold) 45%, #C98B2E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-eyebrow em, .quick-answer em, .btn-primary em, .btn-dark em { -webkit-text-fill-color: currentColor; background: none; }

/* ── Layout rhythm ── */
.container { max-width: 1200px; }
section { padding: 120px 0; }
@media (max-width: 960px) { section { padding: 84px 0; } }
@media (max-width: 640px) { section { padding: 68px 0; } }
.section-header { margin-bottom: 72px; }
.section-h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 20px; }
.section-sub { font-size: 1.08rem; color: var(--muted); max-width: 580px; line-height: 1.65; }

/* eyebrow → quiet pill */
.eyebrow {
  display: inline-flex !important; align-items: center; gap: 9px;
  padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--border-md); border-radius: 999px;
  background: rgba(255,235,190,.035);
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-transform: none;
  color: var(--cream);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* ── Buttons: pills ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #FFC933 0%, #DFA900 100%);
  color: #160D00; border: 0; border-radius: 999px;
  padding: 15px 28px; font-size: .95rem; font-weight: 700; letter-spacing: -0.005em;
  box-shadow: 0 0 0 1px rgba(255,235,190,.28) inset, 0 12px 34px -10px rgba(223,169,0,.65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { background: linear-gradient(180deg, #FFD560 0%, #EDB400 100%); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,235,190,.4) inset, 0 18px 44px -10px rgba(223,169,0,.8); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-md); border-radius: 999px;
  background: rgba(255,235,190,.04); backdrop-filter: blur(8px);
  color: var(--white); padding: 15px 26px; font-size: .95rem; font-weight: 600;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.btn-outline:hover { border-color: rgba(255,235,190,.35); background: rgba(255,235,190,.08); color: var(--white); transform: translateY(-2px); }
.btn-dark { background: #fff; color: #160D00; border-radius: 999px; padding: 15px 30px; font-weight: 700; }
.btn-dark:hover { background: #F6E9C6; }

/* ── Nav: floating glass pill ── */
nav { background: transparent !important; border: 0 !important; backdrop-filter: none !important; pointer-events: none; }
.nav-wrap {
  pointer-events: auto;
  max-width: 1180px; margin: 14px auto 0; height: 58px; padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid var(--border-md);
  background: rgba(14,14,20,.62); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 14px 50px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,235,190,.03) inset;
}
.nav-logo img { height: 30px; }
.nav-links > a, .nav-dropdown > .nav-dropbtn { color: #C9B994; font-size: .84rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links > a:hover, .nav-links > a.active, .nav-dropdown:hover > .nav-dropbtn { color: #fff; background: rgba(255,235,190,.07); }
.nav-cta { background: #fff !important; color: #160D00 !important; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .84rem; }
.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-dropdown-menu { background: rgba(14,14,20,.96); border: 1px solid var(--border-md); border-radius: 16px; backdrop-filter: blur(20px); }
.mobile-nav { top: 84px; height: calc(100dvh - 84px); background: rgba(7,7,11,.97); backdrop-filter: blur(16px); }
@media (max-width: 1260px) {
  .nav-wrap { padding: 0 8px 0 14px; margin-left: 16px; margin-right: 16px; }
  .nav-links > a, .nav-dropdown > .nav-dropbtn { padding: 8px 9px; font-size: .8rem; }
}
@media (max-width: 1080px) { .nav-wrap { margin: 10px 12px 0; } .mobile-nav { top: 78px; height: calc(100dvh - 78px); } }

/* ── Page heroes (product + content pages) ── */
.page-hero { position: relative; overflow: hidden; padding: 168px 0 96px; background: none !important; }
.page-hero::before {
  content: ''; position: absolute; inset: -10% -10% auto -10%; height: 90%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 360px at 78% 18%, rgba(var(--pillar-rgb, 223,169,0), .20), transparent 68%),
    radial-gradient(520px 320px at 8% 6%, rgba(255,235,190,.04), transparent 70%);
}
.page-hero::after { /* fine grid, fades out downward */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,235,190,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,235,190,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 10%, transparent 75%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-h1 { font-size: clamp(2.8rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; }
.page-lead { font-size: 1.14rem; color: var(--muted); max-width: 560px; line-height: 1.62; margin-bottom: 30px; }
.breadcrumb { font-size: .78rem; letter-spacing: 0; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: #fff; }

/* quick answer → slim, glassy, collapsible feel */
.quick-answer {
  background: rgba(255,235,190,.03); border: 1px solid var(--border); border-left: 2px solid rgba(var(--pillar-rgb, 223,169,0), .9);
  border-radius: 14px; padding: 14px 18px; max-width: 560px; margin-bottom: 30px;
}
.quick-answer-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--pillar-rgb, 223,169,0), 1); margin-bottom: 6px; font-weight: 700; }
.quick-answer p { font-size: .86rem; color: #D9C79B; line-height: 1.6; }

/* product-page hero grid */
.ph-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ph-vis { position: relative; min-height: 360px; }
@media (max-width: 960px) { .ph-grid { grid-template-columns: 1fr; gap: 40px; } .ph-vis { min-height: 0; } }

/* ── Cards: separated, soft, alive ── */
.card, .case-card, .why-card, .svc-card, .highlight-box, .zero-box, .process-step, .resource-card {
  background: linear-gradient(180deg, rgba(255,235,190,.045), rgba(255,235,190,.02));
  border: 1px solid var(--border); border-radius: 20px;
}
.card, .case-card { padding: 30px; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.card:hover, .case-card:hover { transform: translateY(-4px); border-color: var(--border-md); background: linear-gradient(180deg, rgba(255,235,190,.07), rgba(255,235,190,.03)); }
.card::after, .svc-card::after { display: none; }
.card-title { font-size: 1.08rem; letter-spacing: -0.02em; }
.card-desc { color: var(--muted); font-size: .92rem; }
.svc-grid, .why-grid, .stats-bar { gap: 16px !important; background: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
.svc-card, .why-card { padding: 34px; border-radius: 22px; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.svc-card:hover, .why-card:hover { transform: translateY(-4px); border-color: var(--border-md); background: linear-gradient(180deg, rgba(255,235,190,.07), rgba(255,235,190,.03)); }
.stat-item { background: linear-gradient(180deg, rgba(255,235,190,.045), rgba(255,235,190,.02)); border: 1px solid var(--border); border-radius: 20px; }
.highlight-box { padding: 28px; }
.highlight-label { color: var(--gold) !important; font-size: .72rem; letter-spacing: .08em; }
.why-letter { font-size: 2.6rem !important; background: linear-gradient(135deg, var(--gold-lt), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.process-step { padding: 26px 28px; margin-bottom: 14px; border-bottom: 1px solid var(--border) !important; }
.step-num { background: rgba(var(--c-attest-rgb), .12) !important; border: 1px solid rgba(var(--c-attest-rgb), .35) !important; color: var(--gold-lt) !important; border-radius: 12px !important; }
.svc-tag { border-radius: 999px; border: 1px solid var(--border-md); color: #C7B58E; letter-spacing: .01em; text-transform: none; font-size: .72rem; padding: 4px 11px; background: rgba(255,235,190,.03); }

/* fact tiles */
.trust-facts { gap: 16px !important; background: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
.trust-fact { border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, rgba(255,235,190,.045), rgba(255,235,190,.02)); padding: 34px 26px !important; text-align: left !important; }
.trust-fact-num { font-size: clamp(2.2rem, 3.4vw, 3rem) !important; letter-spacing: -0.04em; background: linear-gradient(135deg, #fff, var(--gold-lt)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Marquee ── */
.ticker-bar { background: transparent; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-item { font-size: .82rem; letter-spacing: .02em; text-transform: none; color: #B9A580; font-weight: 500; }

/* ── FAQ (static lists get card + accordion via modern.js) ── */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--border) !important; border-radius: 18px; background: rgba(255,235,190,.025); padding: 0 !important; margin-bottom: 12px; overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item:first-child { border-top: 1px solid var(--border) !important; }
.faq-item:hover { border-color: var(--border-md) !important; }
.faq-q { margin: 0 !important; padding: 22px 56px 22px 24px; position: relative; cursor: pointer; font-size: 1.04rem !important; letter-spacing: -0.015em; }
.faq-q::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-md); display: grid; place-items: center; font-size: 1.1rem; color: var(--gold-lt); transition: transform .3s var(--ease), background .3s; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; opacity: 0; font-size: .95rem !important; line-height: 1.7 !important; transition: max-height .45s var(--ease), opacity .35s, padding .35s; }
.faq-item.open { background: rgba(255,235,190,.045); border-color: var(--border-md) !important; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); background: rgba(223,169,0,.12); }
.faq-item.open .faq-a { max-height: 600px; opacity: 1; padding: 0 24px 24px; }
.no-js .faq-a { max-height: none; opacity: 1; padding: 0 24px 24px; }

/* ── CTA band → gradient panel ── */
.cta-band {
  position: relative; overflow: hidden; margin: 0 24px; border-radius: 36px; padding: 110px 0 !important;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(223,169,0,.38), transparent 65%),
    radial-gradient(560px 320px at 90% 100%, rgba(232,150,90,.30), transparent 65%),
    radial-gradient(420px 260px at 55% 120%, rgba(255,201,51,.20), transparent 65%),
    #1A1000;
  border: 1px solid var(--border-md);
}
.cta-band::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,235,190,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,235,190,.05) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff !important; font-size: clamp(2.2rem, 4.8vw, 4rem) !important; letter-spacing: -0.04em; line-height: 1.04 !important; margin-bottom: 18px !important; }
.cta-band p { color: #D9C79B !important; font-size: 1.1rem !important; max-width: 560px; margin: 0 auto 34px !important; }
@media (max-width: 640px) { .cta-band { margin: 0 12px; border-radius: 26px; padding: 76px 0 !important; } }

/* ── Forms ── */
.form-field input, .form-field select, .form-field textarea { background: rgba(255,235,190,.04) !important; border: 1px solid var(--border-md) !important; border-radius: 12px !important; padding: 14px 16px !important; color: #fff !important; font-size: .95rem !important; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 4px rgba(223,169,0,.14); outline: none; }
.form-field label { font-size: .78rem !important; letter-spacing: 0 !important; text-transform: none !important; color: #C7B58E !important; font-weight: 600; }
.cd-icon { background: rgba(255,235,190,.05) !important; border: 1px solid var(--border); border-radius: 12px !important; }

/* ── Footer ── */
footer { background: #0E0800 !important; border-top: 1px solid var(--border) !important; padding: 88px 0 36px !important; margin-top: 90px; }
.footer-logo img { height: 34px !important; }
.footer-tagline { font-size: .95rem !important; color: var(--muted) !important; max-width: 320px; line-height: 1.6 !important; }
.footer-col h4 { font-size: .78rem !important; letter-spacing: .06em !important; text-transform: uppercase; color: #fff !important; opacity: .9; font-weight: 700; margin-bottom: 18px !important; }
.footer-col a { color: var(--muted) !important; font-size: .92rem !important; }
.footer-col a:hover { color: #fff !important; }

/* ── Cookie banner ── */
#tm-cookie-banner { background: rgba(14,14,20,.94) !important; backdrop-filter: blur(18px); border: 1px solid var(--border-md) !important; border-radius: 20px !important; left: 16px !important; right: 16px !important; bottom: 16px !important; max-width: 1080px; margin: 0 auto; }

/* ── Scroll reveal: slightly longer, softer ── */
.fade-up { transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .ticker-track, .vz *, .hx * { animation: none !important; } .fade-up { transition: none; } }

/* Typographic polish */
h1, h2, h3, .page-h1, .section-h2 { text-wrap: balance; }
.page-h1 { font-size: clamp(2.6rem, 4.7vw, 4.3rem); }
.fq .a a, .faq-a a { text-decoration: none; border-bottom: 1px solid rgba(255,201,51,.4); }
.ex-panels { min-height: 230px; }

/* ── Card icons (replace emoji) ── */
.card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  color: var(--gold-lt); background: rgba(223,169,0,.1); border: 1px solid rgba(223,169,0,.3); }
.card-ico svg { width: 22px; height: 22px; }

/* ── Progressive disclosure for long prose (built by modern.js; fully visible without JS) ── */
.acc { border-top: 1px solid var(--border); }
.acc:last-child { border-bottom: 1px solid var(--border); }
.acc > h3 { margin: 0 !important; padding: 22px 52px 22px 0; cursor: pointer; position: relative; font-size: 1.08rem !important; letter-spacing: -0.02em; line-height: 1.3; transition: color .2s; }
.acc > h3:hover { color: var(--gold-lt); }
.acc > h3::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-md); display: grid; place-items: center; font-size: 1.15rem; color: var(--gold-lt); transition: transform .3s var(--ease), background .3s; }
.acc.open > h3::after { transform: translateY(-50%) rotate(45deg); background: rgba(223,169,0,.14); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc.open .acc-inner { padding-bottom: 8px; }
.prose > h2 { margin-bottom: 18px; }
