/* ============================================================
   Mytrii — mytrii.org shared site stylesheet
   Used by all marketing pages (index, what-we-do, live-demo,
   proof-of-work, insights, contact). Demo tool pages under /demo/
   keep their own embedded dark-theme styles and do not use this file.
   ============================================================ */

:root {
  --bg: #F5F0E8;
  --panel: #FFFFFF;
  --panel2: #FBF6EC;
  --border: #E2D3BE;
  --brand: #7A1528;
  --brand-mid: #A01E36;
  --brand-dim: #F2DEE1;
  --amber: #96631C;
  --cyan: #2B7A88;
  --green: #2E7D4F;
  --red: #B33030;
  --text: #2A1F1B;
  --text-dim: #7A6A60;
  --text-muted: #A79686;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

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

img {
  max-width: 100%;
  display: block
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em
}

p {
  margin: 0 0 1em
}

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

section {
  padding: 72px 0
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  display: block;
}

.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 640px
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff
}

.btn-primary:hover {
  background: var(--brand-mid)
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand)
}

.btn-outline:hover {
  background: var(--brand-dim)
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px
}

.header-logo {
  height: 38px;
  width: auto
}

.header-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 11px;
  color: var(--brand-mid);
  letter-spacing: .01em;
  white-space: nowrap;
}

@media (max-width:520px) {
  .header-tagline {
    display: none
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text)
}

.nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand)
}

.header-cta {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px
}

.nav-toggle {
  display: none
}

@media (max-width:880px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 28px;
    gap: 4px;
    display: none;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .site-nav.open {
    display: flex
  }

  .site-nav .nav-link {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0
  }

  .site-nav .nav-link.active {
    border-bottom-color: var(--brand)
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--panel);
    cursor: pointer;
  }

  .header-cta.desktop-only {
    display: none
  }
}

@media (min-width:881px) {
  .nav-toggle {
    display: none
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: #2A1610;
  color: #E9D9CE;
  margin-top: 80px
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 320px
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1) opacity(.92)
}

.footer-tagline {
  color: #C9B3A6;
  font-size: 14px;
  line-height: 1.6
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9B3A6;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #E9D9CE;
  opacity: .85;
  margin-bottom: 10px;
}

.footer-col a:hover {
  opacity: 1;
  color: #fff
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 28px;
  text-align: center;
  font-size: 12.5px;
  color: #9C8579;
}

/* ---------- shared components ---------- */
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  background: var(--brand-dim);
  color: var(--brand);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.grid {
  display: grid;
  gap: 24px
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

@media (max-width:880px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }

  section {
    padding: 52px 0
  }
}

.stat {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--brand);
  font-weight: 600
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0
}

.section-alt {
  background: var(--panel2)
}

.center {
  text-align: center
}

.small {
  font-size: 13px;
  color: var(--text-muted)
}