/* ============================================================
   Xulari — xulari.ai
   Type:   Instrument Serif (display) / IBM Plex Mono (labels, data)
           Public Sans (text). Editorial-technical, not startup-tech.
   Ground: near-black. Same signal accent as .com — same company,
           opposite ground.
   ============================================================ */

:root {
  --void: #0C0B0A;
  --void-2: #141312;
  --void-3: #1D1B19;
  --line: #282523;
  --line-2: #3A3633;
  --text: #D8D3CC;
  --text-2: #9C948B;
  --text-3: #6B645C;
  --signal: #E4572E;
  --sage: #8FA894;
  --display: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

a {
  color: inherit
}

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

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

@media(max-width:640px) {
  .wrap {
    padding: 0 20px
  }
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage)
}

.label--dim {
  color: var(--text-3)
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.05
}

h1 {
  font-size: clamp(46px, 7.6vw, 94px)
}

h2 {
  font-size: clamp(32px, 4.8vw, 54px)
}

h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: #fff
}

.lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 56ch
}

p {
  max-width: 64ch
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 11, 10, .86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line)
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none
}

.brand span {
  font-family: var(--display);
  font-size: 23px;
  color: #fff
}

.brand span i {
  font-style: normal;
  color: var(--signal)
}

nav {
  display: flex;
  align-items: center;
  gap: 28px
}

nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color .15s
}

nav a:hover {
  color: #fff
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  border-radius: 1px;
  transition: .15s;
  color: var(--text)
}

.btn:hover {
  border-color: var(--signal);
  color: #fff
}

.btn--solid {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff
}

.btn--solid:hover {
  background: #C6431F;
  border-color: #C6431F
}

.hero {
  padding: 120px 0 96px;
  position: relative
}

.hero h1 {
  margin: 26px 0 0;
  max-width: 15ch
}

.hero h1 em {
  font-style: italic;
  color: var(--signal)
}

.hero .lede {
  margin-top: 30px
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap
}

.hero-meta {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px
}

.hero-meta div {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3)
}

.hero-meta b {
  display: block;
  color: var(--sage);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 400;
  margin-bottom: 7px
}

@media(max-width:760px) {
  .hero {
    padding: 72px 0 64px
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 22px
  }
}

section {
  padding: 100px 0;
  border-top: 1px solid var(--line)
}

.sec-head {
  max-width: 60ch;
  margin-bottom: 60px
}

.sec-head h2 {
  margin-top: 18px
}

.sec-head .lede {
  margin-top: 20px
}

@media(max-width:760px) {
  section {
    padding: 68px 0
  }
}

.proof-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  gap: 14px
}

.proof-card {
  min-height: 250px;
  padding: 26px 24px;
  background: var(--void-2);
  border: 1px solid var(--line);
  position: relative
}

.proof-card h3 {
  margin-top: 38px
}

.proof-card p {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 8px
}

.proof-card--source {
  border-top: 2px solid var(--sage)
}

.proof-card--draft {
  border-top: 2px solid var(--signal)
}

.proof-card--approve {
  border-top: 2px solid #D8B56A
}

.proof-arrow {
  font-family: var(--display);
  font-size: 28px;
  color: var(--text-3);
  text-align: center
}

.proof-paper {
  width: 90px;
  height: 104px;
  background: #E7E0D3;
  margin-top: 28px;
  padding: 20px 14px;
  transform: rotate(-4deg)
}

.proof-paper span {
  display: block;
  height: 4px;
  background: #B8AEA0;
  margin-bottom: 9px
}

.proof-paper span:nth-child(2) {
  width: 80%
}

.proof-paper span:nth-child(3) {
  width: 58%
}

.proof-paper i {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #8FA894;
  border-radius: 50%;
  margin: 12px auto 0
}

.proof-lines {
  margin-top: 38px;
  border-left: 2px solid var(--signal);
  padding-left: 18px
}

.proof-lines span {
  display: block;
  height: 6px;
  background: var(--text-3);
  margin: 13px 0;
  width: 86%
}

.proof-lines span:nth-child(2) {
  width: 64%
}

.proof-lines span:nth-child(3) {
  width: 78%
}

.proof-lines span:nth-child(4) {
  width: 46%;
  background: var(--signal)
}

.proof-check {
  margin-top: 34px;
  width: 62px;
  height: 62px;
  border: 1px solid #D8B56A;
  color: #D8B56A;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-family: var(--display)
}

@media(max-width:760px) {
  .proof-flow {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .proof-arrow {
    transform: rotate(90deg);
    height: 28px
  }

  .proof-card {
    min-height: 210px
  }
}

/* principles: numbered rows with mono index */
.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line)
}

.principle:last-child {
  border-bottom: 0
}

.principle .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  padding-top: 4px
}

.principle h3 {
  margin-bottom: 9px
}

.principle p {
  color: var(--text-2);
  font-size: 16px
}

@media(max-width:640px) {
  .principle {
    grid-template-columns: 1fr;
    gap: 10px
  }
}

/* capability grid */
.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line)
}

.cap {
  background: var(--void);
  padding: 34px 30px;
  transition: background .15s
}

.cap:hover {
  background: var(--void-2)
}

.cap .label {
  margin-bottom: 14px;
  display: block
}

.cap h3 {
  margin-bottom: 9px
}

.cap p {
  font-size: 15.5px;
  color: var(--text-2)
}

@media(max-width:760px) {
  .caps {
    grid-template-columns: 1fr
  }
}

/* terminal-ish block */
.term {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-2);
  margin-top: 36px;
  overflow-x: auto
}

.term .k {
  color: var(--sage)
}

.term .c {
  color: var(--text-3)
}

.term .s {
  color: var(--signal)
}

.pull {
  border-left: 2px solid var(--signal);
  padding: 22px 0 22px 28px;
  margin: 44px 0 0
}

.pull p {
  font-family: var(--display);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.4;
  color: #fff;
  max-width: 44ch
}

footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  color: var(--text-3);
  font-size: 14px
}

footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start
}

footer a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  margin-right: 24px
}

footer a:hover {
  color: #fff
}