/* T-Sigma.ai — styles.css
   Brand: Hanken Grotesk — per tSigma.ai Brand Guidelines
   Primary:   Sunset Blaze #F15A29
   Secondary: Marine       #00315D
   Neutral:   Paris Paving #737373 / White #FFFFFF
   Accents:   Cakepop Sorbet #FFC845 · Medium Turquoise #4FD1C5 · Magenta Affair #A259FF · Plumbeous #64748B
   Gradient:  Cognitive Pulse  F15A29 → 1A1322
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --bg:        #1A1A1A;
  --bg-mid:    #202020;
  --bg-card:   #282828;
  --bg-card2:  #313131;
  --gold:      #F15A29;   /* Sunset Blaze — primary */
  --gold-lt:   #F5824F;   /* primary, lightened for hover/lift */
  --gold-dim:  #C24A20;   /* primary, muted for tags/labels */
  --pressed:   #8A3B20;   /* primary, pressed/active state */
  --secondary: #00315D;   /* Marine */
  --white:     #FFFFFF;
  --cream:     #F1F0ED;
  --muted:     #949490;
  --neutral:   #737373;   /* Paris Paving */
  --accent-yellow: #FFC845; /* Cakepop Sorbet */
  --accent-teal:   #4FD1C5; /* Medium Turquoise */
  --accent-purple: #A259FF; /* Magenta Affair */
  --accent-slate:  #64748B; /* Plumbeous */
  --border:    rgba(241,90,41,0.16);
  --border-md: rgba(241,90,41,0.30);
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700; color: var(--white); line-height: 1.12; }
em { color: var(--gold); font-style: italic; }
p  { line-height: 1.75; }
a  { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
section { padding: 96px 0; }

/* ── Eyebrows / labels ── */
.eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.eyebrow-rule { width: 28px; height: 1.5px; background: var(--gold); flex-shrink: 0; }

/* ── Section headers ── */
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }
.section-h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 0.92rem; max-width: 560px; line-height: 1.7; }

/* ── Buttons ── */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-primary:active { background: var(--pressed); transform: translateY(0); }

.btn-outline {
  border: 1.5px solid var(--border-md);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
  background: none;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--bg);
  color: var(--gold);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-dark:hover { background: #0d0d0d; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; height: 44px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links > a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.nav-links > a:hover, .nav-links > a.active { color: var(--gold); }
.nav-cta {
  margin-left: auto;
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-lt); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-wrap { justify-content: space-between; }
}

/* ── Page hero / homepage hero ── */
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.hero-content { max-width: 780px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.eyebrow-tag {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-sub { font-size: 0.98rem; color: var(--muted); max-width: 600px; margin-bottom: 42px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual-frame {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
  background: var(--bg-card);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual-frame { order: -1; max-width: 480px; margin: 0 auto 8px; }
}

/* ── Stats bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-item { background: var(--bg-card); padding: 30px 22px; text-align: center; }
.stat-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ── Suite cards (three pillars) ── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.svc-card { background: var(--bg-card); padding: 36px 30px; position: relative; overflow: hidden; transition: background 0.25s; text-decoration: none; color: inherit; display: block; }
.svc-card * { color: inherit; text-decoration: none; }
.svc-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.svc-card:hover { background: var(--bg-card2); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon { width: 30px; height: 30px; margin-bottom: 16px; display: block; color: var(--gold); }
.svc-icon svg { width: 100%; height: 100%; display: block; }
.svc-name { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.svc-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
.svc-tags { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.svc-tag {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--border-md);
  border-radius: 999px;
  padding: 4px 10px;
}
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── Why cards (AIDE) ── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.why-card { background: var(--bg-card); padding: 40px 36px; transition: background 0.2s; }
.why-card:hover { background: var(--bg-card2); }
.why-letter {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--letter-color, var(--gold));
  line-height: 1;
  margin-bottom: 18px;
}
.why-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-desc  { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ── Card grid (personas / industries / deep-dives) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card:hover::after { transform: scaleX(1); }
.card * { color: inherit; text-decoration: none; }
.card-title { font-size: 0.96rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ── Process steps ── */
.process-list { max-width: 760px; margin: 0 auto; }
.process-step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.process-step:first-child { padding-top: 0; }
.process-step:last-child  { border-bottom: none; padding-bottom: 0; }
.step-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.process-step:hover .step-num { background: var(--gold); color: var(--white); border-color: var(--gold); }
.step-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc  { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

/* ── Two-col prose (product deep-dives) ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose h2 { font-size: 1.7rem; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.prose h3 { font-size: 0.96rem; font-weight: 700; color: var(--white); margin-bottom: 8px; margin-top: 26px; }
.prose p  { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.prose ul { margin-left: 18px; margin-bottom: 14px; }
.prose li { font-size: 0.86rem; color: var(--muted); line-height: 1.7; margin-bottom: 5px; }
.highlight-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.highlight-label { font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim); display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ── Contact / consent ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-h3 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.contact-p  { color: var(--muted); margin-bottom: 24px; line-height: 1.75; font-size: 0.88rem; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cd-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-radius: var(--radius-sm); color: var(--gold); flex-shrink: 0; }
.cd-icon svg { width: 16px; height: 16px; }
.cd-text { font-size: 0.86rem; color: var(--cream); }
.zero-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-top: 22px; }
.zero-label { font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.zero-box p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.form-consent-block { margin-top: 4px; }
.form-consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.form-consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.form-consent-label a { color: var(--gold); text-decoration: none; }
.form-consent-label a:hover { text-decoration: underline; }
.form-consent-notice { font-size: 0.74rem; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.form-consent-notice a { color: var(--gold); text-decoration: none; }
.form-consent-notice a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── FAQ ── */
.faq-category { font-size: 1.15rem; font-weight: 700; color: var(--gold); max-width: 800px; margin: 56px auto 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border-md); }
.faq-category:first-of-type { margin-top: 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.4; }
.faq-a { font-size: 0.88rem; color: var(--muted); line-height: 1.78; }

/* ── CTA band ── */
.cta-band { background: linear-gradient(120deg, var(--gold) 0%, #C24A20 55%, #1A1322 130%); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.cta-band p  { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 30px; }
.cta-band .btn-dark { background: var(--white); color: var(--bg); }
.cta-band .btn-dark:hover { background: var(--cream); }

/* ── Form ── */
.form-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field textarea { min-height: 110px; resize: vertical; }
.field-optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer { background: var(--bg-mid); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-inner { display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; text-decoration: none; height: 34px; margin-bottom: 14px; }
.footer-logo img { height: 24px; width: auto; }
.footer-tagline { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* ── Scroll animation ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.no-js .fade-up { opacity: 1 !important; transform: none !important; }

/* ── Hero mockup: abstract KB / Test Studio / Attest illustration ── */
.hm-window { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg-card); }
.hm-chrome {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; flex-shrink: 0;
  background: var(--bg-mid); border-bottom: 1px solid var(--border);
}
.hm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-md); }
.hm-chrome-title { flex: 1; margin-left: 6px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.hm-live { display: flex; align-items: center; gap: 6px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-lt); }
.hm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-lt); animation: hmPulse 2s ease-in-out infinite; }
.hm-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px; }
.hm-chart-label { font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hm-chart-value { font-family: 'Hanken Grotesk', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--white); }
.hm-chart-sub { font-size: 0.68rem; font-weight: 400; color: var(--muted); margin-left: 4px; }
.hm-stats { display: flex; gap: 10px; }
.hm-stat { flex: 1; text-align: center; background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 6px; }
.hm-stat-num { font-family: 'Hanken Grotesk', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--white); line-height: 1; }
.hm-stat-cert .hm-stat-num { color: var(--gold); }
.hm-stat-label { font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; font-size: 0.58rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.hm-agents { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; }
.hm-agent { display: flex; align-items: center; gap: 6px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; font-size: 0.66rem; color: var(--cream); background: var(--bg-mid); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.hm-agent-dot { width: 6px; height: 6px; border-radius: 50%; }
.hm-agent-dot.hm-working { background: var(--gold-lt); animation: hmPulse 2s ease-in-out infinite; }
.hm-agent-dot.hm-idle { background: var(--muted); }
@keyframes hmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241,90,41,0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(241,90,41,0); }
}
@media (max-width: 480px) {
  .hm-stat-label { font-size: 0.5rem; }
  .hm-agent { font-size: 0.58rem; padding: 5px 9px; }
}
