/* ============================================================
   Trisentra Software — design system
   Shared visual language with Three Pointe (the delivery arm):
   navy base, brass accent, mono labels. "Console" aesthetic.
   ============================================================ */

:root {
  --navy:        #0F1B2D;  /* page base            */
  --navy-card:   #132339;  /* card surface         */
  --navy-lift:   #16273F;  /* raised surface       */
  --border:      #22344B;  /* hairline             */
  --border-lit:  #33496B;  /* stronger / focus     */
  --brass:       #D9A441;  /* accent               */
  --brass-deep:  #2A1E06;  /* text on brass        */
  --brass-soft:  #E0A44A;  /* inline warnings      */

  --ink:         #FFFFFF;  /* headings             */
  --text:        #E7EBF0;  /* body                 */
  --text-2:      #C4CDD8;  /* secondary body       */
  --text-3:      #9AA8B8;  /* muted                */
  --text-4:      #6B7C91;  /* faint / mono eyebrow */
  --text-label:  #8E97A3;  /* form labels          */

  --live:        #4FB286;  /* "Live" status        */

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* subtle top hairline so the page reads as a "console" */
.page-top { border-top: 2px solid var(--brass); }

/* ---------- eyebrows / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-4);
  text-transform: uppercase;
  margin: 0 0 26px;
}
.label-brass {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--brass);
  text-transform: uppercase;
}

/* ---------- headings ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; letter-spacing: -0.8px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; letter-spacing: -0.2px; }

p { margin: 0; }
.lede { font-size: clamp(16px, 2.2vw, 17px); line-height: 1.65; color: #B8C2CF; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
/* Shared Trisentra family mark — the triangle (tri = three) in brass. */
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-word { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: 0.5px; color: var(--text); }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-4); }
/* stacked lockup: TRISENTRA SOFTWARE over a small domain script */
.brand-stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-row { display: flex; align-items: baseline; gap: 8px; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--text-4); }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-3); align-items: center; }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px; }

@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy-card);
    border-bottom: 1px solid var(--border); z-index: 20; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 28px; border-top: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.5px;
  padding: 13px 24px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: transform .1s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brass); color: var(--brass-deep); font-weight: 600; }
.btn-primary:hover { background: #E4B255; }
.btn-primary:active { transform: scale(.985); }
.btn-ghost { background: transparent; color: var(--text-3); border-color: var(--border-lit); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-link { color: var(--text-3); font-family: var(--sans); font-size: 14px; padding: 13px 4px; }
.btn-link:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; }
.hero h1 { max-width: 760px; margin-bottom: 28px; }
.hero .lede { max-width: 580px; margin-bottom: 40px; }
.hero-accent { color: var(--brass); }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- three points grid ---------- */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.grid-3 .cell { background: var(--navy-card); padding: 26px 22px; }
.cell-num { font-family: var(--mono); color: var(--brass); font-size: 13px; margin-bottom: 14px; }
.cell h3 { margin-bottom: 10px; }
.cell p { font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- manifest / closing stamp ---------- */
.manifest {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; padding: 34px 0; border-top: 1px solid var(--border);
}
.manifest .msg { max-width: 460px; }
.manifest .msg b { color: var(--text); font-weight: 500; display: block; margin-bottom: 6px; font-size: 15px; }
.manifest .msg p { color: var(--text-3); font-size: 14px; line-height: 1.55; }
.stamp { text-align: right; }
.stamp .quiet { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-4); line-height: 2; }
.stamp .loud { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--brass); font-weight: 600; }

/* ============================================================
   Section headers (shared)
   ============================================================ */
.section-head { margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { max-width: 640px; }
.section-head p { color: var(--text-3); font-size: 15px; line-height: 1.6; max-width: 600px; margin-top: 14px; }

/* ============================================================
   Cards (generic)
   ============================================================ */
.card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
}
.card-lg { padding: 30px 28px; }

/* ============================================================
   The Factory strip (why right-sized is possible)
   ============================================================ */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip .cell { background: var(--navy-card); padding: 24px 22px; }
.strip .label-brass { display: block; margin-bottom: 10px; }
.strip p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; } }

/* ============================================================
   Products — the lineup
   ============================================================ */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .products { grid-template-columns: 1fr; } }

.product {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s ease, transform .1s ease;
}
.product:hover { border-color: var(--border-lit); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-name { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: 0.3px; }
.product-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-4); margin-top: 4px; }
.product p { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.product .go { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.5px; color: var(--brass); margin-top: auto; }
.product.featured { grid-column: 1 / -1; border-color: var(--border-lit); background: var(--navy-lift); }
.product.featured .product-name { font-size: 20px; }
.product.featured p { font-size: 15.5px; color: var(--text-2); max-width: 640px; }

/* status pills */
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; border: 1px solid var(--border-lit); white-space: nowrap; }
.pill-live { color: var(--live); border-color: #2C5C48; }
.pill-prod { color: var(--brass); border-color: #5A4620; }
.pill-soon { color: var(--text-4); }

/* ============================================================
   The spectrum (self-serve <-> part-time tech dept)
   ============================================================ */
.spectrum { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spectrum .end { background: var(--navy-card); padding: 28px 26px; }
.spectrum .end h3 { margin-bottom: 10px; font-size: 19px; }
.spectrum .end p { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.spectrum .end .label-brass { display: block; margin-bottom: 14px; }
@media (max-width: 640px) { .spectrum { grid-template-columns: 1fr; } }

/* ============================================================
   Feature rows (approach / support pages)
   ============================================================ */
.rows { display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row { background: var(--navy-card); padding: 26px 24px; display: flex; gap: 22px; align-items: flex-start; }
.row .n { font-family: var(--mono); color: var(--brass); font-size: 15px; font-weight: 600; min-width: 40px; }
.row .content { flex: 1; }
.row h3 { font-size: 19px; margin-bottom: 8px; }
.row p { font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
@media (max-width: 560px) { .row { flex-direction: column; gap: 8px; } }

/* ============================================================
   Forms (contact)
   ============================================================ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--text-label);
  margin-bottom: 6px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.input, .textarea {
  width: 100%; background: var(--navy); border: 1px solid var(--border-lit);
  color: var(--text); border-radius: 8px; padding: 0 12px; height: 44px;
  font-size: 15px; font-family: var(--sans); transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 1px var(--brass); }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.hint { font-size: 12px; color: var(--text-4); margin-top: 6px; }
.hint.warn { color: var(--brass-soft); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .tagline { font-family: var(--mono); font-size: 13px; letter-spacing: 0.5px; color: var(--brass); }
.footer .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-4); }
.footer .fineprint { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-4); }

/* utility */
.mt-sm { margin-top: 16px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.center { text-align: center; }
.note { font-size: 14px; line-height: 1.6; color: var(--text-3); max-width: 620px; }
.note b { color: var(--text); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer .fineprint a { color: var(--text-3); }
.footer .fineprint a:hover { color: var(--brass); }
